FHIR Chat · How to escape colons in search · implementers

Stream: implementers

Topic: How to escape colons in search


view this post on Zulip Mike C. (Oct 24 2019 at 20:43):

Hi folks,

Just a quick question - for many of the resources on my FHIR server, my "subject.reference" field references a Patient ID in the following format:
"urn:uuid:111222333444".

I am attempting to query for all Encounter resources that reference a certain ID as the subject.reference.

I am trying to search using this syntax: [base URL]/Encounter?subject=urn:uuid:11112222233333

But I am unsuccessful. I tried passing \ and / in front of those colons in the patient ID but to no avail. Just wondering if anyone here knew how to query for a Patient ID that contains colons within it. Thanks!

view this post on Zulip Michele Mottini (Oct 24 2019 at 20:52):

The way to escape those is to use %3A for :
But are you sure that that's the id of the patient? Seems an identifier more than an id

view this post on Zulip David Pyke (Oct 24 2019 at 20:53):

Convert the colon to it's equivalence of %3A

view this post on Zulip Mike C. (Oct 24 2019 at 20:54):

The way to escape those is to use %3A for :
But are you sure that that's the id of the patient? Seems an identifier more than an id

Michele, thank you for your reply! Yes, it is experimental patient data attained from Synthea. It is the identifier that corresponds to the "reference" property of the "subject" element for my Encounter resource. It is the only Patient identifier in the resource.

view this post on Zulip Lloyd McKenzie (Oct 25 2019 at 00:27):

In general, references to a uuid are only expected to resolve inside a Bundle. The server processing the transaction is responsible for translating those UUID references into proper resource URLs on its server


Last updated: Apr 12 2022 at 19:14 UTC