Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

n1zea144
Copy link
Collaborator

Maps a list of MRN to a list of dmp-cmo-mrn patient id triplets.

@n1zea144 n1zea144 requested a review from qu8n August 10, 2023 02:24
Copy link
Collaborator

@qu8n qu8n left a 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.
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. Thank you!

Comment on lines 20 to 23
@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);
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator

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?

Copy link
Collaborator Author

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

Copy link
Collaborator Author

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know. Thanks!

Copy link
Collaborator Author

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

@n1zea144 n1zea144 force-pushed the master branch 2 times, most recently from b7096c0 to bd1ccd8 Compare August 15, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants