Skip to content

AI Infrastructure

Four FHIR Coding Rows Can Still Describe Only Two Coded Resources

Four flattened Coding rows can describe two Observation resources with two code representations each. A third resource whose selected CodeableConcept contains only text contributes no Coding row. To assess a FHIR-derived AI input, reconcile the requested resource identities with their fields, coding entries and retained text. Code strings and display labels alone cannot establish either resource coverage or code meaning across namespaces and versions.

Technical contentPublished Updated

01

Follow the resource to its coded field before counting rows

A buyer requesting an AI input that accounts for three Observation resources needs a way to find each of those resources in the delivered material. A file containing four code rows might cover all three, only two or a different set. Its row count cannot answer that question.

In FHIR R4, Observation.code describes what was observed and has cardinality 1..1. Its type is CodeableConcept, whose coding child has cardinality 0..*: one required field does not mean one required Coding entry. CodeableConcept.text can carry the intended concept in human language.

Keep the field path beside the resource identity. Observation.code describes a different role from a coded result in Observation.valueCodeableConcept or a component's code. The Observation definition requires the relevant code/value and component pairs to be considered together when interpreting an observation. Counting selected code fields therefore establishes neither complete resource content nor usable clinical results.

This explanation uses the permanent HL7 FHIR R4 v4.0.1 pages, checked October 21, 2026. It compares an input deliverable with its requested resource population.

References: [O1] [D1]

02

Read the code with its system and applicable version

Coding.system identifies the terminology that defines Coding.code. Coding.display is its human-facing label. Coding.version identifies the code-system business version used when selecting the code; it is separate from the FHIR resource's meta.versionId. These children are optional in the base datatype.

R4 states that matching system, version and code gives matching coding meaning. Missing version information or differing elements require the terminology definitions and available mappings to establish the relationship. Version can be unnecessary where the terminology guarantees consistent meanings across releases. A missing system requires context that safely establishes it; a guessed default supplies no such evidence.

For an export comparison, retain the supplied namespace and version rather than replacing them with a familiar label. Two identical labels can conceal different definitions. Conversely, two different representation keys need not describe unrelated concepts. Their relationship needs evidence beyond string equality.

References: [D1] [H1]

03

Multiple codings can represent one concept

A CodeableConcept can carry several representations of its concept, including translations with different granularity. Their coexistence does not establish exact equivalence between the underlying codes. Coding order has no defined meaning, so taking the first entry requires an additional application rule.

Text-only representation is permitted when no appropriate code is available and the implementation allows it. Applicable resource or profile bindings can constrain that permission. An export limited to Coding entries therefore needs an explicit account of permitted text-only fields.

These distinctions make two questions necessary: which source resources does the return cover, and what do its retained representations mean? Resolving either question alone leaves the other open.

References: [H1] [D1]

04

FHIR-CODING-34: three resources, two representation pairs

Consider fictional case FHIR-CODING-34. O1, O2 and O3 are stipulated distinct Observation resource identities within one fixed server context. The example shows only their selected Observation.code fields. The labels are shorthand for those identities, not business identifiers, patient identifiers or complete resource payloads.

O1 and O2 each contain the same two supplied Coding entries. The invented local-a system at version 1 assigns X7, displayed as Signal, a narrower classification within supplied concept C. The invented reference-b system at version 2 also uses X7 and Signal, but supplies a broader classification of C. The dictionaries and this relationship are explanatory premises; no real terminology mapping is being asserted.

O1's field text is: Supplied concept C, with the stated narrower/broader representation relationship. O2's field text is: Supplied concept C, same representation pair for a different resource identity.

O3 contains no Coding entries. Its field text is: A separate supplied concept lacking a suitable code in this fictional allowed context. Stipulate that the applicable fictional profile permits this text-only case.

The buyer requests an accounting of all three resources and their selected code fields. Expanding only the two nonempty coding collections produces exactly the four rows below. No patient data, clinical values or observed server results enter this example.

FHIR-CODING-34: all four rows produced by expanding the selected Coding entries
ResourceFieldsystemversioncodedisplaySource
O1Observation.codehttps://example.org/codes/local-a1X7SignalPlanning analysis
O1Observation.codehttps://example.org/codes/reference-b2X7SignalPlanning analysis
O2Observation.codehttps://example.org/codes/local-a1X7SignalPlanning analysis
O2Observation.codehttps://example.org/codes/reference-b2X7SignalPlanning analysis

Original fictional field projection. O3 has no Coding entry to expand and therefore no row in this coding-only return. Table order expresses no coding preference.

05

Four rows, two representation keys and three resources count different things

O1 contributes two rows and O2 contributes two: 2 + 2 = 4 Coding occurrences. O3 contributes zero. Counting distinct resource identities in this return yields two, while the request names three. The row expansion has increased the number of rows and omitted one requested resource at the same time.

