-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Describe the bug
Searching with more than one chained Bundle SearchParameter (i.e. Composition) is returning incorrect results.
To Reproduce
PUT /SearchParameter/bundle-composition-patient-birthdate
{
"resourceType": "SearchParameter",
"id": "bundle-composition-patient-birthdate",
"url": "http://example.org/SearchParameter/bundle-composition-patient-birthdate",
"name": "composition.patient.birthdate",
"status": "active",
"code": "composition.patient.birthdate",
"base": [ "Bundle" ],
"type": "date",
"expression": "Bundle.entry.resource.ofType(Patient).birthDate"
}
PUT SearchParameter/bundle-composition-patient-identifier
{
"resourceType": "SearchParameter",
"id": "bundle-composition-patient-identifier",
"url": "http://example.org/SearchParameter/bundle-composition-patient-identifier",
"name": "composition.patient.identifier",
"status": "active",
"code": "composition.patient.identifier",
"base": [ "Bundle" ],
"type": "token",
"expression": "Bundle.entry.resource.ofType(Patient).identifier"
}
PUT /Patient/patient-1
{
"resourceType": "Patient",
"id": "patient-1",
"identifier": [ {
"system": "http://identifiers",
"value": "value-1"
} ],
"birthDate": "1980-10-11"
}
POST /Bundle
{
"resourceType": "Bundle",
"type": "document",
"entry": [ {
"resource": {
"resourceType": "Composition",
"type": {
"coding": [ {
"system": "http://example.org",
"code": "code"
} ]
},
"subject": {
"reference": "Patient/patient-1"
}
}
}, {
"resource": {
"resourceType": "Patient",
"id": "patient-1",
"meta": {
"versionId": "1",
"lastUpdated": "2024-01-19T15:42:55.057-05:00"
},
"identifier": [ {
"system": "http://identifiers",
"value": "value-1"
} ],
"birthDate": "1980-10-11"
}
} ]
}
- Search for a
Patientinside of aBundlewith incorrectPatientbirthdate and a correctPatientidentifier.
/Bundle?composition.patient.birthdate=2000-01-01&composition.patient.identifier=http://identifiers|value-1
- See 1 result is returned.
Expected behaviour
No results should be returned
Metadata
Metadata
Assignees
Labels
No labels