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"}
}]
}
答案 0 :(得分:1)
实际上,DSTU2文档确实指定了如何搜索所包含资源中的值,请参阅http://www.hl7.org/fhir/search.html#contained。这是通过链式搜索完成的,如下所示:
[base]/Patient?careprovider._id=ContainedId