FHIR:ProcedureRequest如何检索ProcedureRequest的所有数据字段?

时间:2017-11-18 13:06:15

标签: hl7-fhir

我无法检索所有字段,我将ProcedureRequest发布到FHIR数据库。

第1步:发布请求

curl -X POST https://fhir.dstu2.safetylabs.org/api/smartdstu2/open/ProcedureRequest \
        -H 'Content-type: application/json+fhir' \
        --data @ProcedureRequest.js

POST的结果

    {
    "resourceType":"OperationOutcome",
    "text":{
        "status":"generated",
        "div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">information</td><td>[]</td><td><pre>Successfully created resource &quot;ProcedureRequest/7660/_history/1&quot; in 7ms</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
    },
    "issue":[
        {
            "severity":"information",
            "code":"informational",
            "diagnostics":"Successfully created resource \"ProcedureRequest/7660/_history/1\" in 7ms"
        }
    ]
}

此请求已成功。

JSON是通过JSON验证器验证的,并且它也是从给定链接的hapi测试服务器验证的

" https://fhirtest.uhn.ca/resource?serverId=home_21&pretty=false&resource=ProcedureRequest"

第2步:检索请求

curl -X GET https://fhir.dstu2.safetylabs.org/api/smartdstu2/open/ProcedureRequest/7660

GET的结果

    {
    "resourceType":"ProcedureRequest",
    "id":"7660",
    "meta":{
        "versionId":"1",
        "lastUpdated":"2017-11-18T13:49:23.000+00:00"
    },
    "text":{
        "status":"generated",
        "div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: subrequest</p><p><b>definition</b>: Protocol for alergies</p><p><b>basedOn</b>: Original Request</p><p><b>replaces</b>: Previous allergy test</p><p><b>requisition</b>: A13848392</p><p><b>status</b>: active</p><p><b>intent</b>: instance-order</p><p><b>priority</b>: routine</p><p><b>code</b>: Peanut IgG <span>(Details : {LOINC code '35542-0' = 'Peanut IgG Ab [Mass/volume] in Serum)</span></p><p><b>subject</b>: <a>Patient/dicom</a></p><p><b>occurrence</b>: 08/05/2013 9:33:27 AM</p><h3>Requesters</h3><table><tr><td>-</td><td><b>Agent</b></td></tr><tr><td>*</td><td><a>Dr. Adam Careful</a></td></tr></table><p><b>performerType</b>: Nurse <span>(Details : {[not stated] code 'null' = 'null', given as 'Qualified nurse'})</span></p><p><b>reasonCode</b>: Check for Peanut Allergy <span>(Details )</span></p><p><b>bodySite</b>: Right arm <span>(Details : {[not stated] code 'null' = 'null', given as 'Right arm'})</span></p></div>"
    },
    "subject":{
        "reference":"Patient/SL88812358"
    },
    "code":{
        "coding":[
            {
                "system":"http://loinc.org",
                "code":"35542-0"
            }
        ],
        "text":"Peanut IgG"
    },
    "bodySite":[
        {
            "coding":[
                {
                    "display":"Right arm"
                }
            ],
            "text":"Right arm"
        }
    ],
    "status":"active",
    "priority":"routine"
}

请注意,Retrieve未检索以下字段

  • occurrenceTiming
  • occurrenceDateTime
  • performerType
  • reasonCode
  • 请求者

问题:如何申请我发布的所有字段?

1 个答案:

答案 0 :(得分:0)

这是因为您发布到DSTU2服务器并且这些元素不存在于DSTU2中 - 因此服务器忽略它们(因为服务器可以使用无法识别的元素)。如果您发布到DSTU3服务器,则应存储这些元素 - 如果服务器支持这些元素,则大多数测试服务器都会这样做。