Deduplicating by code collapses all four rows to X7. Deduplicating by display likewise leaves Signal. Either operation leaves one string while discarding the distinction between local-a version 1 and reference-b version 2. Their identical spelling supplies no evidence that the narrower and broader definitions are interchangeable.

Deduplicating by the complete supplied system/version/code combination retains two representation keys. Each key occurs under both O1 and O2. If the return discards that occurrence relationship, it still cannot show which resources contributed the keys. Neither the one-string summary nor the two-key summary accounts for O3.

Within the example, local-a/version 1/X7 has the same coding meaning in O1 and O2. That limited equality does not merge their resource identities or establish a shared patient, value, time or clinical event. None of those attributes was supplied. The two reference-b occurrences have the same limitation.

Reversing each resource's two Coding entries changes none of these counts or memberships. Selecting whichever entry happens to come first would merely choose a different representation after that reversal; the example supplies no rule that authorizes either choice.

References: [H1]

06

A useful return keeps all three resource records and their children

For this buyer's request, a reconciled return could retain one parent record for each requested resource and its selected field, with the Coding entries attached as children. A separate child relation can work too, provided the resource and field correspondence survives.

The O1 parent retains its supplied concept text and links to both its local-a/version 1/X7 and reference-b/version 2/X7 children. The O2 parent retains its own supplied text and its own two child occurrences, even though their representation keys repeat O1's. The O3 parent retains its supplied text and records that the selected field has no Coding entries.

This return accounts for three parent resources, three selected CodeableConcept fields and four Coding occurrences. Two fields have codings; one is text-only. It can also report two distinct supplied representation keys without confusing that vocabulary count with resource coverage. A child count of zero for O3 is an explicit property of its retained field, rather than an unexplained absence from the delivery.

If the consumer requires one row per resource, the provider must explain how both representations and the text survive in that row or its associated structure. If it instead requires one row per Coding occurrence, the four-row export can satisfy that narrower population while a companion resource accounting preserves O3. Adding a fictional Coding to O3 merely to fill a row would change the supplied content.

Resource accounting still leaves the consumer's handling of O3 to be agreed. The application may support the supplied text, require terminology review or retain an unresolved input. This example provides no rule for converting that text into a code or choosing one of O1's representations.

07

Ask the provider to demonstrate coverage and interpretation separately

An offer described as four coded observations overstates FHIR-CODING-34 if it means four distinct Observation resources. An offer described as four Coding occurrences drawn from O1 and O2 accurately identifies its selected population. It still needs to account for O3 against the buyer's three-resource request.

Ask the appointed integration owner to trace each requested identity into the return, including text-only fields. Ask the terminology owner to identify the definitions and mapping evidence used when representations are combined or selected. The supplied local-a/reference-b relationship explains this fictional case; it cannot authorize a real mapping.

For this example, a sufficient explanation identifies all three parents, all four child occurrences, the retained text and the consumer's treatment of O3. It also identifies any selection rule rather than letting array order decide. This lets the buyer compare a coding export with a resource-level input without demanding that every useful deliverable have the same row shape.

The related FHIR batch/transaction guide addresses which server changes succeeded. The DICOM input guide addresses image discovery and delivered pixels. Those are separate questions from the relationship between an Observation and its code representations. None of this case's counts establishes a need for more GPU, storage or network capacity.

08

Discuss physical installation when the wider project requires it

If the wider project also needs selected servers, storage or switches installed, Leviathan's Rack-and-Stack & Colocation Installation service provides a route to discuss agreed mounting, IT cabling, labels and physical installation records. Use the related project inquiry with a nonconfidential equipment list, released rack layout, approved connections and site requirements to discuss scope and availability.

FHIR/EHR integration, terminology mapping and clinical validation remain with the appointed software and healthcare providers. The physical service discussion concerns the separate equipment package.

References: [L1]

09Sources

Primary sources

  1. [O1]
    HL7 FHIR R4 v4.0.1: Observation detailed definitionsChecked 2026-10-21. Defines Observation.code, its CodeableConcept type and the code/value context needed for interpretation. Selected code fields do not describe complete resources.
  2. [D1]
    HL7 FHIR R4 v4.0.1: Coding and CodeableConcept detailed definitionsChecked 2026-10-21. Defines terminology fields, code-system business version, repeating coding entries and concept text. Base cardinalities remain subject to applicable constraints.
  3. [H1]
    HL7 FHIR R4 v4.0.1: Coding and CodeableConceptChecked 2026-10-21. Explains coding meaning, translations, granularity, ordering and conditional text-only use. Applies to the named R4 release.
  4. [L1]
    Leviathan Systems: Rack-and-Stack & Colocation InstallationChecked 2026-10-21. Describes agreed equipment mounting, IT cabling, labels and installation records.

Contact

Does the wider project need physical equipment installation?

Share a nonconfidential equipment, rack, site and IT connection outline to discuss physical scope, handoff requirements and availability.