Stream: implementers
Topic: Search syntax for Medicare Number
Paul Barry (May 18 2017 at 03:30):
In Australia the 10th digit of an 11 digit medicare number for an individual is subject to change for each card renewal. Using the correct RESTful syntax, how would one perform this type of soft match on a FHIR server when trying to use the 10th digit as a wildcard to search for a patient by this id?
<Patient "http://hl7.org/fhir"> <text> <status value="generated" /> <div>John Smith. MedicareNo:34091594141</div> </text> <identifier> <use value="official" /> <type> <coding> <system value="http://hl7.org/fhir/v2/0203" /> <code value="MC" /> <display value="Patients Medicare Number" /> </coding> <text value="Medicare Number" /> </type> <system value="http://ns.electronichealth.net.au/id/hi/mc" /> <value value="34091594198" /> </identifier> '''
Grahame Grieve (May 18 2017 at 05:53):
I don't think that there's way to do this right now
Brett Esler (May 18 2017 at 06:23):
Would you think this a fairly good reason to make the 11th digit a separate element?
Grahame Grieve (May 18 2017 at 06:27):
I don't know. Need to do something, I think
Brett Esler (May 18 2017 at 06:56):
agree..
Nate Walker (May 18 2017 at 07:17):
Would you not do a period on it, so that when you search you get a list of patients back with that identifier ordered by most recent? Then in your search only pass in the 10 digits to search on (non-exact match)
Lloyd McKenzie (May 18 2017 at 14:56):
We have a jurisdiction or two in Canada that also have a "version" for their jurisdictional health number. However, it's seen as a distinct data element. Out plan was to use a Canadian-specific extension for that, but it sounds like it may make sense to define it as an extension at the international level? Would Australian systems be able to treat the final digit as a distinct element?
Grahame Grieve (May 18 2017 at 17:59):
it's not the same thing.
Grahame Grieve (May 18 2017 at 18:00):
what this is a use case for left most matching on the identifier but that is not described
Lloyd McKenzie (May 18 2017 at 18:38):
When you say it's not the same thing, what do you think the difference is?
Paul Barry (May 20 2017 at 07:36):
Ok so maybe we cant do a soft search in the way described but how would I do a partial match on just the first 9 digits of the medicare number for example. I have been unsuccessful trying a partial matches (:contains) on the Hapi server
Paul Barry (May 22 2017 at 20:55):
@Brian Postlethwaite (new) any luck with this?
Brian Postlethwaite (Jun 04 2017 at 12:53):
I'll add it to the Agenda for the next PA Australian conference call.
Brett Esler (Jun 04 2017 at 13:26):
added this for review on the AU PA call
Christiaan Knaap (Oct 17 2017 at 12:28):
Another option is to define a custom search parameter:
- on Patient
- of searchparametertype String
- with the expression Patient.identifier.value.substring(0,9)
,
and then search exact on that.
Brian Postlethwaite (Nov 10 2017 at 11:26):
I think would be token, as want exact, not starts-with (no need to have the :exact)
Last updated: Apr 12 2022 at 19:14 UTC