这是一个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>\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/7549/_history/1\" in 16ms"
}
]"
注意:它告诉Successfully create.Means所有密钥已在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请求中提交的所有键/值?
答案 0 :(得分:0)
您有版本问题。您正在向运行DSTU2的服务器提交R3版本的过程请求,并且未将其配置为验证输入。因此,它会默默地删除DSTU2中未知的所有内容