如何搜索具有我提供的名字的人?
我有以下2位“接近”患者。除“给定名称”之一相同外,其他所有内容(“人名”区域)均相同。 注意“苹果”与“香蕉”。
{
"resourceType": "Bundle",
"id": "269caf66-0ccc-43e7-b9a5-f16f84db0149",
"meta": {
"lastUpdated": "2019-11-20T19:30:26.858917+00:00"
},
"type": "searchset",
"link": [
{
"relation": "self",
"url": "https://localhost:44348/Patient?given=Jingerheimer"
}
],
"entry": [
{
"fullUrl": "https://localhost:44348/Patient/504f6bd3-e9b4-4846-8948-97bf09c70722",
"resource": {
"resourceType": "Patient",
"id": "504f6bd3-e9b4-4846-8948-97bf09c70722",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-20T19:26:11.005+00:00"
},
"identifier": [
{
"system": "ssn",
"value": "111-11-1111"
},
{
"system": "uuid",
"value": "da55d068e0784b359fa97498a11543c5"
}
],
"name": [
{
"family": "Smith",
"given": [
"John",
"Apple",
"Jingerheimer"
]
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://localhost:44348/Patient/10054ce9-6141-4eca-bc5b-0978f8c8afcb",
"resource": {
"resourceType": "Patient",
"id": "10054ce9-6141-4eca-bc5b-0978f8c8afcb",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-20T19:26:48.962+00:00"
},
"identifier": [
{
"system": "ssn",
"value": "222-22-2222"
},
{
"system": "uuid",
"value": "52d09f9436d44591816fd229dd139523"
}
],
"name": [
{
"family": "Smith",
"given": [
"John",
"Banana",
"Jingerheimer"
]
}
]
},
"search": {
"mode": "match"
}
}
]
}
一个具有包含“ Apple”的GivenNames。另一个包括包含“香蕉”的GivenNames。
此搜索工作正常:
https://localhost:44348/Patient/?given=Jingerheimer
我尝试过的是:
https://localhost:44348/Patient/?given=Jingerheimer&given=Apple
但是没有任何结果。
请注意,省略“ given = Jingerheimer”并不是一种选择。...会过滤掉很多其他内容。
我正在尝试
“我同时提供了给定名称”
答案 0 :(得分:2)
您的语法正确,因此我认为服务器无法正确处理搜索。您可以检查第二次搜索的自我链接,以查看它是否反映了您执行的搜索?结果Bundle是否有OperationOutcome来详细说明出现了问题?如果一切正常,则需要检查服务器的代码。