Stream: implementers
Topic: filtering out resources by meta.profile
Tushar Nair (Apr 05 2021 at 16:55):
Hello,
I am trying to fetch DiagnosticReport resources in a peculiar way due to some bad data challenges in the server. Due to this situation I have to fetch the DiagnosticReport resources for labs by filtering out DiagnosticReport resources where DiagnosticReport.meta.prfile is not equal to 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note'. Therefore I tried the following query:
http://[base]/DiagnosticReport?_profile:not-in=http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note but I didn't get any result. Again I also tried :
http://pd-fhir-viewer:8080/hapi-fhir-jpaserver/fhir/DiagnosticReport?_profile:not=http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note, still no luck. Have also tried _filter :
pd-fhir-viewer:8080/hapi-fhir-jpaserver/fhir/DiagnosticReport?_filter=profile pr http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note but didnt get a result, infaact it's failing with syntax error. Can anyone please shed light on this. Is it that filtering on uri is not allowed? What could be the work around. Thank you in advance.
Lloyd McKenzie (Apr 05 2021 at 17:15):
There is no means to perform this search at present. You could submit a change proposal suggesting that we add support for :not
to uri search parameters (and maybe others too).
Lloyd McKenzie (Apr 05 2021 at 17:16):
You could look at using _filter, but there aren't many servers that support it.
Tushar Nair (Apr 06 2021 at 02:54):
Lloyd McKenzie Thank you ! Can you please tell me or point me to the location explaining change request process
Lloyd McKenzie (Apr 06 2021 at 03:44):
At the bottom of every page in the spec is a "propose a change" link. You'll have to do a one-time registration and we have a human review all requests to make sure you're not a spammer. However, registration is free and open to all. Once you're registered, you can submit change requests to your heart's content.
Tushar Nair (Apr 06 2021 at 04:07):
Lloyd McKenzie Thank you
Last updated: Apr 12 2022 at 19:14 UTC