-
Notifications
You must be signed in to change notification settings - Fork 15
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
Look for human-readable names for conditions #3112
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3112 +/- ##
==========================================
+ Coverage 87.03% 91.53% +4.50%
==========================================
Files 221 118 -103
Lines 13664 7074 -6590
Branches 708 738 +30
==========================================
- Hits 11892 6475 -5417
+ Misses 1763 590 -1173
Partials 9 9
Flags with carried forward coverage won't be shown. Click here to find out more.
|
… look up human-readable name. Also add fallbacks to text
…ncept, and clean up text logic
…jnygaard-skylight:CDCgov/phdi into josh/message-parser-readable-conditions
@@ -349,7 +349,7 @@ | |||
} | |||
}, | |||
"condition": { | |||
"fhir_path": "Observation.valueCodeableConcept.coding.display", | |||
"fhir_path": "iif(Observation.valueCodeableConcept.text.exists(), Observation.valueCodeableConcept.text, Observation.valueCodeableConcept.coding.display)", |
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.
does the display need a first
since there can be multiple?
None, | ||
) | ||
|
||
if condition_code: |
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 condition_code: | |
if condition_code is not None: |
elif "display" in condition_code: | ||
resource["valueCodeableConcept"]["text"] = condition_code["display"] |
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.
what's the thinking around including the display
as a fallback? the display would be in the resulting fhir bundle either way, right? so it's not stamping new/outside info
|
||
Example: | ||
$ python seed_rckms_database.py <archive.zip> <database.db> | ||
A significantly paired down version of the original script to seed the RCKMS database. This script will extract the conditions from the RCKMS CSV in assets (downloaded from https://www.rckms.org/content-repository) files and load them into the SQLite database. |
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.
A significantly paired down version of the original script to seed the RCKMS database. This script will extract the conditions from the RCKMS CSV in assets (downloaded from https://www.rckms.org/content-repository) files and load them into the SQLite database. | |
A significantly pared down version of the original script to seed the RCKMS database. This script will extract the conditions from the RCKMS CSV in assets (downloaded from https://www.rckms.org/content-repository) files and load them into the SQLite database. |
"VALUES (:snomed, 'http://snomed.info/sct', :name) " | ||
"ON CONFLICT DO NOTHING", | ||
condition.__dict__, | ||
"INSERT INTO conditions (id, system, name, description) VALUES (?, ?, ?, ?)", |
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.
do we ever get conflicts in practice?
df0ad6c
to
3a8cc7f
Compare
3a8cc7f
to
c260c3a
Compare
PULL REQUEST
Summary
The message-parser config the seed script uses is not getting human readable names.
Related Issue
Fixes # n/a
Acceptance Criteria
Please copy the acceptance criteria from your ticket and paste it here for your reviewer(s)
Additional Information
Anything else the review team should know?
Checklist