Stream: implementers
Topic: Searching Bundles with "composition" search parameter
Alessio Graziani (Apr 24 2020 at 15:10):
Hi all,
I'm querying the Bundle resource, to retrieve a Bundle of type "document" that contains a specific instance of Composition (as the first entry). The problem is that I don't get any results back, it seems like the "composition" search parameter is not taken into account. Am I doing something wrong or the search parameter is not supported?
1) These are examples of query I'd like to submit:
http://localhost:8080/NCP/fhir/Bundle?composition=Composition/53
http://localhost:8080/NCP/fhir/Bundle?type=document&composition.type=http://loinc.org|60591-5
2) this is the created Bundle:
{ "resourceType": "Bundle", "id": "52", "meta": { "versionId": "1", "lastUpdated": "2020-04-24T16:32:43.170+02:00", "source": "#eDCJBwn2rScDUh79" }, "type": "document", "entry": [ { "fullUrl": "Composition/53", "resource": { "resourceType": "Composition", "id": "53", "status": "final", "type": { "coding": [ { "system": "http://loinc.org", "code": "60591-5", "display": "Profilo sanitario sintetico" } ] }, "subject": { "reference": "urn:uuid:561bbebe-4679-49e4-a572-eb2f39353524" }, "title": "Patient Summary di: Duck [Donald]" } }, { "fullUrl": "Patient/54", "resource": { "resourceType": "Patient", "id": "54", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">Donald <b>DUCK </b></div><table class=\"hapiPropertyTable\"><tbody><tr><td>Identifier</td><td>DNDDCKABCDEFG</td></tr></tbody></table></div>" }, "identifier": [ { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0203", "code": "TAX" } ] }, "value": "DNDDCKABCDEFG" } ], "name": [ { "family": "Duck", "given": [ "Donald" ] } ], "gender": "male" } } ] }
3) I'm running on hapi fhir server: version 4.1.0 - Rev 03163c2cf5, with embedded DB
Thanks
Alessio
Lloyd McKenzie (Apr 24 2020 at 18:14):
The fullUrl isn't valid - a fullUrl must actually be a 'full' URL - i.e. it needs to include the server base. (Or it needs to be a urn:uuid). Not sure that's related to your problem though. You might want to reach out on the #hapi stream
Alessio Graziani (Apr 25 2020 at 14:02):
Thanks a lot, Lloyd. By the way, the fullUrl is the one created by HAPI, this Bundle of type document has been created with a transaction. I'll write in the #hapi stream.
Cheers
Lloyd McKenzie (Apr 25 2020 at 14:36):
@James Agnew - note issue w/ fullUrl...
Last updated: Apr 12 2022 at 19:14 UTC