Task resource search URL with output filed that is an identifier ?
22 views
Skip to first unread message
christophe spielmann
unread,
Feb 24, 2025, 8:52:53 AM2/24/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HAPI FHIR
Hello,
Let's say that I have a Task resource as below into HAPI FHIR. I wonder how to search for it within HAPI FHIR using its output value when it is an identifier.
Strangely enough the following works with another FHIR server implementation but not with HAPI (7.4.0)
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HAPI FHIR
Based on the spec for Task, there is no built-in search parameter for the output. see https://hl7.org/fhir/R4/task.html#search . HAPI-FHIR implements search parameterss as defined on this spec. You could, however, define a custom search parameter, re-index the data ( or add a new Task that matches), and then search by the new SP.
I don't know what the fhirpath for the custom SP would be offhand, but probably something like Task.output.where(type="order identifier").valueReference.identifier and the SP type would be `token` given its on an identifier.
christophe spielmann
unread,
Feb 24, 2025, 11:39:09 AM2/24/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HAPI FHIR
Hello Gary, thanks for the reply.
Actually, I forgot to mention that I am using R5. sorry about that.
and as far as I can see into the specs R5, there is something supposedly that would meet your expectation above.
output reference Search by task output Task.output.value.ofType(Reference)
G G (Tadgh)
unread,
Feb 24, 2025, 1:40:08 PM2/24/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message