-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add Medication and Allergy CDA fields #51
Conversation
…with leading underscore name change to internal funcs
…in cda request/response models
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 have added pydantic validation to the medications extract method, and methods for adding new medication entries. Painful short-term but I think it's better for future scaling and maintenance. Passing the torch back to you to do the same for allergies 🤡
Made some bug fixes and added tests. Of note:
Let's merge it before I lose the will to live |
What does this do?
This PR adds the CDA fields of Medication and Allergy which were omitted from the original Clinical Documentation PR #47 .
In particular it makes the following concrete changes:
get_concept_from_cda_value
toget_medication_concept_from_cda_value
._extract_problems
function to be more concise and less nested._extract_medications
and_extract_allergies
.test_cda.xml
file