-
Notifications
You must be signed in to change notification settings - Fork 4
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
Added support for mrn to cmo/dmp patient id mapping #1015
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks for turning around so quick, Ben. I reviewed your codes and they generally make sense. No blockers on my end, just left three questions for my own understanding.
} | ||
|
||
/** | ||
* Returns a list of mrn-dmp-cmo patient id triplets given a list of MRNs. |
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 confirm my understanding, technically this REST endpoint will return the triplets given not just MRNs but also DMP IDs and/or CMO Patient IDs, correct? If so, should we update the description to reflect that?
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, thats what I mean my mrn-dmp-cmo - thats the triplet. The class is called CrdbCrosswalkTriplet too.
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.
Understood. Thank you!
@Query(value = "SELECT CMO_ID, DMP_ID, PT_MRN " | ||
+ "FROM CRDB_CMO_DMP_MAP WHERE :inputId IN (DMP_ID, PT_MRN, CMO_ID)", | ||
nativeQuery = true) | ||
Object getCrdbCrosswalkTripletByInputId(@Param("inputId") String inputId); |
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.
Am I understanding it correctly that the CMO-DMP-MRN mapping already exists inside CRDB, and that you just wrote a new query in order to get the triplets?
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.
Yes, there is a crosswalk table in CRDB with this triplet info.
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 it possible to spin up a local Swagger REST service for testing?
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.
Yes, follow the command line instruction below to pull this PR to your local machine, then you can compile/deploy locally
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.
Note, I noticed the tests failed, but thats just checkstyle. I will fix them, but the code works.
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.
Good to know. Thanks!
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 on a call now, but I can help at 12. I also just amended the PR to address the checkstyle issue
b7096c0
to
bd1ccd8
Compare
Maps a list of MRN to a list of dmp-cmo-mrn patient id triplets.