Skip to main content
The field tables on the resource group pages list a type for every field, such as CodeableConcept or Quantity. This page describes each of those types once, with its fields and an example. For an introduction to the ideas behind them, read FHIR basics. All types follow the FHIR R4 datatypes. The endpoint leaves out every field that has no value.

Primitive types

Primitive types hold a single value. Each type links to its R4 definition. Fields ending in DateTime, such as onsetDateTime, use dateTime. Fields ending in String, such as onsetString, use string. See choice fields.

Coding

A Coding is one code from one code system. See the R4 definition of Coding.
The code systems you meet in a response: Encounter class is the only field that holds a bare Coding. Everywhere else, a Coding sits inside a CodeableConcept.

CodeableConcept

A CodeableConcept is a coded value: one or more Codings that mean the same thing, plus a text label. See the R4 definition of CodeableConcept.
A text-only CodeableConcept holds something the endpoint does not code, such as the reason for a procedure.

Identifier

An Identifier is a business ID for a resource, such as a patient number. See the R4 definition of Identifier. Patient and Encounter carry identifier as a list with one Identifier:

Reference

A Reference points from one resource to another, or names someone the note mentions. See the R4 definition of Reference.

Quantity

A Quantity is a number with a unit. See the R4 definition of Quantity.
FamilyMemberHistory uses a Quantity in onsetAge, for the age at which a relative got a condition.

Ratio

A Ratio is one Quantity divided by another, such as a titer of “1:64”. See the R4 definition of Ratio.

Range

A Range is a span between two Quantities, such as “in her 50s”. See the R4 definition of Range.

Period

A Period is a span between two points in time. See the R4 definition of Period.

Annotation

An Annotation is a free-text note. The note field on every clinical resource is a list of Annotations. See the R4 definition of Annotation.

Extension

An Extension adds data that FHIR R4 has no field for. Systems that do not know an extension ignore it. See Extensibility in the R4 specification. A resource can carry two kinds of Corti extensions in its extension list. Patient and Encounter carry only mentions.

Mention

A mention links one field of the resource to the words in the note that support it. The Mention extension page has the full definition.

Alternative

An alternative lists up to 10 other codes that could also fit a field. The Alternative extension page has the full definition.
Every value points back to the note shows how to use both extensions.

Next steps

Condition resource group

See these datatypes in use on a Condition.

FHIR basics

Learn the ideas behind resources, codes, and Bundles.