Closed mickohanlon23 closed 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.
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.
English language encoding was fixed in PR https://github.com/ccsm-cds-tools/ccsm-cds-with-tests/pull/114.
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.