snowstorm icon indicating copy to clipboard operation
snowstorm copied to clipboard

FHIR API $translate - include display (term) in response when possible

Open JonZammit opened this issue 1 year ago • 3 comments

This is a feature request.

When using the $translate operation, when a match has been identified, and the match is a SNOMED CT concept(s), it would be useful if the response from Snowstorm included a display term in the match.concept out parameter.

Example response with display term "Anaesthetist" included:

{
    "resourceType": "Parameters",
    "parameter": [
        {
            "name": "result",
            "valueBoolean": true
        },
        {
            "name": "match",
            "part": [
                {
                    "name": "equivalence",
                    "valueCode": "equal"
                },
                {
                    "name": "concept",
                    "valueCoding": {
                        "system": "http://snomed.info/sct",
                        "code": "88189002",
                        "display": "Anaesthetist"
                    }
                },
                {
                    "name": "source",
                    "valueString": "http://snomed.info/sct/32506021000036107/version/20231130?fhir_cm=900000000000527005"
                }
            ]
        }
    ]
}

JonZammit avatar Dec 12 '23 14:12 JonZammit

Thanks for raising this @JonZammit. It's odd that this is not working because I believe it works for the SNOMED CT to ICD-10 translate operation when ICD-10 is loaded as a FHIR CodeSystem. I'll look into this.

kaicode avatar Dec 12 '23 14:12 kaicode

For the record - Jon noticed that this works as expected when the Accept-Language request header is set. We should update Snowstorm to default to "en" if there is no header present, just so something is returned for display.

kaicode avatar Dec 12 '23 16:12 kaicode

Thanks for that investigation @JonZammit @kaicode. I've raised INFRA-12129 internally to track this.

pgwilliams avatar Dec 13 '23 19:12 pgwilliams