简体   繁体   English

FHIR URL-根据现有患者进行阅读

[英]FHIR URL - Read Based on Existing Patient

I'm building a FHIR client in .NET using the test server in the following request: http://argonaut.healthintersections.com.au/open/Patient?family=Doe&given=John . 我在以下请求中使用测试服务器在.NET中构建FHIR客户端: http ://argonaut.healthintersections.com.au/open/Patient?family=Doe&given=John。 I am able to successfully return and parse JSON response for an existing test patient. 我能够为现有的测试患者成功返回并解析JSON响应。 My use case: Now that I know that my patient of interest exists I want to return problems/medications/immunizations for the patient. 我的用例:现在,我知道我感兴趣的患者存在,因此我想退回该患者的问题/药品/疫苗。

Can someone please tell me how I can turn around the patient information (presumably patient id) received in the JSON response and request all medications or immunizations or problems for said patient? 有人可以告诉我如何处理JSON响应中收到的患者信息(可能是患者ID)并为该患者请求所有药物或免疫接种或问题吗? I've tried quite a few ways based on my interpretation of the documentation (trying to leverage resource type of StructuredDefinition defined in the specification, but I cannot seem to get it right. Excerpt from the JSON response showing patient id returned from server: 我已经根据对文档的解释尝试了多种方法(尝试利用规范中定义的StructuredDefinition的资源类型,但似乎无法正确处理。JSON响应摘录,其中显示了从服务器返回的患者ID:

"entry":[
{
    "resource":{
        "resourceType":"Patient",
        "id":"4705152-patient",
        "meta":{
           "versionId":"1",
           "lastUpdated":"2015-05-04T13:41:19Z"
        },

Thank you 谢谢

Two different answers, depending how you want to go about it. 有两种不同的答案,具体取决于您要如何做。 If you want to get a dump of the whole patient record, you can do this: http://argonaut.healthintersections.com.au/open/Patient/475152-patient/ $everything. 如果要转储完整的患者记录,可以执行以下操作: http : //argonaut.healthintersections.com.au/open/Patient/475152- Patient / $ everything。 That will give you Lists, Conditions, Allergies, Medications, etc. - everything in the patient compartment for that patient. 这将为您提供清单,病症,过敏,药物等-该患者在患者隔间中的所有内容。 (You can filter by "since" and a couple of other parameters). (您可以按“自”和其他两个参数进行过滤)。

You can also go after the resources individually: http://argonaut.healthintersections.com.au/open/Condition?patient=475152-patient 您也可以单独使用这些资源: http : //argonaut.healthintersections.com.au/open/Condition?Pa​​tient = 475152- Patient

Side-note: I just queried the healthintersections argonaut server for the patient id you specified in your example and didn't find it, so I tested my queries using patient "1". 旁注:我只是在healthintersections argonaut服务器中查询了您在示例中指定的患者ID,但没有找到它,因此我使用患者“ 1”测试了查询。

You'll need to be authorized via OAuth in order to get this data back 您需要通过OAuth进行授权才能取回该数据

EDIT: Updated to reflect that non-availability is due to lack of OAuth authentication, not Argonaut intention 编辑:更新以反映不可用性是由于缺少OAuth身份验证而不是Argonaut的意图

You could also use _revinclude to directly include these associated resources in the query response. 您也可以使用_revinclude将这些相关资源直接包含在查询响应中。 See the search specification page. 请参阅搜索规范页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM