This page is part of the FHIR Specification (v0.06: DSTU 1 Ballot 2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Data Type Formal Definitions 1.3.20

This page provides the formal definitions for the data types

Data Types Concept Map

Attachment 1.3.20.1

Attachment
DefinitionFor referring to data content defined in other formats.
Control1..1
RequirementsMany models need to include data defined in other specifications that is complex and opaque to the healthcare model. This includes documents, media recordings, structured data, etc.
RIM MappingED
Attachment.contentType
DefinitionIdentifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate
Control1..1
Typecode from MimeType
Must Understandtrue
RequirementsProcessors of the data need to be able to tell what the data is
RIM Mapping./mediaType, ./charset
Attachment.data
DefinitionThe actual data of the attachment - a sequence of bytes. In XML, represented using base64
Control0..1
Typebase64Binary
Must Understandtrue
RequirementsThe data needs to able to be transmitted inline
CommentsThe base64-encoded data must be expressed in the same character set as the base resource XML
RIM Mapping./data
To DoShould this be handled by an extension? How common is it?
Attachment.url
DefinitionAn alternative location where the data can be accessed
Control0..1
Typeuri
Must Understandtrue
RequirementsThe data needs to be transmitted by reference
CommentsIf both data and url are provided, the url must point to the same content as the data contains. Urls may be relative references or may be made to transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. If a URL is provided, it must resolve to actual data.
RIM Mapping./reference/literal
To DoSort out relative URL references
Attachment.size
DefinitionThe number of bytes of data that make up this attachment.
Control0..1
Typeinteger
RequirementsRepresenting the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all
CommentsThe number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference
RIM Mapping(needs data type R3 proposal)
Attachment.hash
DefinitionThe calculated hash of the data using SHA-1. Represented using base64
Control0..1
Typebase64Binary
RequirementsIncluded so that applications can verify that the contents of a location have not changed, and also so that a signature of the xml content can implicitly sign the content of an image without having to include the data in the instance or reference the url in the signature
RIM Mapping.integrityCheck[parent::ED/integrityCheckAlgorithm="SHA-1"]
Attachment.title
DefinitionA label or set of text to display in place of the data
Control0..1
Typestring
RequirementsApplications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer.
RIM Mapping./title/data

Identifier 1.3.20.2

Identifier
DefinitionA technical identifier - identifies some entity uniquely and unambiguously
Control1..1
RequirementsNeed to be able to identify things with confidence and be sure that the identification is not subject to misinterpretation
Commentsthe Identifier class is a little looser than II because it allows URIs as well as registered OIDs or GUIDs
RIM MappingII
Identifier.system
DefinitionEstablishes the namespace in which set of possible id values is unique.
Control0..1
Typeuri
Must Understandtrue
RequirementsThere are many sequences of identifiers. To perform matching, we need to know what sequence we're dealing with.
RIM MappingII.root
Identifier.id
DefinitionThe portion of the identifier typically displayed to the user and which is unique within the context of the system.
Control0..1
Typestring
Must Understandtrue
Commentsif the id is actually a full uri, then the system is urn:ietf:rfc:3986
RIM MappingII.extension or II.root if system indicates OID or GUID

Coding 1.3.20.3

Coding
DefinitionA reference to a code defined by a terminology system
Control1..1
RequirementsReferring to codes is a ubiquitous task in healthcare models
CommentsCodes may defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED-CT - see the v3 core principles for more information
RIM MappingCV
Coding.system
DefinitionThe identification of the system that defines the meaning of the symbol in the code. Can be a simple list of enumerations, a list of codes with meanings or all the way to a complex semantic web such as SNOMED-CT, whether classification, terminology, or ontology
Control0..1
Typeuri
Must Understandtrue
RequirementsNeed to be unambiguous about the source of the definition of the symbol
CommentsThe identity is a uri. It may be an OID or a UUID, which must be references to the HL7 OID registry, or a URI which either comes from the list of FHIR defined special URIs, or from some system defined elsewhere, in which case the URI should de-reference to establish the system unambiguously
RIM Mapping./codeSystem
Coding.code
DefinitionA symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system
Control0..1
Typecode
Must Understandtrue
RequirementsNeed to refer to a particular code in the system
RIM Mapping./code
Coding.display
DefinitionA representation of the meaning of the code in the system, following the rules laid out by the system.
Control0..1
Typestring
RequirementsNeed to be able to carry a human readable meaning of the code for readers that do not recognise the system
RIM MappingCV.displayName
To Dolanguage?

CodeableConcept 1.3.20.4

CodeableConcept
DefinitionA concept that may be defined by a formal reference to a terminology or ontology or may be provided by text
Control1..1
RequirementsThis is a common pattern in healthcare - a concept that may be defined by one or more codes from formal definitions including LOINC and SNOMED-CT, and/or defined by the provision of text that captures a human sense of the concept
CommentsNot all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations, and the relationship between elements and pre- and post-coordination
RIM MappingCD
CodeableConcept.coding
DefinitionA reference to a code defined by a terminology system
Control0..*
TypeCoding
Must Understandtrue
RequirementsAllows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.
CommentsCodes may defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED-CT - see the v3 core principles for more information. Ordering of codings is undefined and must not be used to infer meaning.
RIM Mappingunion(., ./translation)
CodeableConcept.text
DefinitionA human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user or concept
Control0..1
Typestring
Must Understandtrue
RequirementsThe codes from the terminologies do not always capture the correct meaning with all the nuances of the human, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source
CommentsVery often the text is the same as a displayName of one of the codings
RIM Mapping./originalText[mediaType/code="text/plain"]/data
CodeableConcept.primary
DefinitionIndicates which of the codes in the codings was chosen by a user, if one was chosen directly
Control0..1
Typeidref
RequirementsWhere a user picks an actual code directly, it is useful to note that this is the primary input. It's also the most appropriate starting point for new translations (unless re-coding directly from 'text').
RIM Mappingspecial("The id assigned to the coding that corresponds to the root code of the CD")

Choice 1.3.20.5

Choice
DefinitionA code taken from a short list of codes that are not defined in a formal code system
Control1..1
RequirementsQuestionnaires and the like - assessment scales. There's no formal terminology underlying them, yet the possible choices affect the interpretation of the code. Because the choice can be quite dynamic, the price of setting up formal infrastructure to carry the choices out of band is expensive
CommentsChoice is generally used for things like pain scales, questionnaires or formally defined assessment indexes. The possible codes may be ordered with some arbitrarily defined scale. Choice does not fit all assessment scales - the more combinatorial the value is, the less likely that Choice will be an appropriate data type
RIM MappingCD
Choice.code
DefinitionThe code or value that the user selected from the list of possible codes
Control0..1
Typecode
Must Understandtrue
CommentsThe "code" might be a numerical choice in a pain scale, for instance, 1 where the choices are 1-5 with associated words for severity of pain
RIM MappingCD.code
Choice.option
DefinitionA list of possible values for the code
Control2..*
Must Understandtrue
RequirementsNeed to know the possible codes the user could have chosen
RIM MappingExpansion of CD.valueSet to list of CDs
Choice.option.code
DefinitionA possible code or value that the user could have chosen
Control1..1
Typecode
Must Understandtrue
RequirementsNeed to know the possible codes the user could have chosen
RIM MappingCD.code
Choice.option.display
DefinitionA set of words associated with the code to give it meaning and displayed to the user
Control0..1
Typestring
RequirementsSometimes the codes have associated words that give it more meaning
CommentsThe code itself may convey sufficient meaning
RIM MappingCD.displayName
Choice.isOrdered
DefinitionWhether the order of the values has an assigned meaning
Control0..1
Typeboolean
Must Understandtrue
RequirementsThe Choice may come from an ordered scale such as a pain scale or a an assessment scale, or it may be just a random set of choices that have no particular order
RIM MappingN/A

Quantity 1.3.20.6

Quantity
DefinitionA measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies
Control1..1
RequirementsNeed to able to capture all sorts of measured values, even if the measured value are not precisely quantified. Values include exact measures such as 3.51g, customary units such as 3 tablets, currencies such as $100.32USD
CommentsThe context of use may frequently define what kind of quantity this is, and therefore what kind of units can be used. The context of use may also restrict the values for status
RIM MappingPQ, IVL<PQ>, MO, CO, depending on the values
Quantity.value
DefinitionThe value of the measured amount. The value includes an implicit precision in the presentation of the value
Control0..1
Typedecimal
Must Understandtrue
RequirementsPrecision is handled implicitly in almost all cases of measurement
CommentsThe implicit precision should always be honored. Currency has its own rules for handling precision
RIM MappingPQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value
Quantity.range
DefinitionHow the value should be understood and represented - whether the actual value is greater or less than the measure due to measurement issues
Control0..1
Typecode from QuantityRange
Must Understandtrue
RequirementsNeed a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.
RIM MappingIVL properties
Quantity.units
DefinitionA human readable form of the units
Control0..1
Typestring
Must Understandtrue
RequirementsThere are lots of representations for the units and in many contexts, particular representations are fixed and required. i.e. mcg for micrograms, and not ug
RIM MappingN/A
Quantity.system
DefinitionThe identification of the system that provides the coded form of the unit
Control0..1
Typeuri
Must Understandtrue
RequirementsNeed to know the system that defines the coded form of the unit
RIM MappingCO.codeSystem, PQ.translation.codeSystem
Quantity.code
DefinitionA computer processable form of the units in some unit representation system
Control0..1
Typecode
Must Understandtrue
RequirementsNeed a computable form of the units that is fixed across all forms. UCUM provides this for quantities, but SNOMED-CT provides many arbitrary units of interest
CommentsThe preferred system is UCUM, but SNOMED-CT can also be used (for customary units), or ISO 4217 for currency. The context of use may additionally require a code from a particular system (Unless the Quantity element has a dataAbsentReason flag)
RIM MappingPQ.code, MO.currency, PQ.translation.code

Range 1.3.20.7

Range
DefinitionA set of ordered Quantities defined by a low and high limit.
Control1..1
RequirementsNeed to be able to specify ranges of values or time periods
CommentsThe stated low and high value are assumed to have arbitrarily high precision when it comes to determining which values are in the range. i.e. 1.99 is not in the range 2 -> 3
RIM MappingIVL<QTY[not(type="TS")]> [lowClosed="true" and highClosed="true"]or URG<QTY[not(type="TS")]>
Range.low
DefinitionThe low limit. The boundary is inclusive.
Control0..1
TypeQuantity
Must Understandtrue
CommentsIf the low element is missing, the meaning is that the low boundary is not known.
RIM Mapping./low
Range.high
DefinitionThe high limit. The boundary is inclusive.
Control0..1
TypeQuantity
Must Understandtrue
CommentsIf the high element is missing, the meaning is that the high boundary is not known.
RIM Mapping./high

Ratio 1.3.20.8

Ratio
DefinitionA ratio of two Quantity values - a numerator and a denominator.
Control1..1
RequirementsNeed to able to capture ratios for some measurements (titers) and some rates (costs)
RIM MappingRTO
Ratio.numerator
DefinitionThe numerator
Control0..1
TypeQuantity
Must Understandtrue
RIM MappingRTO.numerator
Ratio.denominator
DefinitionThe denominator
Control0..1
TypeQuantity
Must Understandtrue
RIM MappingRTO.denominator

Period 1.3.20.9

Period
DefinitionA time period defined by a start and end time.
Control1..1
CommentsNot a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If a duration might be required, specify the type as Interval|Duration
RIM MappingIVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
Period.start
DefinitionThe start of the period. The boundary is inclusive.
Control0..1
TypedateTime
Must Understandtrue
CommentsIf the low element is missing, the meaning is that the low boundary is not known.
RIM Mapping./low
Period.end
DefinitionThe end of the period. If the high is missing, it means that the period is ongoing
Control0..1
TypedateTime
Must Understandtrue
CommentsThe high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03
RIM Mapping./high

HumanId 1.3.20.10

HumanId
DefinitionAn identifier that humans use. This is different from a system identifier because identifiers that humans use are regularly changed or retired due to human intervention and error. Note that a human identifier may be a system identifier on some master system but becomes a human identifier elsewhere due to how it is exchanged between humans. Driver's license numbers are a good example of this. Also, because human mediated identifiers are often invoked as implicit links to external business processes, such identifiers are often associated with multiple different resources.
Control1..1
RequirementsNeed to be able to work with the many vagaries of human identifiers - that is, identifiers that humans use for things, with the attendant uncertainty and correction features
HumanId.use
DefinitionIdentifies the use for this identifier, if known
Control0..1
Typecode from IdentifierUse
RequirementsAllows the appropriate identifier for a particular context of use to be selected from among a set of identifiers
HumanId.label
DefinitionA label for the identifier that can be displayed to a human so they can recognise the identifier
Control0..1
Typestring
RequirementsAllows humans to make use of identifiers when the identifier system is not known
HumanId.identifier
DefinitionThe identifier itself
Control0..1
TypeIdentifier
Must Understandtrue
RequirementsAllows for matching of objects
HumanId.period
DefinitionTime period during which identifier was valid for use
Control0..1
TypePeriod
HumanId.assigner
DefinitionOrganisation that issued/manages the identifier
Control0..1
TypeResource(Organization)
CommentsThe reference may be just a text description of the assigner

HumanName 1.3.20.11

HumanName
DefinitionA human's name with the ability to identify parts and usage
Control1..1
RequirementsNeed to be able to record names, along with notes about their use
CommentsNames may be changed, or repudiated, or people may have different names in different contexts. Names may be divided into parts of different type that have variable significance depending on context, though the division into parts does not always matter. With personal names, the different parts may or may not be imbued with some implicit meaning; various cultures associate different importance with the name parts, and the degree to which systems must care about name parts around the world varies widely.
RIM MappingEN
HumanName.use
DefinitionIdentifies the purpose for this name
Control0..1
Typecode from NameUse
Must Understandtrue
RequirementsAllows the appropriate name for a particular context of use to be selected from among a set of names
RIM Mappingunique(./use)
HumanName.text
Definitiona full text representation of the name
Control0..1
Typestring
RequirementsA renderable, unencoded form
CommentsCan provide both a text representation, and structured parts
RIM Mapping./formatted
HumanName.family
DefinitionFamily name, this is the name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
Control0..*
Typestring
Aliasessurname
Commentsfamily name is allowed to repeat. A single family name with spaces is equivalent to multiple family names with the same values
HumanName.given
DefinitionGiven name. NOTE: Not to be called "first name" since given names do not always come first.
Control0..*
Typestring
Aliasesfirst name; middle name
HumanName.prefix
DefinitionPart of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that comes at the start of the name
Control0..*
Typestring
HumanName.suffix
DefinitionPart of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that comes at the end of the name
Control0..*
Typestring
HumanName.period
DefinitionIndicates the period of time when this name was valid for the named person.
Control0..1
TypePeriod
RequirementsAllows names to be placed in historical context
RIM Mapping./usablePeriod[type="IVL<TS>"]

Address 1.3.20.12

Address
DefinitionThere is a variety of postal address formats defined around the world. This format defines a superset that is the basis for addresses all around the world
Control1..1
RequirementsNeed to be able to record postal addresses, along with notes about their use
CommentsNote: address is for postal addresses, not physical locations
RIM MappingAD
Address.use
DefinitionIdentifies the intended purpose of this address
Control0..1
Typecode from AddressUse
Must Understandtrue
RequirementsAllows an appropriate address to be chosen from a list of many
RIM Mappingunique(./use)
Address.text
Definitiona full text representation of the address
Control0..1
Typestring
Must Understandtrue
RequirementsA renderable, unencoded form
CommentsCan provide both a text representation, and parts
RIM Mapping./formatted
Address.part
DefinitionPart of an address line
Control0..*
Typestring
Commentsan extension may further define the meaning of the part
Address.line
DefinitionA line of an address (typically used for street names & numbers, unit details, delivery hints, etc.) .
Control0..*
Typestring
Address.city
DefinitionThe name of the city, town, village, or other community or delivery centre.
Control0..1
Typestring
Address.state
DefinitionSub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
Control0..1
Typestring
Address.zip
DefinitionA postal code designating a region defined by the postal service.
Control0..1
Typestring
Address.country
DefinitionCountry. ISO 3166 3 letter codes can be used in place of a full country name.
Control0..1
Typestring
Address.dpid
DefinitionA value that uniquely identifies the postal address. (Often used in barcodes).
Control0..1
Typestring
Address.period
DefinitionTime period when address was/is in use
Control0..1
TypePeriod
RequirementsAllows addresses to be placed in historical context
RIM Mapping./usablePeriod[type="IVL<TS>"]

Contact 1.3.20.13

Contact
DefinitionAll kinds of technology mediated contact details for a person or organisation, including telephone, email, etc.
Control1..1
RequirementsNeed to track phone, fax, mobile, sms numbers, email addresses, twitter tags, etc.
RIM MappingTEL
Contact.system
DefinitionWhat kind of contact this is - what communications system is required to make use of the contact
Control0..1
Typecode from ContactSystem
Must Understandtrue
RIM Mapping./scheme
Contact.value
DefinitionThe actual contact details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
Control0..1
Typestring
Must Understandtrue
RequirementsNeed to support legacy numbers that are not in a tightly controlled format
Commentsadditional out of band data such as extensions, or notes about use of the contact are sometimes included in the value
RIM Mapping./url
Contact.use
DefinitionIdentifies the context for the address
Control0..1
Typecode from ContactUse
Must Understandtrue
RequirementsNeed to track the way a person uses this contact, so a user can choose which is appropriate for their purpose
RIM Mappingunique(./use)
Contact.period
DefinitionTime period when the contact was/is in use
Control0..1
TypePeriod
RIM Mapping./useablePeriod[type="IVL<TS>"]

Schedule 1.3.20.14

Schedule
DefinitionA schedule that specifies an event that may occur multiple times. Schedules are not used for recording when things did happen, but when they are expected or requested to occur.
Control1..1
RequirementsNeed to able to track schedules. There are several different ways to do scheduling: one or more specified times, a simple rules like three times a day, or to say, x before/after meals, or something like that
Comments A schedule can be either a list of events - intervals on which the event occurs, or a single event with repeating criteria or just repeating criteria with no actual event.
RIM MappingGTS
Schedule.event
DefinitionIdentifies specific time periods when the event should occur
Control0..*
TypePeriod
Must Understandtrue
RequirementsSome schedules are just explicit lists of times
Schedule.repeat
DefinitionIdentifies a repeating pattern to the intended time periods.
Control0..1
Must Understandtrue
RequirementsMany schedules are determined by regular repetitions
CommentsIf present, the Schedule.event indicates the time of the first occurrence.
Schedule.repeat.frequency
DefinitionIndicates how often the event should occur.
Control0..1
Typeinteger
Must Understandtrue
Schedule.repeat.when
DefinitionIdentifies the occurrence of daily life that determine timing
Control0..1
Typecode from EventTiming
Must Understandtrue
RequirementsTimings are frequently determined by occurrences such as waking, eating and sleep
Schedule.repeat.duration
DefinitionHow long each repetition should last
Control1..1
Typedecimal
Must Understandtrue
RequirementsSome activities are not instantaneous and need to be maintained for a period of time
Schedule.repeat.units
Definitionthe units of time for the duration
Control1..1
Typecode from UnitsOfTime
Must Understandtrue
Schedule.repeat.count
DefinitionA total count of the desired number of repetitions
Control0..1
Typeinteger
Must Understandtrue
RequirementsRepetitions may be limited by end time or total occurrences
CommentsAn end need not be specified
Schedule.repeat.end
DefinitionWhen to stop repeats
Control0..1
TypedateTime
Must Understandtrue
RequirementsRepetitions may be limited by end time or total occurrences
CommentsAn end need not be specified