Skip to content

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

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions