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
| Page standards status: Informative |
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.
| 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 |
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 type | FHIR type | → FHIR | → openEHR | Maturity | Scope |
|---|---|---|---|---|---|
| DV_QUANTITY | Quantity | lossy | lossy | open | datatype |
| DV_COUNT | Count | lossy | lossy | open | datatype |
| DV_PROPORTION | Ratio | lossy | unmapped | open | datatype |
| DV_INTERVAL<T> | Range | Period | Quantity | lossy | lossy | settled | datatype |
| DV_QUANTITY | Money | lossy | lossy | open | datatype |
| DV_QUANTITY | SimpleQuantity | lossy | lossy | open | datatype |
| DV_ORDINAL | Observation.component | lossless | lossy | open | archetype |
| DV_SCALE | Observation.component | lossless | lossy | open | archetype |
| CODE_PHRASE | Coding | lossy | lossy | open | datatype |
| DV_CODED_TEXT | CodeableConcept | Coding | lossy | lossy | open | datatype |
| TERM_MAPPING | CodeableConcept.coding | lossy | lossy | open | datatype |
| NULL_FLAVOUR | data-absent-reason | lossy | lossy | open | datatype |
| DV_BOOLEAN | boolean | lossless | lossless | open | datatype |
| Integer | integer | lossy | lossy | settled | datatype |
| Integer64 | integer64 | lossy | lossy | open | datatype |
| Real / Double | decimal | lossy | lossy | settled | datatype |
| DV_TEXT | string | markdown | lossy | lossy | open | datatype |
| DV_PARAGRAPH | markdown | string | unmapped | unmapped | not-discussed | datatype |
| DV_IDENTIFIER | Identifier | lossy | lossy | open | datatype |
| DV_URI / DV_EHR_URI | uri | url | lossy | lossy | open | datatype |
| LINK | Reference | CodeableReference | lossy | unmapped | open | datatype |
| DV_DATE | date | dateTime | lossless | lossless | settled | datatype |
| DV_TIME | time | lossy | lossy | open | datatype |
| DV_DATE_TIME | dateTime | instant | lossy | lossy | open | datatype |
| DV_DURATION | Duration | lossy | lossy | open | datatype |
| DV_GENERAL_TIME_SPECIFICATION / DV_PERIODIC_TIME_SPECIFICATION | Timing | unmapped | unmapped | not-discussed | datatype |
| DV_MULTIMEDIA | Attachment | lossy | lossy | open | datatype |
| DV_PARSABLE | string | lossy | unmapped | open | datatype |
| DV_STATE | CodeableConcept | lossy | lossy | open | datatype |
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.
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.