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 |
Substantive changes are recorded here, in the same commit that makes them. Group entries under the version heading they ship in, using the categories below, and nest a bullet per page or artifact touched.
Categories, in the order they appear under a version:
Compatible, Substantive
First content release. The guide moves from an empty scaffold to a complete data-type mapping between the openEHR Reference Model and FHIR R5, stated at field level and in both directions, with every claim backed by runnable code.
Structure
type-systems.html,
conventions.html, eight category pages (mapping-boolean.html,
mapping-numeric.html, mapping-reference.html, mapping-textual.html,
mapping-coded.html, mapping-quantity.html, mapping-temporal.html,
mapping-other.html), gaps.html, cross-cutting.html, open-items.html,
and reference-implementation.html, each registered in both pages: and
menu:.mapping.html became the index to the category pages. Its conventions
section moved to conventions.html, and the two normative SHALL sentences
moved verbatim — "A mapping marked lossless SHALL round-trip:
converting openEHR to FHIR and back SHALL yield an equivalent instance. A
mapping marked lossy SHALL document exactly which information is
dropped." That is a relocation, not a rewording; no conformance language
changed.conventions.html extends the relocated legend with per-direction
fidelity columns, a decision-maturity legend (settled / open /
not-discussed), and a scope legend (datatype / archetype).How the guide is produced
lossless row must round-trip a paired instance
unchanged and a lossy row must drop exactly what it declares — no more and
no less — for every row at datatype scope. Rows at archetype scope are
outside the matrix because their FHIR home is a resource element, and that
exemption is itself checked; a row whose source side has no counterpart in the
direction under test is skipped because nothing exists to convert from. Every
fixture pair is also asserted to be a pair, and the ones that hold in a single
direction say so.build.fhir.org citations are not
permitted anywhere in this guide.The mappings
DV_QUANTITY ↔ Quantity, DV_COUNT ↔ Count,
DV_PROPORTION ↔ Ratio, DV_INTERVAL ↔ Range / Period / Quantity,
DV_QUANTITY ↔ Money / MoneyQuantity and ↔ SimpleQuantity, and the
archetype-scope DV_ORDINAL and DV_SCALE ↔ Observation.component.CODE_PHRASE ↔ Coding, DV_CODED_TEXT ↔
CodeableConcept / Coding, TERM_MAPPING ↔ CodeableConcept.coding, and
the null_flavour ↔ data-absent-reason correspondences with their full
L1/L2 inheritance in both directions, plus the HL7 v3 NullFlavor
correspondence.DV_BOOLEAN ↔ boolean.Integer ↔ integer, Integer64 ↔ integer64,
and Real / Double ↔ decimal, including the FHIR rule that trailing zeros
in a decimal are significant and openEHR's that they are not.DV_TEXT ↔ string / markdown, covering formatting,
language, encoding, the deprecated hyperlink, and mappings.DV_IDENTIFIER ↔ Identifier,
DV_URI / DV_EHR_URI ↔ uri / url, and LINK ↔ Reference /
CodeableReference, including the system::value convention and its
last-:: parsing rule.DV_DATE, DV_TIME, DV_DATE_TIME, and DV_DURATION,
with the ISO 8601 subset differences stated as mapping rules: compact openEHR
forms SHALL be expanded, partial precision SHALL be truncated rather than
padded, fractional seconds truncate from nine digits to three, and a time
carries its offset in the timezone extension because FHIR time cannot.DV_MULTIMEDIA ↔ Attachment, DV_PARSABLE ↔ string,
and DV_STATE ↔ CodeableConcept.What is not settled, and is said to be not settled
gaps.html publishes four inventories, three of them derived
from the whole ledger rather than transcribed, so a gap cannot fall out of
step with the mapping it belongs to: openEHR → FHIR, FHIR → openEHR, and
not-yet-discussed. The fourth lists FHIR types with no openEHR counterpart at
all — Address, HumanName, ContactPoint, Annotation, Signature,
SampledData, RatioRange, Money, Meta, Narrative — each citing the
openEHR Data Types inventory page, so "no counterpart exists" stays a sourced
claim.system + version → terminology_id format (three candidates); the
strategy for a missing mandatory terminology_id or code_string; the
representation of TERM_MAPPING.purpose; openEHR 271 no information,
which has no data-absent-reason equivalent; the ~ approximate comparator
(R6, FHIR-56000); Quantity.comparator = ad; the DV_PROPORTION kind
discriminator (FHIR-56001); units on a Ratio; Attachment compression
(FHIR-56003), non-SHA-1 hashing (FHIR-55422), and thumbnails (FHIR-56002);
and the normal_status binding breadth.not-discussed rows carry no fidelity claim at all. DV_PARAGRAPH,
DV_GENERAL_TIME_SPECIFICATION, DV_PERIODIC_TIME_SPECIFICATION,
DV_ENCAPSULATED, EVENT, COMPOSITION, PARTY_RELATED, and the Media
File CLUSTER archetype are listed with a reason and nothing more.Owner a mapping row blames is asserted to appear in
the open-items register.Cross-cutting
cross-cutting.html collects the terminology-identifier question with its
three candidates and no decision, the character-encoding rule, the DV_AMOUNT
pattern stated once for all four subtypes, the ISO 8601 subset comparison as a
generated table, the working group's position that validation is out of
scope, and both halves of the bindings and process guidance the source
documents left as empty headings.Not in this release
input/fsh/ is intentionally empty. Terminology
stays anchored in terminology.hl7.org or in openEHR's own published
terminology. No archetype is authored; the guide links the ones a gap depends
on and names who owns them.Review remediation
Everything in this group is a correction made in response to a full review of the first content release. The wording changes below are filed as Compatible, Non-Substantive; everything else in this group changes what the guide asserts and is Compatible, Substantive.
lossless. The rule is published on
conventions.html, its two recorded exceptions —
CODE_PHRASE.terminology_id from an absent Coding.system, and
DV_STATE.is_terminal — are named on the rows that describe them, and the
reference implementation's contract tests hold every converter to it.DV_CODED_TEXT ↔
CodeableConcept, TERM_MAPPING ↔ Coding, and DV_STATE ↔ CodeableConcept
now report the CODE_PHRASE ↔ Coding drops they delegate to, so a published
loss cannot disappear behind a composition boundary.14:30 or
2026-03-01T14:30 is completed to seconds — FHIR admits no shorter form —
and each completion is now a named loss in its own right,
DV_TIME.value[minute-precision] and
DV_DATE_TIME.value[minute-precision], rather than a lossless claim the
guide's own normative rule contradicted. Compact UTC offsets (+0100) are
expanded alongside compact dates and times. The published statement that
partial precision is truncated and never padded now says exactly where it
applies and where FHIR makes it impossible.DV_DURATION conversions no longer fabricate PT0S or an empty
Duration. A multi-component duration, a Duration with no unit, a
Duration whose unit is not a time unit, and a Duration with no value all
produce nothing and report why, with the underlying diagnostic preserved.ms duration unit is stated honestly. {n} ms is written as
PT{n/1000}S, which reads back as seconds, so the unit provably does not
survive the return trip. The published unit list and the conversion helper
both say so, and the test that used to skip the unit now asserts the
asymmetry.value[x] its definition declares.
quantity-accuracy is a Quantity, not a decimal — which is what lets an
accuracy expressed as a percentage be carried at all, in UCUM %, so the
accuracy_is_percent drop is confined to the %-unit sub-case described
under Review remediation, second pass below; rendering-markdown is a
markdown; language is a code. A new gate resolves every extension a
worked example carries against a declared table of value[x] types,
cardinalities, and contexts, and every worked example in this guide is one
of those fixtures.DV_PARSABLE.formalism was mapped to the mimeType extension, whose context
is Questionnaire.item and ElementDefinition and whose purpose is a
design-time constraint on permitted attachments; it cannot carry an
instance's syntax. DV_TIME's UTC offset was mapped to the timezone
extension, whose value is a code required-bound to IANA zone names, which an
offset is not. Both rows now publish the gap with an owner, and
DV_PARSABLE ↔ string is stated as the one-directional mapping it is. No
substitute extension is invented for either.openEHR example and its FHIR partner are now checked to be producible from one another, modulo
the drops the ledger declares. Where a pair holds in one direction only — an
approximate magnitude_status, a Quantity.comparator of ad, a Ratio
carrying units, a nine-digit fractional second, a Coding with no system, a
minute-precision dateTime — the example now says which direction it claims
and why, instead of implying both. Three examples were corrected outright:
the no information null flavour maps to unknown, not asked-unknown; a
systemless Coding becomes the placeholder terminology_id the guide
actually documents; and a CodeableConcept with two codings becomes a
DV_CODED_TEXT with a term mapping. A new asked-unknown example was added
for the L2-to-L1 collapse.integer64 is published in the wire format FHIR R5 actually has. An
integer64 is a JSON String, not a JSON number; the worked examples and
the reference types now say so, with boundary examples at exactly the 32-bit
maximum and minimum and one beyond them. A value outside the 32-bit range is
refused rather than silently emitted into an element typed integer, which is
what the Integer64[overflow] row already declared.Attachment.size no longer claims a range it does not have. RM
DV_MULTIMEDIA.size is a 32-bit Integer and R5 Attachment.size is an
integer64, so an attachment larger than 2,147,483,647 bytes has no openEHR
attribute to land in. That is now a first-class unmapped row with an owner,
cross-referring to the identical gap in the numeric category, instead of a
lossless claim on both sides.DV_DURATION is unmapped, not lossy. P1Y6M has no
single UCUM unit, so nothing is produced; splitting the sub-case out of the
value row lets the single-component conversion keep its lossless claim and
puts the gap under test.unmapped contract is checked for every row-direction. A row that
claims nothing can be carried is now held to it: where the whole conversion
produces nothing, that is asserted directly, and where the mapping produces a
value from its other rows, nothing at the unmapped row's own path may survive
into it. A conversion that produces nothing must also say why, naming a path
the ledger declares unmapped.archetype scope now has to earn itself. A row at archetype scope
is exempt from the converter, fixture and round-trip gates because — in the
guide's own words — its FHIR home is a resource element. That justification is
now a check: a row claiming the exemption while targeting an ordinary
data-type element is rejected. Four rows failed it and were re-scoped to
datatype, which put their published verdicts under test for the first time
and corrected three of them.LINK ↔ Reference is published as the one-way mapping it is. LINK
requires meaning, type, and target; a FHIR Reference has no field that
can source type, so no LINK is produced from one. LINK.meaning and
LINK.type are also DV_TEXT, of which only value reaches a string or a
CodeableConcept.text, so both directions are restated: lossy out, and
unmapped back, with the gap owned rather than papered over by fabricating
the literal link type reference.DV_DURATION → Timing.repeat no longer claims lossless while deferring
the work. A row whose own note calls timing and dosage "the hardest mapping
problem" and defers it to a dedicated session is unmapped in both
directions, exactly as DV_GENERAL_TIME_SPECIFICATION is.CodeableReference is defined
on references.html, Meta on resource.html, Narrative on
narrative.html, Observation.interpretation and
Observation.dataAbsentReason on observation-definitions.html; the openEHR
TERMINOLOGY_ID and ISO 8601 time-type anchors are corrected to the ones the
specifications publish; and the FHIR data-type inventory is cited as a page
rather than through an anchor it does not have.normal_status, normal_range, and other_reference_ranges are declared on
DV_ORDERED; magnitude_status on DV_QUANTIFIED; only accuracy and
accuracy_is_percent are DV_AMOUNT's. The rows, the per-type Sources
lines, and the "DV_AMOUNT pattern" prose now state the
DV_ORDERED → DV_QUANTIFIED → DV_AMOUNT → DV_QUANTITY chain and name
the declaring class for each inherited attribute.DV_ORDINAL and DV_SCALE inherit the reference-range attributes too,
and now say so: without those rows the summary read lossless for both types
while a DV_SCALE carrying a normal_range had nowhere stated to put it.Money is no longer published simultaneously as mapped and as having no
openEHR counterpart. The two Money rows are removed from the
no-counterpart inventory — DV_QUANTITY ↔ Money is a real, fixture-backed
mapping — and the true, narrower claim (openEHR has no dedicated monetary
type) is stated in the gaps.html prose. A new ledger rule makes the
contradiction impossible to reintroduce: a FHIR type named as some mapping's
own type may not also be published as having no openEHR counterpart.RelativeTime is restored to the no-counterpart inventory, with the
working group's recorded "no openEHR counterpart identified" verdict and an
owner, and named again in the Quantities prose.Attachment.language is no longer a fabricated gap. DV_MULTIMEDIA
inherits language from DV_ENCAPSULATED (RM § 9.2.1), so the element maps;
only the CODE_PHRASE's terminology identifier is dropped, because
Attachment.language is a code required-bound to all-languages.Attachment inventory the prose promised now exists.
creation, height, width, frames, duration, and pages are six
unmapped rows rather than one row folding the others into its notes, and
the prose says plainly that openehr-modelling is a team rather than a
ticket.CODE_PHRASE.code_string carrying whitespace produces nothing. The
FHIR code type forbids leading, trailing, and repeated internal whitespace
and openEHR permits all three, so such a code has no valid FHIR form at all;
the sub-case is its own unmapped row with an owner, and the guide emits
nothing rather than an instance a validator rejects.Review remediation, second pass
Corrections made in response to a second review of the same release. Everything in this group is Compatible, Substantive unless the group it sits under says otherwise.
Ratio no longer becomes a DV_PROPORTION. DV_PROPORTION.numerator,
.denominator, and .type are all mandatory, and FHIR carries no kind
discriminator at all; the guide already published DV_PROPORTION.type as
unmapped inbound on the ground that reading the kind off the denominator is
an inference rather than a carried value. The conversion now refuses instead
of performing that inference and substituting 0 for an absent numerator, so
the numerator, denominator and precision rows are unmapped inbound too and
DV_PROPORTION ↔ Ratio is published as the one-directional mapping it is.TERM_MAPPING whose target has no valid FHIR code form, a DV_CODED_TEXT
whose defining_code has none, and the DV_STATE that composes it now
produce nothing and say why, instead of returning a value-less lossy result
or a text-only CodeableConcept with the mandatory defining code gone. A
time element carrying extensions and no value, and a data-absent-reason
CodeableConcept stating no code at all, are refused on the same ground.accuracy_is_percent is no longer inverted for a %-unit quantity. The
flag is carried as the unit of the accuracy Quantity, which works until the
magnitude's own unit is % — a haematocrit of 45 % with an absolute accuracy
of ±2 percentage points read back as ±2 % of 45, which is ±0.9, and both
directions called it lossless. The extension has no second discriminator, so
the flag is now left absent rather than derived, the loss is named in both
directions as its own unmapped sub-case row, and the normative sentence on
cross-cutting.html that required accuracy_is_percent to be false "for the
value to be carried at all" — which the same page, the DV_QUANTITY table and
the converter all contradicted — is replaced by the rule that is actually
implemented.Attachment.size is published in the wire format R5 actually has. R5
types Attachment.size as an integer64, and an integer64 is a JSON
String; the guide's own numeric reasoning already said that a guide
publishing a bare number for one publishes a wire format R5 does not have,
while every DV_MULTIMEDIA ↔ Attachment worked example published
"size": 20416. The four examples, the reference type, and the row's note now
carry the string form, and an Attachment.size string that names no whole
number is treated as a size the Attachment does not state rather than reaching
an openEHR instance as NaN.T1430 or 20260301T1430 fell through both helpers and was
emitted verbatim as a lossless FHIR value that matches no R5 regex; the
compact expansion now accepts hhmm as well as hhmmss, and both forms are
published rows of the subset table. And a DV_DATE_TIME stating a time with
no UTC offset is refused rather than emitted: R5 requires an offset once
hours and minutes are present, the offset can only come from the source or its
surrounding template, and a data-type conversion sees neither. The gap is a
first-class unmapped row with an owner, worded against the normative
sentence rather than the lexical form — R5's dateTime regex makes the zone
group optional, so a regex-only reading misses the rule entirely.Iso8601_duration supports a negative duration — its own example is -P3M,
"minus 3 months", for a very premature newborn — but its component invariants
require every component to be non-negative, so the sign precedes the P. The
conversion emitted P-3M, which violates a published openEHR invariant, and
reported nothing about it. Both directions now use the -P… / -PT… form,
and the parser accepts it, so the pair stays symmetric.DV_DURATION.value no longer claims lossless for the millisecond case.
{value: 5, code: "ms"} becomes PT0.005S and reads back as
{value: 0.005, code: "s"}: the magnitude changes, not only the unit, so the
drop already booked on Duration.code never covered it. The sub-case is now a
FHIR-sourced Duration.value[ms] row of its own, the conversion reports the
rescale as a second named drop, and a millisecond fixture pair puts it under
the round-trip matrix — it passed before only because no ms pair existed.DV_TIME's inbound drop was declared as time.value — the whole
value — when what is actually lost is only sub-second precision beyond three
digits, so the pairing gate deleted the one field from both sides and compared
{} against {}. The drop path is narrowed to
time.value[fractional-seconds], and the gate now fails a comparison that
empties both sides rather than passing it. The two DV_TIME pairs that are
genuinely one-directional — an offset the FHIR value cannot carry, and a
minute-precision completion that is not reversible — say so, which the vacuous
comparison had been hiding.DV_CODED_TEXT ↔ CodeableConcept, TERM_MAPPING ↔ Coding and
DV_STATE ↔ CodeableConcept all report a Coding.version their tables did
not declare — which conventions.html promises a lossy row never does. The
containment rule now admits a declared delegated endpoint: a row names the
mapping ids its converter composes, and only those mappings' endpoints widen
its anchor set. All three rows move from lossless to lossy inbound, each
with a fixture that emits every path it declares. The same rule is tightened
in the other direction at the same time: containment is segment-aware, so
Coding.versionable no longer passes as a descendant of Coding.version.magnitude_status is cited to the class that declares it, everywhere.
Four rows still pointed at #_dv_quantity_class; RM 6.2.8 lists
DV_QUANTITY's declared attributes as magnitude, precision, units,
units_system and units_display_name, and magnitude_status is declared on
6.2.6 DV_QUANTIFIED. Correcting the four instances is not the fix — the
property is now machine-checked: every row naming the same openEHR attribute
must cite the same declaring class, keyed on the full attribute path so the
rule needs no exception list.DV_ORDINAL and DV_SCALE publish the normal_status consequence they
claimed. Both types' inherited-attribute rows asserted that normal_status
"follows the same pattern as DV_QUANTITY" while carrying a verdict that
pattern does not have: DV_QUANTITY.normal_status is lossless outbound and
lossy inbound, because openEHR's required binding to normal_statuses
is narrower than FHIR's extensible binding on Observation.interpretation.
normal_status is now a row of its own for each type, carrying that drop, and
both published aggregates change accordingly. normal_range and
other_reference_ranges stay folded together: they share one FHIR home and
one verdict.spec-local citations sitting on real endpoints named a page and
no anchor, and one FHIR R5 core citation resolved against nothing at all — the
sentence asserting otherwise was false in two ways at once. The ledger now
rejects a spec-local endpoint citation with no fragment; the five
NULL_FLAVOUR rows cite #_null_flavours, which the openEHR Support
Terminology page has published all along; and the QuestionnaireResponse
citation names an element anchor and is resolved against the mirror like every
other R5 core page. The single honest exception — RelativeTime, which R5
does not define and therefore cannot anchor — is written down as data with a
reason, on its own citation, rather than as a silent skip in a test.Review remediation, third pass
Corrections made in response to a third review of the same release. Everything in this group is Compatible, Substantive unless the group it sits under says otherwise.
formatting value in the
type model, an ISO 8601 lexical form in a shared helper — where none of the
guide's citation or fidelity gates could reach them. Every such literal the
reference implementation writes or a fixture carries is now resolved against
the published openEHR specification: code-set identifiers against the Support
Terminology specification, DV_TEXT.formatting values against the Reference
Model section that enumerates them, and every lexical form the guide flags as
openEHR-accepted against a transcription of valid_iso8601_date,
valid_iso8601_time and valid_iso8601_date_time whose own licensing
sentences are asserted present in the specification. Each inventory is
derived — from the source tree, from the fixture tree, and from the tables
themselves — so a literal added tomorrow is checked without anyone maintaining
a list. The check runs when the openEHR specification mirror is configured,
and is part of the publication gate.T143000,
T1430 and T143000+0100 as forms openEHR accepts, under a SHALL.
valid_iso8601_time puts no T designator on a standalone time — T
separates the date from the time in valid_iso8601_date_time and nowhere
else — so the three forms openEHR does publish, 143000, 1430 and
143000+0100, had no row, no rule and no test, and a conformant 143000 was
read as the year-and-month 1430-00 and published as a FHIR time at
lossless. The three rows are retitled to the forms openEHR publishes, the
compact ±hh offset gains a row of its own, and the expansion helper now
takes the temporal kind explicitly rather than guessing from digit count —
143000 and 202603 are the same six digits, and no lexical rule can tell
them apart. The hour-only partial forms hh, YYYY-MM-DDThh and
YYYYMMDDThh, which valid_iso8601_time and valid_iso8601_date_time both
publish, are new rows with new drops: DV_TIME.value[hour-precision] and
DV_DATE_TIME.value[hour-precision], each naming the two levels of precision
the FHIR value claims that the source did not state.terminology_id: urn:ietf:bcp:47 into an openEHR
CODE_PHRASE and reported lossless. openEHR's Support Terminology
publishes exactly one language code set —
Id: languages, External_id: ISO_639-1 — and both DV_TEXT and
DV_ENCAPSULATED carry a Language_valid invariant requiring the value to
belong to it, so a round trip through the guide turned a conformant instance
into a non-conformant one and said nothing had been lost. The derivation also
ran the wrong way: it read an openEHR identifier off a FHIR binding.
Both converters now share one narrowing, written once: an alpha-2 tag is an
ISO 639-1 code and is carried; a tag with a region or script subtag keeps its
alpha-2 prefix and the subtag is a named drop; anything else is outside
the code set the invariant requires, so no language is written at all and
the omission is reported. BCP 47 strictly contains ISO 639-1, so both
toOpenehr verdicts move from lossless to lossy, and the two published
worked examples are corrected.formatting: html is not a Reference Model value, so the guide stops
publishing one. The type model declared html among "the formatting
values the Reference Model defines", the converter wrote it at lossless, and
the guide published a SHOULD recommending a rendering-xhtml target — in
the same note that admitted XHTML support was pending a Reference Model change
request. RM § 5.1.7 enumerates DV_TEXT.formatting exhaustively — Void,
"markdown", "plain", "plain_no_newlines", and a legacy deprecated CSS
string — and rejects HTML as a formatting approach explicitly. html is
removed from the enumeration, nothing emits rendering-xhtml, and the
recommendation is withdrawn rather than softened. What remains is stated
as what it is: a FHIR feature openEHR has no counterpart for, published as its
own row with both citations and a fidelity verdict in each direction, and in
the FHIR-features gap inventory, pending the change request. A received
string carrying the extension still converts — the text is carried and the
rendering instruction is a named drop — so nothing that maps faithfully is
refused.extension-types.ts defines published as "some fixture in this guide
carries an instance of it", and nothing checked it: one entry claimed a
value[x], a cardinality and a context that no instance had ever exercised.
The correspondence is now asserted in both directions and derived from the
fixture tree, so neither a claim without an instance nor an instance without a
claim can be introduced silently.TERM_MAPPING.match is the Reference Model's "unknown", and it is
reported. TERM_MAPPING ↔ Coding minted match: '=' — "(supposedly)
equivalent", the strongest assertion the attribute can carry — from a
Coding that states no degree of equivalence at all, and reported
lossless. The same module declares, forty lines away and in the opposite
direction, that Coding has no element expressing equivalence. RM § 5.2.2
enumerates the match results and ships a designated value for exactly this
case: ?, "the kind of mapping is unknown". That value is now written and
reported, so the conversion is lossy and asserts nothing about the two
terms; the second site that built a TERM_MAPPING inline is gone, replaced by
a call to the one converter, so the two cannot diverge. The published closed
list of permitted substitutions grows from two to three, deliberately, and the
SHALL NOT above it is unchanged — the behaviour was made to obey the verb
rather than the verb softened. The list and the substituting sites in code are
now asserted to be the same set, so neither can grow without the other.DV_ORDERED heir states normal_status, and the rule is checked
rather than remembered. DV_COUNT's inherited-attribute row was
lossless/lossless while its note asserted that normal_status "follows
the same pattern as DV_QUANTITY" — a pattern that is lossless outbound and
lossy inbound, because openEHR's required binding to normal_statuses
is narrower than FHIR's extensible binding on Observation.interpretation.
It is the last of four types to be corrected, and it is corrected the same
way: normal_status is a row of its own, carrying that drop, its own
Observation.interpretation citation, and the open maturity the three
siblings already carry. Two further claims that lived only in prose are now
data: a reference-range row declares the sibling attribute it also covers,
and a row whose verdicts genuinely differ from its siblings' records why.
Three checks derived from the ledger enforce the class of rule rather than the
four sites: every heir of a class states every attribute the class declares;
one inherited attribute carries one verdict pair unless a reason is recorded;
and no row names in prose an attribute its own mapping leaves uncovered.Inline rendering and regression protection
reference\render\html.ts preserves nested emphasis and strong spans,
adjoining boundaries, and literal code and link destinations without
expanding the supported Markdown subset.reference\test\render.test.ts detects escaped pipes inside generated code
with the same assertion used on registered output, while preserving both
complete Notes-cell baselines and all eight existing six-column alternative
rows. Current managed output and mapping claims remain unchanged.reference\render\html.ts retains complete nested-child precedence and
non-consuming recovery when a sibling or enclosing span cannot close.reference\test\render.test.ts covers six bounded compositions, including
shared closers, alternating ancestors, code and link labels; existing
generated-cell baselines and guards are unchanged.Separate reference implementation ownership
reference/ and converter-site/ workspaces and the
guide-owned converter deployment workflow; their implementation, ledger,
fixtures, renderer, checks, and deployment belong to the
separate RI repository.reference-implementation.html, downloads.html, and editor/contributor
guidance now direct readers to the RI's source, operational documentation,
and browser converter. The retained explanation distinguishes guide and RI
revisions rather than promising automatic synchronization.reference-implementation.html now names only the displayed guide version
and independent RI source commit, and points to the browser-converter
documentation for the separate compatible-guide revision. A matching
guide version alone does not establish revision parity.FHIR-side review
DV_QUANTITY ↔ Money / MoneyQuantity is reviewed from the FHIR side and
states every DV_QUANTITY attribute. It had three rows; eight attributes
were silently absent, and the reference converter dropped them without
reporting it.
mapping-quantity.html: precision maps to quantity-precision on
Money.value, and units_display_name to rendered-value on
Money.currency — both extensions declare those primitive types among
their contexts — lossless in both directions.magnitude_status, accuracy (with accuracy_is_percent),
normal_range, other_reference_ranges, and normal_status are
unmapped with a recorded divergence: Money has no comparator,
quantity-accuracy's contexts do not admit it, and R5
Observation.value[x] does not admit Money. Each row points to
MoneyQuantity, which carries them as DV_QUANTITY ↔ Quantity does.units_system is now lossless: the ISO 4217 system is entailed by
Money.currency's required binding. A new
units_system[not-iso-4217] sub-case states that a DV_QUANTITY in any
other system — including an absent one, which openEHR reads as UCUM —
produces no Money, rather than a currency that breaks the binding.MoneyQuantity is cited and its mtqy-1 constraint stated. The prose now
says MoneyQuantity, not Money, carries system = urn:iso:std:iso:4217,
and that Money reaches the same code system through its binding.gaps.html lists the new unmapped rows; open-items.html records the
review and its note.DV_QUANTITY ↔ SimpleQuantity is reviewed from the FHIR side and states
every DV_QUANTITY attribute. Its prose claimed every field but
magnitude_status maps as DV_QUANTITY ↔ Quantity does; the reference
converter in fact dropped precision and accuracy in both directions
without reporting it, and the reference-range attributes have no home.
mapping-quantity.html: rows for units, units_system,
units_display_name, precision (quantity-precision), and accuracy
(quantity-accuracy), all as for Quantity, plus the same
accuracy_is_percent[percent-unit] sub-case.normal_range, other_reference_ranges, and normal_status are
unmapped with a recorded divergence: R5 types Observation.value[x] as
Quantity, and no element typed SimpleQuantity is an Observation
value.magnitude_status of = (the point value) is no longer reported as a
modelling error, and the row now says a bound is reported rather than —
as it wrongly said — refused. The mapping's maturity is now open,
because the accuracy rows are, as they are for Quantity.Range bounds share the reverse converter and still drop both
extensions; that is recorded for DV_INTERVAL ↔ Range.null_flavour ↔ data-absent-reason is reviewed from the FHIR side.
mapping-coded.html: the inbound code note claimed that L2
data-absent-reason codes inherit their L1 parent's mapping. THO's
hierarchy gives only unknown and error children, so the assignments
are now stated as the working group's semantic choices. Several disagree
with THO — asked-declined, not-a-number and the two infinities,
not-permitted, unsupported — and are kept pending a re-review now
recorded on open-items.html.iso21090-nullFlavor row follows every other FHIR-origin row: no
openEHR attribute maps to it, and inbound it is unmapped rather than
lossy, because the reference converter never read it. It is reported
only when an instance carries one, so a 253 ↔ unknown conversion is no
longer reported as lossy.text takes the openEHR rubric of the assigned code.Integer ↔ integer is reviewed from the FHIR side.
mapping-numeric.html: the row now names unsignedInt and positiveInt —
integer restricted to 0.. and 1.. — as targets, and new
Integer[negative] and Integer[non-positive] sub-cases state that a
value below those ranges has no form in an element of either type. Both
are archetype scope, because the element decides its type. The
summary's aggregate verdict is therefore lossy, as it is for every
mapping with an unmapped sub-case.#_integer_class states none.Integer64 ↔ integer64 is reviewed from the FHIR side.
integer64 JSON String but refused
any value beyond 32 bits, which integer64 carries — a 4 GB
Attachment.size, for one. It now carries the full 64-bit range, and the
beyond-32-bit example pairs in both directions.mapping-numeric.html: Integer64[overflow] is now archetype scope,
because only an element typed integer imposes the 32-bit limit, and it
names valueInteger64 as the value an over-range extension can take. The
"rare in practice" claim now names the R5 elements typed integer64 and
the open value[x] elements that admit it. The 64-bit width cites the
Foundation Types cross-reference.Real / Double ↔ decimal is reviewed from the FHIR side.
mapping-numeric.html: the inbound drop now also names the digits a
32-bit Real or 64-bit Double cannot hold, since a decimal carries
up to 18. A new Real[non-finite] sub-case states that FHIR allows no
INF, -INF, or NaN in a decimal, and names the data-absent-reason
codes FHIR provides for them; it is archetype scope, because that
extension sits on the element. The summary's aggregate outbound verdict is
therefore lossy. The widths cite the Foundation Types cross-reference.null, reported
lossless; it now refuses one and reports the sub-case.DV_URI / DV_EHR_URI ↔ uri / url is reviewed from the FHIR side.
mapping-reference.html: a new DV_URI.value[plain-text] sub-case states
that an openEHR plain-text URI — which the RM allows to contain characters
RFC 3986 forbids — is percent-encoded into a valid FHIR uri, and reads
back encoded. The reference converter had passed one through as an invalid
uri, reported lossless.oid, uuid, and canonical are now targets in their own right, with
their forms stated, and new archetype-scope [not-oid] and [not-uuid]
sub-cases cover values in neither form.DV_EHR_URI maps to an opaque uri, lossless both ways; resolving it to
a Reference is LINK.target's, on LINK ↔ Reference. The converter had
reported every ordinary URI read back as losing an ehr: reference.ehr: worked example is now syntax-conformant (ehr:/ehr_id).LINK ↔ Reference / CodeableReference is reviewed from the FHIR side.
mapping-reference.html: R5 defines Reference.reference as the location
of "the other resource", which an ehr: URI is not. LINK.target now maps
to Reference.identifier, with the system urn:ietf:rfc:3986 that R5
requires of a URI identifier, until the target is resolved to the FHIR
resource it was converted to; Reference.reference is the home after that,
with targetElement or targetPath for a sub-element. The outbound verdict
is therefore lossless. A new row records that Reference.type cannot be
derived from a LINK.Reference.identifier instead of the
unresolvable ehr: URI in Reference.reference.DV_DURATION ↔ Duration is reviewed from the FHIR side and states the
attributes DV_DURATION inherits. cross-cutting.html already said
DV_DURATION follows the DV_AMOUNT pattern; the ledger stated none of it,
and the reference converter dropped a comparator and an accuracy unreported.
mapping-temporal.html: magnitude_status ↔ Duration.comparator, with
the same [~] gap and the same comparator = ad gap as Quantity;
accuracy and accuracy_is_percent ↔ quantity-accuracy, whose context
Quantity a Duration is, without Quantity's %-unit ambiguity,
because a duration's unit is never %; and the reference-range attributes
↔ Observation.referenceRange and Observation.interpretation, at
archetype scope.DV_DURATION.value[designator] ↔
Duration.code, lossless. The millisecond gap names both the magnitude
and the unit.a and mo are fixed Julian
lengths while ISO Y and M are calendar units.DV_MULTIMEDIA ↔ Attachment is reviewed from the FHIR side.
mapping-other.html: R5 defines Attachment.hash as SHA-1, and the
reference converter had written a SHA-256 hash into it. A hash computed
with any other algorithm now travels, with its algorithm, in the core
alternate-hash extension, published in the Extensions Registry 5.3.0 as
the outcome of FHIR-55422, whose integrity-check-algorithms code system
holds exactly openEHR's seven algorithms; integrity_check_algorithm is
therefore lossless. A hash whose algorithm is not stated, and an
Attachment with both a SHA-1 hash and an alternate-hash, are new
sub-cases.charset is carried as contentType's charset parameter, which R5 says
contentType includes, and split back out of an incoming one; the row is
lossless. cross-cutting.html says so.DV_MULTIMEDIA.uri is percent-encoded into a valid url, as
for DV_URI.open-items.html: FHIR-55422 is now recorded as published.DV_PARSABLE ↔ string is reviewed from the FHIR side. The formalism
gap and the one-directional verdict stand.
mapping-other.html: a new DV_PARSABLE.value[empty] sub-case states that
an empty value, which the RM allows "in some syntaxes", has no FHIR
string form; the reference converter had emitted an empty string.DV_PARSABLE now states the language and charset it inherits from
DV_ENCAPSULATED: language travels in the language extension, as for
DV_TEXT, and charset is not carried, because a FHIR string is always
UTF-8. Both record why they differ from DV_MULTIMEDIA. The
DV_MULTIMEDIA language row now names its path on DV_MULTIMEDIA, so the
inherited-attribute check covers both heirs.open-items.html records two partial routes for the
formalism: a Coding whose system names the syntax, and an Attachment
whose contentType does.DV_CODED_TEXT's defining code is now declared as
carried only by order. R5 says the "ordering of codings is undefined and
SHALL NOT be used to infer meaning".
mapping-coded.html: a new DV_CODED_TEXT.defining_code[with-mappings]
sub-case, open, is lossy both ways. Outbound, once mappings add
codings, the defining code is marked only by coming first, because
userSelected would claim that a user chose it. Inbound, where not exactly
one coding is marked userSelected, the first coding is taken and the
choice is reported. The "Choosing the defining code" prose says the same.mapping-other.html: DV_STATE.value now declares the drops it inherits
from DV_CODED_TEXT ↔ CodeableConcept in both directions, including the
mapping drops it had left undeclared outbound, so it is lossy outbound
rather than lossless.gaps.html lists the new lossy rows in its generated summaries.open-items.html: HTA-170 is recorded as mis-filed, because
coding-purpose is FHIR-I's code system in the Extensions Registry, and
this guide now recommends keeping it rather than withdrawing it.DV_MULTIMEDIA data is decompressed during conversion.
FHIR-56003 is still in discussion, and Attachment cannot say its data is
compressed, so copying compressed bytes under the content's own media type let
contentType misdescribe them — R5 defines it as what lets a method be chosen
to interpret the data.
mapping-other.html: inline data compressed with gzip, zlib, or
deflate is decompressed, and new sub-cases declare what that costs. The
compressed form is not carried. A stated size that is not the content's is
replaced by the content's. An integrity check, and its algorithm, are not
carried, because openEHR does not say which bytes the check covers. Content
compressed with compress or other, data that does not decompress, and
content held by reference are refused rather than copied. The page prose
says the same.gaps.html lists the new rows in its generated summaries, and
open-items.html records FHIR-56003 as in discussion and notes that
decompression does not remove the need for the field entirely.pk_fraction or pk_integer_fraction now carries its rendering in
rendered-value. FHIR-56001 has extended rendered-value to Ratio in
the Extensions Registry's source. The context is 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.
mapping-quantity.html: a new DV_PROPORTION.type[fraction] sub-case is
lossy outbound. The rendering is carried — 1/2, or 1 1/2 for an
integer fraction whose numerator exceeds its denominator — but the kind is
not. It is unmapped inbound, because the two kinds render alike when the
numerator does not exceed the denominator. The DV_PROPORTION.type row no
longer says the fraction kinds have no FHIR home.gaps.html lists the new row, and open-items.html records FHIR-56001 as
applied in source and awaiting publication.DV_MULTIMEDIA.thumbnail now travels in attachment-thumbnail.
FHIR-56002 has added the extension, whose value is itself an Attachment,
to the Extensions Registry's source. It is not yet in a published
release: 5.3.0 does not define it, so a validator using 5.3.0 rejects these
instances until the next release.
mapping-other.html: the thumbnail row is now lossless both ways, and a
thumbnail converts through the same mapping as its parent, with its own
drops reported alongside.attachment-isThumbnail, which FHIR-56002 added alongside, has no openEHR
counterpart. The page prose no longer says the thumbnail has no home.gaps.html lists the new rows, and open-items.html records FHIR-56002 as
applied in source and awaiting publication, with documentreference-thumbnail
retired.Compatible, Non-Substantive
Gaps and Open Items ownership
gaps.html and
open-items.html carry no managed region. Their nine tables — the gap
summary, the four gap inventories, reviewer coverage, and the three register
tables — keep their rows, text, and HTML presentation exactly, and are
maintained by hand from now on, so a contributor changes them with an
ordinary edit and no RI checkout. The seven region ids summary:gaps,
gaps:openehr-to-fhir, gaps:fhir-to-openehr, gaps:fhir-no-counterpart,
gaps:not-discussed, review-coverage, and open-items are retired, and the
external RI no longer holds the register, the two gap-inventory
pseudo-mappings, or reviewer coverage.
mapping.html: the Mapping Summary no longer lists FHIR features with no
openEHR counterpart and openEHR constructs not yet discussed. They are
inventories rather than mappings, and What is not mapped already links
Gaps.conventions.html now states the gap sync and register sync
duties that take their place.conventions.html (Citations, A note for editors),
reference-implementation.html (How the guide relates to it, A caveat
on citations), gaps.html, open-items.html, and mapping.html (Where
the tables come from) now say which tables are generated and what the RI
checks. The RelativeTime citation exception is stated on Gaps.Reviewer coverage
The review-coverage table on open-items.html gains a Notes column. It
records, per side, what a review checked a mapping against and anything it
left open, so a ✓ carries its evidence and an unchecked side can say why.
The notes are authored with each mapping's reviewer list in the RI ledger and
rendered into the existing review-coverage region. No mapping, verdict,
fidelity, citation, maturity, scope, reviewer, region id, or conformance verb
changed — only the table gained a column.
DV_BOOLEAN ↔ boolean is reviewed from the FHIR side. No fidelity or
citation changed. mapping-boolean.html: the note's link to the null-flavour
mapping now targets its table, and the row is open pending the openEHR-side
review only.
DV_PARAGRAPH ↔ markdown / string is reviewed from the FHIR side, which
checks the two candidate targets rather than a mapping, because none has been
discussed. mapping-textual.html: the openEHR side now cites the
DV_PARAGRAPH class rather than the Text package overview, the sources add
FHIR string, and the note quotes the Reference Model's deprecation and its
replacement, markdown-formatted DV_TEXT. open-items.html records a
proposal to map through that replacement; nothing is adopted, and the
mapping stays not discussed.
Time specifications ↔ Timing is reviewed from the FHIR side, which
checks the candidate target rather than a mapping. mapping-temporal.html:
the reasons no longer say nobody has examined how the two relate — R5's own
RIM mappings give Timing as v3 GTS and Timing.repeat as PIVL or EIVL,
the types the openEHR classes are based on, and Timing.code accepts the v3
GTSAbbreviation codes. The note names the parser any mapping needs and the
archetype-level scheduling deferred on DV_DURATION ↔ Duration.
open-items.html records a proposal to map through the shared v3 basis;
nothing is adopted, and the mapping stays not discussed.
DV_STATE ↔ CodeableConcept is reviewed from the FHIR side. No fidelity
or citation changed: FHIR has no data type for a state-machine value, as the
rows say. mapping-other.html: the note records that a code from openEHR's
own terminology reaches Coding.system as the bare openehr, which R5 does
not accept as a system, and open-items.html records openEHR's newly
published per-vocabulary FHIR CodeSystems as the answer, for the working
group to adopt.
The inventory of FHIR features with no openEHR counterpart is reviewed
from the FHIR side. Every entry is a real R5 feature (or, for the R6-era
RelativeTime, a stated absence from R5). gaps.html: an example that no
longer appears in the inventory, Duration.code, is replaced by
Reference.type, and the page now states that FHIR's metadata types and the
special types ElementDefinition, Extension, MarketingStatus, and
ProductShelfLife are out of scope, naming Dosage as the deferred
scheduling problem. Two R5 facts the check turned up are recorded where they
apply: on mapping-temporal.html, a new archetype-scope
DV_DURATION.value[not-positive-age] sub-case states that R5 Age requires
a positive value, so openEHR's own -P3M age example has no Age form; and
on open-items.html, R5 Expression — the structural twin of DV_PARSABLE
— is added as a third partial route for the formalism.
The inventory of openEHR constructs not yet discussed is reviewed from the
FHIR side, which completes FHIR-side coverage: every mapping now has a
FHIR-side review. Each entry still asserts no FHIR target, and the review
note lists the R5 candidates the working group can examine without adopting
any of them. gaps.html: EVENT<T> now cites the EVENT class rather than
HISTORY. mapping-other.html: the coverage paragraph no longer says
several types were never reviewed from the FHIR side; it names
DV_MULTIMEDIA and DV_PARSABLE as reviewed from the FHIR side only.
FHIR-side actions
FHIR-56000 is recorded as applied in R6. open-items.html: ~
Approximately is in the published R6 drafts 6.0.0-ballot5 and
6.0.0-snapshot1, so the item is no longer "not applied". mapping-quantity.html
and mapping-temporal.html, and their rows on gaps.html: the
magnitude_status[~] rows now quote R6's own
guidance — a recommended, not default, 10% approximation, and a SHOULD to use
the quantity-confidenceInterval extension — and say why that extension,
though published for R5, is not used to carry ~: it needs a confidence level
and interval bounds that ~ does not state. No verdict changed; both rows stay
unmapped in R5.
FHIR-55422 records that R6 keeps SHA-1. open-items.html: the R6 drafts
still define Attachment.hash as SHA-1, so the published alternate-hash
extension remains the route for any other algorithm in R6 as well.
Page branding
input/images/, and the
header that places it is input/includes/fragment-header.html — a copy of
the HL7 template's own fragment-header.html with a single #project-nav
block added, because a file in input/includes/ replaces the template
fragment of the same name rather than extending it. That makes the header a
fork that must be re-synced by hand when the template changes upstream, which
AGENTS.md now records as an invariant. The logo is reproduced from
openEHR's own published brand assets and links to openehr.org; it
identifies the standard this guide maps and implies no endorsement. No
page, mapping, verdict, fidelity, citation, maturity, scope, region id, or
conformance verb changed — only the header markup did.The hosted browser converter
A hosted converter runs this guide's own converters in the reader's
browser. It lives beside the guide rather than inside it, in a
converter-site/ workspace built by esbuild and deployed to GitHub Pages by
the repository's first GitHub Actions workflow, and it imports the mapping
ledger through a single browser-safe facade. Nothing you paste into it leaves
your browser: there is no backend, no telemetry, and no network call after the
page loads. The footer names the guide version and the source commit the
bundle was built from, so a stale deployment is visible rather than silent,
and the published worked examples load into it as starting points because they
are the same fixture files this guide publishes. Neither SUSHI nor the IG
Publisher reads the new workspace.
reference-implementation.html and downloads.html link to it. The
reference-implementation page gains a Try it in your browser section stating
what the tool runs, where what you paste goes, what the footer tells you, and
that the published examples load into it; its Not a CLI, and not a service
bullet now points at that section, because a static page in your own browser
is neither. The downloads page gains one sentence framing the tool as a
convenience rather than a package download.
Mapping tables and their rows now carry stable id anchors. Every
generated field table is emitted with id="mapping-<mapping-id>" and every
row with id="row-<mapping-id>--<row-id>", and every summary, gap-inventory
and review-coverage link into a mapping now carries the matching fragment, so
a link can point at the row it is about rather than at the page it is on. The
category pages, category labels and anchor ids have one declaration, which the
renderer and the converter both read. No verdict, fidelity, citation,
maturity, scope, owner, region id, mapping, or conformance verb changed —
only the anchors and the link targets did.
Published table rendering
Narrative tables have consistent grid presentation and intact direction
headers. All hand-authored and ledger-generated tables use the grid
class, with named, keyboard-focusable wrappers for table-local horizontal
scrolling. The complete → openEHR header stays on one line; ordinary
headers, descriptions, and other body content remain free to wrap.
The renderer preserves the presentation through content refreshes, and the
editor note documents the authored-table pattern. Table wording, values,
links, citations, order, and mapping meaning are unchanged.
The guide's generated tables are emitted as HTML, and now publish as
tables. The ledger renderer produced markdown pipe tables, which the
publisher's converter would neither start nor end adjacent to a managed
region's HTML comment, so most of them reached readers as their own source
text. Region bodies are now separated from both sentinels by a blank line, and
every table the ledger owns is final HTML produced by one serializer. That
serializer also fixes two escaping defects the old context-blind cell escaper
had: parameterised type names such as DV_INTERVAL<T> and EVENT<T> were
parsed as HTML tags and lost their links, and alternative-type separators such
as Range | Period | Quantity published a stray backslash. The same pipe
defect is corrected in the one hand-authored table that carried it, on
cross-cutting.html. No mapping fact, fidelity verdict, citation, maturity,
scope, region id, or conformance verb changed — only the markup did.
Review remediation, fourth pass
DV_CODED_TEXT.mappings and the DV_CODED_TEXT ↔ CodeableConcept
note carried page-relative fragments — #term-mapping and #code-phrase —
that the guide publishes no anchor for, and the first of them publishes onto
two different pages, where a page-relative fragment could not have been right
on both. All four now name the page and the anchor the renderer emits, built
from the one module that owns them. No verdict, fidelity, citation,
maturity, scope, region id, mapping, or conformance verb changed — only the
link targets did.Review remediation, third pass
reference/README.md and reference-implementation.html described citation
resolution as the single mirror-gated check. A second one now exists, and it
needs the openEHR mirror alone. No verdict, no conformance verb, and no
mapping changed.
Review remediation, second pass
mapping.md's round-trip claim carries the scoping rules. The guide's
most-read page still said "a lossless claim is one that round-trips in a
test" without them. It now refers to the single canonical statement on
conventions.html rather than repeating it, so there is one place to keep
true.
conventions.html
and reference-implementation.html stated an unqualified claim — every
fidelity verdict is a machine-checked property — while the harness has always
had two scoping rules. Both are now stated where the claim is made, together
with the fact that citation resolution is conditional on the specification
mirrors being configured. No verdict, no conformance verb, and no mapping
changed: this is the wording catching up with what the tests do.