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

Fix Patient Info that gets inputted into dashboard #104

Closed mickohanlon23 closed 1 year ago

mickohanlon23 commented 1 year ago

These are the CQL updates required to resolve https://jira.mitre.org/browse/CCSMCDS-26.

This PR fixes the way patient ID, gender, birthsex, and language are being outputted in patient info of DashboardLibrary.cql, allowing ccsm-cds-dashboard to render these values.

Additional tests are added to show the proper values being outputted from the patient info object. See http://hl7.org/fhir/us/core/structuredefinition-us-core-patient.html for info about how a US Core Patient is modeled.

mickohanlon23 commented 1 year ago

https://github.com/ccsm-cds-tools/ccsm-cds-dashboard/pull/17 depends on this update, and therefore this PR should be merged first.

mickohanlon23 commented 1 year ago

The commit I just added updates the way the GenderText is outputted if the genderIdentity extension is present in the patient record.

This fixes a bug UMMC was running into when testing Patient 20, who had a gender identity present. The genderIdentity extension contains a valueCodeableConcept, but we were treating it as if it was a code. This was causing issues when rendering gender in the UMMC dashboard, since the React app was trying to render an object as opposed to a string.

mickohanlon23 commented 1 year ago

English language encoding was fixed in PR https://github.com/ccsm-cds-tools/ccsm-cds-with-tests/pull/114.