ccsm-cds-tools / ccsm-cds-with-tests

This repository contains clinical decision support (CDS) which provides recommendations for cervical cancer screening and management (CCSM).
Apache License 2.0
7 stars 3 forks source link

Manage Panel HPV Tests #117

Closed mickohanlon23 closed 11 months ago

mickohanlon23 commented 1 year ago

Fixes the following issue:

Our CDS assumes that if a patient is HPV16+, they will have a general LOINC code from the HPV Test value set, and then it will specifically have a valueCodeableConcept result SNOMED code of HPV16+. In reality, with the way UMMC's panel tests are formatted, if a patient is HPV16+, they will have a LOINC code that is specific to HPV16, and then a result SNOMED code indicating "Positive".

This issue was realized as a result of updates that were made in PR https://github.com/ccsm-cds-tools/ccsm-cds-with-tests/pull/116. This update modifies the CollateConclusionCodes function so that if the function is being called to collate an HPV test that has it's result in an Observation, if that Observation has a code to represent HPV16 or HPV18, and a valueCodeableConcept that just represents a generic positive result (ex. "Detected"), then the function will return the value of HPV16+ or HPV18+ as opposed to just the generic positive value. Previously, our CDS was seeing the generic positive value, and counting the value as generic "HPV+", even though that positive result was for a more severe test of HPV16 or HPV18.