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

Quantities

Page standards status: Informative

Quantities

openEHR's quantitative data flows through an inheritance chain, not through one class: DV_ORDERED → DV_QUANTIFIED → DV_AMOUNT → DV_QUANTITY, with DV_COUNT, DV_PROPORTION, and DV_DURATION branching off it. Each level contributes its own attributes, and citing the right one matters because a reader following a citation expects to find the attribute declared there:

  • DV_ORDERED declares normal_status, normal_range, and other_reference_ranges.
  • DV_QUANTIFIED adds magnitude_status.
  • DV_AMOUNT adds accuracy and accuracy_is_percent.

Those six attributes follow the same mapping strategy regardless of the concrete subtype. That shared strategy is described once, as the DV_AMOUNT pattern, in Cross-Cutting Concerns, and each type's table then states how it applies.

FHIR spreads the same ground across more types. Single values normally use the Quantity branch — Quantity, Age, Distance, Duration, Count, MoneyQuantity, SimpleQuantity — whose members are restrictions on the base type rather than independent types. Other quantitative types include Ratio, Range, Period, RatioRange, Timing, RelativeTime, and Money. RelativeTime is an R6-era type with no openEHR counterpart identified; it is listed on Gaps rather than mapped here.

Four facts govern the rows in this category.

Reference ranges and interpretation are resource-level. normal_range, other_reference_ranges, and normal_status are attributes of an openEHR value. Their FHIR counterparts — Observation.referenceRange and Observation.interpretation — are elements of a resource. Rows for them are archetype scope, not datatype scope.

Precision is carried differently on each side. openEHR uses precision together with the lexical form of magnitude; FHIR uses the lexical form of decimal together with the quantity-precision extension. A mapping SHOULD take the most granular precision available across both fields. openEHR precision = -1 (unlimited) corresponds to the absence of the extension.

Profiled quantities add invariants a DV_QUANTITY may violate. SimpleQuantity forbids a comparator; Age, Distance, Duration, and Count constrain system and code; Money and MoneyQuantity carry a currency. A DV_QUANTITY whose magnitude_status is a bound or an approximation cannot be carried in a SimpleQuantity element at all — that is a modelling error, not a lossy mapping. = is the point value and needs no comparator.

Units are mandatory on the FHIR side more often than on the openEHR side. FHIR invariant qty-3 requires system whenever code is present, so a mapping engine SHALL supply http://unitsofmeasure.org when openEHR units_system is absent and the units are UCUM. Count requires system = http://unitsofmeasure.org with code = 1; MoneyQuantity uses system = urn:iso:std:iso:4217 with the ISO 4217 currency code. Money draws its currency from the same urn:iso:std:iso:4217 code system, through that element's required binding to the Currencies value set — it has no system element of its own.

DV_ORDINAL and DV_SCALE are mapped here rather than in Coded Data: although both carry a CODE_PHRASE symbol, their FHIR target is driven by the ordinal magnitude and neither is expressible without an Observation around it.

Date and time intervals are in Temporal Data; only numeric intervals are here.

See Conventions for how to read the tables.

Summary

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

DV_QUANTITY and Quantity

Sources: openEHR RM — DV_QUANTITY · FHIR R5 — Quantity · openEHR RM — DV_ORDERED · openEHR RM — DV_QUANTIFIED · openEHR RM — DV_AMOUNT

