Stream: terminology
Topic: property for op=regex
Lloyd McKenzie (Aug 29 2019 at 03:11):
One of the operations that can be used to filter a valueset is regex. However, it's not terribly clear in the spec (that I could see anyhow) what the proper "property" value is to go with the 'regex' op.
Peter Jordan (Aug 29 2019 at 04:29):
The spec states "A property/filter defined by the code system". That would also include the 'Standard Properties' defined here... http://hl7.org/fhir/terminology-service.html#standard-props - of these, one would assume that display
or designation
are the most likely to be used in conjuction with the regex
operator. However, I'm not aware of anyone who has implemented this except, maybe, @Grahame Grieve ?
Lloyd McKenzie (Aug 29 2019 at 05:25):
What I actually want to check is the 'code' - but that's not listed as one of the standard props.
Lloyd McKenzie (Aug 29 2019 at 05:26):
Specific use-case is a filter against ICD-10 where my regex is based on the first character.
Lloyd McKenzie (Aug 29 2019 at 05:26):
(Seeing as how ICD10 codes are defined that way :))
Peter Jordan (Aug 29 2019 at 05:30):
Interesting omission from the standard properties list! However, I note that page is 'only' Maturity Level 4 so it might be possible to add code or identifier to that list. Otherwise, I'm not sure if it would be possible to view a non-surrogate code/identifier as a designation?
Grahame Grieve (Aug 29 2019 at 07:03):
I think it should be code. The properties code
, display
, and definition
are defined for all code systems
Grahame Grieve (Aug 29 2019 at 07:03):
courtesy of the fact that they are all either CodeSystem resources, or have some defined mapping to a CodeSystem resource, even if it doesn't exist in full for size reasons
Lloyd McKenzie (Aug 29 2019 at 13:30):
Should I submit a change request to declare that as a property? Is it an r4 technical correction?
Rob Hausam (Aug 29 2019 at 13:33):
Seems like it could be - a rather interesting omission, as Peter said.
Michael Lawley (Aug 30 2019 at 07:18):
which flavour of regex?
Michael Lawley (Aug 30 2019 at 07:20):
Is anyone thinking about the performance implications of regex matching? Seems like prefix matching would probably cover most code matching cases
Grahame Grieve (Aug 30 2019 at 09:56):
I want to use regex on snomed.... surely you can sort that for me
Lloyd McKenzie (Aug 30 2019 at 13:33):
Only codes with no zeros? ;)
Lloyd McKenzie (Aug 30 2019 at 13:35):
Last updated: Apr 12 2022 at 19:14 UTC