-
Notifications
You must be signed in to change notification settings - Fork 23
BAH-4391 | Add. Mapping for mandatory fields in Hl7 message for DCM4CHEE 5 #47
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
Conversation
| pid.getAdministrativeSex().setValue(openMRSPatient.getGender()); | ||
|
|
||
| message.getORDER().getORDER_DETAIL().getOBR().getPlannedPatientTransportComment(0).getText().setValue(openMRSPatient.getGivenName()+","+openMRSPatient.getFamilyName()); | ||
| message.getORDER().getORDER_DETAIL().getOBR().getPlannedPatientTransportComment(0).getText().setValue(openMRSPatient.getGivenName() + "," + openMRSPatient.getFamilyName()); |
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 think one improvement we can do (maybe later, is to localize the name. eg family, given
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.
Sure! Will note it down on a card
| @Component | ||
| public class StudyInstanceUIDGeneratorImpl implements StudyInstanceUIDGenerator { | ||
|
|
||
| @Value("${study.instance.uid.prefix:1.2.826.0.1.3680043.8.498}") |
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.
is there no additional miliseconds part? is it always fixed?
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 is the base UID specific to the org. We will be appending hash code of order number
| } | ||
|
|
||
| @Test | ||
| public void shouldGenerateStudyInstanceUIDWithPrefixandOrderNumberHash() { |
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.
To assert that for a given order number (ORD-317), the same studyinstanceid is generated - writing another test case would be nice
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.
Done
… UID by Order Number
This PR adds the mandatory mappings that are required by DCM4CHEE 5 to receive and process HL7 ORM Messages and convert them to DICOM MWL.
Following are the changes:
Message Header
Patient Demographics
MR. Can be overriden by HL7_PATIENT_IDENTIFIR_TYPE_CODEORC
Adds custom ZDS block to generate and set StudyInstanceUID.
OBR
Adds Placer Field 1 with Order Number. Shows as Accession Number in DCM4CHEE
This change is backward compatiblw with dcm4chee 2.x also, since these mappings are part of orm2dcm.xsl which is not needed for now
DCM4CHEE 2.5.x
DCM4CHEE 5.33.1