chaseastewart / fhir-converter

Transformation utility to translate data formats into FHIR
https://chaseastewart.github.io/fhir-converter/
MIT License
8 stars 2 forks source link

<text> tag under section from ccda file is not converted to FHIR #11

Open SanjeevS2010 opened 1 month ago

SanjeevS2010 commented 1 month ago
tag under section from ccda is not converted to FHIR. we are processing Consultation_Note.ccda and we have couple of tag under sections, those are not gettting converted to FHIR. We are not gettting any output for those tags. Exmaple from Consultation_Note.ccda below:
ALLERGIES AND ADVERSE REACTIONS
github-actions[bot] commented 1 month ago

Thanks for taking the time to open an issue. We will have a look and answer as soon as we can.

chaseastewart commented 4 weeks ago

@SanjeevS2010 This is carried over from fhir-converter. Unfortunately the composition generated is simply the title if present otherwise the section code display.

Ex:

                    {
                        "title": "ALLERGIES AND ADVERSE REACTIONS",
                        "text": {
                            "status": "generated",
                            "div": "\u003cdiv xmlns=\"http://www.w3.org/1999/xhtml\"\u003eALLERGIES AND ADVERSE REACTIONS\u003c/div\u003e"
                        },
                        "code": {
                            "coding": [
                                {
                                    "code": "48765-2",
                                    "system": "http://loinc.org"
                                }
                            ]
                        },
                        "mode": "snapshot"
                    },

This needs to be enhanced to use the actual text if present though would require converting to valid xhtml.

Substance Reaction