FHIR Chat · Search parameter for Provenance · implementers

Stream: implementers

Topic: Search parameter for Provenance


view this post on Zulip Camille Van Assel (Feb 20 2020 at 12:11):

Hello all,

I'm trying to create a search parameter for my provenance resource that would allow to search by agent type and reference.
My provenance agent look like that:
"agent": [ { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type", "code": "verifier", "display": "Verifier" } ] }, "who": { "reference": "Device/4704" } }, { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type", "code": "enterer", "display": "Enterer" } ] }, "who": { "reference": "Device/4705" } } ] ]
And I would like to be able to search something like /Provenance?agent-of-type=Device/4704$verifier&agent-of-type=Device/4705$enterer

So far I've just been able to search for the reference with:
"code": "agent-of-type",
"type": "reference",
"expression": "Provenance.agent.who"

Do you know if there is a way to combine it with the type of agent ?
Thanks for your help :)

view this post on Zulip John Moehrke (Feb 20 2020 at 13:49):

I don't think you can do that.. but @Lloyd McKenzie would know, and I don't want to be told I was wrong for a third time this week... :-)

view this post on Zulip Lloyd McKenzie (Feb 20 2020 at 15:54):

Yes, it'd be possible to define a composite search parameter that did that. In SearchParameter, you'd have to use SearchParameter.component - one for the type and one for the reference


Last updated: Apr 12 2022 at 19:14 UTC