通过内部参考搜索FHIR资源

时间:2017-02-15 05:22:58

标签: hl7-fhir dstu2-fhir

DSTU2文档未描述通过内部引用搜索资源的功能。有没有办法找到包含Practitioner资源和内部引用的下面的资源,如:

[base]/fhir/Patient?careprovider:Practitioner=ContainedId

[base]/fhir/Patient?careprovider=ContainedId

{
 "resourceType" : "Patient",
 "id" : "ContainedTestPatient",
 "careProvider" : [{
  "reference" : "#ContainedId"
 }],
  "contained" : [{
    "resourceType": "Practitioner",
    "id": "ContainedId",
    "name": {"text": "Good doctor INC"}
  }]
}

1 个答案:

答案 0 :(得分:1)

实际上,DSTU2文档确实指定了如何搜索所包含资源中的值,请参阅http://www.hl7.org/fhir/search.html#contained。这是通过链式搜索完成的,如下所示:

[base]/Patient?careprovider._id=ContainedId