openEHR fieldFHIR target→ FHIR→ openEHRMaturityNotes
DV_QUANTITY.magnitude 1..1Quantity.valuelosslesslosslesssettledDirect equivalence. magnitude is mandatory in openEHR and optional in FHIR, so a Quantity with no value has no DV_QUANTITY to become. The openEHR attribute is mandatory and the FHIR element is optional, so an incoming instance that omits it cannot be converted: the reference implementation produces nothing rather than inventing a value. See the mandatory-attribute rule.
DV_QUANTITY.units 1..1Quantity.codelosslesslosslesssettledThe computable unit, normally a UCUM code. The openEHR attribute is mandatory and the FHIR element is optional, so an incoming instance that omits it cannot be converted: the reference implementation produces nothing rather than inventing a value. See the mandatory-attribute rule.
DV_QUANTITY.units_system 0..1Quantity.systemlosslesslosslesssettledFHIR invariant qty-3 requires system whenever code is present, so a mapping engine SHALL supply http://unitsofmeasure.org when units_system is absent and the units are UCUM. The field itself round-trips exactly whenever it is present; a supplied default arrives back as an explicit units_system, which is a normalisation rather than a loss.
DV_QUANTITY.units_display_name 0..1Quantity.unitlosslesslosslesssettledThe human-readable unit label, for example °C.
DV_QUANTITY.precision 0..1Quantity.extension[quantity-precision]† (extension)losslesslosslesssettledopenEHR precision = -1 (unlimited) is equivalent to the absence of the extension in FHIR. Take the most granular precision available across the value and this field in both directions.
DV_QUANTITY.magnitude_status 0..1Quantity.comparatorlosslesslosslesssettled<, <=, >, and >= are direct. openEHR = is the point value and is represented in FHIR by the absence of comparator.
DV_QUANTITY.magnitude_status[~] 0..1—
no counterpart (inventory)
unmappedunmappedopen→ FHIR: An approximate magnitude cannot be carried in an R5 Quantity. FHIR-56000 adds ~ in the published R6 drafts, which recommend reading it as within 10% of the stated value while allowing other values, and say systems SHOULD state more with the quantity-confidenceInterval extension; it is not applied in R5. (owner: FHIR-56000) → openEHR: Nothing in an R5 instance carries the approximate marker back. (owner: FHIR-56000) R6-era item, recorded as a forward reference and not presented as an R5 mapping. The quantity-confidenceInterval extension is published for R5 (Extensions 5.3.0, draft) but is not used to carry ~: it requires a confidence level and both bounds of an interval, which an openEHR ~ does not state, so using it would invent them.
DV_QUANTITY.accuracy 0..1Quantity.extension[quantity-accuracy]† (extension)losslesslosslessopenInherited from DV_AMOUNT. Agreed as the mapping target but rarely used in practice. The extension declares value[x] as a Quantity, not a decimal, so accuracy_is_percent is carried too: an accuracy stated as a percentage takes UCUM % as the accuracy quantity’s unit, and an absolute one takes the magnitude’s own unit. Reading the extension back, accuracy_is_percent is true exactly when the accuracy quantity’s code is % — except where the magnitude’s own unit is %, where the two cases are indistinguishable and the flag is not carried at all. That sub-case is the next row.
DV_QUANTITY.accuracy_is_percent[percent-unit] 0..1Quantity.extension[quantity-accuracy][percent-unit]† (extension)unmappedunmappedopen→ FHIR: The flag is not carried. The quantity-accuracy extension’s only discriminator is the unit of the accuracy Quantity, and where the magnitude’s own unit is already % that unit is what an absolute accuracy takes and what a relative one takes. The accuracy magnitude is still emitted; the flag beside it is not. (owner: working-group) → openEHR: Nothing in the instance says whether the accuracy is absolute or relative, so accuracy_is_percent is left absent rather than derived. Deriving it would read ±2 percentage points on a 45 % value as ±2 % of 45 — which is ±0.9, a different number. (owner: working-group) A named sub-case of the DV_QUANTITY.accuracy row above, in the pattern the guide already uses for DV_QUANTITY.magnitude_status[~] and CODE_PHRASE.code_string[whitespace]. An SpO₂ or haematocrit of 45 % with an absolute accuracy of ±2 percentage points is the ordinary clinical shape. Resolving it needs a discriminator the extension does not have — a second extension, or a value[x] that is not a Quantity — so the gap is published rather than closed by a convention this guide would be inventing.
—
no counterpart (inventory)
Quantity.comparator[ad]unmappedunmappedopen→ FHIR: No openEHR value produces ad. (owner: working-group) → openEHR: A Quantity with comparator = ad has no faithful DV_QUANTITY form; the comparator is dropped and the magnitude alone would misstate the value. (owner: working-group) The group read the R5 definition — "the quantity is sufficient for the total quantity to equal the stated amount" — as unclear, and the question of whether it means "approximate" was asked of FHIR and not answered.
DV_QUANTITY.normal_range 0..1Observation.referenceRangelosslesslosslesssettledarchetype scope: the FHIR home is a resource element, not part of Quantity. Carried with referenceRange.type = normal. Inherited from DV_AMOUNT and mapped identically for every subtype.
DV_QUANTITY.other_reference_ranges 0..*Observation.referenceRangelosslesslosslesssettledarchetype scope. REFERENCE_RANGE.meaning becomes referenceRange.type, which is ≠ normal for these.
DV_QUANTITY.normal_status 0..1Observation.interpretationlosslesslossyopen→ openEHR: drops Observation.interpretation — openEHR binds normal_status to its normal_statuses code system with required strength, so an interpretation coded outside that set cannot be carried; a change request to relax the binding to extensible is open archetype scope. The openEHR code system derives from an older HL7 v2 release and maps cleanly for the H/L/N codes; a full ConceptMap has not been written.

Worked example - body weight

A DV_QUANTITY carrying a magnitude, UCUM units, a display label, and a precision of one decimal place:

{
  "_type": "DV_QUANTITY",
  "magnitude": 72.5,
  "units": "kg",
  "units_system": "http://unitsofmeasure.org",
  "units_display_name": "kg",
  "precision": 1
}

and the Quantity it becomes, with precision carried in the extension:

{
  "value": 72.5,
  "unit": "kg",
  "system": "http://unitsofmeasure.org",
  "code": "kg",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/quantity-precision",
      "valueInteger": 1
    }
  ]
}

Worked example - comparator and accuracy

{
  "_type": "DV_QUANTITY",
  "magnitude": 0.5,
  "units": "mg",
  "units_system": "http://unitsofmeasure.org",
  "units_display_name": "mg",
  "magnitude_status": "<",
  "accuracy": 0.05,
  "accuracy_is_percent": false
}
{
  "value": 0.5,
  "comparator": "<",
  "unit": "mg",
  "system": "http://unitsofmeasure.org",
  "code": "mg",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/quantity-accuracy",
      "valueQuantity": {
        "value": 0.05,
        "system": "http://unitsofmeasure.org",
        "code": "mg"
      }
    }
  ]
}

DV_COUNT and Count

Sources: openEHR RM — DV_COUNT · FHIR R5 — Count · openEHR RM — DV_ORDERED · openEHR RM — DV_QUANTIFIED · openEHR RM — DV_AMOUNT

openEHR fieldFHIR target→ FHIR→ openEHRMaturityNotes
DV_COUNT.magnitude 1..1Count.valuelosslesslosslesssettledFHIR Count invariant cnt-3 requires a whole number. Both sides are 32-bit integers in practice, so the range is the same. The openEHR attribute is mandatory and the FHIR element is optional, so an incoming instance that omits it cannot be converted: the reference implementation produces nothing rather than inventing a value. See the mandatory-attribute rule.
DV_COUNT.magnitude_status 0..1Count.comparatorlosslesslosslesssettledThe same comparator correspondence as DV_QUANTITY.magnitude_status.
—
no counterpart (inventory)
Count.systemunmappedunmappedsettled→ FHIR: No openEHR field produces it. FHIR invariant cnt-3 fixes it to http://unitsofmeasure.org, so a mapping engine supplies the constant. → openEHR: The fixed UCUM system carries no information into openEHR.
—
no counterpart (inventory)
Count.codeunmappedunmappedsettled→ FHIR: No openEHR field produces it. FHIR invariant cnt-3 fixes it to 1, so a mapping engine supplies the constant. → openEHR: The fixed UCUM code 1 carries no information into openEHR.
DV_COUNT.normal_range 0..1Observation.referenceRangelosslesslosslesssettledarchetype scope. DV_COUNT inherits normal_range and other_reference_ranges from DV_ORDERED like every other ordered value, and both share one Observation.referenceRange home and one verdict, which is why they are stated together here. normal_status is not folded in with them: its FHIR home and its verdict are different, and it has a row of its own below.
DV_COUNT.normal_status 0..1Observation.interpretationlosslesslossyopen→ openEHR: drops Observation.interpretation — openEHR binds normal_status to its normal_statuses code system with required strength, so an interpretation coded outside that set cannot be carried; a change request to relax the binding to extensible is open archetype scope. Inherited from DV_ORDERED — § 6.2.1 is where normal_status is declared — and it follows the DV_QUANTITY pattern including that pattern’s inbound loss, which is why it is a row of its own rather than a sentence on the reference-range row. maturity is open, not settled, because the change request to relax the binding is still open, exactly as for the DV_QUANTITY, DV_ORDINAL, and DV_SCALE rows that state the same attribute.

Worked example - number of pregnancies

{
  "_type": "DV_COUNT",
  "magnitude": 3
}
{
  "value": 3,
  "system": "http://unitsofmeasure.org",
  "code": "1"
}

DV_PROPORTION and Ratio

Sources: openEHR RM — DV_PROPORTION · FHIR R5 — Ratio · openEHR RM — PROPORTION_KIND

openEHR fieldFHIR target→ FHIR→ openEHRMaturityNotes
DV_PROPORTION.numerator 1..1Ratio.numerator.valuelosslessunmappedsettled→ openEHR: Nothing is produced. DV_PROPORTION.type is mandatory and no Ratio carries a kind discriminator, so no Ratio becomes a DV_PROPORTION at all and the numerator has nothing to land in. The value itself would carry across; it does not carry across on its own. (owner: FHIR-56001) FHIR carries the numerator as a Quantity; openEHR carries a bare decimal.
DV_PROPORTION.denominator 1..1Ratio.denominator.valuelosslessunmappedsettled→ openEHR: Nothing is produced, for the same reason as the numerator: DV_PROPORTION.type is mandatory and unsourceable from a Ratio, so the denominator has nothing to land in. (owner: FHIR-56001) pk_unitary fixes the denominator to 1 and pk_percent fixes it to 100; both are carried as ordinary denominator values.
DV_PROPORTION.type 1..1—
no counterpart (inventory)
unmappedunmappedopen→ FHIR: The kind discriminator is dropped. pk_unitary and pk_percent survive implicitly through their fixed denominators, and pk_fraction and pk_integer_fraction through the rendering they direct, but no kind is carried as a value. (owner: FHIR-56001) → openEHR: DV_PROPORTION.type is mandatory, so an incoming Ratio requires the mapping engine to infer a kind from the denominator — 1 implies pk_unitary, 100 implies pk_percent, anything else pk_ratio — which is an inference, not a carried value. (owner: FHIR-56001) The reference implementation refuses rather than infers: because the kind is mandatory and unsourceable, ratioToDvProportion produces no DV_PROPORTION at all, which is why the numerator, denominator and precision rows are unmapped inbound too.
DV_PROPORTION.type[fraction] 1..1Ratio.extension[rendered-value]† (extension)lossyunmappedopen→ FHIR: drops DV_PROPORTION.type[fraction] — the rendering a pk_fraction or pk_integer_fraction directs is carried — 1/2, or 1 1/2 for an integer fraction whose numerator exceeds its denominator — but the kind is not, and where the numerator does not exceed the denominator the two kinds render alike → openEHR: A rendering is not a kind: where the numerator does not exceed the denominator, pk_fraction and pk_integer_fraction render alike, so DV_PROPORTION.type is not inferred from it, and the Ratio is refused as any other is. (owner: working-group) FHIR-56001 extended rendered-value to Ratio. That context is in the Extensions Registry’s continuous build, not yet in a published release: 5.3.0 does not allow it, so a validator using 5.3.0 rejects these instances until the next release. Only integral terms are rendered, as the Reference Model requires for both kinds; an integer fraction that divides exactly renders as its whole number.
DV_PROPORTION.precision 0..1Ratio.numerator.extension[quantity-precision]† (extension)losslessunmappedopen→ openEHR: Nothing is produced. DV_PROPORTION.type is mandatory and unsourceable from a Ratio, so no DV_PROPORTION is produced and the precision extension has nothing to land in. (owner: FHIR-56001) openEHR carries one precision for the whole proportion; FHIR would carry one per Quantity. This guide places it on the numerator and the reverse reads it from there, which round-trips but does not let the two sides differ.
—
no counterpart (inventory)
Ratio.numerator.codeunmappedunmappedopen→ FHIR: No DV_PROPORTION field produces a unit. (owner: openehr-modelling) → openEHR: A Ratio carrying units — 5 mg per 100 mL — cannot be carried into a DV_PROPORTION. A change request to add optional numerator and denominator units to DV_PROPORTION, or a new proportion kind that enforces them, is open. (owner: openehr-modelling) The same applies to Ratio.denominator.code, Ratio.numerator.system, and Ratio.denominator.system.

Worked example - a percentage

{
  "_type": "DV_PROPORTION",
  "numerator": 45,
  "denominator": 100,
  "type": 2,
  "precision": 0
}
{
  "numerator": {
    "value": 45,
    "extension": [
      {
        "url": "http://hl7.org/fhir/StructureDefinition/quantity-precision",
        "valueInteger": 0
      }
    ]
  },
  "denominator": {
    "value": 100
  }
}

DV_INTERVAL and Range / Period / Quantity

Sources: openEHR RM — DV_INTERVAL · FHIR R5 — Range · FHIR R5 — Period · FHIR R5 — Quantity

openEHR fieldFHIR target→ FHIR→ openEHRMaturityNotes
DV_INTERVAL.lower 0..1when the type parameter is DV_QUANTITY or DV_COUNT: Range.low
when the type parameter is DV_DATE, DV_TIME, or DV_DATE_TIME: Period.start
when only one bound is present and the interval is carried as a comparator Quantity rather than as a Range: Quantity.value
losslesslosslesssettledThe FHIR target is chosen by the type parameter, not by the interval itself. Period and Quantity have search semantics in FHIR; Range does not. A bound the reference implementation cannot convert — a SimpleQuantity with no value or no code — stops the whole interval rather than being rewritten as zero; see the mandatory-attribute rule.
DV_INTERVAL.upper 0..1when the type parameter is DV_QUANTITY or DV_COUNT: Range.high
when the type parameter is DV_DATE, DV_TIME, or DV_DATE_TIME: Period.end
when only one bound is present and the interval is carried as a comparator Quantity rather than as a Range: Quantity.value
losslesslosslesssettled
DV_INTERVAL.lower_unbounded 1..1Range.lowlosslesslosslesssettledtrue is represented by the absence of the corresponding boundary, which round-trips exactly. The working group confirmed from a CKM review that *_unbounded appears only in design-time constraints, not in instance data.
DV_INTERVAL.upper_unbounded 1..1Range.highlosslesslosslesssettledtrue is represented by the absence of Range.high.
DV_INTERVAL.lower_included 0..1—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: An exclusive lower boundary cannot be stated in an instance. At design time it is expressed as a FHIRPath constraint in a profile, or by using Quantity.comparator instead of a Range. (owner: working-group) → openEHR: A FHIR instance never says whether a bound is exclusive, so the flag is set to the FHIR default — inclusive — rather than carried. (owner: working-group) Decided October 2025 on the evidence of a CKM review: instance data treats every boundary as inclusive. Exclusive boundaries do occur in real laboratory ranges but are rare and are a design-time concern.
DV_INTERVAL.upper_included 0..1—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: An exclusive upper boundary cannot be stated in an instance. (owner: working-group) → openEHR: A FHIR instance never says whether a bound is exclusive. (owner: working-group)

Worked example - a reference range

{
  "_type": "DV_INTERVAL",
  "lower": {
    "_type": "DV_QUANTITY",
    "magnitude": 3.5,
    "units": "mmol/L",
    "units_system": "http://unitsofmeasure.org",
    "units_display_name": "mmol/L"
  },
  "upper": {
    "_type": "DV_QUANTITY",
    "magnitude": 5.0,
    "units": "mmol/L",
    "units_system": "http://unitsofmeasure.org",
    "units_display_name": "mmol/L"
  },
  "lower_unbounded": false,
  "upper_unbounded": false,
  "lower_included": true,
  "upper_included": true
}
{
  "low": {
    "value": 3.5,
    "unit": "mmol/L",
    "system": "http://unitsofmeasure.org",
    "code": "mmol/L"
  },
  "high": {
    "value": 5.0,
    "unit": "mmol/L",
    "system": "http://unitsofmeasure.org",
    "code": "mmol/L"
  }
}

DV_QUANTITY and Money / MoneyQuantity

Sources: openEHR RM — DV_QUANTITY · FHIR R5 — Money · FHIR R5 — MoneyQuantity

openEHR fieldFHIR target→ FHIR→ openEHRMaturityNotes
DV_QUANTITY.magnitude 1..1Money.valuelosslesslosslessopenThe monetary amount itself. The openEHR attribute is mandatory and the FHIR element is optional, so an incoming instance that omits it cannot be converted: the reference implementation produces nothing rather than inventing a value. See the mandatory-attribute rule.
DV_QUANTITY.units 1..1Money.currencylosslesslosslessopenThe ISO 4217 currency code, carried in units with units_system set to urn:iso:std:iso:4217. Money.currency is required-bound to the Currencies value set, so only a DV_QUANTITY in that system is an amount of money — see the units_system[not-iso-4217] row. MoneyQuantity is a Quantity constrained by mtqy-1 — a code whenever there is a value, and a system, if present, of urn:iso:std:iso:4217 — and maps as DV_QUANTITY ↔ Quantity does. The openEHR attribute is mandatory and the FHIR element is optional, so an incoming instance that omits it cannot be converted: the reference implementation produces nothing rather than inventing a value. See the mandatory-attribute rule.
DV_QUANTITY.units_system 0..1Money.currencylosslesslosslessopenMoney has no system element: the code system is entailed by currency’s required binding to the Currencies value set, whose codes are ISO 4217 (urn:iso:std:iso:4217). The value is carried by that binding rather than by an element, and is supplied back as the same constant. Recognising a money amount rests on this field, and constraining it is left to implementation guidance rather than to an archetype: the Archetype Designer tooling does not currently allow units_system to be constrained, even though ADL permits it. Two openEHR change requests are open — one for the tooling constraint, one proposing a Money data type in the RM.
DV_QUANTITY.units_system[not-iso-4217] 0..1—
no counterpart (inventory)
unmappedunmappedopen→ FHIR: A DV_QUANTITY whose units_system is absent — which openEHR reads as UCUM — or names any system other than urn:iso:std:iso:4217 is not an amount of money. Its units would land in Money.currency and break the required binding, so nothing is produced rather than an instance a validator rejects. (owner: openehr-modelling) → openEHR: Every Money reads back with units_system = urn:iso:std:iso:4217, so this sub-case never arises. (owner: openehr-modelling) A named sub-case of the units_system row above, in the pattern the guide uses for CODE_PHRASE.code_string[whitespace]. The test is the system, not the shape of the code: EUR with no units_system is refused too. Open because the RM Money type proposed by the openEHR change request would recognise a money amount without it.
DV_QUANTITY.units_display_name 0..1Money.currency.extension[rendered-value]† (extension)losslesslosslessopenThe currency’s display form, for example €. Money has no unit element; rendered-value declares code among its contexts, so it sits on currency — in JSON, on _currency.
DV_QUANTITY.precision 0..1Money.value.extension[quantity-precision]† (extension)losslesslosslessopenquantity-precision declares decimal among its contexts, so it sits on Money.value — in JSON, on _value. FHIR notes that precision is always important for financial amounts. openEHR precision = -1 (unlimited) is equivalent to the absence of the extension, as it is for Quantity.
DV_QUANTITY.magnitude_status 0..1—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: A Money cannot say that its amount is a bound rather than a point value, so the status is not carried. → openEHR: A Money never carries a comparator, so nothing arrives. MoneyQuantity allows Quantity.comparator. Where the attribute matters, carry the amount as a MoneyQuantity instead: it is a Quantity, and maps as DV_QUANTITY ↔ Quantity does.
DV_QUANTITY.accuracy 0..1—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: The accuracy is not carried, and accuracy_is_percent, which only qualifies it, goes with it. → openEHR: A Money carries no accuracy, so nothing arrives. MoneyQuantity admits quantity-accuracy, because it is a Quantity. Where the attribute matters, carry the amount as a MoneyQuantity instead: it is a Quantity, and maps as DV_QUANTITY ↔ Quantity does.
DV_QUANTITY.normal_range 0..1—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: The normal range is not carried. → openEHR: Nothing beside a Money states a normal range, so nothing arrives. archetype scope, as for Quantity. Where the attribute matters, carry the amount as a MoneyQuantity instead: it is a Quantity, and maps as DV_QUANTITY ↔ Quantity does.
DV_QUANTITY.other_reference_ranges 0..*—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: The reference ranges are not carried. → openEHR: Nothing beside a Money states a reference range, so nothing arrives. archetype scope, as for Quantity. Where the attribute matters, carry the amount as a MoneyQuantity instead: it is a Quantity, and maps as DV_QUANTITY ↔ Quantity does.
DV_QUANTITY.normal_status 0..1—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: The normal status is not carried. → openEHR: Nothing beside a Money states an interpretation, so nothing arrives. archetype scope, as for Quantity. Where the attribute matters, carry the amount as a MoneyQuantity instead: it is a Quantity, and maps as DV_QUANTITY ↔ Quantity does.

DV_QUANTITY and SimpleQuantity

Sources: openEHR RM — DV_QUANTITY · FHIR R5 — SimpleQuantity

openEHR fieldFHIR target→ FHIR→ openEHRMaturityNotes
DV_QUANTITY.magnitude 1..1SimpleQuantity.valuelosslesslosslesssettledSimpleQuantity is Quantity with comparator forbidden by sqty-1, so every row here follows DV_QUANTITY ↔ Quantity except magnitude_status and the reference-range attributes, which have no home. The openEHR attribute is mandatory and the FHIR element is optional, so an incoming instance that omits it cannot be converted: the reference implementation produces nothing rather than inventing a value. See the mandatory-attribute rule.
DV_QUANTITY.units 1..1SimpleQuantity.codelosslesslosslesssettledThe coded unit, as for Quantity. The openEHR attribute is mandatory and the FHIR element is optional, so an incoming instance that omits it cannot be converted: the reference implementation produces nothing rather than inventing a value. See the mandatory-attribute rule.
DV_QUANTITY.units_system 0..1SimpleQuantity.systemlosslesslosslesssettledAs for Quantity, including the qty-3 rule that supplies http://unitsofmeasure.org when units_system is absent and the units are UCUM; the supplied default arrives back as an explicit units_system.
DV_QUANTITY.units_display_name 0..1SimpleQuantity.unitlosslesslosslesssettledThe human-readable unit label, as for Quantity.
DV_QUANTITY.precision 0..1SimpleQuantity.extension[quantity-precision]† (extension)losslesslosslesssettledThe extension’s context is Quantity, which a SimpleQuantity is. openEHR precision = -1 (unlimited) is equivalent to the absence of the extension.
DV_QUANTITY.magnitude_status 0..1—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: A DV_QUANTITY carrying a bound or approximate magnitude_status in a slot whose FHIR target is SimpleQuantity is a modelling error on the openEHR side. The quantity is produced without the status and the loss is reported, never silently dropped. → openEHR: A SimpleQuantity never carries a comparator, so nothing arrives. = is the point value, which FHIR states by the absence of a comparator, so it is carried and not reported.
DV_QUANTITY.accuracy 0..1SimpleQuantity.extension[quantity-accuracy]† (extension)losslesslosslessopenAs for Quantity, accuracy_is_percent is carried by the accuracy quantity’s unit — UCUM % for a relative accuracy, the magnitude’s own unit otherwise — except where the magnitude’s own unit is %. That sub-case is the next row.
DV_QUANTITY.accuracy_is_percent[percent-unit] 0..1SimpleQuantity.extension[quantity-accuracy][percent-unit]† (extension)unmappedunmappedopen→ FHIR: The flag is not carried: where the magnitude’s own unit is already %, the accuracy quantity’s unit — the extension’s only discriminator — is % whichever way the flag reads. The accuracy magnitude is still emitted. (owner: working-group) → openEHR: Nothing in the instance says whether the accuracy is absolute or relative, so accuracy_is_percent is left absent rather than derived. (owner: working-group) The same sub-case, and the same unresolved gap, as DV_QUANTITY ↔ Quantity’s accuracy_is_percent[percent-unit] row.
DV_QUANTITY.normal_range 0..1—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: The normal range is not carried. → openEHR: Nothing beside a SimpleQuantity states a normal range, so nothing arrives. archetype scope, as for Quantity. A value that needs a reference range is an Observation value, and so a Quantity.
DV_QUANTITY.other_reference_ranges 0..*—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: The reference ranges are not carried. → openEHR: Nothing beside a SimpleQuantity states a reference range, so nothing arrives. archetype scope, as for Quantity.
DV_QUANTITY.normal_status 0..1—
no counterpart (inventory)
unmappedunmappedsettled→ FHIR: The normal status is not carried. → openEHR: Nothing beside a SimpleQuantity states an interpretation, so nothing arrives. archetype scope, as for Quantity.

DV_ORDINAL and Observation.component

Sources: openEHR RM — DV_ORDINAL · FHIR R5 — Observation.component

This mapping is archetype scope: it is not expressible between the two data types alone and needs the surrounding openEHR archetype and FHIR resource.

openEHR fieldFHIR target→ FHIR→ openEHRMaturityNotes
DV_ORDINAL.symbol 1..1when the ordinal is carried as an observation component: Observation.component.valueCodeableConcept
when the ordinal is an answer to a questionnaire item: QuestionnaireResponse.item.answer.valueCoding
losslesslosslesssettledThe coded label of the ordinal value. See Coded Data for the DV_CODED_TEXT mapping itself.
DV_ORDINAL.value 1..1when the score is carried as its own component value: Observation.component.valueInteger
when the score is carried as a weight on the coded symbol: Observation.component.valueCodeableConcept.coding.extension[itemWeight]† (extension)
losslesslosslesssettledA value carried in the itemWeight extension is unlikely to be surfaced by a FHIR search, which matters when choosing between the two shapes.
DV_ORDINAL.normal_range 0..1Observation.referenceRangelosslesslosslesssettledarchetype scope. DV_ORDINAL inherits normal_range and other_reference_ranges from DV_ORDERED like every other ordered value, and both share one Observation.referenceRange home and one verdict, which is why they are stated together here. normal_status is not folded in with them: its FHIR home and its verdict are different, and it has a row of its own below. Without this row the aggregate would read lossless while a DV_ORDINAL carrying a normal_range had nowhere stated to put it.
DV_ORDINAL.normal_status 0..1Observation.interpretationlosslesslossyopen→ openEHR: drops Observation.interpretation — openEHR binds normal_status to its normal_statuses code system with required strength, so an interpretation coded outside that set cannot be carried; a change request to relax the binding to extensible is open archetype scope. Inherited from DV_ORDERED — § 6.2.1 is where normal_status is declared — and it follows the DV_QUANTITY pattern including that pattern’s inbound loss, which is why it is a row of its own rather than a sentence on the reference-range row.

DV_SCALE and Observation.component

Sources: openEHR RM — DV_SCALE · FHIR R5 — Observation.component

This mapping is archetype scope: it is not expressible between the two data types alone and needs the surrounding openEHR archetype and FHIR resource.

openEHR fieldFHIR target→ FHIR→ openEHRMaturityNotes
DV_SCALE.symbol 1..1Observation.component.valueCodeableConceptlosslesslosslesssettledThe same targets as DV_ORDINAL.symbol.
DV_SCALE.value 1..1when the score is carried as its own component value: Observation.component.valueQuantity
when the score is carried as a weight on the coded symbol: Observation.component.valueCodeableConcept.coding.extension[itemWeight]† (extension)
losslesslosslesssettledDV_SCALE.value is a Real, so unlike DV_ORDINAL.value it cannot land in valueInteger. The distances between scale points need not be constant.
DV_SCALE.normal_range 0..1Observation.referenceRangelosslesslosslesssettledarchetype scope. DV_SCALE inherits normal_range and other_reference_ranges from DV_ORDERED like every other ordered value, and both share one Observation.referenceRange home and one verdict, which is why they are stated together here. normal_status is not folded in with them: its FHIR home and its verdict are different, and it has a row of its own below. Without this row the aggregate would read lossless while a DV_SCALE carrying a normal_range had nowhere stated to put it.
DV_SCALE.normal_status 0..1Observation.interpretationlosslesslossyopen→ openEHR: drops Observation.interpretation — openEHR binds normal_status to its normal_statuses code system with required strength, so an interpretation coded outside that set cannot be carried; a change request to relax the binding to extensible is open archetype scope. Inherited from DV_ORDERED — § 6.2.1 is where normal_status is declared — and it follows the DV_QUANTITY pattern including that pattern’s inbound loss, which is why it is a row of its own rather than a sentence on the reference-range row.