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

Boolean Data

Page standards status: Informative

Boolean data

Boolean is the simplest mapping in this guide: openEHR's DV_BOOLEAN and FHIR's boolean primitive each carry a single true/false value, with no precision, accuracy, or auxiliary metadata to negotiate.

See Conventions for how to read the tables below, and Coded Data for the null_flavour and data-absent-reason correspondences that carry "why is this absent".

Summary

openEHR typeFHIR type→ FHIR→ openEHRMaturityScope
DV_BOOLEANbooleanlosslesslosslessopendatatype

DV_BOOLEAN and boolean

Sources: openEHR RM — DV_BOOLEAN · FHIR R5 — boolean

openEHR fieldFHIR target→ FHIR→ openEHRMaturityNotes
DV_BOOLEAN.value 1..1booleanlosslesslosslessopenA direct 1:1 mapping with no transformation: neither side carries precision, accuracy, or auxiliary metadata. The one asymmetry is optionality. DV_BOOLEAN.value is mandatory in the Reference Model — a DV_BOOLEAN that exists has a value — while a FHIR boolean element may be absent, with the reason for its absence carried by an extension on the element rather than by a value. An absent FHIR boolean therefore has no DV_BOOLEAN to become; see null_flavour for how "why is this absent" is carried. This row is open because the section has not yet been reviewed from the openEHR side.

Worked example

{
  "_type": "DV_BOOLEAN",
  "value": true
}
true