CDCgov / phdi

https://cdcgov.github.io/dibbs-site/
Creative Commons Zero v1.0 Universal
35 stars 14 forks source link

BUG: Patient ethnicity doesn't show additional details #2731

Closed angelathe closed 1 month ago

angelathe commented 1 month ago

Description

Patient ethnicity only displays first listed and doesn't include any additional details. Please display all available ethnicity information.

Ex. From the Patient resource in the example eCR below -- we display only "Not Hispanic or Latino", not "White" or "Mixed"

{
    "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
    "extension": [
        {
            "url": "ombCategory",
            "valueCoding": {
                "code": "2186-5",
                "display": "Not Hispanic or Latino"
            }
        },
        {
            "url": "detailed",
            "valueCoding": {
                "code": "2106-3",
                "display": "White"
            }
        },
        {
            "url": "text",
            "valueString": "Mixed"
        }
    ]
},

Steps to reproduce

7f02b35a-b172-4845-af55-d173574e5579: Ethnicity only displays first listed & doesn’t include extra info, (under “detailed” or “text”)

Expected Result

All available ethnicity information about a patient should be displayed if available.

Actual result

Example from 7f02b35a-b172-4845-af55-d173574e5579:

image.png

Priority

Provide an estimate for level of impact the bug has today by placing an X in the applicable bracket

Priority

Notes

No FHIR conversion should be required.

emmastephenson commented 1 month ago

We think this is already done - this ticket will just be to confirm functionality with this eCR.

angelathe commented 1 month ago

Closing ticket as completed because we already display the primary + detailed Race values. The extra text “Mixed” is generated by our own liquid templates and is not part of the original eICR data (not in the XML nor viewable in the HTML).