Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBX -5 where OBX-2 is SN allows for a comparator value of = and <>; however FHIR does not #504

Open
lmichlsen opened this issue Nov 28, 2023 · 4 comments
Assignees

Comments

@lmichlsen
Copy link

If you have an OBX similar to below which are both v2 valid comparators
OBX|1|SN|3339-4||=^23... or
OBX|1|SN|3339-4||<>^23...

From v2.9
2.A.70.1 Comparator (ST)
Defined as greater than, less than, greater than or equal, less than or equal, equal, and not equal,
respectively (= ">" or "<" or ">=" or "<=" or "=" or "<>"
If this component is not valued, it defaults to equal ("=").

Converter converts = and <> to
"valueQuantity": {
"comparator": "<>",
"value": 23

valueSet in FHIR only allows for

Code | Display | Definition-- | -- | -- < | Less than | The actual value is less than the given value. <= | Less or Equal to | The actual value is less than or equal to the given value. >= | Greater or Equal to | The actual value is greater than or equal to the given value. > | Greater than | The actual value is greater than the given value.

This results in invalid FHIR output

@lmichlsen
Copy link
Author

Not sure how <> should be handled question to chat.fhir.org logged https://chat.fhir.org/#narrow/stream/179188-v2-to-FHIR/topic/Not.20equal.20comparator

@ShaunDonn2 ShaunDonn2 self-assigned this Dec 15, 2023
@evachen96
Copy link
Collaborator

Hi @lmichlsen ! Thanks for submitting this issue. Hoping to get some more information about your use case to help us assess possible solutions.

From https://jira.hl7.org/browse/V2-25657, we agree with you that it could be concluded that = is just a value without a comparator. For the not equal case (<>), you mentioned that you've never seen that result in a lab test but there may be other observation types that need it, could you provide any examples?

Additionally, are you already using extensions right now? Extensions are one possible way we could tackle this, but wanted to see if your current setup already uses extensions/thoughts on usability of extensions.

Thanks!

@lmichlsen
Copy link
Author

lmichlsen commented Jan 5, 2024 via email

@evachen96
Copy link
Collaborator

@lmichlsen Do you happen to have any examples or potential examples of use cases when the not equal <> comparator would be needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants