This
page
is
part
of
the
FHIR
Specification
(v5.0.0:
R5
(v4.0.1:
R4
-
Mixed
Normative
and
STU
).
This
is
the
)
in
it's
permanent
home
(it
will
always
be
available
at
this
URL).
The
current
published
version.
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
Work
Group
|
Maturity Level : Normative | Standards Status : Partially Normative |
|
|
This
page
has
been
approved
as
part
of
an
ANSI
|
The
FHIR
specification
defines
a
set
of
datatypes
data
types
that
are
used
for
the
resource
elements.
There
are
five
four
categories
of
datatypes:
data
types:
This
page
describes
the
general-purpose
datatypes
data
types
(categories
1
and
2).
Datatypes
Data
Types
Summary
.
Legend: see Standards Status Colors
A
limited
set
of
these
datatypes
data
types
may
appear
in
extensions.
All
datatypes
data
types
(including
primitives)
may
have
extensions,
but
only
the
following
datatypes
data
types
may
include
Modifier
Extensions
:
The
following
table
describes
the
primitive
types
that
are
used
in
this
specification.
Primitive
types
are
those
that
specialize
PrimitiveType
,
with
only
a
value,
and
no
additional
elements
as
children
(though,
like
all
types,
they
have
id
and
extensions
).
See
also
the
Examples
.
| Primitive Types | |||
| FHIR Name | Value Domain | XML Representation | JSON representation |
|---|---|---|---|
|
|
true | false | xs:boolean, except that 0 and 1 are not valid values | JSON boolean (true or false) |
Regex:
true|false
| |||
|
|
| xs:int, except that leading 0 digits are not allowed |
|
Regex:
|
|||
|
string
|
A sequence of Unicode characters | xs:string |
JSON
|
|
Note
that
strings
SHALL
NOT
exceed
1MB
(1024*1024
characters)
in
size.
Strings
SHOULD
not
contain
Unicode
character
points
below
32,
except
for
u0009
(horizontal
tab),
u0010
(carriage
return)
and
u0013
(line
feed).
Leading
and
Trailing
whitespace
is
| |||
|
This
| |||
Regex:
[
\r\n\t\S]+
(see
notes
below)
|
|||
|
|
|
|
A
JSON
|
Regex:
|
|||
|
uri
|
A
Uniform
Resource
Identifier
Reference
(
RFC
3986
).
Note:
URIs
are
case
sensitive.
For
UUID
(urn:uuid:53fefa32-fcbb-4ff8-8a92-55ee120877b7)
use
all
lowercase
| xs:anyURI |
A
JSON
|
Regex:
\S*
(This
regex
is
very
permissive,
but
URIs
must
be
valid.
Implementers
are
welcome
to
use
more
specific
regex
statements
for
a
URI
in
specific
contexts)
| |||
|
URIs
can
be
absolute
or
relative,
and
may
have
an
optional
fragment
identifier
This data type can be bound to a ValueSet |
|||
| url |
A
Uniform
Resource
Locator
(
RFC
1738
).
Note
URLs
are
accessed
directly
using
the
specified
protocol.
Common
URL
protocols
are
http{s}:
,
ftp:
,
mailto:
and
mllp:
,
though
many
others
are
defined
| xs:anyURI | A JSON string - a URL |
| canonical |
A
URI
that
refers
to
a
resource
by
its
canonical
URL
(
resources
with
a
url
property
).
The
canonical
type
differs
from
a
uri
in
that
it
has
special
meaning
in
this
specification,
and
in
that
it
may
have
a
version
appended,
separated
by
a
vertical
bar
(|).
Note
that
the
type
canonical
is
not
used
for
the
actual
canonical
URLs
that
are
the
target
of
these
references,
but
for
the
URIs
that
refer
to
them,
and
may
have
the
version
suffix
in
them.
Like
other
URIs,
elements
of
type
canonical
may
also
have
#fragment
|
xs:anyURI | A JSON string - a canonical URL |
| base64Binary |
A
stream
of
bytes,
base64
encoded
(
RFC
4648
)
| xs:base64Binary | A JSON string - base64 content |
Regex:
|
|||
|
|
There is no specified upper limit to the size of a binary, but systems will have to impose some implementation based limit to the size they support. This should be clearly documented, though there is no computable for this at this time | ||
|
|
instant
,
but
is
instant
is
a
more
constrained
dateTime
|
|
A JSON string - an xs:dateTime |
|
Note:
This
|
|||
|
|
Regex:
([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))
|
||
| date |
A
date,
or
partial
date
(e.g.
just
year
or
year
+
month)
as
used
in
human
communication.
The
format
is
YYYY,
YYYY-MM,
or
YYYY-MM-DD,
e.g.
2018,
1973-06,
or
1905-08-23.
There
SHALL
be
no
|
union of xs:date, xs:gYearMonth, xs:gYear | A JSON string - a union of xs:date, xs:gYearMonth, xs:gYear |
Regex:
|
|||
| dateTime |
A
date,
date-time
or
partial
date
(e.g.
just
year
or
year
+
month)
as
used
in
human
communication.
The
format
is
YYYY,
YYYY-MM,
YYYY-MM-DD
or
YYYY-MM-DDThh:mm:ss+zz:zz,
e.g.
2018,
1973-06,
1905-08-23,
2015-02-07T13:28:17-05:00
or
2017-01-01T00:00:00.000Z.
If
hours
and
minutes
are
specified,
a
|
union of xs:dateTime, xs:date, xs:gYearMonth, xs:gYear | A JSON string - a union of xs:dateTime, xs:date, xs:gYearMonth, xs:gYear |
Regex:
|
|||
|
|
|
|
A
JSON
string
-
an
|
Regex:
|
|||
|
|
|
|
JSON string |
Regex:
This data type can be bound |
|||
| oid |
An
OID
represented
as
a
URI
(
RFC
3001
);
e.g.
urn:oid:1.2.3.4.5
|
xs:anyURI | JSON string - uri |
Regex:
urn:oid:[0-2](\.(0|[1-9][0-9]*))+
|
|||
|
|
|
|
JSON
|
Regex:
|
|||
|
|
A
string
(see
above)
that
may
contain
markdown
syntax
for
optional
processing
by
a
markdown
presentation
engine,
in
the
GFM
extension
of
CommonMark
format
|
|
|
Regex:
|
|||
| unsignedInt | Any non-negative integer in the range 0..2,147,483,647 | xs:nonNegativeInteger | JSON number |
Regex:
[0]|([1-9][0-9]*)
|
|||
|
|
|
|
|
Regex:
|
|||
| uuid |
A
UUID
(aka
GUID)
represented
as
a
URI
(
RFC
4122
);
e.g.
urn:uuid:c757873d-ec9a-4326-a141-556f43239520
|
xs:anyURI | JSON string - uri |
Notes:
INF
,
-INF
and
NaN
are
not
allowed,
and
JSON
is
restricted
to
the
precision
limits
documented
in
XML
schema
for
xs:double
and
xs:decimal
[\r\n\t\x{0020}-\x{FFFF}]*
or
[\r\n\t\u0020-\uFFFF]*
are
better
expressions
of
the
constraints
on
string,
but
poorly
supported
(see
Regex
Tutorial
for
details).
The
string
regex
also
applies
to
markdown
as
well.
The
regex
does
not
enforce
the
length
limit
code
.
,
but
also
includes
other
identifier
formats
as
well,
and
is
not
case
insensitive
like
ISO
18232.
http://example.com/fhir/Patient/
1234
,
the
last
part
"1234"
(highlighted
in
red)
is
the
part
that
is
an
id
uri
,
not
an
id
.
UUIDs
in
URIs
SHALL
also
be
represented
in
lowercase
uri
,
url
and
canonical
datatypes:
url
and
canonical
are
specializations
of
uri
,
they
are
never
substituted
for
each
extensions
on
CommonMark
string
,
and
subject
to
the
same
rules
(e.g.
length
limit)
string
to
markdown
in
a
later
version
of
this
FHIR
specification
is
not
considered
a
markdown
as
All elements using these primitive types may have one or more of a value as described above, an internal identity (e.g. xml:id), and extensions. For an example, take an element of name "count" and type "integer".
XML
The value is represented in XML as an attribute named "value":
<count value="2"/>
The full representation, with id, extensions and value:
<count id="a1" value="2">
<extension url="...">
<valueXX.../>
</extension>
</count>
JSON
In JSON, for convenience, the value is represented as the property itself:
"count" : 2
The full representation, with id, extensions and value, showing the id and extensions in the sibling property:
"count" : 2
"_count" : {
"id" : "a1",
"extension" : [{
"url" : "...",
"valueXXX" : "...."
}]
}
RDF
The
value
is
represented
in
RDF
as
a
relationship
with
the
URI
"http://hl7.org/fhir/value".
"http://h;7.org/fhir/value".
Using
the
normal
prefix,
this
becomes:
fhir:Type.count [ fhir:value "2"^^xsd:integer ]
For the types date and DateTime, the type must be specified explicitly. For all other types, it is optional. The full representation, with id, extensions and value:
fhir:Type.count [
Element.id "a1";
fhir:value "2"^^xsd:integer;
Element.extension [
fhir:Extension.url "..";
fhir:Extension.valueXX...
]
]
For additional details, see the XML , JSON and Turtle format definitions. When the value is missing, and there are no extensions, the element is not represented at all. This means that in xml, attributes are never present with a length of 0 (value=""), and properties are never a 0 length string or null in JSON ("name" : "" is not valid). (note: there is one specific use of the null in the JSON representation).
According to XML schema, leading and trailing whitespace in the value attribute is ignored for the types boolean, integer, decimal, base64Binary, instant, uri, date, dateTime, oid, and uri. Note that this means that the schema aware XML libraries give different attribute values to non-schema aware libraries when reading the XML instances. For this reason, the value attribute for these types SHOULD not have leading and trailing spaces. String values should only have leading and trailing spaces if they are part of the content of the value. In JSON and Turtle whitespace in string values is always significant. Primitive types other than string SHALL NOT have leading or trailing whitespace.
In
XML,
these
types
are
represented
as
XML
Elements
with
child
elements
with
the
name
of
the
defined
elements
of
the
type.
The
name
of
the
element
is
defined
where
the
type
is
used.
In
JSON,
the
datatype
data
type
is
represented
by
an
object
with
properties
named
the
same
as
the
XML
elements.
Since
the
JSON
representation
is
almost
exactly
the
same,
only
the
first
example
has
an
additional
explicit
JSON
representation.
Complex
datatypes
data
types
may
be
"profiled".
A
Structure
Definition
or
type
"constraint"
makes
a
set
of
rules
about
which
elements
SHALL
have
values
and
what
the
possible
values
are.
UML
Diagrams
of
the
Datatypes
Data
types
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
This type is for containing or referencing attachments - additional data content defined in other formats. The most common use of this type is to include images or reports in some report format such as PDF. However, it can be used for any data that has a MIME type.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
I N | Element |
Content
in
a
format
defined
elsewhere
+ Rule: If the Attachment has data, it SHALL have a contentType Elements defined in Ancestors: id , extension |
|
|
Σ
|
0..1 | code |
Mime
type
of
the
content,
with
charset
etc.
|
|
Σ | 0..1 | code |
Human
language
of
the
content
(BCP-47)
|
|
0..1 | base64Binary | Data inline, base64ed | |
|
Σ | 0..1 | url | Uri where the data can be found |
|
Σ | 0..1 |
|
Number of bytes of content (if url provided) |
|
Σ | 0..1 | base64Binary | Hash of the data (sha-1, base64ed) |
|
Σ
|
0..1 | string | Label to display in place of the data |
|
Σ | 0..1 | dateTime |
Date
attachment
was
first
created
|
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension -->< < <<contentType value="[code]"/><!-- 0..1 Mime type of the content, with charset etc. --> <language value="[code]"/><!-- 0..1 Human language of the content (BCP-47) --> <data value="[base64Binary]"/><!-- 0..1 Data inline, base64ed --> <url value="[url]"/><!-- 0..1 Uri where the data can be found --><<size value="[unsignedInt]"/><!-- 0..1 Number of bytes of content (if url provided) --> <hash value="[base64Binary]"/><!-- 0..1 Hash of the data (sha-1, base64ed) --> <title value="[string]"/><!-- 0..1 Label to display in place of the data --> <creation value="[dateTime]"/><!-- 0..1 Date attachment was first created -->< < < < < </Attachment></[name]>
JSON Template
{
// from Element: extension
"
"
"
"contentType" : "<code>", // Mime type of the content, with charset etc.
"language" : "<code>", // Human language of the content (BCP-47)
"data" : "<base64Binary>", // Data inline, base64ed
"url" : "<url>", // Uri where the data can be found
"
"size" : "<unsignedInt>", // Number of bytes of content (if url provided)
"hash" : "<base64Binary>", // Hash of the data (sha-1, base64ed)
"title" : "<string>", // Label to display in place of the data
"
"
"
"
"
"
"creation" : "<dateTime>" // Date attachment was first created
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir:fhir:Attachment.contentType [ code ]; # 0..1 Mime type of the content, with charset etc. fhir:Attachment.language [ code ]; # 0..1 Human language of the content (BCP-47) fhir:Attachment.data [ base64Binary ]; # 0..1 Data inline, base64ed fhir:Attachment.url [ url ]; # 0..1 Uri where the data can be found fhir:Attachment.size [ unsignedInt ]; # 0..1 Number of bytes of content (if url provided) fhir:Attachment.hash [ base64Binary ]; # 0..1 Hash of the data (sha-1, base64ed) fhir:Attachment.title [ string ]; # 0..1 Label to display in place of the data fhir:Attachment.creation [ dateTime ]; # 0..1 Date attachment was first created ]
Changes since Release 3
| Attachment | |
|
|
|
|
|
|
|
|
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
I N | Element |
Content
in
a
format
defined
elsewhere
+ Rule: If the Attachment has data, it SHALL have a contentType Elements defined in Ancestors: id , extension |
|
|
Σ
|
0..1 | code |
Mime
type
of
the
content,
with
charset
etc.
|
|
Σ | 0..1 | code |
Human
language
of
the
content
(BCP-47)
|
|
0..1 | base64Binary | Data inline, base64ed | |
|
Σ | 0..1 | url | Uri where the data can be found |
|
Σ | 0..1 |
|
Number of bytes of content (if url provided) |
|
Σ | 0..1 | base64Binary | Hash of the data (sha-1, base64ed) |
|
Σ
|
0..1 | string | Label to display in place of the data |
|
Σ | 0..1 | dateTime |
Date
attachment
was
first
created
|
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension -->< < <<contentType value="[code]"/><!-- 0..1 Mime type of the content, with charset etc. --> <language value="[code]"/><!-- 0..1 Human language of the content (BCP-47) --> <data value="[base64Binary]"/><!-- 0..1 Data inline, base64ed --> <url value="[url]"/><!-- 0..1 Uri where the data can be found --><<size value="[unsignedInt]"/><!-- 0..1 Number of bytes of content (if url provided) --> <hash value="[base64Binary]"/><!-- 0..1 Hash of the data (sha-1, base64ed) --> <title value="[string]"/><!-- 0..1 Label to display in place of the data --> <creation value="[dateTime]"/><!-- 0..1 Date attachment was first created -->< < < < < </Attachment></[name]>
JSON Template
{
// from Element: extension
"
"
"
"contentType" : "<code>", // Mime type of the content, with charset etc.
"language" : "<code>", // Human language of the content (BCP-47)
"data" : "<base64Binary>", // Data inline, base64ed
"url" : "<url>", // Uri where the data can be found
"
"size" : "<unsignedInt>", // Number of bytes of content (if url provided)
"hash" : "<base64Binary>", // Hash of the data (sha-1, base64ed)
"title" : "<string>", // Label to display in place of the data
"
"
"
"
"
"
"creation" : "<dateTime>" // Date attachment was first created
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir:fhir:Attachment.contentType [ code ]; # 0..1 Mime type of the content, with charset etc. fhir:Attachment.language [ code ]; # 0..1 Human language of the content (BCP-47) fhir:Attachment.data [ base64Binary ]; # 0..1 Data inline, base64ed fhir:Attachment.url [ url ]; # 0..1 Uri where the data can be found fhir:Attachment.size [ unsignedInt ]; # 0..1 Number of bytes of content (if url provided) fhir:Attachment.hash [ base64Binary ]; # 0..1 Hash of the data (sha-1, base64ed) fhir:Attachment.title [ string ]; # 0..1 Label to display in place of the data fhir:Attachment.creation [ dateTime ]; # 0..1 Date attachment was first created ]
Changes since Release 3
| Attachment | |
|
|
|
|
|
|
|
|
|
See the Full Difference for further information
The
actual
content
of
an
Attachment
can
be
conveyed
directly
using
the
data
element
or
a
URL
reference
can
be
provided.
If
both
are
provided,
the
reference
SHALL
point
to
the
same
content
as
found
in
the
data.
The
reference
can
never
be
reused
to
point
to
some
different
data
(i.e.
the
reference
is
version
specific).
The
URL
reference
SHALL
point
to
a
location
that
resolves
to
actual
data;
some
URIs
such
as
cid:
meet
this
requirement.
If
the
URL
is
a
relative
reference,
it
is
interpreted
in
the
same
way
as
a
resource
reference
.
The
contentType
element
SHALL
always
be
populated
when
an
Attachment
contains
data
,
and
MAY
be
populated
when
there
is
a
url
.
It
can
include
charset
information
and
other
mime
type
extensions
as
appropriate.
If
there
is
no
character
set
in
the
contentType
then
the
correct
course
of
action
is
undefined,
though
some
media
types
may
define
a
default
character
set
and/or
the
correct
character
set
may
be
able
to
be
determined
by
inspection
of
the
content.
The
hash
is
included
so
that
applications
can
verify
that
the
content
returned
by
the
URL
has
not
changed.
The
hash
and
size
relate
to
the
data
before
it
is
represented
in
base64
form.
The
hash
is
not
intended
to
support
digital
signatures.
Where
protection
against
malicious
threats
a
digital
signature
should
be
considered,
see
Provenance.signature
for
mechanism
to
protect
a
resource
with
a
digital
signature.
Attachment
data
are
not
constrained,
and
therefore
can
be
of
any
content
type
and
encoding.
Therefore
extra
care
needs
to
be
taken
to
validate
the
content
against
malicious
or
malformed
content.
For
more
details
see
Security
of
Narrative
.
In
many
cases
where
Attachment
is
used,
the
cardinality
is
>1.
A
valid
use
of
repeats
is
to
convey
the
same
content
in
different
mime
types
and
languages.
Guidance
on
the
meaning
of
repeating
elements
SHALL
be
provided
in
the
definition
of
the
repeating
resource
element
or
extension
that
references
this
type.
The
language
element
describes
the
language
of
the
attachment
using
the
codes
defined
in
BCP
47
.
Constraints
| id | Level | Location | Description | Expression |
|
|
Rule | (base) | If the Attachment has data, it SHALL have a contentType | data.empty() or contentType.exists() |
If
neither
data
nor
a
URL
is
provided,
the
value
should
be
understood
as
an
assertion
that
no
content
for
the
specified
mimeType
and/or
language
is
available
for
the
combination
of
language
and
contentType
.
The context of use may frequently make rules about the kind of attachment (and therefore, the kind of mime types) that can be used.
Terminology Bindings
| Path |
|
Type |
|
|---|---|---|---|
| Attachment.contentType |
|
Required |
|
| Attachment.language | A human language. |
|
|
Attachment
is
used
in
the
following
places:
RelatedArtifact
,
AdministrableProductDefinition
,
BiologicallyDerivedProduct
ProdCharacteristic
,
BodyStructure
,
Citation
,
Claim
,
ClaimResponse
,
Communication
,
CommunicationRequest
,
Consent
,
Contract
,
Device
,
DeviceDefinition
,
DiagnosticReport
,
DocumentReference
,
ExplanationOfBenefit
,
HealthcareService
,
Library
,
ManufacturedItemDefinition
,
MedicationKnowledge
,
MedicinalProductDefinition
,
MolecularSequence
,
NutritionProduct
,
Observation
,
PackagedProductDefinition
Media
,
Patient
,
Person
,
Practitioner
,
Questionnaire
,
QuestionnaireResponse
,
RelatedPerson
,
SubstanceDefinition
,
SubstanceNucleicAcid
,
SubstancePolymer
and
,
SubstanceProtein
and
SubstanceSpecification
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
A Coding is a representation of a defined concept using a symbol from a defined "code system" - see Using Codes in resources for more details.
This
datatype
data
type
can
be
bound
to
a
ValueSet
.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
A
reference
to
a
code
defined
by
a
terminology
system
|
|
|
Σ | 0..1 | uri | Identity of the terminology system |
|
Σ | 0..1 | string | Version of the system - if relevant |
|
Σ
|
0..1 | code | Symbol in syntax defined by the system |
|
Σ
|
0..1 | string | Representation defined by the system |
|
Σ | 0..1 | boolean | If this coding was chosen directly by the user |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <system value="[uri]"/><!-- 0..1 Identity of the terminology system --> <version value="[string]"/><!-- 0..1 Version of the system - if relevant -->< <<code value="[code]"/><!-- 0..1 Symbol in syntax defined by the system --> <display value="[string]"/><!-- 0..1 Representation defined by the system --> <userSelected value="[boolean]"/><!-- 0..1 If this coding was chosen directly by the user --></Coding></[name]>
JSON Template
{
// from Element: extension
"system" : "<uri>", // Identity of the terminology system
"version" : "<string>", // Version of the system - if relevant
"
"
"code" : "<code>", // Symbol in syntax defined by the system
"display" : "<string>", // Representation defined by the system
"userSelected" : <boolean> // If this coding was chosen directly by the user
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir:fhir:Coding.system [ uri ]; # 0..1 Identity of the terminology system fhir:Coding.version [ string ]; # 0..1 Version of the system - if relevant fhir:Coding.code [ code ]; # 0..1 Symbol in syntax defined by the system fhir:Coding.display [ string ]; # 0..1 Representation defined by the system fhir:Coding.userSelected [ boolean ]; # 0..1 If this coding was chosen directly by the user ]
Changes since Release 3
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
A
reference
to
a
code
defined
by
a
terminology
system
|
|
|
Σ | 0..1 | uri | Identity of the terminology system |
|
Σ | 0..1 | string | Version of the system - if relevant |
|
Σ
|
0..1 | code | Symbol in syntax defined by the system |
|
Σ
|
0..1 | string | Representation defined by the system |
|
Σ | 0..1 | boolean | If this coding was chosen directly by the user |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <system value="[uri]"/><!-- 0..1 Identity of the terminology system --> <version value="[string]"/><!-- 0..1 Version of the system - if relevant -->< <<code value="[code]"/><!-- 0..1 Symbol in syntax defined by the system --> <display value="[string]"/><!-- 0..1 Representation defined by the system --> <userSelected value="[boolean]"/><!-- 0..1 If this coding was chosen directly by the user --></Coding></[name]>
JSON Template
{
// from Element: extension
"system" : "<uri>", // Identity of the terminology system
"version" : "<string>", // Version of the system - if relevant
"
"
"code" : "<code>", // Symbol in syntax defined by the system
"display" : "<string>", // Representation defined by the system
"userSelected" : <boolean> // If this coding was chosen directly by the user
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir:fhir:Coding.system [ uri ]; # 0..1 Identity of the terminology system fhir:Coding.version [ string ]; # 0..1 Version of the system - if relevant fhir:Coding.code [ code ]; # 0..1 Symbol in syntax defined by the system fhir:Coding.display [ string ]; # 0..1 Representation defined by the system fhir:Coding.userSelected [ boolean ]; # 0..1 If this coding was chosen directly by the user ]
The
meaning
of
the
Coding
is
defined
by
the
code.
The
system
provides
the
source
of
the
definition
of
the
code,
along
with
an
optional
version
reference.
The
display
is
a
human
display
for
the
text
defined
by
the
system
-
it
is
not
intended
for
computation.
The
system
is
an
absolute
a
URI
that
identifies
the
code
system
that
defines
the
code
.
Choosing
the
correct
system
is
important;
for
more
information
about
the
code
system
URI,
read
Managing
Terminology
System
URIs
.
If
the
code
is
taken
from
a
CodeSystem
resource,
CodeSystem.url
is
the
correct
value
for
the
system
element.
Resolvable
URLs
are
generally
preferred
by
implementers
over
non-resolvable
URNs,
particularly
opaque
URNs
such
as
OIDs
(urn:oid:)
or
UUIDs
(urn:uuid:).
The
system
URI
SHALL
NOT
contain
a
reference
to
a
value
set
(e.g.
ValueSet.url
),
since
value
sets
just
define
the
set
of
codes
which
are
intended
for
use
in
a
specific
context,
not
the
meaning
of
the
codes
themselves.
A code system version may also be supplied. If the meaning of codes within the code system is consistent across releases, this is not required. The version SHOULD be exchanged when the system does not maintain consistent definitions across versions. Note that the following systems SHOULD always have a version specified:
More generally, any classification (e.g. a code system that includes concepts with relative definitions such as "not otherwise coded" will require a version. See the discussion of code system versions in the Code System resource for further discussion on versioning.
If
present,
the
code
SHALL
be
a
syntactically
correct
symbol
as
defined
by
the
system
.
In
some
code
systems
such
as
SNOMED
CT,
the
symbol
may
be
an
expression
composed
of
other
predefined
symbol
(e.g.
post-coordination).
Note
that
codes
are
case
sensitive
unless
specified
otherwise
by
the
code
system.
The
display
is
a
text
representation
of
the
code
defined
by
the
system
and
is
used
to
display
the
meaning
of
the
code
by
an
application
that
is
not
aware
of
the
system
.
If
the
'display'
element
is
populated,
the
string
used
in
display
SHALL
be
one
of
the
display
strings
defined
for
that
code
by
the
code
system.
Code
system
(code
systems
may
define
multiple
display
strings
for
a
single
code,
by
use
of:
CodeSystem.concept.display
CodeSystem.concept.designation.value
(including
in
supplements)
Note
that
displays
defined
in
value
sets
(
ValueSet.include.concept.display
and
ValueSet.include.concept.designation.value
)
are
not
allowed
in
Coding.display
.
code).
If
one
of
the
available
display
strings
is
labeled
as
preferred,
it
SHOULD
be
used
(note
that
CodeSystem.concept.display
is
preferred
for
the
base
resource
language
if
it
is
populated,
but
other
display
strings
may
be
preferred
in
other
languages,
or
for
other
usages).
used.
If
the
code
system
does
not
define
a
text
representation
for
display
(e.g.
SNOMED
CT
Expressions)
then
the
'display'
element
cannot
be
populated,
and
the
meaning
of
the
code
won't
be
accessible
to
systems
that
don't
understand
the
code
expression.
In
some
cases,
the
system
might
not
be
known
-
only
the
code
is
known.
In
this
case,
no
useful
processing
of
the
code
may
be
performed
unless
the
system
can
be
safely
inferred
by
the
context.
This
practice
should
be
avoided
where
possible,
as
information
sharing
in
a
wider
context
is
very
likely
to
arise
eventually,
and
codes
cannot
be
used
in
the
absence
of
a
known
system.
If
the
system
is
present,
and
there
is
no
code,
then
this
is
understood
to
mean
that
there
is
no
suitable
code
in
the
system
in
which
to
represent
the
concept.
The
implication
of
this
is
that
implementers
SHOULD
never
provide
a
system
without
a
code
unless
this
is
the
intended
meaning
AND
it
is
appropriate
for
the
code
system
and
version.
(E.g.
the
code
system
does
not
have
an
'OTHER'
concept.)
This
approach
cannot
be
used
if
an
appropriate
code
might
exist
within
the
code
system
but
does
not
exist
within
the
bound
ValueSet.
code.
If
two
codings
have
the
same
system
,
version
and
code
then
they
have
the
same
meaning.
If
the
version
information
is
missing,
or
the
system
,
version
or
the
code
elements
differ,
then
how
the
codes
are
related
can
only
be
determined
by
consulting
the
definitions
of
the
system(s)
and
any
mappings
available.
A coding may be marked as a "userSelected" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc.
Constraints
The context of use (as defined in the resource or applicable profile) usually makes rules about what codes and systems are allowed or required in a particular context by binding the element to a value set.
Coding
is
used
in
the
following
places:
Meta
,
DataRequirement
,
ElementDefinition
,
VirtualServiceDetail
,
UsageContext
,
Signature
,
CodeableConcept
,
ActivityDefinition
,
ActorDefinition
,
Appointment
,
AuditEvent
,
BiologicallyDerivedProduct
,
CanonicalResource
,
CapabilityStatement
,
ChargeItemDefinition
,
Citation
,
CodeSystem
,
CompartmentDefinition
,
ConceptMap
,
ConditionDefinition
,
Consent
,
Contract
,
DeviceDefinition
,
DocumentReference
,
EventDefinition
,
Evidence
,
EvidenceVariable
Encounter
,
ExampleScenario
Endpoint
,
ExplanationOfBenefit
,
GraphDefinition
,
ImagingSelection
,
ImagingStudy
,
ImplementationGuide
,
InventoryItem
,
Library
,
Location
,
Measure
,
MedicinalProductDefinition
MedicinalProduct
,
MessageDefinition
,
MessageHeader
,
NamingSystem
,
ObservationDefinition
,
OperationDefinition
,
Permission
,
PlanDefinition
,
Questionnaire
,
QuestionnaireResponse
,
Requirements
,
SearchParameter
,
SpecimenDefinition
,
StructureDefinition
,
StructureMap
,
Subscription
,
SubscriptionTopic
,
TerminologyCapabilities
,
TestPlan
,
TestScript
and
ValueSet
Implementation Note: This specification defines two types for representing coded values:
- Coding : a simple direct reference to a code defined by a code system
- CodeableConcept : a text description and/or a list of Codings (i.e. a list of references to codes defined by code systems)
The
Codingdatatypedata type corresponds to the simple case of selecting a single code from a code list. However, this type is rarely used in the FHIR specifications; long experience with exchanging coded values in HL7 shows that in the general case, systems need to able to exchange multiple translation codes, and/or an original text.The
Codingdatatypedata type is used directly when there is certainty that the value must be selected directly from one of the available codes, and the list of possible codes is agreed to by all participants. This is not usually the case in the context of FHIR - general interoperability - so Coding is mostly used in extensions, which are usually intended to be defined for a well-controlled context of use.
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
A CodeableConcept represents a value that is usually supplied by providing a reference to one or more terminologies or ontologies but may also be defined by the provision of text. This is a common pattern in healthcare data.
This
datatype
data
type
can
be
bound
to
a
ValueSet
.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
Concept
-
reference
to
a
terminology
or
just
text
Elements defined in Ancestors: id , extension |
|
|
Σ | 0..* | Coding |
Code
defined
by
a
terminology
system
|
|
Σ
|
0..1 | string | Plain text representation of the concept |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <coding><!-- 0..* Coding Code defined by a terminology system --></coding> <text value="[string]"/><!-- 0..1 Plain text representation of the concept --></CodeableConcept></[name]>
JSON Template
{
// from Element: extension
"coding" : [{ Coding }], // Code defined by a terminology system
"text" : "<string>" // Plain text representation of the concept
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir:fhir:CodeableConcept.coding [ Coding ], ... ; # 0..* Code defined by a terminology system fhir:CodeableConcept.text [ string ]; # 0..1 Plain text representation of the concept ]
Changes since Release 3
| CodeableConcept |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
Concept
-
reference
to
a
terminology
or
just
text
Elements defined in Ancestors: id , extension |
|
|
Σ | 0..* | Coding |
Code
defined
by
a
terminology
system
|
|
Σ
|
0..1 | string | Plain text representation of the concept |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <coding><!-- 0..* Coding Code defined by a terminology system --></coding> <text value="[string]"/><!-- 0..1 Plain text representation of the concept --></CodeableConcept></[name]>
JSON Template
{
// from Element: extension
"coding" : [{ Coding }], // Code defined by a terminology system
"text" : "<string>" // Plain text representation of the concept
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir:fhir:CodeableConcept.coding [ Coding ], ... ; # 0..* Code defined by a terminology system fhir:CodeableConcept.text [ string ]; # 0..1 Plain text representation of the concept ]
Changes since Release 3
| CodeableConcept |
|
See the Full Difference for further information
Additional Codes
More
than
one
code
may
be
used
in
CodeableConcept
.
The
concept
may
be
coded
multiple
times
in
different
code
systems
(or
even
multiple
times
in
the
same
code
systems,
where
multiple
forms
are
possible,
such
as
with
SNOMED
CT).
Each
coding
(also
referred
to
as
a
'translation')
is
a
representation
of
the
concept
as
described
above
and
may
have
slightly
different
granularity
due
to
the
differences
in
the
definitions
of
the
underlying
codes.
There
is
no
meaning
associated
with
the
ordering
of
coding
within
a
CodeableConcept
.
A
typical
use
of
CodeableConcept
is
to
send
the
local
code
that
the
concept
was
coded
with,
and
also
one
or
more
translations
to
publicly
defined
code
systems
such
as
LOINC
or
SNOMED
CT.
Sending
local
codes
is
useful
and
important
for
the
purposes
of
debugging
and
integrity
auditing.
For
example,
many
qualitative
laboratory
test
results
values
are
typically
represented
with
coded
presence/absence
concepts.
Using
the
coded
value
for
'negative'
with
a
standard
SNOMED
CT
code
translation,
valueCodeableConcept
would
be:
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "260385009",
"display": "Negative"
}, {
"system": "https://acme.lab/resultcodes",
"code": "NEG",
"display": "Negative"
}
],
"text": "Negative for Chlamydia Trachomatis rRNA"
}
Note
that
these
concepts
may
be
cross
mapped
using
the
ConceptMap
resource
instead
of
or
in
addition
to
being
represented
as
translations
directly
in
the
in
CodeableConcept
.
Using Text in CodeableConcept
The
text
is
the
representation
of
the
concept
as
entered
or
chosen
by
the
user,
and
which
most
closely
represents
the
intended
meaning
of
the
user
or
concept.
Very
often
the
text
is
the
same
as
a
display
of
one
of
the
codings.
One
or
more
of
the
codings
may
be
flagged
as
the
user
selected
code
-
the
code
or
concept
that
the
user
actually
selected
directly.
Note
that
in
all
but
a
few
cases,
only
one
of
the
codings
may
be
flagged
as
the
coding.userSelected
=
true
-
the
code
or
concept
that
the
user
actually
selected
directly.
If
more
than
one
code
is
marked
as
user
selected,
this
means
the
user
explicitly
chose
multiple
codes.
When
none
of
the
coding
elements
is
marked
as
user
selected,
the
text
(if
present)
is
the
preferred
source
of
meaning.
Even
if
a
coding
is
flagged
as
user-selected,
it
is
good
practice
to
put
the
specific
text
the
user
chose
in
CodeableConcept.text.
A
free
text
only
representation
of
the
concept
without
any
coding
elements
is
permitted
if
there
is
no
appropriate
code
and
only
free
text
is
available
(and
not
prohibited
by
the
implementation).
For
example,
using
text
only,
the
Observation.valueCodeableConcept
element
would
be:
"valueCodeableConcept": {
"text": "uncoded free text result"
}
Constraints
The context of use usually makes rules about what codes and systems are allowed or required in a particular context by binding the element to a value set.
CodeableConcept
is
used
in
the
following
places:
DataRequirement
,
Dosage
,
MonetaryComponent
,
MarketingStatus
,
Identifier
,
TriggerDefinition
SubstanceAmount
,
RelatedArtifact
Population
,
ProductShelfLife
,
UsageContext
,
CodeableReference
,
Timing
,
ExtendedContactDetail
ProdCharacteristic
,
Account
,
ActivityDefinition
,
ActorDefinition
,
AdministrableProductDefinition
,
AdverseEvent
,
AllergyIntolerance
,
Appointment
,
AppointmentResponse
,
ArtifactAssessment
,
AuditEvent
,
Basic
,
BiologicallyDerivedProduct
,
BiologicallyDerivedProductDispense
,
BodyStructure
,
CanonicalResource
,
CapabilityStatement
,
CarePlan
,
CareTeam
,
CatalogEntry
,
ChargeItem
,
ChargeItemDefinition
,
Citation
,
Claim
,
ClaimResponse
,
ClinicalImpression
,
ClinicalUseDefinition
,
CodeSystem
,
Communication
,
CommunicationRequest
,
Composition
,
ConceptMap
,
Condition
,
ConditionDefinition
,
Consent
,
Contract
,
Coverage
,
CoverageEligibilityRequest
,
CoverageEligibilityResponse
,
DetectedIssue
,
Device
,
DeviceAssociation
,
DeviceDefinition
,
DeviceDispense
,
DeviceMetric
,
DeviceRequest
,
DeviceUsage
DeviceUseStatement
,
DiagnosticReport
,
DocumentManifest
,
DocumentReference
,
EffectEvidenceSynthesis
,
Encounter
,
EncounterHistory
,
Endpoint
,
EpisodeOfCare
,
EventDefinition
,
Evidence
,
EvidenceReport
,
EvidenceVariable
,
ExampleScenario
,
ExplanationOfBenefit
,
FamilyMemberHistory
,
Flag
,
FormularyItem
,
GenomicStudy
,
Goal
,
GraphDefinition
,
Group
,
GuidanceResponse
,
HealthcareService
,
ImagingSelection
,
ImagingStudy
,
Immunization
,
ImmunizationEvaluation
,
ImmunizationRecommendation
,
ImplementationGuide
,
Ingredient
,
InsurancePlan
,
InventoryItem
,
InventoryReport
,
Invoice
,
Library
,
List
,
Location
,
ManufacturedItemDefinition
,
Measure
,
MeasureReport
,
Media
,
Medication
,
MedicationAdministration
,
MedicationDispense
,
MedicationKnowledge
,
MedicationRequest
,
MedicationStatement
,
MedicinalProductDefinition
MedicinalProduct
,
MedicinalProductAuthorization
,
MedicinalProductContraindication
,
MedicinalProductIndication
,
MedicinalProductIngredient
,
MedicinalProductInteraction
,
MedicinalProductManufactured
,
MedicinalProductPackaged
,
MedicinalProductPharmaceutical
,
MedicinalProductUndesirableEffect
,
MessageDefinition
,
MessageHeader
,
MetadataResource
,
MolecularSequence
,
NamingSystem
,
NutritionIntake
,
NutritionOrder
,
NutritionProduct
,
Observation
,
ObservationDefinition
,
OperationDefinition
,
OperationOutcome
,
Organization
,
OrganizationAffiliation
,
PackagedProductDefinition
,
Patient
,
PaymentNotice
,
PaymentReconciliation
,
Permission
,
Person
,
PlanDefinition
,
Practitioner
,
PractitionerRole
,
Procedure
,
Provenance
,
Questionnaire
,
RegulatedAuthorization
,
RelatedPerson
,
RequestOrchestration
RequestGroup
,
Requirements
ResearchDefinition
,
ResearchElementDefinition
,
ResearchStudy
,
ResearchSubject
,
RiskAssessment
,
RiskEvidenceSynthesis
,
Schedule
,
SearchParameter
,
ServiceRequest
,
Slot
,
Specimen
,
SpecimenDefinition
,
StructureDefinition
,
StructureMap
,
SubscriptionStatus
,
SubscriptionTopic
,
Substance
,
SubstanceDefinition
,
SubstanceNucleicAcid
,
SubstancePolymer
,
SubstanceProtein
,
SubstanceReferenceInformation
,
SubstanceSourceMaterial
,
SubstanceSpecification
,
SupplyDelivery
,
SupplyRequest
,
Task
,
TerminologyCapabilities
,
TestPlan
,
TestScript
,
Transport
,
ValueSet
,
VerificationResult
and
VisionPrescription
See
also
Examples
,
Detailed
Descriptions
,
and
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
A measured amount (or an amount that can potentially be measured).
This
datatype
data
type
can
be
bound
to
a
ValueSet
.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ I N | Element |
A
measured
or
measurable
amount
+ Rule: If a code for the unit is present, the system SHALL also be present Elements defined in Ancestors: id , extension |
|
|
Σ | 0..1 | decimal | Numerical value (with implicit precision) |
|
?! Σ | 0..1 | code |
<
|
<=
|
>=
|
>
|
|
Σ
|
0..1 | string | Unit representation |
|
Σ
|
0..1 | uri | System that defines coded unit form |
|
Σ
|
0..1 | code | Coded form of the unit |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <value value="[decimal]"/><!-- 0..1 Numerical value (with implicit precision) --><<comparator value="[code]"/><!-- 0..1 < | <= | >= | > - how to understand the value --> <unit value="[string]"/><!-- 0..1 Unit representation -->< < </Quantity><system value="[uri]"/><!--0..1 System that defines coded unit form --> <code value="[code]"/><!-- 0..1 Coded form of the unit --> </[name]>
JSON Template
{
// from Element: extension
"value" : <decimal>, // Numerical value (with implicit precision)
"
"comparator" : "<code>", // < | <= | >= | > - how to understand the value
"unit" : "<string>", // Unit representation
"
"
"system" : "<uri>", // C? System that defines coded unit form
"code" : "<code>" // Coded form of the unit
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir:fhir:Quantity.value [ decimal ]; # 0..1 Numerical value (with implicit precision) fhir:Quantity.comparator [ code ]; # 0..1 < | <= | >= | > - how to understand the value fhir:Quantity.unit [ string ]; # 0..1 Unit representation fhir:Quantity.system [ uri ]; # 0..1 System that defines coded unit form fhir:Quantity.code [ code ]; # 0..1 Coded form of the unit ]
Changes since Release 3
| Quantity | |
| Quantity.comparator |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ I N | Element |
A
measured
or
measurable
amount
+ Rule: If a code for the unit is present, the system SHALL also be present Elements defined in Ancestors: id , extension |
|
|
Σ | 0..1 | decimal | Numerical value (with implicit precision) |
|
?! Σ | 0..1 | code |
<
|
<=
|
>=
|
>
|
|
Σ
|
0..1 | string | Unit representation |
|
Σ
|
0..1 | uri | System that defines coded unit form |
|
Σ
|
0..1 | code | Coded form of the unit |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <value value="[decimal]"/><!-- 0..1 Numerical value (with implicit precision) --><<comparator value="[code]"/><!-- 0..1 < | <= | >= | > - how to understand the value --> <unit value="[string]"/><!-- 0..1 Unit representation -->< < </Quantity><system value="[uri]"/><!--0..1 System that defines coded unit form --> <code value="[code]"/><!-- 0..1 Coded form of the unit --> </[name]>
JSON Template
{
// from Element: extension
"value" : <decimal>, // Numerical value (with implicit precision)
"
"comparator" : "<code>", // < | <= | >= | > - how to understand the value
"unit" : "<string>", // Unit representation
"
"
"system" : "<uri>", // C? System that defines coded unit form
"code" : "<code>" // Coded form of the unit
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir:fhir:Quantity.value [ decimal ]; # 0..1 Numerical value (with implicit precision) fhir:Quantity.comparator [ code ]; # 0..1 < | <= | >= | > - how to understand the value fhir:Quantity.unit [ string ]; # 0..1 Unit representation fhir:Quantity.system [ uri ]; # 0..1 System that defines coded unit form fhir:Quantity.code [ code ]; # 0..1 Coded form of the unit ]
Changes since Release 3
| Quantity | |
| Quantity.comparator |
|
See the Full Difference for further information
The
value
contains
the
numerical
value
of
the
quantity,
including
an
implicit
precision.
If
no
comparator
is
specified,
the
value
is
a
point
value
(i.e.
'=').
The
comparator
element
can
never
be
ignored.
The
unit
element
contains
a
displayable
unit
that
defines
what
is
measured.
The
unit
may
additionally
be
coded
in
some
formal
way
using
the
code
and
the
system
(see
Coding
for
further
information
about
how
to
use
the
system
element).
If
the
unit
can
be
coded
in
UCUM
and
a
code
is
provided,
it
SHOULD
be
a
UCUM
code.
If
a
UCUM
unit
is
provided
in
the
code
,
then
a
canonical
value
can
be
generated
for
purposes
of
comparison
between
quantities.
Note
that
the
unit
element
will
often
contain
text
that
is
a
valid
UCUM
unit,
but
it
cannot
be
assumed
that
the
unit
actually
contains
a
valid
UCUM
unit.
Constraints
| id | Level | Location | Description | Expression |
|
|
Rule | (base) | If a code for the unit is present, the system SHALL also be present | code.empty() or system.exists() |
The
context
of
use
may
frequently
define
what
kind
of
measured
quantity
this
is
and
therefore
what
kind
of
unit
can
be
used.
The
context
of
use
may
additionally
require
a
code
from
a
particular
system
,
or
a
value
set
-
see
Using
Terminologies
for
information
about
binding
a
Quantity
to
a
value
set
to
constrain
the
unit
codes.
The
context
of
use
may
also
restrict
the
values
for
the
value
or
comparator
.
Terminology Bindings
| Path |
|
Type |
|
|---|---|---|---|
| Quantity.comparator |
|
Required |
|
Quantity
is
used
in
the
following
places:
Count
,
SubstanceAmount
,
Ratio
,
ElementDefinition
,
Distance
,
Age
,
Duration
,
ProductShelfLife
,
UsageContext
,
AdministrableProductDefinition
,
ArtifactAssessment
,
AuditEvent
,
BiologicallyDerivedProduct
,
BodyStructure
ProdCharacteristic
,
ChargeItem
,
Claim
,
ClaimResponse
,
ConceptMap
,
ConditionDefinition
,
Contract
,
Device
,
DeviceDefinition
,
DeviceMetric
,
DeviceRequest
,
Evidence
,
EvidenceReport
,
EvidenceVariable
,
ExplanationOfBenefit
,
Goal
,
Group
,
Ingredient
,
InsurancePlan
,
InventoryItem
,
InventoryReport
,
ManufacturedItemDefinition
,
MeasureReport
,
Medication
MedicinalProductIndication
,
MedicationKnowledge
MedicinalProductManufactured
,
MedicinalProductDefinition
MedicinalProductPackaged
,
MedicinalProductPharmaceutical
,
MolecularSequence
,
Observation
,
PackagedProductDefinition
,
PlanDefinition
,
Questionnaire
,
QuestionnaireResponse
,
ServiceRequest
,
SubstanceDefinition
,
SubstancePolymer
,
SubstanceReferenceInformation
,
SubstanceSpecification
and
SupplyRequest
There
are
several
additional
datatypes
data
types
that
are
specializations
of
Quantity
that
only
introduce
new
restrictions
on
the
existing
elements
defined
as
part
of
the
Quantity
datatype.
data
type.
The
types
Age,
Distance
and
Count
are
marked
as
Trial
Use
because
they
are
not
used
in
this
specification
(though
they
may
be
used
in
extensions).
These
types
may
be
converted
back
to
a
profile
(see
R2
definitions
).
| Type Name | Rules | Formal Definitions | ||||||||||||||||||
| Distance |
Terminology Bindings
|
XML , JSON | ||||||||||||||||||
| Usage: (not used as yet) | ||||||||||||||||||||
|
||||||||||||||||||||
| Age |
Terminology Bindings
|
XML , JSON | ||||||||||||||||||
|
Usage:
ActivityDefinition
,
AllergyIntolerance
,
Condition
,
FamilyMemberHistory
,
PlanDefinition
,
Procedure
and
|
||||||||||||||||||||
| Count |
|
XML , JSON | ||||||||||||||||||
|
Usage:
|
||||||||||||||||||||
| Duration |
Terminology Bindings
|
XML , JSON | ||||||||||||||||||
|
Usage:
DataRequirement
,
|
||||||||||||||||||||
|
In addition to the specializations, there is one constraint on Quantity used in several resources: |
||||||||||||||||||||
| Profile Name | Rules | Formal Definitions | ||||||||||||||||||
| Simple Quantity |
|
XML , JSON | ||||||||||||||||||
|
Usage:
Dosage
,
|
||||||||||||||||||||
Note that the constraint is different from the other specializations of Quantity because it is not a type, just rules applied where the Quantity type is used. There's another constraint - see Money immediately below.
See
also
Examples
,
Detailed
Descriptions
,
and
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
An amount of currency.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
An
amount
of
economic
utility
in
some
recognized
currency
Elements defined in Ancestors: id , extension |
|
|
Σ | 0..1 | decimal | Numerical value (with implicit precision) |
|
Σ | 0..1 | code |
ISO
4217
Currency
Code
|
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <value value="[decimal]"/><!-- 0..1 Numerical value (with implicit precision) --> <currency value="[code]"/><!-- 0..1 ISO 4217 Currency Code --></Money></[name]>
JSON Template
{
// from Element: extension
"value" : <decimal>, // Numerical value (with implicit precision)
"currency" : "<code>" // ISO 4217 Currency Code
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir:fhir:Money.value [ decimal ]; # 0..1 Numerical value (with implicit precision) fhir:Money.currency [ code ]; # 0..1 ISO 4217 Currency Code ]
Changes since Release 3
| Money | |
| Money.value |
|
| Money.currency |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
An
amount
of
economic
utility
in
some
recognized
currency
Elements defined in Ancestors: id , extension |
|
|
Σ | 0..1 | decimal | Numerical value (with implicit precision) |
|
Σ | 0..1 | code |
ISO
4217
Currency
Code
|
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <value value="[decimal]"/><!-- 0..1 Numerical value (with implicit precision) --> <currency value="[code]"/><!-- 0..1 ISO 4217 Currency Code --></Money></[name]>
JSON Template
{
// from Element: extension
"value" : <decimal>, // Numerical value (with implicit precision)
"currency" : "<code>" // ISO 4217 Currency Code
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir:fhir:Money.value [ decimal ]; # 0..1 Numerical value (with implicit precision) fhir:Money.currency [ code ]; # 0..1 ISO 4217 Currency Code ]
Changes since Release 3
| Money | |
| Money.value |
|
| Money.currency |
|
See the Full Difference for further information
The
value
contains
the
amount
of
the
currency,
including
an
implicit
precision.
Precision
is
always
important
for
financial
amounts.
The
currency
element
contains
an
ISO
4217
code
for
the
currency.
Money
is
used
in
the
following
places:
MonetaryComponent
ChargeItem
,
Account
ChargeItemDefinition
,
Claim
,
ClaimResponse
,
Contract
,
Coverage
,
CoverageEligibilityRequest
,
CoverageEligibilityResponse
,
ExplanationOfBenefit
,
InsurancePlan
,
Invoice
,
MedicationKnowledge
,
PaymentNotice
and
PaymentReconciliation
There
are
also
circumstances
where
a
financial
amount
must
be
represented
as
the
numerator
or
denominator
in
a
Ratio,
where
the
type
is
currency.
In
this
context,
the
Money
amount
is
represented
as
a
Quantity
,
using
the
MoneyQuantity
constraint:
| Profile Name | Rules | Formal Definitions | ||||||||||
| Money Quantity |
|
XML , JSON | ||||||||||
| Usage: (not used as yet) | ||||||||||||
Note that the profile is different from the other specializations because it is not a type, just rules applied where the Quantity type is used to represent Money amounts.
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
A set of ordered Quantity values defined by a low and high limit.
A Range specifies a set of possible values; usually, one value from the range applies (e.g. "give the patient between 2 and 4 tablets"). Ranges are typically used in instructions.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ I N | Element |
Set
of
values
bounded
by
low
and
high
+ Rule: If present, low SHALL have a lower value than high Elements defined in Ancestors: id , extension |
|
|
Σ
|
0..1 | SimpleQuantity | Low limit |
|
Σ
|
0..1 | SimpleQuantity | High limit |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --><</low> <</high> </Range><low><!-- 0..1 Quantity(SimpleQuantity) Low limit --></low> <high><!-- 0..1 Quantity(SimpleQuantity) High limit --></high> </[name]>
JSON Template
{
// from Element: extension
"
"
"low" : { Quantity(SimpleQuantity) }, // Low limit
"high" : { Quantity(SimpleQuantity) } // High limit
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir:fhir:Range.low [ Quantity(SimpleQuantity) ]; # 0..1 Low limit fhir:Range.high [ Quantity(SimpleQuantity) ]; # 0..1 High limit ]
Changes since Release 3
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ I N | Element |
Set
of
values
bounded
by
low
and
high
+ Rule: If present, low SHALL have a lower value than high Elements defined in Ancestors: id , extension |
|
|
Σ
|
0..1 | SimpleQuantity | Low limit |
|
Σ
|
0..1 | SimpleQuantity | High limit |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --><</low> <</high> </Range><low><!-- 0..1 Quantity(SimpleQuantity) Low limit --></low> <high><!-- 0..1 Quantity(SimpleQuantity) High limit --></high> </[name]>
JSON Template
{
// from Element: extension
"
"
"low" : { Quantity(SimpleQuantity) }, // Low limit
"high" : { Quantity(SimpleQuantity) } // High limit
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir:fhir:Range.low [ Quantity(SimpleQuantity) ]; # 0..1 Low limit fhir:Range.high [ Quantity(SimpleQuantity) ]; # 0..1 High limit ]
The
unit
and
code
/
system
elements
of
the
low
or
high
elements
SHALL
match.
If
the
low
or
high
elements
are
missing,
the
meaning
is
that
the
low
or
high
boundaries
are
not
known
and
therefore
neither
is
the
complete
range.
The
comparator
flag
on
the
low
or
high
elements
cannot
be
present.
Note
that
the
Range
type
should
not
be
used
to
represent
out
of
range
measurements:
A
quantity
type
with
the
comparator
element
should
be
used
instead.
The low and the high values are inclusive and are assumed to have arbitrarily high precision; e.g. the range 1.5 to 2.5 includes 1.50, and 2.50 but not 1.49 or 2.51.
Constraints
| id | Level | Location | Description | Expression |
|
|
Rule | (base) | If present, low SHALL have a lower value than high |
|
Range
is
used
in
the
following
places:
Dosage
,
SubstanceAmount
,
Population
,
UsageContext
,
Timing
,
ActivityDefinition
,
AllergyIntolerance
,
AuditEvent
,
BiologicallyDerivedProduct
,
ClinicalUseDefinition
,
Condition
,
Device
,
DeviceDefinition
,
DeviceRequest
,
Evidence
,
EvidenceReport
,
EvidenceVariable
,
FamilyMemberHistory
,
Goal
,
Group
,
InventoryItem
,
MeasureReport
,
MedicationKnowledge
,
MolecularSequence
,
Observation
,
ObservationDefinition
,
PlanDefinition
,
Procedure
,
RequestOrchestration
RequestGroup
,
RiskAssessment
,
ServiceRequest
,
SpecimenDefinition
,
SubstanceReferenceInformation
,
SubstanceSpecification
and
SupplyRequest
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
A relationship between two Quantity values expressed as a numerator and a denominator.
The Ratio datatype should only be used to express a relationship of two numbers if the relationship cannot be suitably expressed using a Quantity and a common unit. Where the denominator value is known to be fixed to "1", Quantity should be used instead of Ratio.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ I N | Element |
A
ratio
of
two
Quantity
values
-
a
numerator
and
a
denominator
+ Rule: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present Elements defined in Ancestors: id , extension |
|
|
Σ
|
0..1 | Quantity | Numerator value |
|
Σ
|
0..1 |
|
Denominator value |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --><</numerator> <</denominator> </Ratio><numerator><!-- 0..1 Quantity Numerator value --></numerator> <denominator><!-- 0..1 Quantity Denominator value --></denominator> </[name]>
JSON Template
{
// from Element: extension
"
"
"numerator" : { Quantity }, // Numerator value
"denominator" : { Quantity } // Denominator value
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir:fhir:Ratio.numerator [ Quantity ]; # 0..1 Numerator value fhir:Ratio.denominator [ Quantity ]; # 0..1 Denominator value ]
Changes since Release 3
| Ratio |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ I N | Element |
A
ratio
of
two
Quantity
values
-
a
numerator
and
a
denominator
+ Rule: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present Elements defined in Ancestors: id , extension |
|
|
Σ
|
0..1 | Quantity | Numerator value |
|
Σ
|
0..1 |
|
Denominator value |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --><</numerator> <</denominator> </Ratio><numerator><!-- 0..1 Quantity Numerator value --></numerator> <denominator><!-- 0..1 Quantity Denominator value --></denominator> </[name]>
JSON Template
{
// from Element: extension
"
"
"numerator" : { Quantity }, // Numerator value
"denominator" : { Quantity } // Denominator value
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir:fhir:Ratio.numerator [ Quantity ]; # 0..1 Numerator value fhir:Ratio.denominator [ Quantity ]; # 0..1 Denominator value ]
Changes since Release 3
| Ratio |
|
See the Full Difference for further information
Examples where a Quantity is typically used are rates, densities, concentrations. Examples where a Ratio is used are: titers (e.g. 1:128); concentration ratios where the denominator is significant (e.g. 5mg/10mL); observed frequencies (e.g. 2 repetitions/8 hr), and where the numerator or denominator is an amount of a currency (no UCUM code for $ etc.).
Common factors in the numerator and denominator are not automatically cancelled out. Ratios are not simply "structured numbers" - for example, blood pressure measurements (e.g. "120/60") are not ratios.
A proper ratio has both a numerator and a denominator; however, these are not mandatory in order to allow an invalid ratio with an extension with further information.
Constraints
| id | Level | Location | Description | Expression |
|
|
Rule | (base) | Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present |
|
The context of use may require particular types of Quantity for the numerator or denominator.
Ratio
is
used
in
the
following
places:
Dosage
,
AdministrableProductDefinition
,
AuditEvent
,
BiologicallyDerivedProduct
,
Goal
,
Ingredient
,
InventoryItem
,
Medication
,
MedicationAdministration
,
MedicationKnowledge
,
MedicinalProductIngredient
,
MedicinalProductPharmaceutical
,
NutritionOrder
,
NutritionProduct
,
Observation
,
PlanDefinition
,
ServiceRequest
,
Substance
and
SubstanceDefinition
2.1.28.0.10
RatioRange
FHIR
Infrastructure
Work
Group
Maturity
Level
:
3
Standards
Status
:
Trial
Use
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
Extensions
and
R4
Conversions
A
range
of
ratios
of
two
Quantity
values
expressed
as
a
low
numerator,
a
high
numerator,
and
a
denominator.
The
RatioRange
datatype
should
only
be
used
to
express
a
range
of
ratios
if
the
relationship
cannot
be
suitably
expressed
using
a
Range
and
a
common
unit.
Where
the
denominator
value
is
known
to
be
fixed
to
"1",
Range
should
be
used
instead
of
RatioRange.
Structure
UML
XML
JSON
Turtle
R4
Diff
All
Structure
Name
Flags
Card.
Type
Description
&
Constraints
RatioRange
Σ
TU
Element
Range
of
ratio
values
+
Rule:
One
of
lowNumerator
or
highNumerator
and
denominator
SHALL
be
present,
or
all
are
absent.
If
all
are
absent,
there
SHALL
be
some
extension
present
+
Rule:
If
present,
lowNumerator
SHALL
have
a
lower
value
than
highNumerator
Elements
defined
in
Ancestors:
id
,
extension
lowNumerator
Σ
C
0..1
SimpleQuantity
Low
Numerator
limit
highNumerator
Σ
C
0..1
SimpleQuantity
High
Numerator
limit
denominator
Σ
C
0..1
SimpleQuantity
Denominator
value
Documentation
for
this
format
Definition:
XML
|
JSON
UML
Diagram
(
Legend
)
RatioRange
The
value
of
the
low
limit
numerator
lowNumerator
:
Quantity
(
SimpleQuantity
)
[0..1]
«
This
element
has
or
is
affected
by
some
invariants
C
»
The
value
of
the
high
limit
numerator
highNumerator
:
Quantity
(
SimpleQuantity
)
[0..1]
«
This
element
has
or
is
affected
by
some
invariants
C
»
The
value
of
the
denominator
denominator
:
Quantity
(
SimpleQuantity
)
[0..1]
«
This
element
has
or
is
affected
by
some
invariants
C
»
DataType
XML
Template
< xmlns="http://hl7.org/fhir">
<!-- from Element: -->
<</lowNumerator>
<</highNumerator>
<</denominator>
</RatioRange>
JSON
Template
{
// from Element:
"
"
"
}
Turtle
Template
@prefix fhir: <http://hl7.org/fhir/> .
[
# from Element:
fhir:
fhir:
fhir:
]
Changes
since
Release
3
Changes
from
both
R4
and
R4B
This
complex-type
did
not
exist
in
Release
R4
See
the
Full
Difference
for
further
information
Structure
Name
Flags
Card.
Type
Description
&
Constraints
RatioRange
Σ
TU
Element
Range
of
ratio
values
+
Rule:
One
of
lowNumerator
or
highNumerator
and
denominator
SHALL
be
present,
or
all
are
absent.
If
all
are
absent,
there
SHALL
be
some
extension
present
+
Rule:
If
present,
lowNumerator
SHALL
have
a
lower
value
than
highNumerator
Elements
defined
in
Ancestors:
id
,
extension
lowNumerator
Σ
C
0..1
SimpleQuantity
Low
Numerator
limit
highNumerator
Σ
C
0..1
SimpleQuantity
High
Numerator
limit
denominator
Σ
C
0..1
SimpleQuantity
Denominator
value
Documentation
for
this
format
UML
Diagram
(
Legend
)
RatioRange
The
value
of
the
low
limit
numerator
lowNumerator
:
Quantity
(
SimpleQuantity
)
[0..1]
«
This
element
has
or
is
affected
by
some
invariants
C
»
The
value
of
the
high
limit
numerator
highNumerator
:
Quantity
(
SimpleQuantity
)
[0..1]
«
This
element
has
or
is
affected
by
some
invariants
C
»
The
value
of
the
denominator
denominator
:
Quantity
(
SimpleQuantity
)
[0..1]
«
This
element
has
or
is
affected
by
some
invariants
C
»
DataType
XML
Template
< xmlns="http://hl7.org/fhir">
<!-- from Element: -->
<</lowNumerator>
<</highNumerator>
<</denominator>
</RatioRange>
JSON
Template
{
// from Element:
"
"
"
}
Turtle
Template
@prefix fhir: <http://hl7.org/fhir/> .
[
# from Element:
fhir:
fhir:
fhir:
]
Changes
since
Release
3
Changes
from
both
R4
and
R4B
This
complex-type
did
not
exist
in
Release
R4
See
the
Full
Difference
for
further
information
Common
factors
in
the
numerator
and
denominator
are
not
automatically
cancelled
out.
Ratios
are
not
simply
"structured
numbers"
-
for
example,
blood
pressure
measurements
(e.g.
"120/60")
are
not
ratios.
A
proper
ratio
range
has
one
of
the
numerators
and
a
denominator;
however,
these
are
not
mandatory
in
order
to
allow
an
invalid
ratio
with
an
extension
with
further
information.
Constraints
id
Level
Location
Description
Expression
ratrng-1
Rule
(base)
One
of
lowNumerator
or
highNumerator
and
denominator
SHALL
be
present,
or
all
are
absent.
If
all
are
absent,
there
SHALL
be
some
extension
present
((lowNumerator.exists()
or
highNumerator.exists())
and
denominator.exists())
or
(lowNumerator.empty()
and
highNumerator.empty()
and
denominator.empty()
and
extension.exists())
ratrng-2
Rule
(base)
If
present,
lowNumerator
SHALL
have
a
lower
value
than
highNumerator
lowNumerator.hasValue().not()
or
highNumerator.hasValue().not()
or
(lowNumerator.lowBoundary()
<=
highNumerator.highBoundary())
The
context
of
use
may
require
particular
types
of
Quantity
for
the
numerators
or
denominator.
RatioRange
is
used
in
the
following
places:
Ingredient
SubstanceSpecification
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
A time period defined by a start and end date/time.
A period specifies a range of times. 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 period applies (e.g. "give to the patient between 2 and 4 pm on 24-Jun 2013").
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ I N | Element |
Time
range
defined
by
start
and
end
date/time
+ Rule: If present, start SHALL have a lower Elements defined in Ancestors: id , extension |
|
|
Σ
|
0..1 | dateTime | Starting time with inclusive boundary |
|
Σ
|
0..1 | dateTime | End time with inclusive boundary, if not ongoing |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension -->< < </Period><start value="[dateTime]"/><!--0..1 Starting time with inclusive boundary --> <end value="[dateTime]"/><!--
0..1 End time with inclusive boundary, if not ongoing --> </[name]>
JSON Template
{
// from Element: extension
"
"
"start" : "<dateTime>", // C? Starting time with inclusive boundary
"end" : "<dateTime>" // C? End time with inclusive boundary, if not ongoing
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir:fhir:Period.start [ dateTime ]; # 0..1 Starting time with inclusive boundary fhir:Period.end [ dateTime ]; # 0..1 End time with inclusive boundary, if not ongoing ]
Changes since Release 3
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ I N | Element |
Time
range
defined
by
start
and
end
date/time
+ Rule: If present, start SHALL have a lower Elements defined in Ancestors: id , extension |
|
|
Σ
|
0..1 | dateTime | Starting time with inclusive boundary |
|
Σ
|
0..1 | dateTime | End time with inclusive boundary, if not ongoing |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension -->< < </Period><start value="[dateTime]"/><!--0..1 Starting time with inclusive boundary --> <end value="[dateTime]"/><!--
0..1 End time with inclusive boundary, if not ongoing --> </[name]>
JSON Template
{
// from Element: extension
"
"
"start" : "<dateTime>", // C? Starting time with inclusive boundary
"end" : "<dateTime>" // C? End time with inclusive boundary, if not ongoing
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir:fhir:Period.start [ dateTime ]; # 0..1 Starting time with inclusive boundary fhir:Period.end [ dateTime ]; # 0..1 End time with inclusive boundary, if not ongoing ]
If
the
start
element
is
missing,
the
start
of
the
period
is
not
known.
If
the
end
element
is
missing,
it
means
that
the
period
is
ongoing.
Alternatively,
this
ongoing,
or
the
start
may
be
represented
by
having
an
explicit
in
the
past,
and
the
end
date
in
the
future,
in
which
case
this
means
the
that
period
is
expected/planned
to
end
at
the
specified
time.
time
The end value includes any matching date/time. For example, the period 2011-05-23 to 2011-05-27 includes all the times from the start of the 23rd May through to the end of the 27th of May.
Period
is
used
in
the
following
places:
Address
,
DataRequirement
,
HumanName
,
ContactPoint
,
MarketingStatus
,
Identifier
,
Availability
,
Timing
,
ExtendedContactDetail
,
Account
,
ActivityDefinition
,
AdverseEvent
,
AllergyIntolerance
,
Appointment
,
AuditEvent
,
BiologicallyDerivedProduct
,
CarePlan
,
CareTeam
,
CatalogEntry
,
ChargeItem
,
ChargeItemDefinition
,
Citation
,
Claim
,
ClaimResponse
,
ClinicalImpression
,
CodeSystem
,
CommunicationRequest
,
Composition
,
ConceptMap
,
Condition
,
Consent
,
Contract
,
Coverage
,
CoverageEligibilityRequest
,
CoverageEligibilityResponse
,
DetectedIssue
,
DeviceAssociation
,
DeviceDefinition
,
DeviceRequest
,
DeviceUsage
DeviceUseStatement
,
DiagnosticReport
,
DocumentReference
,
EffectEvidenceSynthesis
,
Encounter
,
EncounterHistory
,
Endpoint
,
EpisodeOfCare
,
EventDefinition
,
EvidenceReport
Evidence
,
EvidenceVariable
,
ExplanationOfBenefit
,
FamilyMemberHistory
,
Flag
,
Group
,
HealthcareService
,
InsurancePlan
,
InventoryReport
,
Invoice
,
Library
,
Measure
,
MeasureReport
,
Media
,
MedicationAdministration
,
MedicationKnowledge
,
MedicationRequest
,
MedicationStatement
,
MedicinalProductDefinition
,
MetadataResource
MedicinalProductAuthorization
,
NamingSystem
,
NutritionIntake
,
Observation
,
ObservationDefinition
,
Organization
,
OrganizationAffiliation
,
Patient
,
PaymentReconciliation
,
Permission
,
PlanDefinition
,
Practitioner
,
PractitionerRole
,
Procedure
,
Provenance
,
Questionnaire
,
RegulatedAuthorization
,
RelatedPerson
,
RequestOrchestration
RequestGroup
,
ResearchDefinition
,
ResearchElementDefinition
,
ResearchStudy
,
ResearchSubject
,
RiskAssessment
,
RiskEvidenceSynthesis
,
Schedule
,
ServiceRequest
,
Specimen
,
SpecimenDefinition
,
SubscriptionTopic
,
SupplyDelivery
,
SupplyRequest
,
Task
,
Transport
and
ValueSet
Task
Normative Candidate Note: This DataType is not normative - it is still undergoing Trial Use while more experience is gathered.
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
Data that comes from a series of measurements taken by a device, which may have upper and lower limits. The data type also supports more than one dimension in the data.
A
SampledData
provides
a
concise
way
to
handle
the
data
produced
by
devices
that
sample
a
particular
physical
state
at
a
high
frequency.
A
typical
use
for
this
is
for
the
output
of
an
ECG
or
EKG
device.
The
datatype
data
type
includes
a
series
of
raw
decimal
values
(which
are
mostly
simple
integers)
or
codes,
integers),
along
with
adjustments
for
scale
and
factor.
These
are
interpreted
such
that
original measured value[i] = SampledData.data[i] * SampledData.factor + SampledData.origin.valueoriginal measured value[i] = SampledData.data[i] * SampledData.scaleFactor + SampledData.origin.value
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
TU | Element |
A
series
of
measurements
taken
by
a
device
|
|
|
Σ | 1..1 | SimpleQuantity | Zero value and units |
|
Σ
|
|
decimal |
Number
of
|
|
Σ | 0..1 | decimal | Multiply data by this before adding to origin |
|
Σ | 0..1 | decimal | Lower limit of detection |
|
Σ | 0..1 | decimal | Upper limit of detection |
|
Σ | 1..1 | positiveInt |
Number
of
sample
points
at
each
time
point
|
|
0..1 | string |
Decimal
values
with
spaces,
or
"E"
|
"U"
|
|
|
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <origin><!-- 1..1 Quantity(SimpleQuantity) Zero value and units --></origin>< <<period value="[decimal]"/><!-- 1..1 Number of milliseconds between samples --> <factor value="[decimal]"/><!-- 0..1 Multiply data by this before adding to origin --> <lowerLimit value="[decimal]"/><!-- 0..1 Lower limit of detection --> <upperLimit value="[decimal]"/><!-- 0..1 Upper limit of detection --> <dimensions value="[positiveInt]"/><!-- 1..1 Number of sample points at each time point --><</codeMap> < < </SampledData><data value="[string]"/><!-- 0..1 Decimal values with spaces, or "E" | "U" | "L" --> </[name]>
JSON Template
{
// from Element: extension
"origin" : { Quantity(SimpleQuantity) }, // R! Zero value and units
"
"
"period" : <decimal>, // R! Number of milliseconds between samples
"factor" : <decimal>, // Multiply data by this before adding to origin
"lowerLimit" : <decimal>, // Lower limit of detection
"upperLimit" : <decimal>, // Upper limit of detection
"dimensions" : "<positiveInt>", // R! Number of sample points at each time point
"
"
"
"data" : "<string>" // Decimal values with spaces, or "E" | "U" | "L"
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir:fhir:SampledData.origin [ Quantity(SimpleQuantity) ]; # 1..1 Zero value and units fhir:SampledData.period [ decimal ]; # 1..1 Number of milliseconds between samples fhir:SampledData.factor [ decimal ]; # 0..1 Multiply data by this before adding to origin fhir:SampledData.lowerLimit [ decimal ]; # 0..1 Lower limit of detection fhir:SampledData.upperLimit [ decimal ]; # 0..1 Upper limit of detection fhir:SampledData.dimensions [ positiveInt ]; # 1..1 Number of sample points at each time point fhir:SampledData.data [ string ]; # 0..1 Decimal values with spaces, or "E" | "U" | "L" ]
Changes since Release 3
|
SampledData
|
|
|
|
|
|
|
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
TU | Element |
A
series
of
measurements
taken
by
a
device
|
|
|
Σ | 1..1 | SimpleQuantity | Zero value and units |
|
Σ
|
|
decimal |
Number
of
|
|
Σ | 0..1 | decimal | Multiply data by this before adding to origin |
|
Σ | 0..1 | decimal | Lower limit of detection |
|
Σ | 0..1 | decimal | Upper limit of detection |
|
Σ | 1..1 | positiveInt |
Number
of
sample
points
at
each
time
point
|
|
0..1 | string |
Decimal
values
with
spaces,
or
"E"
|
"U"
|
|
|
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <origin><!-- 1..1 Quantity(SimpleQuantity) Zero value and units --></origin>< <<period value="[decimal]"/><!-- 1..1 Number of milliseconds between samples --> <factor value="[decimal]"/><!-- 0..1 Multiply data by this before adding to origin --> <lowerLimit value="[decimal]"/><!-- 0..1 Lower limit of detection --> <upperLimit value="[decimal]"/><!-- 0..1 Upper limit of detection --> <dimensions value="[positiveInt]"/><!-- 1..1 Number of sample points at each time point --><</codeMap> < < </SampledData><data value="[string]"/><!-- 0..1 Decimal values with spaces, or "E" | "U" | "L" --> </[name]>
JSON Template
{
// from Element: extension
"origin" : { Quantity(SimpleQuantity) }, // R! Zero value and units
"
"
"period" : <decimal>, // R! Number of milliseconds between samples
"factor" : <decimal>, // Multiply data by this before adding to origin
"lowerLimit" : <decimal>, // Lower limit of detection
"upperLimit" : <decimal>, // Upper limit of detection
"dimensions" : "<positiveInt>", // R! Number of sample points at each time point
"
"
"
"data" : "<string>" // Decimal values with spaces, or "E" | "U" | "L"
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir:fhir:SampledData.origin [ Quantity(SimpleQuantity) ]; # 1..1 Zero value and units fhir:SampledData.period [ decimal ]; # 1..1 Number of milliseconds between samples fhir:SampledData.factor [ decimal ]; # 0..1 Multiply data by this before adding to origin fhir:SampledData.lowerLimit [ decimal ]; # 0..1 Lower limit of detection fhir:SampledData.upperLimit [ decimal ]; # 0..1 Upper limit of detection fhir:SampledData.dimensions [ positiveInt ]; # 1..1 Number of sample points at each time point fhir:SampledData.data [ string ]; # 0..1 Decimal values with spaces, or "E" | "U" | "L" ]
Changes since Release 3
|
SampledData
|
|
|
|
|
|
|
|
See the Full Difference for further information
SampledData
supports
multi-dimensional
data,
where
there
is
more
than
one
measurement
for
each
time
point.
The
digits
are
a
set
of
decimal
values
separated
by
a
single
space
(Unicode
character
u20).
In
addition
to
decimal
values,
the
special
values
"E"
(error),
"L"
(below
detection
limit)
and
"U"
(above
detection
limit)
can
also
be
used.
If
there
is
more
than
one
dimension,
the
different
dimensions
are
interlaced
-
all
the
data
points
for
a
particular
time
are
represented
together.
Data
points
are
separated
by
by
a
single
space
(Unicode
character
u20).
Each
data
point
is
either
a
decimal
value
or
a
code.
Three
special
codes
are
defined:
E
:
error
-
no
valid
measurement
available
for
this
data
point
L
:
below
detection
point
-
the
value
was
below
the
device's
detection
limit
(
lowerLimit
,
which
must
be
provided
if
this
code
is
used)
U
:
above
detection
point
-
the
value
was
above
the
device's
detection
limit
(
upperLimit
,
which
must
be
provided
if
this
code
is
used)
Other
codes
may
be
used.
In
this
case,
the
meaning
of
the
codes
is
specified
by
the
codeMap
property
which
references
a
ConceptMap
that
defines
the
codes
used
in
the
data,
and
maps
the
codes
to
properly
defined
concepts
in
a
CodeSystem
.
Note
that
in
this
case,
source
system
defined
in
the
ConceptMap
is
not
used
in
the
SampledData
and
is
ignored.
There
SHALL
only
be
one
group
in
the
ConceptMap.
The
ConceptMap
cannot
define
meanings
for
any
numerical
values,
nor
for
the
codes
'E',
'U',
or
'L'
(nor,
for
safety,
'e',
'u',
or
'l'),
since
they
always
have
the
meaning
as
defined
above.
There
is
no
escape
sequences;
codes
cannot
contain
spaces.
Also,
to
make
parsing
simpler,
codes
cannot
start
with
numerals.
SampledData
is
used
in
the
following
places:
Observation
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
A
string,
typically
numeric
or
alphanumeric,
alphanumeric
string
that
is
associated
with
a
single
object
or
entity
within
a
given
system.
Typically,
identifiers
are
used
to
connect
content
in
resources
to
external
content
available
in
other
frameworks
or
protocols.
Identifiers
are
associated
with
objects
and
may
be
changed
or
retired
due
to
human
or
system
process
and
errors.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
An
identifier
intended
for
computation
|
|
|
?! Σ | 0..1 | code |
usual
|
official
|
temp
|
secondary
|
old
(If
known)
|
|
Σ | 0..1 | CodeableConcept |
Description
of
identifier
|
|
Σ | 0..1 | uri | The namespace for the identifier value |
|
Σ
|
0..1 | string | The value that is unique |
|
Σ | 0..1 | Period | Time period when id is/was valid for use |
|
Σ | 0..1 | Reference ( Organization ) | Organization that issued id (may be just text) |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <use value="[code]"/><!-- 0..1 usual | official | temp | secondary | old (If known) --> <type><!-- 0..1 CodeableConcept Description of identifier --></type>< <<system value="[uri]"/><!-- 0..1 The namespace for the identifier value --> <value value="[string]"/><!-- 0..1 The value that is unique --> <period><!-- 0..1 Period Time period when id is/was valid for use --></period> <assigner><!-- 0..1 Reference(Organization) Organization that issued id (may be just text) --></assigner></Identifier></[name]>
JSON Template
{
// from Element: extension
"use" : "<code>", // usual | official | temp | secondary | old (If known)
"type" : { CodeableConcept }, // Description of identifier
"
"
"system" : "<uri>", // The namespace for the identifier value
"value" : "<string>", // The value that is unique
"period" : { Period }, // Time period when id is/was valid for use
"assigner" : { Reference(Organization) } // Organization that issued id (may be just text)
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir:fhir:Identifier.use [ code ]; # 0..1 usual | official | temp | secondary | old (If known) fhir:Identifier.type [ CodeableConcept ]; # 0..1 Description of identifier fhir:Identifier.system [ uri ]; # 0..1 The namespace for the identifier value fhir:Identifier.value [ string ]; # 0..1 The value that is unique fhir:Identifier.period [ Period ]; # 0..1 Time period when id is/was valid for use fhir:Identifier.assigner [ Reference(Organization) ]; # 0..1 Organization that issued id (may be just text) ]
Changes since Release 3
| Identifier | |
| Identifier.use |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
An
identifier
intended
for
computation
|
|
|
?! Σ | 0..1 | code |
usual
|
official
|
temp
|
secondary
|
old
(If
known)
|
|
Σ | 0..1 | CodeableConcept |
Description
of
identifier
|
|
Σ | 0..1 | uri | The namespace for the identifier value |
|
Σ
|
0..1 | string | The value that is unique |
|
Σ | 0..1 | Period | Time period when id is/was valid for use |
|
Σ | 0..1 | Reference ( Organization ) | Organization that issued id (may be just text) |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <use value="[code]"/><!-- 0..1 usual | official | temp | secondary | old (If known) --> <type><!-- 0..1 CodeableConcept Description of identifier --></type>< <<system value="[uri]"/><!-- 0..1 The namespace for the identifier value --> <value value="[string]"/><!-- 0..1 The value that is unique --> <period><!-- 0..1 Period Time period when id is/was valid for use --></period> <assigner><!-- 0..1 Reference(Organization) Organization that issued id (may be just text) --></assigner></Identifier></[name]>
JSON Template
{
// from Element: extension
"use" : "<code>", // usual | official | temp | secondary | old (If known)
"type" : { CodeableConcept }, // Description of identifier
"
"
"system" : "<uri>", // The namespace for the identifier value
"value" : "<string>", // The value that is unique
"period" : { Period }, // Time period when id is/was valid for use
"assigner" : { Reference(Organization) } // Organization that issued id (may be just text)
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir:fhir:Identifier.use [ code ]; # 0..1 usual | official | temp | secondary | old (If known) fhir:Identifier.type [ CodeableConcept ]; # 0..1 Description of identifier fhir:Identifier.system [ uri ]; # 0..1 The namespace for the identifier value fhir:Identifier.value [ string ]; # 0..1 The value that is unique fhir:Identifier.period [ Period ]; # 0..1 Time period when id is/was valid for use fhir:Identifier.assigner [ Reference(Organization) ]; # 0..1 Organization that issued id (may be just text) ]
Changes since Release 3
| Identifier | |
| Identifier.use |
|
See the Full Difference for further information
The
value
SHALL
be
unique
within
the
defined
system
and
have
a
consistent
meaning
wherever
it
appears.
Identifier.system
is
an
absolute
always
case
sensitive.
Identifier.value
is
to
be
treated
as
case
sensitive
unless
knowledge
of
the
Identifier.system
allows
the
processer
to
be
confident
that
non-case-sensitive
processing
is
safe.
The
system
is
a
URI
that
defines
a
set
of
identifiers
(i.e.
how
the
value
is
made
unique).
It
might
be
a
specific
application
or
a
recognized
standard/specification
for
a
set
of
identifiers
or
a
way
of
making
identifiers
unique.
FHIR
defines
some
useful
or
important
system
URIs
directly
.
Here
are
some
example
identifier
namespaces:
http://hl7.org/fhir/sid/us-ssn
for
United
States
Social
Security
Number
(SSN)
values
http://ns.electronichealth.net.au/id/hi/ihi/1.0
for
Australian
Individual
Healthcare
Identifier
(IHI)
numbers
urn:ietf:rfc:3986
for
when
the
value
of
the
identifier
is
itself
a
globally
unique
URI
If
the
system
is
a
URL,
it
SHOULD
resolve.
Resolution
might
be
to
a
web
page
that
describes
the
identifier
system
and/or
supports
look-up
of
identifiers.
Alternatively,
it
could
be
to
a
NamingSystem
resource
instance.
Resolvable
URLs
are
generally
preferred
by
implementers
over
non-resolvable
URNs,
particularly
opaque
URNs
such
as
OIDs
(urn:oid:)
or
UUIDs
(urn:uuid:).
If
used,
OIDs
and
UUIDs
may
be
registered
in
the
HL7
OID
registry
and
SHOULD
be
registered
if
the
content
is
shared
or
exchanged
across
institutional
boundaries.
It is up to the implementer organization to determine an appropriate URL or URN structure that will avoid collisions and to manage that space (and the resolvability of URLs) over time.
Note that the scope of a given identifier system may extend beyond identifiers that might be captured by a single resource. For example, some systems might draw all "order" identifiers from a single namespace, though some might be used on MedicationRequest while others would appear on ServiceRequest .
The
value
SHALL
be
unique
within
the
defined
system
and
have
a
consistent
meaning
wherever
it
appears.
Identifier.system
is
always
case
sensitive.
Identifier.value
is
to
be
treated
as
case
sensitive
unless
knowledge
of
the
Identifier.system
allows
the
processer
to
be
confident
that
non-case-sensitive
processing
is
safe.
If
the
identifier
value
itself
is
naturally
a
globally
unique
URI
(e.g.
an
OID,
a
UUID,
or
a
URI
with
no
trailing
local
part),
then
the
system
SHALL
be
"
urn:ietf:rfc:3986
",
and
the
URI
is
in
the
value
(OIDs
and
UUIDs
using
urn:oid:
and
urn:uuid:
-
see
note
on
the
V3
mapping
and
the
examples
).
Naturally
globally
unique
identifiers
are
those
for
which
no
other
system
has
been
assigned
and
where
the
value
of
the
identifier
is
reasonably
expected
to
not
be
re-used.
Typically,
these
are
absolute
URIs
of
some
kind.
In
some
cases,
the
system
might
not
be
known
-
only
the
value
is
known
(e.g.
a
simple
device
that
scans
a
barcode),
or
the
system
is
known
implicitly
(simple
exchange
in
a
limited
context,
often
driven
by
barcode
readers).
In
this
case,
no
useful
matching
may
be
performed
using
the
value
unless
the
system
can
be
safely
inferred
by
the
context.
Applications
should
provide
a
system
wherever
possible,
as
information
sharing
in
a
wider
context
is
very
likely
to
arise
eventually,
and
values
without
a
system
are
inherently
limited
in
use.
Whether
or
not
the
proper
Identifier.system
is
known,
the
human-readable
label
for
the
Identifier.value
typically
appears
in
Identifier.type.text
.
E.g.
'BC
provincial
health
number'.
In
addition
to
the
system
(which
provides
a
uniqueness
scope)
and
the
value
,
identifiers
may
also
have
a
type
,
which
may
be
useful
when
a
system
encounters
identifiers
with
unknown
system
values.
Note,
however,
that
the
type
of
an
identifier
is
not
a
well-controlled
vocabulary
with
wide
variations
in
practice.
The
type
deals
only
with
general
categories
of
identifiers
and
SHOULD
not
be
used
for
codes
that
correspond
1..1
with
the
Identifier.system.
Some
identifiers
may
fall
into
multiple
categories
due
to
variations
in
common
usage.
The
assigner
is
used
to
indicate
what
registry/state/facility/etc.
assigned
the
identifier.
As
a
Reference
,
the
assigner
can
include
just
a
text
description
in
the
display
.
Constraints
Terminology Bindings
| Path |
|
Type |
|
|---|---|---|---|
| Identifier.use |
|
|
|
| Identifier.type | A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | Extensible | Identifier Type Codes |
Identifier
is
used
in
the
following
places:
Reference
,
ProductShelfLife
,
Account
,
ActivityDefinition
,
ActorDefinition
,
AdministrableProductDefinition
,
AdverseEvent
,
AllergyIntolerance
,
Appointment
,
AppointmentResponse
,
ArtifactAssessment
,
Basic
,
BiologicallyDerivedProduct
,
BiologicallyDerivedProductDispense
,
BodyStructure
,
Bundle
,
CanonicalResource
,
CapabilityStatement
,
CarePlan
,
CareTeam
,
CatalogEntry
,
ChargeItem
,
ChargeItemDefinition
,
Citation
,
Claim
,
ClaimResponse
,
ClinicalImpression
,
ClinicalUseDefinition
,
CodeSystem
,
Communication
,
CommunicationRequest
,
Composition
,
ConceptMap
,
Condition
,
ConditionDefinition
,
Consent
,
Contract
,
Coverage
,
CoverageEligibilityRequest
,
CoverageEligibilityResponse
,
DetectedIssue
,
Device
,
DeviceAssociation
,
DeviceDefinition
,
DeviceDispense
,
DeviceMetric
,
DeviceRequest
,
DeviceUsage
DeviceUseStatement
,
DiagnosticReport
,
DocumentManifest
,
DocumentReference
,
EffectEvidenceSynthesis
,
Encounter
,
EncounterHistory
,
Endpoint
,
EnrollmentRequest
,
EnrollmentResponse
,
EpisodeOfCare
,
EventDefinition
,
Evidence
,
EvidenceReport
,
EvidenceVariable
,
ExampleScenario
,
ExplanationOfBenefit
,
FamilyMemberHistory
,
Flag
,
FormularyItem
,
GenomicStudy
,
Goal
,
GraphDefinition
,
Group
,
GuidanceResponse
,
HealthcareService
,
ImagingSelection
,
ImagingStudy
,
Immunization
,
ImmunizationEvaluation
,
ImmunizationRecommendation
,
ImplementationGuide
,
Ingredient
,
InsurancePlan
,
InventoryItem
,
InventoryReport
,
Invoice
,
Library
,
List
,
Location
,
ManufacturedItemDefinition
,
Measure
,
MeasureReport
,
Media
,
Medication
,
MedicationAdministration
,
MedicationDispense
,
MedicationKnowledge
,
MedicationRequest
,
MedicationStatement
,
MedicinalProductDefinition
MedicinalProduct
,
MedicinalProductAuthorization
,
MedicinalProductIngredient
,
MedicinalProductPackaged
,
MedicinalProductPharmaceutical
,
MessageDefinition
,
MessageHeader
,
MolecularSequence
,
NamingSystem
,
NutritionIntake
,
NutritionOrder
,
NutritionProduct
,
Observation
,
ObservationDefinition
,
OperationDefinition
,
Organization
,
OrganizationAffiliation
,
PackagedProductDefinition
,
Patient
,
PaymentNotice
,
PaymentReconciliation
,
Person
,
PlanDefinition
,
Practitioner
,
PractitionerRole
,
Procedure
,
Questionnaire
,
QuestionnaireResponse
,
RegulatedAuthorization
,
RelatedPerson
,
RequestOrchestration
RequestGroup
,
Requirements
ResearchDefinition
,
ResearchElementDefinition
,
ResearchStudy
,
ResearchSubject
,
RiskAssessment
,
RiskEvidenceSynthesis
,
Schedule
,
SearchParameter
,
ServiceRequest
,
Slot
,
Specimen
,
SpecimenDefinition
,
StructureDefinition
,
StructureMap
,
Subscription
,
SubscriptionTopic
,
Substance
,
SubstanceDefinition
,
SubstanceNucleicAcid
,
SubstancePolymer
,
SubstanceProtein
,
SubstanceReferenceInformation
,
SubstanceSourceMaterial
,
SubstanceSpecification
,
SupplyDelivery
,
SupplyRequest
,
Task
,
TerminologyCapabilities
,
TestPlan
,
TestReport
,
TestScript
,
Transport
,
ValueSet
and
VisionPrescription
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
A name of a human with text, parts and usage information.
Names may be changed or repudiated. 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 is not always significant. With personal names, the different parts might or might not be imbued with some implicit meaning; various cultures associate different importance with the name parts and the degree to which systems SHALL care about name parts around the world varies widely.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
Name
of
a
human
Elements defined in Ancestors: id , extension |
|
|
?! Σ | 0..1 | code |
usual
|
official
|
temp
|
nickname
|
anonymous
|
old
|
maiden
|
|
Σ | 0..1 | string | Text representation of the full name |
|
Σ | 0..1 | string | Family name (often called 'Surname') |
|
Σ | 0..* | string |
Given
names
(not
always
'first').
Includes
middle
names
This repeating element order: Given Names appear in the correct order for presenting the name |
|
Σ | 0..* | string |
Parts
that
come
before
the
name
This repeating element order: Prefixes appear in the correct order for presenting the name |
|
Σ | 0..* | string |
Parts
that
come
after
the
name
This repeating element order: Suffixes appear in the correct order for presenting the name |
|
Σ | 0..1 | Period | Time period when name was/is in use |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <use value="[code]"/><!-- 0..1 usual | official | temp | nickname | anonymous | old | maiden --> <text value="[string]"/><!-- 0..1 Text representation of the full name --> <family value="[string]"/><!-- 0..1 Family name (often called 'Surname') --> <given value="[string]"/><!-- 0..* Given names (not always 'first'). Includes middle names --> <prefix value="[string]"/><!-- 0..* Parts that come before the name --> <suffix value="[string]"/><!-- 0..* Parts that come after the name --> <period><!-- 0..1 Period Time period when name was/is in use --></period></HumanName></[name]>
JSON Template
{
// from Element: extension
"use" : "<code>", // usual | official | temp | nickname | anonymous | old | maiden
"text" : "<string>", // Text representation of the full name
"family" : "<string>", // Family name (often called 'Surname')
"given" : ["<string>"], // Given names (not always 'first'). Includes middle names
"prefix" : ["<string>"], // Parts that come before the name
"suffix" : ["<string>"], // Parts that come after the name
"period" : { Period } // Time period when name was/is in use
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir: fhir:fhir:HumanName.use [ code ]; # 0..1 usual | official | temp | nickname | anonymous | old | maiden fhir:HumanName.text [ string ]; # 0..1 Text representation of the full name fhir:HumanName.family [ string ]; # 0..1 Family name (often called 'Surname') fhir:HumanName.given [ string ], ... ; # 0..* Given names (not always 'first'). Includes middle names fhir:HumanName.prefix [ string ], ... ; # 0..* Parts that come before the name fhir:HumanName.suffix [ string ], ... ; # 0..* Parts that come after the name fhir:HumanName.period [ Period ]; # 0..1 Time period when name was/is in use ]
Changes since Release 3
| HumanName | |
| HumanName.use |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
Name
of
a
human
Elements defined in Ancestors: id , extension |
|
|
?! Σ | 0..1 | code |
usual
|
official
|
temp
|
nickname
|
anonymous
|
old
|
maiden
|
|
Σ | 0..1 | string | Text representation of the full name |
|
Σ | 0..1 | string | Family name (often called 'Surname') |
|
Σ | 0..* | string |
Given
names
(not
always
'first').
Includes
middle
names
This repeating element order: Given Names appear in the correct order for presenting the name |
|
Σ | 0..* | string |
Parts
that
come
before
the
name
This repeating element order: Prefixes appear in the correct order for presenting the name |
|
Σ | 0..* | string |
Parts
that
come
after
the
name
This repeating element order: Suffixes appear in the correct order for presenting the name |
|
Σ | 0..1 | Period | Time period when name was/is in use |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <use value="[code]"/><!-- 0..1 usual | official | temp | nickname | anonymous | old | maiden --> <text value="[string]"/><!-- 0..1 Text representation of the full name --> <family value="[string]"/><!-- 0..1 Family name (often called 'Surname') --> <given value="[string]"/><!-- 0..* Given names (not always 'first'). Includes middle names --> <prefix value="[string]"/><!-- 0..* Parts that come before the name --> <suffix value="[string]"/><!-- 0..* Parts that come after the name --> <period><!-- 0..1 Period Time period when name was/is in use --></period></HumanName></[name]>
JSON Template
{
// from Element: extension
"use" : "<code>", // usual | official | temp | nickname | anonymous | old | maiden
"text" : "<string>", // Text representation of the full name
"family" : "<string>", // Family name (often called 'Surname')
"given" : ["<string>"], // Given names (not always 'first'). Includes middle names
"prefix" : ["<string>"], // Parts that come before the name
"suffix" : ["<string>"], // Parts that come after the name
"period" : { Period } // Time period when name was/is in use
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir: fhir:fhir:HumanName.use [ code ]; # 0..1 usual | official | temp | nickname | anonymous | old | maiden fhir:HumanName.text [ string ]; # 0..1 Text representation of the full name fhir:HumanName.family [ string ]; # 0..1 Family name (often called 'Surname') fhir:HumanName.given [ string ], ... ; # 0..* Given names (not always 'first'). Includes middle names fhir:HumanName.prefix [ string ], ... ; # 0..* Parts that come before the name fhir:HumanName.suffix [ string ], ... ; # 0..* Parts that come after the name fhir:HumanName.period [ Period ]; # 0..1 Time period when name was/is in use ]
Changes since Release 3
| HumanName | |
| HumanName.use |
|
See the Full Difference for further information
This table summarizes where common parts of a person's name are found.
| Name | Example | Destination / Comments |
| Surname | Smith | Family Name |
| First name | John | Given Name |
| Title | Mr. | Prefix |
| Middle Name | Samuel | Subsequent Given Names |
| Patronymic | bin Osman | Family Name |
| Multiple family names | Carreño Quiñones | Family Name. See note below about decomposition of family name |
| Initials | Q. | Given Name as initial ("." recommended) |
| Nick Name | Jock |
Given
name,
with
Use
=
|
| Qualifications | PhD | Suffix |
| Honorifics | Senior | Suffix |
| Voorvoegsel / Nobility | van Beethoven | Family Name. See note below about decomposition of family name |
For
further
information,
including
all
W3C
International
Examples
,
consult
the
examples
.
Note:
Implementers
should
read
the
name
examples
for
a
full
understanding
of
how
name
works.
The
multiple
given
parts
and
family
name
combine
to
form
a
single
name.
Where
a
person
has
alternate
names
that
may
be
used
in
place
of
each
other
(e.g.
Nicknames,
Aliases),
these
are
different
instances
of
HumanName
.
The text element specifies the entire name as it should be displayed e.g. in an application UI. This may be provided instead of or as well as the specific parts. Applications updating a name SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part. The correct order of assembly of the parts is culture dependent: the order of the parts within a given part type has significance and SHALL be observed. The appropriate order between family name and given names depends on culture and context of use. Note that there is an extension for the few times name assembly order is not fixed by the culture.
The given name parts may contain whitespace, though generally they don't. Initials may be used in place of the full name if that is all that is recorded. Systems that operate across cultures should generally rely on the text form for presentation and use the parts for index/search functionality. For this reason, applications SHOULD populate the text element for future robustness.
In
some
cultures
(e.g.
German,
Dutch,
Spanish,
Portuguese),
family
names
are
complex
and
composed
of
various
parts
that
may
need
to
be
managed
separately,
e.g.
they
have
differing
significance
for
searching.
In
these
cases,
the
full
family
name
is
populated
in
family
,
and
a
decomposition
of
the
name
can
be
provided
using
the
family
extensions
own-name
,
own-prefix
,
partner-name
,
partner-prefix
,
fathers-family
and
mothers-family
.
For robust search, servers should search the parts of a family name independently. E.g. Searching either Carreno or Quinones should match a family name of "Carreno Quinones". HL7 affiliates, and others producing implementation guides, may make more specific recommendations about how search should work in specific cultures or environments.
Constraints
Terminology Bindings
| Path |
|
Type |
|
|---|---|---|---|
| HumanName.use |
|
Required |
|
HumanName
is
used
in
the
following
places:
ExtendedContactDetail
InsurancePlan
,
Organization
,
Patient
,
Person
,
Practitioner
and
RelatedPerson
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
An
address
expressed
using
postal
conventions
(as
opposed
to
GPS
or
other
location
definition
formats).
This
datatype
data
type
may
be
used
to
convey
addresses
for
use
in
delivering
mail
as
well
as
for
visiting
locations
which
might
not
be
valid
for
mail
delivery.
There
are
a
variety
of
postal
address
formats
defined
around
the
world.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
An
address
expressed
using
postal
conventions
(as
opposed
to
GPS
or
other
location
definition
formats)
Elements defined in Ancestors: id , extension |
|
|
?! Σ | 0..1 | code |
home
|
work
|
temp
|
old
|
billing
-
purpose
of
this
address
|
|
Σ | 0..1 | code |
postal
|
physical
|
both
|
|
Σ | 0..1 | string | Text representation of the address |
|
Σ | 0..* | string |
Street
name,
number,
direction
&
P.O.
Box
etc.
This repeating element order: The order in which lines should appear in an address label |
|
Σ | 0..1 | string | Name of city, town etc. |
|
Σ | 0..1 | string | District name (aka county) |
|
Σ | 0..1 | string | Sub-unit of country (abbreviations ok) |
|
Σ | 0..1 | string | Postal code for area |
|
Σ | 0..1 | string |
Country
(e.g.
|
|
Σ | 0..1 | Period | Time period when address was/is in use |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
<<a href="datatypes-definitions.html#Address" title="An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world. The ISO21090-codedString may be used to provide a coded representation of the contents of strings in an Address." class="dict"> xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <use value="[code]"/><!-- 0..1 home | work | temp | old | billing - purpose of this address --> <type value="[code]"/><!-- 0..1 postal | physical | both --> <text value="[string]"/><!-- 0..1 Text representation of the address --> <line value="[string]"/><!-- 0..* Street name, number, direction & P.O. Box etc. --> <city value="[string]"/><!-- 0..1 Name of city, town etc. --> <district value="[string]"/><!-- 0..1 District name (aka county) --> <state value="[string]"/><!-- 0..1 Sub-unit of country (abbreviations ok) --> <postalCode value="[string]"/><!-- 0..1 Postal code for area --><<country value="[string]"/><!-- 0..1 Country (e.g. can be ISO 3166 2 or 3 letter code) --> <period><!-- 0..1 Period Time period when address was/is in use --></period></Address></[name]>
JSON Template
{
// from Element: extension
"use" : "<code>", // home | work | temp | old | billing - purpose of this address
"type" : "<code>", // postal | physical | both
"text" : "<string>", // Text representation of the address
"line" : ["<string>"], // Street name, number, direction & P.O. Box etc.
"city" : "<string>", // Name of city, town etc.
"district" : "<string>", // District name (aka county)
"state" : "<string>", // Sub-unit of country (abbreviations ok)
"postalCode" : "<string>", // Postal code for area
"
"country" : "<string>", // Country (e.g. can be ISO 3166 2 or 3 letter code)
"period" : { Period } // Time period when address was/is in use
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir:fhir:Address.use [ code ]; # 0..1 home | work | temp | old | billing - purpose of this address fhir:Address.type [ code ]; # 0..1 postal | physical | both fhir:Address.text [ string ]; # 0..1 Text representation of the address fhir:Address.line [ string ], ... ; # 0..* Street name, number, direction & P.O. Box etc. fhir:Address.city [ string ]; # 0..1 Name of city, town etc. fhir:Address.district [ string ]; # 0..1 District name (aka county) fhir:Address.state [ string ]; # 0..1 Sub-unit of country (abbreviations ok) fhir:Address.postalCode [ string ]; # 0..1 Postal code for area fhir:Address.country [ string ]; # 0..1 Country (e.g. can be ISO 3166 2 or 3 letter code) fhir:Address.period [ Period ]; # 0..1 Time period when address was/is in use ]
Changes since Release 3
| Address | |
| Address.use |
|
| Address.type |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N | Element |
An
address
expressed
using
postal
conventions
(as
opposed
to
GPS
or
other
location
definition
formats)
Elements defined in Ancestors: id , extension |
|
|
?! Σ | 0..1 | code |
home
|
work
|
temp
|
old
|
billing
-
purpose
of
this
address
|
|
Σ | 0..1 | code |
postal
|
physical
|
both
|
|
Σ | 0..1 | string | Text representation of the address |
|
Σ | 0..* | string |
Street
name,
number,
direction
&
P.O.
Box
etc.
This repeating element order: The order in which lines should appear in an address label |
|
Σ | 0..1 | string | Name of city, town etc. |
|
Σ | 0..1 | string | District name (aka county) |
|
Σ | 0..1 | string | Sub-unit of country (abbreviations ok) |
|
Σ | 0..1 | string | Postal code for area |
|
Σ | 0..1 | string |
Country
(e.g.
|
|
Σ | 0..1 | Period | Time period when address was/is in use |
Documentation
for
this
format
|
||||
XML Template
<<a href="datatypes-definitions.html#Address" title="An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world. The ISO21090-codedString may be used to provide a coded representation of the contents of strings in an Address." class="dict"> xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <use value="[code]"/><!-- 0..1 home | work | temp | old | billing - purpose of this address --> <type value="[code]"/><!-- 0..1 postal | physical | both --> <text value="[string]"/><!-- 0..1 Text representation of the address --> <line value="[string]"/><!-- 0..* Street name, number, direction & P.O. Box etc. --> <city value="[string]"/><!-- 0..1 Name of city, town etc. --> <district value="[string]"/><!-- 0..1 District name (aka county) --> <state value="[string]"/><!-- 0..1 Sub-unit of country (abbreviations ok) --> <postalCode value="[string]"/><!-- 0..1 Postal code for area --><<country value="[string]"/><!-- 0..1 Country (e.g. can be ISO 3166 2 or 3 letter code) --> <period><!-- 0..1 Period Time period when address was/is in use --></period></Address></[name]>
JSON Template
{
// from Element: extension
"use" : "<code>", // home | work | temp | old | billing - purpose of this address
"type" : "<code>", // postal | physical | both
"text" : "<string>", // Text representation of the address
"line" : ["<string>"], // Street name, number, direction & P.O. Box etc.
"city" : "<string>", // Name of city, town etc.
"district" : "<string>", // District name (aka county)
"state" : "<string>", // Sub-unit of country (abbreviations ok)
"postalCode" : "<string>", // Postal code for area
"
"country" : "<string>", // Country (e.g. can be ISO 3166 2 or 3 letter code)
"period" : { Period } // Time period when address was/is in use
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir: fhir:fhir:Address.use [ code ]; # 0..1 home | work | temp | old | billing - purpose of this address fhir:Address.type [ code ]; # 0..1 postal | physical | both fhir:Address.text [ string ]; # 0..1 Text representation of the address fhir:Address.line [ string ], ... ; # 0..* Street name, number, direction & P.O. Box etc. fhir:Address.city [ string ]; # 0..1 Name of city, town etc. fhir:Address.district [ string ]; # 0..1 District name (aka county) fhir:Address.state [ string ]; # 0..1 Sub-unit of country (abbreviations ok) fhir:Address.postalCode [ string ]; # 0..1 Postal code for area fhir:Address.country [ string ]; # 0..1 Country (e.g. can be ISO 3166 2 or 3 letter code) fhir:Address.period [ Period ]; # 0..1 Time period when address was/is in use ]
Changes since Release 3
| Address | |
| Address.use |
|
| Address.type |
|
See the Full Difference for further information
The text element specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts. Applications updating an address SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part.
Constraints
Terminology Bindings
| Path |
|
Type |
|
|---|---|---|---|
| Address.use |
|
Required |
|
| Address.type |
|
Required |
|
Address
is
used
in
the
following
places:
ExtendedContactDetail
,
Claim
,
ClaimResponse
,
ExplanationOfBenefit
,
InventoryItem
InsurancePlan
,
Location
,
Organization
,
Patient
,
Person
,
Practitioner
and
RelatedPerson
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
Details for all kinds of technology-mediated contact points for a person or organization, including telephone, email, etc.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ I N | Element |
Details
of
a
Technology
mediated
contact
point
(phone,
fax,
email,
etc.)
+ Rule: A system is required if a value is provided. Elements defined in Ancestors: id , extension |
|
|
Σ
|
0..1 | code |
phone
|
fax
|
email
|
pager
|
url
|
sms
|
other
|
|
Σ
|
0..1 | string | The actual contact point details |
|
?! Σ | 0..1 | code |
home
|
work
|
temp
|
old
|
mobile
-
purpose
of
this
contact
point
|
|
Σ | 0..1 | positiveInt | Specify preferred order of use (1 = highest) |
|
Σ | 0..1 | Period | Time period when the contact point was/is in use |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension -->< <<system value="[code]"/><!--0..1 phone | fax | email | pager | url | sms | other --> <value value="[string]"/><!-- 0..1 The actual contact point details --> <use value="[code]"/><!-- 0..1 home | work | temp | old | mobile - purpose of this contact point --> <rank value="[positiveInt]"/><!-- 0..1 Specify preferred order of use (1 = highest) --> <period><!-- 0..1 Period Time period when the contact point was/is in use --></period>
</ContactPoint></[name]>
JSON Template
{
// from Element: extension
"
"
"system" : "<code>", // C? phone | fax | email | pager | url | sms | other
"value" : "<string>", // The actual contact point details
"use" : "<code>", // home | work | temp | old | mobile - purpose of this contact point
"rank" : "<positiveInt>", // Specify preferred order of use (1 = highest)
"period" : { Period } // Time period when the contact point was/is in use
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir:fhir:ContactPoint.system [ code ]; # 0..1 phone | fax | email | pager | url | sms | other fhir:ContactPoint.value [ string ]; # 0..1 The actual contact point details fhir:ContactPoint.use [ code ]; # 0..1 home | work | temp | old | mobile - purpose of this contact point fhir:ContactPoint.rank [ positiveInt ]; # 0..1 Specify preferred order of use (1 = highest) fhir:ContactPoint.period [ Period ]; # 0..1 Time period when the contact point was/is in use ]
Changes since Release 3
| ContactPoint | |
| ContactPoint.system |
|
| ContactPoint.use |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ I N | Element |
Details
of
a
Technology
mediated
contact
point
(phone,
fax,
email,
etc.)
+ Rule: A system is required if a value is provided. Elements defined in Ancestors: id , extension |
|
|
Σ
|
0..1 | code |
phone
|
fax
|
email
|
pager
|
url
|
sms
|
other
|
|
Σ
|
0..1 | string | The actual contact point details |
|
?! Σ | 0..1 | code |
home
|
work
|
temp
|
old
|
mobile
-
purpose
of
this
contact
point
|
|
Σ | 0..1 | positiveInt | Specify preferred order of use (1 = highest) |
|
Σ | 0..1 | Period | Time period when the contact point was/is in use |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension -->< <<system value="[code]"/><!--0..1 phone | fax | email | pager | url | sms | other --> <value value="[string]"/><!-- 0..1 The actual contact point details --> <use value="[code]"/><!-- 0..1 home | work | temp | old | mobile - purpose of this contact point --> <rank value="[positiveInt]"/><!-- 0..1 Specify preferred order of use (1 = highest) --> <period><!-- 0..1 Period Time period when the contact point was/is in use --></period>
</ContactPoint></[name]>
JSON Template
{
// from Element: extension
"
"
"system" : "<code>", // C? phone | fax | email | pager | url | sms | other
"value" : "<string>", // The actual contact point details
"use" : "<code>", // home | work | temp | old | mobile - purpose of this contact point
"rank" : "<positiveInt>", // Specify preferred order of use (1 = highest)
"period" : { Period } // Time period when the contact point was/is in use
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir:fhir:ContactPoint.system [ code ]; # 0..1 phone | fax | email | pager | url | sms | other fhir:ContactPoint.value [ string ]; # 0..1 The actual contact point details fhir:ContactPoint.use [ code ]; # 0..1 home | work | temp | old | mobile - purpose of this contact point fhir:ContactPoint.rank [ positiveInt ]; # 0..1 Specify preferred order of use (1 = highest) fhir:ContactPoint.period [ Period ]; # 0..1 Time period when the contact point was/is in use ]
Changes since Release 3
| ContactPoint | |
| ContactPoint.system |
|
| ContactPoint.use |
|
See the Full Difference for further information
If
capturing
a
phone,
fax
or
similar
contact
point,
the
value
should
be
a
properly
formatted
telephone
number
according
to
ITU-T
E.123
.
However,
this
is
frequently
not
possible
due
to
legacy
data
and/or
clerical
practices
when
recording
contact
details.
For
this
reason,
phone,
fax,
pager,
and
email
addresses
are
not
handled
as
formal
URLs.
For
other
kinds
of
contact
points,
the
system
is
"other"
and
the
value
SHOULD
be
a
URL
so
that
its
use
can
be
determined
automatically.
Typical
URL
schemes
used
in
the
value
are
http{s}:
for
web
addresses,
and
URL
schemes
for
various
kinds
of
messaging
systems.
If
the
value
is
not
a
URL,
then
human
interpretation
will
be
required.
The
rank
element
can
be
used
to
specify
a
preference
for
the
order
in
which
a
set
of
contacts
is
used.
ContactPoints
with
lower
rank
values
are
more
preferred
than
those
with
higher
rank
values.
Note
that
rank
does
not
necessarily
follow
the
order
in
which
the
contacts
are
represented
in
the
instance.
Constraints
| id | Level | Location | Description | Expression |
|
|
Rule | (base) | A system is required if a value is provided. | value.empty() or system.exists() |
Terminology Bindings
| Path |
|
Type |
|
|---|---|---|---|
| ContactPoint.system |
|
Required |
|
| ContactPoint.use |
|
Required |
|
ContactPoint
is
used
in
the
following
places:
VirtualServiceDetail
,
ContactDetail
,
ExtendedContactDetail
,
CareTeam
,
Device
,
DeviceDefinition
,
Endpoint
,
HealthcareService
,
InsurancePlan
,
Location
,
MessageHeader
,
Organization
,
OrganizationAffiliation
,
Patient
,
Person
,
Practitioner
,
PractitionerRole
,
RelatedPerson
and
Subscription
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
Describes the occurrence of an event that may occur multiple times. Timing schedules are used for specifying when events are expected or requested to occur and may also be used to represent the summary of a past or ongoing event. For simplicity, the definitions of Timing components are expressed as 'future' events, but such components can also be used to describe historic or ongoing events.
A Timing schedule can be a list of events and/or criteria for when the event happens, which can be expressed in a structured form and/or as a code. When both event and a repeating specification are provided, the list of events should be understood as an interpretation of the information in the repeat structure.
Note:
The
Timing
datatype
data
type
allows
modifier
extensions
.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N |
|
A
timing
schedule
that
specifies
an
event
that
may
occur
multiple
times
Elements defined in Ancestors: id , extension , modifierExtension |
|
|
Σ | 0..* | dateTime |
When
the
event
occurs
|
|
Σ
|
0..1 | Element |
When
the
event
is
to
occur
+ Rule: if there's a duration, there needs to be duration units + Rule: if there's a period, there needs to be period units + Rule: duration SHALL be a non-negative value + Rule: period SHALL be a non-negative value + Rule: If there's a periodMax, there must be a period + Rule: If there's a durationMax, there must be a duration + Rule: If there's a countMax, there must be a count + Rule: If there's an offset, there must be a when (and not C, CM, CD, CV) + Rule: If there's a timeOfDay, there cannot be a when, or vice versa |
|
Σ | 0..1 | Length/Range of lengths, or (Start and/or end) limits | |
|
Duration | |||
|
Range | |||
|
Period | |||
|
Σ
|
0..1 | positiveInt | Number of times to repeat |
|
Σ
|
0..1 | positiveInt | Maximum number of times to repeat |
|
Σ
|
0..1 | decimal | How long when it happens |
|
Σ
|
0..1 | decimal | How long when it happens (Max) |
|
Σ
|
0..1 | code |
s
|
min
|
h
|
d
|
wk
|
mo
|
a
-
unit
of
time
(UCUM)
|
|
Σ | 0..1 | positiveInt |
|
|
Σ | 0..1 | positiveInt | Event occurs up to frequencyMax times per period |
|
Σ
|
0..1 | decimal |
|
|
Σ
|
0..1 | decimal | Upper limit of period (3-4 hours) |
|
Σ
|
0..1 | code |
s
|
min
|
h
|
d
|
wk
|
mo
|
a
-
unit
of
time
(UCUM)
|
|
Σ | 0..* | code |
mon
|
tue
|
wed
|
thu
|
fri
|
sat
|
sun
|
|
Σ
|
0..* | time |
Time
of
day
for
action
|
|
Σ
|
0..* | code |
Code
for
time
period
of
occurrence
|
|
Σ
|
0..1 | unsignedInt | Minutes from event (before or after) |
|
Σ | 0..1 | CodeableConcept |
BID
|
TID
|
QID
|
AM
|
PM
|
QD
|
QOD
|
+
|
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
<Timing xmlns="http://hl7.org/fhir"><!-- from Element: --><!-- from BackboneElement: extension, modifierExtension --> <event value="[dateTime]"/><!-- 0..* When the event occurs --> <repeat> <!-- 0..1 When the event is to occur --> <bounds[x]><!-- 0..1 Duration|Range|Period Length/Range of lengths, or (Start and/or end) limits --></bounds[x]>< < < < <<a href="datatypes-definitions.html#Timing.repeat.durationUnit" title="The units of time for the duration, in UCUM units Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict"> <<count value="[positiveInt]"/><!-- 0..1 Number of times to repeat --> <countMax value="[positiveInt]"/><!-- 0..1 Maximum number of times to repeat --> <duration value="[decimal]"/><!-- 0..1 How long when it happens --> <durationMax value="[decimal]"/><!-- 0..1 How long when it happens (Max) --> <durationUnit value="[code]"/><!-- 0..1 s | min | h | d | wk | mo | a - unit of time (UCUM) --> <frequency value="[positiveInt]"/><!-- 0..1 Event occurs frequency times per period --> <frequencyMax value="[positiveInt]"/><!-- 0..1 Event occurs up to frequencyMax times per period -->< < <<a href="datatypes-definitions.html#Timing.repeat.periodUnit" title="The units of time for the period in UCUM units Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict"><period value="[decimal]"/><!-- 0..1 Event occurs frequency times per period --> <periodMax value="[decimal]"/><!-- 0..1 Upper limit of period (3-4 hours) --> <periodUnit value="[code]"/><!-- 0..1 s | min | h | d | wk | mo | a - unit of time (UCUM) --> <dayOfWeek value="[code]"/><!-- 0..* mon | tue | wed | thu | fri | sat | sun -->< < <<timeOfDay value="[time]"/><!-- 0..* Time of day for action --> <when value="[code]"/><!-- 0..* Code for time period of occurrence --> <offset value="[unsignedInt]"/><!-- 0..1 Minutes from event (before or after) --> </repeat><</code><code><!-- 0..1 CodeableConcept BID | TID | QID | AM | PM | QD | QOD | + --></code> </Timing>
JSON Template
{
// from Element:
// from BackboneElement: extension, modifierExtension
"event" : ["<dateTime>"], // When the event occurs
"repeat" : { // When the event is to occur
// bounds[x]: Length/Range of lengths, or (Start and/or end) limits. One of these 3:
"boundsDuration" : { Duration },
"boundsRange" : { Range },
"boundsPeriod" : { Period },
"
"
"
"
"<a href="datatypes-definitions.html#Timing.repeat.durationUnit" title="The units of time for the duration, in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict">durationUnit
"
"count" : "<positiveInt>", // Number of times to repeat
"countMax" : "<positiveInt>", // Maximum number of times to repeat
"duration" : <decimal>, // How long when it happens
"durationMax" : <decimal>, // How long when it happens (Max)
"durationUnit" : "<code>", // s | min | h | d | wk | mo | a - unit of time (UCUM)
"frequency" : "<positiveInt>", // Event occurs frequency times per period
"frequencyMax" : "<positiveInt>", // Event occurs up to frequencyMax times per period
"
"
"<a href="datatypes-definitions.html#Timing.repeat.periodUnit" title="The units of time for the period in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict">periodUnit
"period" : <decimal>, // Event occurs frequency times per period
"periodMax" : <decimal>, // Upper limit of period (3-4 hours)
"periodUnit" : "<code>", // s | min | h | d | wk | mo | a - unit of time (UCUM)
"dayOfWeek" : ["<code>"], // mon | tue | wed | thu | fri | sat | sun
"
"
"
"timeOfDay" : ["<time>"], // Time of day for action
"when" : ["<code>"], // Code for time period of occurrence
"offset" : "<unsignedInt>" // Minutes from event (before or after)
},
"
"code" : { CodeableConcept } // BID | TID | QID | AM | PM | QD | QOD | +
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [# from Element: fhir: fhir: # . One of these 3 fhir: ] fhir: ] fhir: ] fhir: fhir: fhir: fhir: fhir:<a href="datatypes-definitions.html#Timing.repeat.durationUnit" title="The units of time for the duration, in UCUM units Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict">durationUnit fhir: fhir: fhir: fhir: fhir:<a href="datatypes-definitions.html#Timing.repeat.periodUnit" title="The units of time for the period in UCUM units Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict">periodUnit fhir: fhir: fhir: fhir: ] ; fhir:# from BackboneElement: Element.extension, BackboneElement.modifierextension fhir:Timing.event [ dateTime ], ... ; # 0..* When the event occurs fhir:Timing.repeat [ # 0..1 When the event is to occur # Timing.repeat.bounds[x] : 0..1 Length/Range of lengths, or (Start and/or end) limits. One of these 3 fhir:Timing.repeat.boundsDuration [ Duration ] fhir:Timing.repeat.boundsRange [ Range ] fhir:Timing.repeat.boundsPeriod [ Period ] fhir:Timing.repeat.count [ positiveInt ]; # 0..1 Number of times to repeat fhir:Timing.repeat.countMax [ positiveInt ]; # 0..1 Maximum number of times to repeat fhir:Timing.repeat.duration [ decimal ]; # 0..1 How long when it happens fhir:Timing.repeat.durationMax [ decimal ]; # 0..1 How long when it happens (Max) fhir:Timing.repeat.durationUnit [ code ]; # 0..1 s | min | h | d | wk | mo | a - unit of time (UCUM) fhir:Timing.repeat.frequency [ positiveInt ]; # 0..1 Event occurs frequency times per period fhir:Timing.repeat.frequencyMax [ positiveInt ]; # 0..1 Event occurs up to frequencyMax times per period fhir:Timing.repeat.period [ decimal ]; # 0..1 Event occurs frequency times per period fhir:Timing.repeat.periodMax [ decimal ]; # 0..1 Upper limit of period (3-4 hours) fhir:Timing.repeat.periodUnit [ code ]; # 0..1 s | min | h | d | wk | mo | a - unit of time (UCUM) fhir:Timing.repeat.dayOfWeek [ code ], ... ; # 0..* mon | tue | wed | thu | fri | sat | sun fhir:Timing.repeat.timeOfDay [ time ], ... ; # 0..* Time of day for action fhir:Timing.repeat.when [ code ], ... ; # 0..* Code for time period of occurrence fhir:Timing.repeat.offset [ unsignedInt ]; # 0..1 Minutes from event (before or after) ]; fhir:Timing.code [ CodeableConcept ]; # 0..1 BID | TID | QID | AM | PM | QD | QOD | + ]
Changes since Release 3
| Timing | |
| Timing.repeat.count |
|
| Timing.repeat.countMax |
|
| Timing.repeat.durationUnit |
|
| Timing.repeat.frequency |
|
| Timing.repeat.frequencyMax |
|
| Timing.repeat.periodUnit |
|
| Timing.repeat.dayOfWeek |
|
| Timing.repeat.when |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
Σ N |
|
A
timing
schedule
that
specifies
an
event
that
may
occur
multiple
times
Elements defined in Ancestors: id , extension , modifierExtension |
|
|
Σ | 0..* | dateTime |
When
the
event
occurs
|
|
Σ
|
0..1 | Element |
When
the
event
is
to
occur
+ Rule: if there's a duration, there needs to be duration units + Rule: if there's a period, there needs to be period units + Rule: duration SHALL be a non-negative value + Rule: period SHALL be a non-negative value + Rule: If there's a periodMax, there must be a period + Rule: If there's a durationMax, there must be a duration + Rule: If there's a countMax, there must be a count + Rule: If there's an offset, there must be a when (and not C, CM, CD, CV) + Rule: If there's a timeOfDay, there cannot be a when, or vice versa |
|
Σ | 0..1 | Length/Range of lengths, or (Start and/or end) limits | |
|
Duration | |||
|
Range | |||
|
Period | |||
|
Σ
|
0..1 | positiveInt | Number of times to repeat |
|
Σ
|
0..1 | positiveInt | Maximum number of times to repeat |
|
Σ
|
0..1 | decimal | How long when it happens |
|
Σ
|
0..1 | decimal | How long when it happens (Max) |
|
Σ
|
0..1 | code |
s
|
min
|
h
|
d
|
wk
|
mo
|
a
-
unit
of
time
(UCUM)
|
|
Σ | 0..1 | positiveInt |
|
|
Σ | 0..1 | positiveInt | Event occurs up to frequencyMax times per period |
|
Σ
|
0..1 | decimal |
|
|
Σ
|
0..1 | decimal | Upper limit of period (3-4 hours) |
|
Σ
|
0..1 | code |
s
|
min
|
h
|
d
|
wk
|
mo
|
a
-
unit
of
time
(UCUM)
|
|
Σ | 0..* | code |
mon
|
tue
|
wed
|
thu
|
fri
|
sat
|
sun
|
|
Σ
|
0..* | time |
Time
of
day
for
action
|
|
Σ
|
0..* | code |
Code
for
time
period
of
occurrence
|
|
Σ
|
0..1 | unsignedInt | Minutes from event (before or after) |
|
Σ | 0..1 | CodeableConcept |
BID
|
TID
|
QID
|
AM
|
PM
|
QD
|
QOD
|
+
|
Documentation
for
this
format
|
||||
XML Template
<Timing xmlns="http://hl7.org/fhir"><!-- from Element: --><!-- from BackboneElement: extension, modifierExtension --> <event value="[dateTime]"/><!-- 0..* When the event occurs --> <repeat> <!-- 0..1 When the event is to occur --> <bounds[x]><!-- 0..1 Duration|Range|Period Length/Range of lengths, or (Start and/or end) limits --></bounds[x]>< < < < <<a href="datatypes-definitions.html#Timing.repeat.durationUnit" title="The units of time for the duration, in UCUM units Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict"> <<count value="[positiveInt]"/><!-- 0..1 Number of times to repeat --> <countMax value="[positiveInt]"/><!-- 0..1 Maximum number of times to repeat --> <duration value="[decimal]"/><!-- 0..1 How long when it happens --> <durationMax value="[decimal]"/><!-- 0..1 How long when it happens (Max) --> <durationUnit value="[code]"/><!-- 0..1 s | min | h | d | wk | mo | a - unit of time (UCUM) --> <frequency value="[positiveInt]"/><!-- 0..1 Event occurs frequency times per period --> <frequencyMax value="[positiveInt]"/><!-- 0..1 Event occurs up to frequencyMax times per period -->< < <<a href="datatypes-definitions.html#Timing.repeat.periodUnit" title="The units of time for the period in UCUM units Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict"><period value="[decimal]"/><!-- 0..1 Event occurs frequency times per period --> <periodMax value="[decimal]"/><!-- 0..1 Upper limit of period (3-4 hours) --> <periodUnit value="[code]"/><!-- 0..1 s | min | h | d | wk | mo | a - unit of time (UCUM) --> <dayOfWeek value="[code]"/><!-- 0..* mon | tue | wed | thu | fri | sat | sun -->< < <<timeOfDay value="[time]"/><!-- 0..* Time of day for action --> <when value="[code]"/><!-- 0..* Code for time period of occurrence --> <offset value="[unsignedInt]"/><!-- 0..1 Minutes from event (before or after) --> </repeat><</code><code><!-- 0..1 CodeableConcept BID | TID | QID | AM | PM | QD | QOD | + --></code> </Timing>
JSON Template
{
// from Element:
// from BackboneElement: extension, modifierExtension
"event" : ["<dateTime>"], // When the event occurs
"repeat" : { // When the event is to occur
// bounds[x]: Length/Range of lengths, or (Start and/or end) limits. One of these 3:
"boundsDuration" : { Duration },
"boundsRange" : { Range },
"boundsPeriod" : { Period },
"
"
"
"
"<a href="datatypes-definitions.html#Timing.repeat.durationUnit" title="The units of time for the duration, in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict">durationUnit
"
"count" : "<positiveInt>", // Number of times to repeat
"countMax" : "<positiveInt>", // Maximum number of times to repeat
"duration" : <decimal>, // How long when it happens
"durationMax" : <decimal>, // How long when it happens (Max)
"durationUnit" : "<code>", // s | min | h | d | wk | mo | a - unit of time (UCUM)
"frequency" : "<positiveInt>", // Event occurs frequency times per period
"frequencyMax" : "<positiveInt>", // Event occurs up to frequencyMax times per period
"
"
"<a href="datatypes-definitions.html#Timing.repeat.periodUnit" title="The units of time for the period in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict">periodUnit
"period" : <decimal>, // Event occurs frequency times per period
"periodMax" : <decimal>, // Upper limit of period (3-4 hours)
"periodUnit" : "<code>", // s | min | h | d | wk | mo | a - unit of time (UCUM)
"dayOfWeek" : ["<code>"], // mon | tue | wed | thu | fri | sat | sun
"
"
"
"timeOfDay" : ["<time>"], // Time of day for action
"when" : ["<code>"], // Code for time period of occurrence
"offset" : "<unsignedInt>" // Minutes from event (before or after)
},
"
"code" : { CodeableConcept } // BID | TID | QID | AM | PM | QD | QOD | +
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [# from Element: fhir: fhir: # . One of these 3 fhir: ] fhir: ] fhir: ] fhir: fhir: fhir: fhir: fhir:<a href="datatypes-definitions.html#Timing.repeat.durationUnit" title="The units of time for the duration, in UCUM units Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict">durationUnit fhir: fhir: fhir: fhir: fhir:<a href="datatypes-definitions.html#Timing.repeat.periodUnit" title="The units of time for the period in UCUM units Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." class="dict">periodUnit fhir: fhir: fhir: fhir: ] ; fhir:# from BackboneElement: Element.extension, BackboneElement.modifierextension fhir:Timing.event [ dateTime ], ... ; # 0..* When the event occurs fhir:Timing.repeat [ # 0..1 When the event is to occur # Timing.repeat.bounds[x] : 0..1 Length/Range of lengths, or (Start and/or end) limits. One of these 3 fhir:Timing.repeat.boundsDuration [ Duration ] fhir:Timing.repeat.boundsRange [ Range ] fhir:Timing.repeat.boundsPeriod [ Period ] fhir:Timing.repeat.count [ positiveInt ]; # 0..1 Number of times to repeat fhir:Timing.repeat.countMax [ positiveInt ]; # 0..1 Maximum number of times to repeat fhir:Timing.repeat.duration [ decimal ]; # 0..1 How long when it happens fhir:Timing.repeat.durationMax [ decimal ]; # 0..1 How long when it happens (Max) fhir:Timing.repeat.durationUnit [ code ]; # 0..1 s | min | h | d | wk | mo | a - unit of time (UCUM) fhir:Timing.repeat.frequency [ positiveInt ]; # 0..1 Event occurs frequency times per period fhir:Timing.repeat.frequencyMax [ positiveInt ]; # 0..1 Event occurs up to frequencyMax times per period fhir:Timing.repeat.period [ decimal ]; # 0..1 Event occurs frequency times per period fhir:Timing.repeat.periodMax [ decimal ]; # 0..1 Upper limit of period (3-4 hours) fhir:Timing.repeat.periodUnit [ code ]; # 0..1 s | min | h | d | wk | mo | a - unit of time (UCUM) fhir:Timing.repeat.dayOfWeek [ code ], ... ; # 0..* mon | tue | wed | thu | fri | sat | sun fhir:Timing.repeat.timeOfDay [ time ], ... ; # 0..* Time of day for action fhir:Timing.repeat.when [ code ], ... ; # 0..* Code for time period of occurrence fhir:Timing.repeat.offset [ unsignedInt ]; # 0..1 Minutes from event (before or after) ]; fhir:Timing.code [ CodeableConcept ]; # 0..1 BID | TID | QID | AM | PM | QD | QOD | + ]
Changes since Release 3
| Timing | |
| Timing.repeat.count |
|
| Timing.repeat.countMax |
|
| Timing.repeat.durationUnit |
|
| Timing.repeat.frequency |
|
| Timing.repeat.frequencyMax |
|
| Timing.repeat.periodUnit |
|
| Timing.repeat.dayOfWeek |
|
| Timing.repeat.when |
|
See the Full Difference for further information
If the timing schedule has repeating criteria, the repeat can occur a given number of times per the specified duration or in relation to some repeating real-world event. If no end condition is specified, the schedule will terminate on some criteria that are expressed elsewhere.
Many
systems
avoid
the
complexity
of
the
Timing
structure
by
using
a
text
field
for
timing
instructions.
This
maps
to
Timing.code.text
.
For
example,
the
text
instruction
"take
medication
in
the
morning
on
weekends
and
days
off
work'
would
be
represented
as:
"timing": {
"code" : {
"text" : "Take medication in the morning on weekends and days off work"
}
}
Note,
though,
that
some
systems
include
timing
details
in
something
like
'Dosage
instructions'
which
is
wider
than
just
Timing;
those
systems
do
not
use
the
Timing
datatype.
Other
systems
use
a
set
of
'common'
codes
-
including,
but
usually
not
limited
to,
widely
understood
acronyms
such
as
"BID".
If
a
Timing.code
is
provided,
the
code
is
understood
to
be
a
complete
statement
of
whatever
is
specified
in
the
structured
timing
data
(except
for
Timing.repeat.bounds
,
which
applies
to
the
code),
and
either
the
code
or
the
data
may
be
used
to
interpret
the
Timing
.
A
structured
timing
specification
SHOULD
be
provided
whenever
possible,
unless
the
code
is
BID,
TID,
QID,
AM
or
PM,
which
have
a
ubiquitous
meaning.
This
table
summarizes
some
common
uses
of
the
Timing
Datatype
Data
Type
criteria.
| description | duration | durationUnit | frequency | frequencyMax | period | periodUnit | periodMax | Day of Week | Time Of Day | when | offset | bounds[x] | count |
| Every 8 hours | 1 | 8 | h | ||||||||||
| Every 7 days | 1 | 7 | d | ||||||||||
| 3 times a day | 3 | 1 | d | ||||||||||
| 3-4 times a day | 3 | 4 | 1 | d | |||||||||
| Every 4-6 hours | 1 | 4 | h | 6 | |||||||||
| Every 21 days for 1 hour | 1 | hr | 1 | 21 | d | ||||||||
| Three times a week for ½ hour | 0.5 | hr | 3 | 1 | wk | ||||||||
| With breakfast | CM | ||||||||||||
| For 5 minutes, 10 minutes before meals | 5 | min | AC | 10 | |||||||||
| 1 tablet 3 times daily, 30 minutes before meals | 3 | 1 | d | AC | 30 | ||||||||
| BID, 30 mins before meal, for next 10 days | 2 | 1 | d | AC | 30 | Duration = 10 days | |||||||
| TID, for 14 days | 3 | 1 | d | Duration = 14 days | |||||||||
| BID, start on 7/1/2015 at 1:00 PM | 2 | 1 | d | Period.start = 2015-07-01T13:00:00 | |||||||||
| Mon, Wed, Fri Morning | 1 | 1 | d | mon | wed | fri | MORN | ||||||||
| Every day at 10am | 1 | 1 | d | 10:00 | |||||||||
| Take once, at any time | 1 | ||||||||||||
| Take every second day, in the morning, until 20 have been taken | 1 | 2 | d | MORN | 20 |
Many
systems
avoid
the
complexity
of
the
Timing
structure
by
using
a
text
field
for
timing
instructions.
This
maps
to
Timing.code.text
.
For
example,
the
text
instruction
"take
medication
in
the
morning
on
weekends
and
days
off
work'
would
be
represented
as:
"timing": {
"code" : {
"text" : "Take medication in the morning on weekends and days off work"
}
}
Note,
though,
that
some
systems
include
timing
details
in
something
like
'Dosage
instructions'
which
is
wider
than
just
Timing;
those
systems
do
not
use
the
Timing
data
type.
Other
systems
use
a
set
of
'common'
codes
-
including,
but
usually
not
limited
to,
widely
understood
acronyms
such
as
"BID".
If
a
Timing.code
is
provided,
the
code
is
understood
to
be
a
complete
statement
of
whatever
is
specified
in
the
structured
timing
data
(except
for
Timing.repeat.bounds
,
which
applies
to
the
code),
and
either
the
code
or
the
data
may
be
used
to
interpret
the
Timing
.
A
structured
timing
specification
SHOULD
be
provided
whenever
possible,
unless
the
code
is
BID,
TID,
QID,
AM
or
PM,
which
have
a
ubiquitous
meaning.
This table shows the relationship between the codes provided as part of the base specification , and the structured data portions of the Timing type:
| description | duration | durationUnit | frequency | frequencyMax | period | periodUnit | periodMax | when | bounds[x] |
| QOD | 1 | 2 | d | ||||||
| QD | 1 | 1 | d | ||||||
| BID | 2 | 1 | d | ||||||
| TID | 3 | 1 | d | ||||||
| QID | 4 | 1 | d | ||||||
| Q4H | 1 | 4 | h | ||||||
| Q6H | 1 | 6 | h | ||||||
| AM | 1 | 1 | d | MORN | |||||
| PM | 1 | 1 | d | AFT or EVE |
These
codes
SHALL
be
understood
as
having
the
formal
meanings
documented
in
this
table.
Note
that
BID,
etc.
are
defined
as
'at
institutionally
specified
times'.
For
example,
an
institution
may
choose
that
BID
is
"always
at
7am
and
6pm".
If
it
is
inappropriate
for
this
choice
to
be
made,
the
code
BID
should
not
be
used.
Instead,
a
distinct
organization-specific
code
should
be
used
in
place
of
the
HL7-defined
BID
code
and/or
a
structured
representation
should
be
used
(in
this
case,
timeOfDay
).
Constraints
| id | Level | Location | Description | Expression |
|
|
Rule | Timing.repeat | if there's a duration, there needs to be duration units | duration.empty() or durationUnit.exists() |
|
|
Rule | Timing.repeat | if there's a period, there needs to be period units | period.empty() or periodUnit.exists() |
|
|
Rule | Timing.repeat | duration SHALL be a non-negative value | duration.exists() implies duration >= 0 |
|
|
Rule | Timing.repeat | period SHALL be a non-negative value | period.exists() implies period >= 0 |
|
|
Rule | Timing.repeat | If there's a periodMax, there must be a period | periodMax.empty() or period.exists() |
|
|
Rule | Timing.repeat | If there's a durationMax, there must be a duration | durationMax.empty() or duration.exists() |
|
|
Rule | Timing.repeat | If there's a countMax, there must be a count | countMax.empty() or count.exists() |
|
|
Rule | Timing.repeat | If there's an offset, there must be a when (and not C, CM, CD, CV) |
offset.empty()
or
(when.exists()
and
|
|
|
Rule | Timing.repeat | If there's a timeOfDay, there cannot be a when, or vice versa | timeOfDay.empty() or when.empty() |
Note
that
these
constraints
still
allow
for
nonsensical
timing
specifications
such
as
"Once
per
day
at
2:00
and
4:00"
or
"every
3
days
on
Friday".
Implementers
must
take
care
to
ensure
that
their
configuration
and
data
collection
designs
do
not
lead
to
these
non-interpretable
timing
specifications.
The
elements
dayOfWeek
,
timeOfDay
,
and
when
are
particularly
likely
to
be
at
issue
here.
Terminology Bindings
| Path |
|
Type |
|
|---|---|---|---|
|
Timing.repeat.durationUnit
Timing.repeat.periodUnit |
|
Required |
|
| Timing.repeat.dayOfWeek |
|
Required |
|
| Timing.repeat.when |
|
Required |
|
| Timing.code |
|
Preferred |
|
Timing
is
used
in
the
following
places:
Dosage
,
TriggerDefinition
,
ActivityDefinition
,
AdverseEvent
,
CareTeam
CarePlan
,
ChargeItem
,
Contract
,
DeviceMetric
,
DeviceRequest
,
DeviceUsage
,
MedicationAdministration
,
MedicationStatement
DeviceUseStatement
,
NutritionIntake
EvidenceVariable
,
NutritionOrder
,
Observation
,
PlanDefinition
,
Procedure
RequestGroup
,
RequestOrchestration
ResearchElementDefinition
,
ServiceRequest
,
SupplyDelivery
,
SupplyRequest
and
VerificationResult
Normative Candidate Note: This DataType is not normative - it is still undergoing Trial Use while more experience is gathered.
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
A
Signature
holds
an
electronic
representation
of
a
signature
and
its
supporting
context
in
a
FHIR
accessible
form.
The
signature
may
either
be
a
cryptographic
type
(XML
DigSig
or
a
JWS),
which
is
able
to
provide
non-repudiation
proof,
or
it
may
be
a
graphical
image
that
represents
a
signature
or
a
digital-signature
signature
process.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
TU | Element |
A
Signature
-
XML
DigSig,
JWS,
Graphical
image
of
signature,
etc.
Elements defined in Ancestors: id , extension |
|
|
Σ | 1..* | Coding |
Indication
of
the
reason
the
entity
signed
the
object(s)
|
|
Σ |
|
instant | When the signature was created |
|
Σ | 1..1 | Reference ( Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization ) | Who signed |
|
Σ | 0..1 | Reference ( Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization ) | The party represented |
|
0..1 | code |
The
technical
format
of
the
signed
resources
|
|
|
0..1 | code |
The
technical
format
of
the
signature
|
|
|
0..1 | base64Binary | The actual signature content (XML DigSig. JWS, picture, etc.) | |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --><</type> < <| </who> <| </onBehalfOf><type><!-- 1..* Coding Indication of the reason the entity signed the object(s) --></type> <when value="[instant]"/><!-- 1..1 When the signature was created --> <who><!-- 1..1 Reference(Practitioner|PractitionerRole|RelatedPerson|Patient| Device|Organization) Who signed --></who> <onBehalfOf><!-- 0..1 Reference(Practitioner|PractitionerRole|RelatedPerson| Patient|Device|Organization) The party represented --></onBehalfOf> <targetFormat value="[code]"/><!-- 0..1 The technical format of the signed resources --> <sigFormat value="[code]"/><!-- 0..1 The technical format of the signature --> <data value="[base64Binary]"/><!-- 0..1 The actual signature content (XML DigSig. JWS, picture, etc.) --></Signature></[name]>
JSON Template
{
// from Element: extension
"
"
"|
"|
"type" : [{ Coding }], // R! Indication of the reason the entity signed the object(s)
"when" : "<instant>", // R! When the signature was created
"who" : { Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|
Device|Organization) }, // R! Who signed
"onBehalfOf" : { Reference(Practitioner|PractitionerRole|RelatedPerson|
Patient|Device|Organization) }, // The party represented
"targetFormat" : "<code>", // The technical format of the signed resources
"sigFormat" : "<code>", // The technical format of the signature
"data" : "<base64Binary>" // The actual signature content (XML DigSig. JWS, picture, etc.)
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir: fhir:fhir:Signature.type [ Coding ], ... ; # 1..* Indication of the reason the entity signed the object(s) fhir:Signature.when [ instant ]; # 1..1 When the signature was created fhir:Signature.who [ Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|Device|Organization) ]; # 1..1 Who signed fhir:Signature.onBehalfOf [ Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|Device|Organization) ]; # 0..1 The party represented fhir:Signature.targetFormat [ code ]; # 0..1 The technical format of the signed resources fhir:Signature.sigFormat [ code ]; # 0..1 The technical format of the signature fhir:Signature.data [ base64Binary ]; # 0..1 The actual signature content (XML DigSig. JWS, picture, etc.) ]
Changes since Release 3
| Signature | |
|
|
|
|
|
|
|
|
|
| Signature.sigFormat |
|
| Signature.data |
|
| Signature.contentType |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
TU | Element |
A
Signature
-
XML
DigSig,
JWS,
Graphical
image
of
signature,
etc.
Elements defined in Ancestors: id , extension |
|
|
Σ | 1..* | Coding |
Indication
of
the
reason
the
entity
signed
the
object(s)
|
|
Σ |
|
instant | When the signature was created |
|
Σ | 1..1 | Reference ( Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization ) | Who signed |
|
Σ | 0..1 | Reference ( Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization ) | The party represented |
|
0..1 | code |
The
technical
format
of
the
signed
resources
|
|
|
0..1 | code |
The
technical
format
of
the
signature
|
|
|
0..1 | base64Binary | The actual signature content (XML DigSig. JWS, picture, etc.) | |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --><</type> < <| </who> <| </onBehalfOf><type><!-- 1..* Coding Indication of the reason the entity signed the object(s) --></type> <when value="[instant]"/><!-- 1..1 When the signature was created --> <who><!-- 1..1 Reference(Practitioner|PractitionerRole|RelatedPerson|Patient| Device|Organization) Who signed --></who> <onBehalfOf><!-- 0..1 Reference(Practitioner|PractitionerRole|RelatedPerson| Patient|Device|Organization) The party represented --></onBehalfOf> <targetFormat value="[code]"/><!-- 0..1 The technical format of the signed resources --> <sigFormat value="[code]"/><!-- 0..1 The technical format of the signature --> <data value="[base64Binary]"/><!-- 0..1 The actual signature content (XML DigSig. JWS, picture, etc.) --></Signature></[name]>
JSON Template
{
// from Element: extension
"
"
"|
"|
"type" : [{ Coding }], // R! Indication of the reason the entity signed the object(s)
"when" : "<instant>", // R! When the signature was created
"who" : { Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|
Device|Organization) }, // R! Who signed
"onBehalfOf" : { Reference(Practitioner|PractitionerRole|RelatedPerson|
Patient|Device|Organization) }, // The party represented
"targetFormat" : "<code>", // The technical format of the signed resources
"sigFormat" : "<code>", // The technical format of the signature
"data" : "<base64Binary>" // The actual signature content (XML DigSig. JWS, picture, etc.)
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extensionfhir: fhir: fhir: fhir: fhir: fhir: fhir:fhir:Signature.type [ Coding ], ... ; # 1..* Indication of the reason the entity signed the object(s) fhir:Signature.when [ instant ]; # 1..1 When the signature was created fhir:Signature.who [ Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|Device|Organization) ]; # 1..1 Who signed fhir:Signature.onBehalfOf [ Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|Device|Organization) ]; # 0..1 The party represented fhir:Signature.targetFormat [ code ]; # 0..1 The technical format of the signed resources fhir:Signature.sigFormat [ code ]; # 0..1 The technical format of the signature fhir:Signature.data [ base64Binary ]; # 0..1 The actual signature content (XML DigSig. JWS, picture, etc.) ]
Changes since Release 3
| Signature | |
|
|
|
|
|
|
|
|
|
| Signature.sigFormat |
|
| Signature.data |
|
| Signature.contentType |
|
See the Full Difference for further information
Constraints
Notes:
When the signature is an XML Digital Signature (contentType = application/signature+xml), the following rules apply:
Signature
(where
the
content
that
is
signed
is
separate
from
the
signature
itself)
Signature.type
shall
contain
the
same
values
as
the
CommitmentTypeIndication
element.
There are three levels of signature verification:
Deviations from these guidelines would need to be expressed in site policy and would be enumerated in the XML-Signature block. For example, some environments may choose a different XAdES profile, hashing algorithm, policy identifier, or signature purpose vocabulary.
When the signature is an JSON Digital Signature (contentType = application/jose), the following rules apply:
Signature
(where
the
content
that
is
signed
is
separate
from
the
signature
itself)
Signature.type
shall
contain
the
same
values
as
the
There are three levels of signature verification:
Deviations from these guidelines would need to be expressed in site policy and would be enumerated in the JWS-Signature block. For example, some environments may choose a different hashing algorithm, policy identifier, or signature purpose vocabulary.
Signature is used in the following places: Bundle , Contract , Provenance and VerificationResult
See
also
Examples
,
Detailed
Descriptions
,
Mappings
,
Profiles
,
&
Extensions
and
R4
R2
Conversions
.
A text note which also contains information about who made the statement and when.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
N | Element |
Text
node
with
attribution
Elements defined in Ancestors: id , extension |
|
|
Σ | 0..1 | Individual responsible for the annotation | |
|
Reference
(
Practitioner
|
|
|||
|
string | |||
|
Σ | 0..1 | dateTime | When the annotation was made |
|
Σ | 1..1 | markdown | The annotation - text content (as markdown) |
Documentation
for
this
format
|
||||
UML Diagram ( Legend )
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --><| </author[x]><author[x]><!-- 0..1 Reference(Practitioner|Patient|RelatedPerson|Organization)| string Individual responsible for the annotation --></author[x]> <time value="[dateTime]"/><!-- 0..1 When the annotation was made --> <text value="[markdown]"/><!-- 1..1 The annotation - text content (as markdown) --></Annotation></[name]>
JSON Template
{
// from Element: extension
// author[x]: Individual responsible for the annotation. One of these 2:
"|
},
"authorReference" : { Reference(Practitioner|Patient|RelatedPerson|Organization) },
"authorString" : "<string>",
"time" : "<dateTime>", // When the annotation was made
"text" : "<markdown>" // R! The annotation - text content (as markdown)
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extension# . One of these 2 fhir:) ] fhir: ] fhir: fhir:# Annotation.author[x] : 0..1 Individual responsible for the annotation. One of these 2 fhir:Annotation.authorReference [ Reference(Practitioner|Patient|RelatedPerson|Organization) ] fhir:Annotation.authorString [ string ] fhir:Annotation.time [ dateTime ]; # 0..1 When the annotation was made fhir:Annotation.text [ markdown ]; # 1..1 The annotation - text content (as markdown) ]
Changes since Release 3
| Annotation | |
| Annotation.text |
|
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
|
|---|---|---|---|---|
|
N | Element |
Text
node
with
attribution
Elements defined in Ancestors: id , extension |
|
|
Σ | 0..1 | Individual responsible for the annotation | |
|
Reference
(
Practitioner
|
|
|||
|
string | |||
|
Σ | 0..1 | dateTime | When the annotation was made |
|
Σ | 1..1 | markdown | The annotation - text content (as markdown) |
Documentation
for
this
format
|
||||
XML Template
< xmlns="http://hl7.org/fhir"><[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --><| </author[x]><author[x]><!-- 0..1 Reference(Practitioner|Patient|RelatedPerson|Organization)| string Individual responsible for the annotation --></author[x]> <time value="[dateTime]"/><!-- 0..1 When the annotation was made --> <text value="[markdown]"/><!-- 1..1 The annotation - text content (as markdown) --></Annotation></[name]>
JSON Template
{
// from Element: extension
// author[x]: Individual responsible for the annotation. One of these 2:
"|
},
"authorReference" : { Reference(Practitioner|Patient|RelatedPerson|Organization) },
"authorString" : "<string>",
"time" : "<dateTime>", // When the annotation was made
"text" : "<markdown>" // R! The annotation - text content (as markdown)
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extension# . One of these 2 fhir:) ] fhir: ] fhir: fhir:# Annotation.author[x] : 0..1 Individual responsible for the annotation. One of these 2 fhir:Annotation.authorReference [ Reference(Practitioner|Patient|RelatedPerson|Organization) ] fhir:Annotation.authorString [ string ] fhir:Annotation.time [ dateTime ]; # 0..1 When the annotation was made fhir:Annotation.text [ markdown ]; # 1..1 The annotation - text content (as markdown) ]
Changes since Release 3
| Annotation | |
| Annotation.text |
|
See the Full Difference for further information
Notes:
Systems
that
do
not
have
structured
annotations
simply
communicate
a
single
annotation
with
no
author
or
time.
This element may need to be included in narrative because of the potential for modifying information.
Annotations
SHOULD
NOT
be
used
to
communicate
"modifying"
information
that
could
be
computable
(this
is
a
SHOULD
because
enforcing
user
behavior
is
nearly
impossible).
For
communicating
the
author
as
a
string
value,
implementers
SHOULD
use
use
Annotation.authorReference.display
instead
of
the
the
anti-pattern
Annotation.authorString
(
authorString
cannot
be
removed
because
this
datatype
is
Normative).
This
element
may
need
to
be
included
in
the
Resource
human-readable
narrative
because
of
the
potential
for
modifying
information.
Annotation
is
used
in
the
following
places:
AdverseEvent
,
AllergyIntolerance
,
Appointment
,
BiologicallyDerivedProductDispense
,
CarePlan
,
CareTeam
,
ChargeItem
,
Citation
,
ClinicalImpression
,
Communication
,
CommunicationRequest
,
Composition
,
Condition
,
Contract
,
DetectedIssue
,
Device
,
DeviceDefinition
,
DeviceDispense
,
DeviceRequest
,
DeviceUsage
DeviceUseStatement
,
DiagnosticReport
EffectEvidenceSynthesis
,
Evidence
,
EvidenceReport
,
EvidenceVariable
,
FamilyMemberHistory
,
GenomicStudy
,
Goal
,
GuidanceResponse
,
ImagingStudy
,
Immunization
,
InventoryItem
,
InventoryReport
,
Invoice
,
List
,
Media
,
MedicationAdministration
,
MedicationDispense
,
MedicationKnowledge
,
MedicationRequest
,
MedicationStatement
,
NutritionIntake
,
NutritionOrder
,
NutritionProduct
,
Observation
,
Procedure
,
RequestOrchestration
RequestGroup
,
ResearchStudy
,
RiskAssessment
,
RiskEvidenceSynthesis
,
ServiceRequest
,
Specimen
,
SubstanceDefinition
,
Task
,
Transport
and
VisionPrescription
Some elements do not have a specified type. The type is represented by the wildcard symbol "*". In these cases, the element type may be one of the following:
Primitive Types
The
element
name
ends
with
"[x]",
and
this
is
replaced
with
the
Title
cased
name
of
the
datatype.
data
type.
Open
types
references
are
used
in
the
following
places:
ElementDefinition
,
Parameters
,
Task
StructureMap
and
Transport
Task
The
following
types
are
defined
as
part
of
the
datatypes,
data
types,
but
are
documented
elsewhere
in
the
specification: