Field Notes

US Core 7.0.0 Patient: Must Support Elements, with a C# Example

Applies to: FHIR R4 · US Core 7.0.0 (STU7) · Firely .NET SDK 5.x (Hl7.Fhir.R4) · .NET 8. Last reviewed November 2026.

This page lists every element that the US Core 7.0.0 Patient profile flags as Must Support, with its cardinality and binding. The table was generated from the profile’s published StructureDefinition (JSON), not typed by hand. Below it is a C# example you can run.

What Must Support means here

In US Core, Must Support sets obligations on both sides. US Core Responders SHALL be capable of populating these elements. US Core Requestors SHALL be capable of processing resources that contain them without generating an error. The exact wording, including how to handle missing data, is on the US Core Must Support page.

Must Support elements (US Core 7.0.0 Patient)

Element Card. Binding Notes
Patient.identifier 1..* — —
Patient.identifier.system 1..1 — —
Patient.identifier.value 1..1 — —
Patient.name 1..* — Invariant us-core-6: given and/or family, or a Data Absent Reason extension
Patient.name.family 0..1 — —
Patient.name.given 0..* — —
Patient.telecom.system 1..1 required: ContactPointSystem Only if telecom is sent
Patient.telecom.value 1..1 — —
Patient.telecom.use 0..1 required: ContactPointUse —
Patient.gender 1..1 required: AdministrativeGender —
Patient.birthDate 0..1 — —
Patient.address 0..* — —
Patient.address.line 0..* — —
Patient.address.city 0..1 — —
Patient.address.state 0..1 extensible: USPS Two Letter Alphabetic Codes —
Patient.address.postalCode 0..1 — —
Patient.communication.language 1..1 extensible: Language codes with language and optionally a region modifier Only if communication is sent

Source: US Core Patient Profile, STU7. Cardinalities shown are from the profile snapshot.

Not Must Support, but listed as additional USCDI requirements

US Core 7.0.0 separately marks some elements as Additional USCDI Requirements. The Must Support page says that implementers seeking ONC certification SHALL treat them as Must Support. For everyone else they are optional:

  • Extensions: us-core-race, us-core-ethnicity, us-core-tribal-affiliation, us-core-sex, us-core-genderIdentity
  • name.use, name.suffix, name.period, telecom, deceased[x], address.use, address.period, communication

The race extension also carries invariant us-core-23: if “ASKU” or “UNK” is present, no other OMB race category can be present.

Three pitfalls

  1. Must Support does not mean required. birthDate is 0..1. Do not invent a value when you lack one. Required means a minimum cardinality of 1, as with identifier, name and gender.
  2. Child elements can be required inside optional parents. telecom is optional. If you send one, telecom.system and telecom.value are both 1..1.
  3. A name needs content or a reason. Under us-core-6, a name with neither given nor family must carry a Data Absent Reason extension.

C# example (Firely .NET SDK)

This builds a synthetic Patient that populates every Must Support element above and prints the JSON:

using Hl7.Fhir.Model;
using Hl7.Fhir.Serialization;

// Synthetic data only. Tested with Hl7.Fhir.R4 5.11.4 on .NET 8.
var patient = new Patient
{
    Meta = new Meta { Profile = new[] { "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" } },
    Identifier = { new Identifier("http://hospital.example.org/mrn", "SYN-0001") },
    Name = { new HumanName { Family = "Example", Given = new[] { "Alex" } } },
    Gender = AdministrativeGender.Unknown,
    BirthDate = "1980-01-01",
    Telecom =
    {
        new ContactPoint(ContactPoint.ContactPointSystem.Email, ContactPoint.ContactPointUse.Home, "[email protected]")
    },
    Address =
    {
        new Address { Line = new[] { "123 Main St" }, City = "Columbus", State = "OH", PostalCode = "43004" }
    },
    Communication =
    {
        new Patient.CommunicationComponent { Language = new CodeableConcept("urn:ietf:bcp:47", "en") }
    }
};

Console.WriteLine(patient.ToJson(new FhirJsonSerializationSettings { Pretty = true }));

Serializing is not the same as validating. To check the result against the profile, run it through a validator loaded with the US Core 7.0.0 package. Part 3 of the .NET FHIR series shows a validator setup in C#. Conformance vs. compliance explains what a clean validation result does and does not prove.

Free: the FHIR Conformance Checklist (PDF) — 12 pitfalls between “valid FHIR” and passing US Core and Inferno testing. Subscribers get both checklists and a short note when I publish something new.

Notes on healthcare interoperability and AI, plus occasional updates on new tools and resources I make. No spam. Unsubscribe anytime.

Comments

Leave a message

Your email address will not be published. Required fields are marked *

Messages are reviewed before they appear. Please keep it professional — no PHI, no sales pitches.