搜索过程请求不会返回所有更新的键=值对



这是一个 json 文件:"ValidProcedureRequest.json"

{
  "resourceType": "ProcedureRequest",
  "text": {
    "status": "generated",
    "div": ""
  },
  "occurrenceTming" : {
    "resourceType" : "Timing",
    "event" : ["31-01-2017"],
    "repeat" : {
         "boundsPeriod" : { "start" : "10:55"},
         "period" : 1,
         "periodUnit" : "d",
         "dayOfWeek" : ["mon,wed"],
         "timeOfDay" : ["11::44"]
         }
      },
   "occurrencePeriod" : {
    "start" : "10:55",
    "end" : "22:25"
   },
   "requester": {
    "agent": {
      "reference": "Practitioner/example"
    }
   },
   "intent": "order",
   "performer": {
    "reference": "Practitioner/COREPRACTITIONER1"
    },
   "category": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "103693007",
          "display": "Diagnostic procedure (procedure)"
        }
      ],
      "text": "Diagnostics Procedure"
    }
   ],
   "code": {
    "coding": [
      {
        "system": "",
        "code": "303653007",
        "display": "Computed tomography of head"
      }
    ]
  },
  "subject": {
     "reference": "Patient/SL88812358"
 }
}

我在 ValidProcedureRequest.json 文件上运行 CURL 命令。

"curl -X POST https://fhir.dstu2.safetylabs.org/api/smartdstu2/open/ProcedureRequest -H 'Content-type: application/json+fhir' --data ValidProcedureRequest.json
{
"resourceType":"OperationOutcome",
"text":{
"status":"generated",
"div":"<div xmlns="http://www.w3.org/1999/xhtml <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 "ProcedureRequest/7549/_history/1" in 16ms</pre></td>ntttttnttttnttt</tr>ntt</table>nt</div>"
},
"issue":[
{
"severity":"information",
"code":"informational",
"diagnostics":"Successfully created resource "ProcedureRequest/7549/_history/1" in 16ms"
}
]"

注意:它告诉成功创建。表示 FHIR 数据库中的所有密钥都已更新。

我运行 curl 命令以获取更新的对象。

curl -X GET https://fhir.dstu2.safetylabs.org/api/smartdstu2/open/ProcedureRequest/7549
{
"resourceType":"ProcedureRequest",
"id":"7549",
"meta":{
"versionId":"1",
"lastUpdated":"2017-11-03T13:06:50.000+00:00"
},
"text":{
"status":"generated"
},
"subject":{
"reference":"Patient/SL88812358"
},
"code":{
"coding":[
{
"code":"303653007",
"display":"Computed tomography of head"
}
]
},
"performer":{
"reference":"Practitioner/COREPRACTITIONER1"
}

问:如何检索 GET 请求中提交的所有键/值?

您有版本问题。您正在将过程请求的 R3 版本提交到运行 DSTU2 的服务器,并且未将其配置为验证输入。所以它默默地删除了DSTU2中所有未知的内容

最新更新