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

Map CDA section loinc codes to valid loinc displays #5

Open chaseastewart opened 5 months ago

chaseastewart commented 5 months ago

Sample Validation Error

Wrong Display Name 'History of medication use' for http://loinc.org#10160-0. Valid display is one of 48 choices: 'History of Medication use Narrative', 'Hx of Medication use' (en-US)

See Document Section Codes

agentgill commented 5 months ago

Here are errors I was seeing

<OperationOutcome xmlns="http://hl7.org/fhir"><issue><severity value="error" /><code value="invalid" /><diagnostics value="'active' is not a valid EventStatus" /></issue></OperationOutcome>

<OperationOutcome xmlns="http://hl7.org/fhir"><issue><severity value="error" /><code value="invalid" /><diagnostics value="'ordered' is not a valid MedicationStatementStatus" /></issue></OperationOutcome>

<OperationOutcome xmlns="http://hl7.org/fhir"><issue><severity value="error" /><code value="invalid" /><diagnostics value="'2023-09-04T21:28:00' is not a valid date-time" /></issue></OperationOutcome>
chaseastewart commented 5 months ago

@agentgill See #8. There are missing mappings though they wouldn't account for 'ordered' since its not in ActStatus. The get_property filter will use the source status code when a mapping is not defined. The other issue is most likely because of #9.