-
Notifications
You must be signed in to change notification settings - Fork 40
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
Remaining ORM/OML Updates #16539
Remaining ORM/OML Updates #16539
Conversation
eb38dcf
to
25ea2eb
Compare
@@ -141,12 +140,6 @@ class HL7Reader(private val actionLogger: ActionLogger) : Logging { | |||
) | |||
} | |||
} | |||
"OML" -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was removed as it was pointed out on a previous PR that it is an outdated pattern that shouldn't be followed.
@@ -29,21 +29,6 @@ elements: | |||
value: [ '%resource.occurrence.extension(%`rsext-hl7v2-date-time`).value' ] | |||
hl7Spec: [ '%{obrFieldPath}-6' ] | |||
|
|||
- name: observation-collected-datetime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These mappings were moved out to both ServiceRequest/OBRExtension and Specimen/OBR for a few different reasons:
- The mappings you see here look at
%resource.specimen
to find the values. ORU is not currently populating ServiceRequest.specimen. (This might be incorrect according to the mapping inventory). Moving these mappings out allow ORU and OML to each access these fields differently. - ORM does not map to a Specimen resource at all, thus to preserve the fields they need to be in OBRExtension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be incorrect according to the mapping inventory
- can we ticket this?
@@ -67,11 +67,11 @@ SPM|1|0cba76f5-35e0-4a28-803a-2f31308aae9b||258500001^Nasopharyngeal swab^SCT||| | |||
|
|||
@Suppress("ktlint:standard:max-line-length") | |||
const val cleanHL7RecordConverted = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes were related to OBR.7 appearing in OBR Extensions now.
} | ||
] | ||
} | ||
}, | ||
"note" : [ | ||
"container": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of formatting changes. The meat of the change is new values coming through. This was happened after adding the OML java classes and new data being returned due to OBR.15 getting represented as SPS instead of a String.
import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping | ||
import org.junit.jupiter.api.Test | ||
|
||
class OBRToSpecimenTests { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm open to different names/locations for these tests. They made sense at the time. These tests specifically test that
- FHIR->HL7 OBR/Specimen mappings work despite being linked in the FHIR through different paths in ORU/OML.
- HL7->FHIR->HL7 OBR/Specimen mappings work for ORM despite not having the Specimen resource.
...pinginventory/catchall/orcobr/orc_obr-to-servicerequest_diagnosticreport-obr8-populated.fhir
Outdated
Show resolved
Hide resolved
prime-router/metadata/HL7/catchall/hl7/segments/ORC/OBRExtension.yml
Outdated
Show resolved
Hide resolved
prime-router/src/main/resources/metadata/hl7_mapping/resources/ServiceRequest/OBRExtension.yml
Outdated
Show resolved
Hide resolved
...outer/src/main/java/fhirengine/translation/hl7/structures/fhirinventory/message/OML_O21.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Can we also please:
- update the PR description to include links or ticket numbers in the TODO section?
- remember to open a PR merging this feature branch into main? We're ready for that now, right?
@@ -29,21 +29,6 @@ elements: | |||
value: [ '%resource.occurrence.extension(%`rsext-hl7v2-date-time`).value' ] | |||
hl7Spec: [ '%{obrFieldPath}-6' ] | |||
|
|||
- name: observation-collected-datetime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be incorrect according to the mapping inventory
- can we ticket this?
Squashing and merging now to unblock others, will create and link ticket todos asap. |
* Add OML Java Classes * Updated tests with repeating fields and segments * OML FHIR->HL7 Updates * OBR -> Specimen Additions and Updates * Missed todos * Populating OBR 7&8 as separate datetime fields when in extension
This PR finishes the mappings and related changes for the new OML and ORM mappings.
Test Steps:
./gradlew test
,./gradlew testSmoke
,./gradlew testIntegration
.Changes
Checklist
Testing
./prime test
or./gradlew testSmoke
against local Docker ReportStream container?npm run lint:write
?Process
Linked Issues
To Be Done
Tickets to log: