Open JohnNKing opened 1 month ago
Attempting to confirm if TN data type support is a requirement: https://www.slack.com/archives/C044P2CBEKS/p1717695906835449?thread_ts=1717623207.357699&cid=C044P2CBEKS
I just found out that the CE OBX mapping issue is a known bug in RS. A ticket will be created and someone from RS will take a look next week: https://flexion.slack.com/archives/C048S3GPSQG/p1717795087843699?thread_ts=1717793348.863279&cid=C048S3GPSQG
A ticket to address the OBX CE issue was created in RS: https://github.com/CDCgov/prime-reportstream/issues/14685
Waiting for RS to look into this issue. Tagged as blocked
Findings:
OBX.2
has CWE
, the FHIR resource comes with a coding resource as part of the Observation
resource. This coding resource is used to populate OBX.3
and OBX.5
, and this resource is missing when OBX.2
has CE
as the datatype.CWE
datatype:
CE
datatype:
Worked together with Josh Fisk from Report Stream to fix this issue. Findings: RS turns all CE datatypes for OBX.2 into CWE. Reason being, some clients have a hybrid message with v251 and v27 configurations. To address this problem, RS uses the v27 model to parse the file.
CE to CWE:
Using CWE configs for OBX.2:
Same for OBX.5:
Mapping FHIR -> HL7 using CWE for OBX.2
Josh is working on adding new unit tests, fixing the broken tests, and adding integration tests. This is his branch: ingest-ce-fields-as-cwe
Final step: Need to test that merged PR has resolved this issue
Update: Ran tests against the main branch and we could observe that OBX.3 and OBX.5 are populated when OBX.2 has CE as datatype:
Also, the FHIR bundle has the entries mapped with CWE mappings. This was expected to happen.
We can close this ticket now.
Bug
Describe the Bug
We've identified a few issues with OBX mapping for the CA sample ORU: https://github.com/CDCgov/trusted-intermediary/blob/main/examples/CA/002_CA_ORU_R01.hl7
OBX.2 of TN is rejected by RS (and if changed to XTN, OBX.5 is lost)prime-router/metadata/HL7/catchall/hl7/segments/OBX/Observation.yml
Impact
This will prevent integration with CA.
To Reproduce
Submit the sample ORU (https://github.com/CDCgov/trusted-intermediary/blob/main/examples/CA/002_CA_ORU_R01.hl7) to ReportStream.
Expected Behavior
The content of the input and output HL7 matches
Screenshots
n/a
Logs
n/a
Version
Current main
Additional Context
Related backlog items:
905
1071