openEHR to FHIR Data Type Mapping
0.1.0 - ci-build International flag

openEHR to FHIR Data Type Mapping, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/openehr-fhir/data-type-mapping-ig/ and changes regularly. See the Directory of published versions

Data Type Mapping

Page standards status: Informative

Overview

This page is the index to the mapping tables. Each category below has its own page holding the field-level tables for the types in it, in both directions, with the fidelity of each direction stated separately.

Before reading the tables, read Conventions: it defines the columns, the three fidelity values, the three maturity values, and what datatype and archetype scope mean. Type Systems describes the two type systems the tables map between.

Categories

Category Covers
Boolean DV_BOOLEAN
Numeric The openEHR Foundation numeric primitives and the FHIR numeric primitives
References DV_IDENTIFIER, DV_URI, DV_EHR_URI, LINK
Textual DV_TEXT, DV_PARSABLE, DV_PARAGRAPH
Coded CODE_PHRASE, DV_CODED_TEXT, TERM_MAPPING, null_flavour
Quantities DV_QUANTITY, DV_COUNT, DV_PROPORTION, DV_ORDINAL, DV_SCALE, DV_INTERVAL
Temporal DV_DATE, DV_TIME, DV_DATE_TIME, DV_DURATION
Other DV_MULTIMEDIA, DV_PARSABLE, DV_STATE, DV_ENCAPSULATED

All mappings

Every mapping in the guide, in one table. The verdicts here are aggregates — see Conventions — and the field tables on the category pages are the normative statement.

openEHR typeFHIR type→ FHIR→ openEHRMaturityScope
DV_QUANTITYQuantitylossylossyopendatatype
DV_COUNTCountlossylossyopendatatype
DV_PROPORTIONRatiolossyunmappedopendatatype
DV_INTERVAL<T>Range | Period | Quantitylossylossysettleddatatype
DV_QUANTITYMoneylossylossyopendatatype
DV_QUANTITYSimpleQuantitylossylossyopendatatype
DV_ORDINALObservation.componentlosslesslossyopenarchetype
DV_SCALEObservation.componentlosslesslossyopenarchetype
CODE_PHRASECodinglossylossyopendatatype
DV_CODED_TEXTCodeableConcept | Codinglossylossyopendatatype
TERM_MAPPINGCodeableConcept.codinglossylossyopendatatype
NULL_FLAVOURdata-absent-reasonlossylossyopendatatype
DV_BOOLEANbooleanlosslesslosslessopendatatype
Integerintegerlossylossysettleddatatype
Integer64integer64lossylossyopendatatype
Real / Doubledecimallossylossysettleddatatype
DV_TEXTstring | markdownlossylossyopendatatype
DV_PARAGRAPHmarkdown | stringunmappedunmappednot-discusseddatatype
DV_IDENTIFIERIdentifierlossylossyopendatatype
DV_URI / DV_EHR_URIuri | urllossylossyopendatatype
LINKReference | CodeableReferencelossyunmappedopendatatype
DV_DATEdate | dateTimelosslesslosslesssettleddatatype
DV_TIMEtimelossylossyopendatatype
DV_DATE_TIMEdateTime | instantlossylossyopendatatype
DV_DURATIONDurationlossylossyopendatatype
DV_GENERAL_TIME_SPECIFICATION / DV_PERIODIC_TIME_SPECIFICATIONTimingunmappedunmappednot-discusseddatatype
DV_MULTIMEDIAAttachmentlossylossyopendatatype
DV_PARSABLEstringlossyunmappedopendatatype
DV_STATECodeableConceptlossylossyopendatatype

What is not mapped

Gaps publishes the four inventories of things that do not map: openEHR → FHIR, FHIR → openEHR, FHIR features with no openEHR counterpart, and types the working group has not yet discussed.

Open Items publishes reviewer coverage and the register of unresolved actions, with an owner for each.

Where the tables come from

The tables on the category pages are generated from a single machine-checked mapping ledger, and the worked examples are the fixtures the reference implementation is tested against. A lossless claim is one that round-trips in a test, within the two scoping rules Conventions states — archetype-scope rows and rows whose source side has no counterpart are outside the harness — and a lossy claim is one whose dropped fields are exactly the fields the converter reports.

Reviewing a change to a table therefore means reviewing the ledger, not the markdown. The markdown churn is a consequence, not the change itself.

The tables on Gaps and Open Items are the exception: they are maintained by hand in this guide rather than generated, and Conventions says how editors keep them in step with the mapping tables.