-
Notifications
You must be signed in to change notification settings - Fork 2
adding the admission type to the visit table #106
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
base: develop
Are you sure you want to change the base?
Conversation
This reverts commit 567f6d9.
Adds functionality to extract and utilize the admission type information from the PV1 segment of HL7 messages. This includes defining a getter method and adding a unit test to verify the correct extraction of the admission type value..
…atd message factory
| case "A01": | ||
| AdmitPatient admitPatient = new AdmitPatient(); | ||
| admitPatient.setAdmissionDateTime(InterchangeValue.buildFromHl7(pv1Wrap.getAdmissionDateTime())); | ||
| admitPatient.setAdmissionType(InterchangeValue.buildFromHl7(pv1Wrap.getAdmissionType())); |
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 not sure if we need to do this for all message types.
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.
Yeah good question, if we only do it here then should remove from the generic ADT message.
stefpiatek
left a comment
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.
Looking good, will also need changes in emap core and the database to then save this information
| private InterchangeValue<String> patientTitle = InterchangeValue.unknown(); | ||
| private InterchangeValue<String> patientZipOrPostalCode = InterchangeValue.unknown(); | ||
|
|
||
| private InterchangeValue<String> admissionType = InterchangeValue.unknown(); |
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.
if the intention is to only have this in an admission message then we should remove it from here (or if its for all ADT, then we should remove it from AdmitPatient).
| case "A01": | ||
| AdmitPatient admitPatient = new AdmitPatient(); | ||
| admitPatient.setAdmissionDateTime(InterchangeValue.buildFromHl7(pv1Wrap.getAdmissionDateTime())); | ||
| admitPatient.setAdmissionType(InterchangeValue.buildFromHl7(pv1Wrap.getAdmissionType())); |
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.
Yeah good question, if we only do it here then should remove from the generic ADT message.
PR checklistDefault guide for a PR (if multiple PRs for the work, only keep one version of it and link to it on the other PRs)
|
…age" This reverts commit 3d7d5aa.
|
running error_search.sql results in 15 errors (all the same) I ran the query on |
|
Yeah as long as we're not introducing a new error with that change then that's fine. |
|
NOTE THIS HAS BEEN MERGED INTO test_branch_zella |
Addresses #103