This page is part of the FHIR Specification (v1.6.0:
STU
3 Ballot 4). The current version which supercedes this version is
5.0.0
.
For
a
full
list
of
available
versions,
see
the
Directory
of
published
versions
. For a full list of available versions, see the
Directory of published versions
.
Page
versions:
. Page versions:
R5
R4B
R4
R3
R2
|
|
Compartments
|
Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization.
The group resource is used in one of two ways:
Examples of the former could include group therapy or treatment sessions, exposed entities tracked as part of public health, etc. The latter might be used to define expected subjects for a clinical study.
Both use cases are handled by a single resource because the data elements captured tend to be similar.
There are five mechanisms in FHIR for communicating collections of resources:
contained
element
-
allows
multiple
resources
to
be
nested
inside
any
DomainResource.
This
is
a
special
type
of
grouping
where
the
grouped
resources
lose
independent
existence
-
they
no
longer
have
their
own
identifiers,
can't
easily
be
queried
independently,
etc.
Use
of
this
grouping
is
a
technical
mechanism
for
managing
the
independence
of
resources
and
has
no
impact
on
meaning.
Contained,
bundles
and
remotely
referenced
resources
convey
the
same
meaning.
This
resource
is
referenced
by
element - allows multiple resources to be nested inside any DomainResource. This is a special type of grouping where the grouped resources lose independent existence - they no longer have their own identifiers, can't easily be queried independently, etc. Use of this grouping is a technical mechanism for managing the independence of resources and has no impact on meaning. Contained, bundles and remotely referenced resources convey the same meaning.
This resource is referenced by
CarePlan
,
,
CareTeam
,
ClinicalImpression
,
Communication
,
,
CommunicationRequest
,
Condition
,
Consent
,
Contract
,
DiagnosticOrder
,
,
DeviceUseRequest
,
DiagnosticReport
,
,
DiagnosticRequest
,
DocumentManifest
,
,
DocumentReference
,
,
Flag
,
,
Goal
,
,
GuidanceResponse
,
List
,
,
Media
,
,
Observation
,
Order
,
,
Procedure
,
,
ProcedureRequest
,
,
RiskAssessment
and
,
Specimen
and
Task
Structure
| Name | Flags | Card. | Type |
|
|---|---|---|---|---|
|
I | DomainResource |
|
|
|
Σ | 0..* | Identifier |
|
|
Σ | 1..1 | code |
GroupType |
|
Σ I | 1..1 | boolean |
|
|
Σ | 0..1 | boolean | Whether this group's record is in active use |
| Σ | 0..1 | CodeableConcept |
|
|
Σ | 0..1 | string |
|
|
Σ | 0..1 | unsignedInt |
|
|
0..* | BackboneElement |
|
|
|
1..1 | CodeableConcept |
|
|
|
1..1 |
|
||
|
CodeableConcept | |||
|
boolean | |||
|
Quantity | |||
|
Range | |||
|
?! | 1..1 | boolean |
|
|
0..1 | Period |
|
|
|
I | 0..* | BackboneElement |
|
|
1..1 |
Reference
(
Patient
|
|
|
|
0..1 | Period |
|
|
|
0..1 | boolean |
|
|
Documentation for this format
|
||||
UML
Diagram
UML Diagram
(
Legend
)
XML
Template
XML Template
<
<Group xmlns="http://hl7.org/fhir"><!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension -->
<</identifier> < < <</code> < < < <</code> <</value[x]> < <</period><identifier><!-- 0..* Identifier Unique id --></identifier> <type value="[code]"/><!-- 1..1 person | animal | practitioner | device | medication | substance --> <actual value="[boolean]"/><!--1..1 Descriptive or actual --> <active value="[boolean]"/><!-- 0..1 Whether this group's record is in active use --> <code><!-- 0..1 CodeableConcept Kind of Group members --></code> <name value="[string]"/><!-- 0..1 Label for Group --> <quantity value="[unsignedInt]"/><!-- 0..1 Number of members --> <characteristic> <!-- 0..* Trait of group members --> <code><!-- 1..1 CodeableConcept Kind of characteristic --></code> <value[x]><!-- 1..1 CodeableConcept|boolean|Quantity|Range Value held by characteristic --></value[x]> <exclude value="[boolean]"/><!-- 1..1 Group includes or excludes --> <period><!-- 0..1 Period Period over which characteristic is tested --></period> </characteristic>
< <</entity> <</period> <<member> <!--0..* Who or what is in group --> <entity><!-- 1..1 Reference(Patient|Practitioner|Device|Medication|Substance) Reference to the group member --></entity> <period><!-- 0..1 Period Period member belonged to the group --></period> <inactive value="[boolean]"/><!-- 0..1 If member is no longer in group --> </member> </Group>
JSON
Template
JSON Template
{
"resourceType" : "",
{
"resourceType" : "Group",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"
"
"
"
"
"
"
"
"identifier" : [{ Identifier }], // Unique id
"type" : "<code>", // R! person | animal | practitioner | device | medication | substance
"actual" : <boolean>, // C? R! Descriptive or actual
"active" : <boolean>, // Whether this group's record is in active use
"code" : { CodeableConcept }, // Kind of Group members
"name" : "<string>", // Label for Group
"quantity" : "<unsignedInt>", // Number of members
"characteristic" : [{ // Trait of group members
"code" : { CodeableConcept }, // R! Kind of characteristic
// value[x]: Value held by characteristic. One of these 4:
" },
">,
" },
" },
"
"
"valueCodeableConcept" : { CodeableConcept },
"valueBoolean" : <boolean>,
"valueQuantity" : { Quantity },
"valueRange" : { Range },
"exclude" : <boolean>, // R! Group includes or excludes
"period" : { Period } // Period over which characteristic is tested
}],
"
"
"
"
"member" : [{ // C? Who or what is in group
"entity" : { Reference(Patient|Practitioner|Device|Medication|Substance) }, // R! Reference to the group member
"period" : { Period }, // Period member belonged to the group
"inactive" : <boolean> // If member is no longer in group
}]
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:Group; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:Group.identifier [ Identifier ], ... ; # 0..* Unique id fhir:Group.type [ code ]; # 1..1 person | animal | practitioner | device | medication | substance fhir:Group.actual [ boolean ]; # 1..1 Descriptive or actual fhir:Group.active [ boolean ]; # 0..1 Whether this group's record is in active use fhir:Group.code [ CodeableConcept ]; # 0..1 Kind of Group members fhir:Group.name [ string ]; # 0..1 Label for Group fhir:Group.quantity [ unsignedInt ]; # 0..1 Number of members fhir:Group.characteristic [ # 0..* Trait of group members fhir:Group.characteristic.code [ CodeableConcept ]; # 1..1 Kind of characteristic # Group.characteristic.value[x] : 1..1 Value held by characteristic. One of these 4 fhir:Group.characteristic.valueCodeableConcept [ CodeableConcept ] fhir:Group.characteristic.valueBoolean [ boolean ] fhir:Group.characteristic.valueQuantity [ Quantity ] fhir:Group.characteristic.valueRange [ Range ] fhir:Group.characteristic.exclude [ boolean ]; # 1..1 Group includes or excludes fhir:Group.characteristic.period [ Period ]; # 0..1 Period over which characteristic is tested ], ...; fhir:Group.member [ # 0..* Who or what is in group fhir:Group.member.entity [ Reference(Patient|Practitioner|Device|Medication|Substance) ]; # 1..1 Reference to the group member fhir:Group.member.period [ Period ]; # 0..1 Period member belonged to the group fhir:Group.member.inactive [ boolean ]; # 0..1 If member is no longer in group ], ...; ]
Changes since DSTU2
| Group | |
| Group.active | added |
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
|
|---|---|---|---|---|
|
I | DomainResource |
|
|
|
Σ | 0..* | Identifier |
|
|
Σ | 1..1 | code |
GroupType |
|
Σ I | 1..1 | boolean |
|
|
Σ | 0..1 | boolean | Whether this group's record is in active use |
| Σ | 0..1 | CodeableConcept |
|
|
Σ | 0..1 | string |
|
|
Σ | 0..1 | unsignedInt |
|
|
0..* | BackboneElement |
|
|
|
1..1 | CodeableConcept |
|
|
|
1..1 |
|
||
|
CodeableConcept | |||
|
boolean | |||
|
Quantity | |||
|
Range | |||
|
?! | 1..1 | boolean |
|
|
0..1 | Period |
|
|
|
I | 0..* | BackboneElement |
|
|
1..1 |
Reference
(
Patient
|
|
|
|
0..1 | Period |
|
|
|
0..1 | boolean |
|
|
Documentation for this format
|
||||
XML
Template
XML Template
<
<Group xmlns="http://hl7.org/fhir"><!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension -->
<</identifier> < < <</code> < < < <</code> <</value[x]> < <</period><identifier><!-- 0..* Identifier Unique id --></identifier> <type value="[code]"/><!-- 1..1 person | animal | practitioner | device | medication | substance --> <actual value="[boolean]"/><!--1..1 Descriptive or actual --> <active value="[boolean]"/><!-- 0..1 Whether this group's record is in active use --> <code><!-- 0..1 CodeableConcept Kind of Group members --></code> <name value="[string]"/><!-- 0..1 Label for Group --> <quantity value="[unsignedInt]"/><!-- 0..1 Number of members --> <characteristic> <!-- 0..* Trait of group members --> <code><!-- 1..1 CodeableConcept Kind of characteristic --></code> <value[x]><!-- 1..1 CodeableConcept|boolean|Quantity|Range Value held by characteristic --></value[x]> <exclude value="[boolean]"/><!-- 1..1 Group includes or excludes --> <period><!-- 0..1 Period Period over which characteristic is tested --></period> </characteristic>
< <</entity> <</period> <<member> <!--0..* Who or what is in group --> <entity><!-- 1..1 Reference(Patient|Practitioner|Device|Medication|Substance) Reference to the group member --></entity> <period><!-- 0..1 Period Period member belonged to the group --></period> <inactive value="[boolean]"/><!-- 0..1 If member is no longer in group --> </member> </Group>
JSON
Template
JSON Template
{
"resourceType" : "",
{
"resourceType" : "Group",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"
"
"
"
"
"
"
"
"identifier" : [{ Identifier }], // Unique id
"type" : "<code>", // R! person | animal | practitioner | device | medication | substance
"actual" : <boolean>, // C? R! Descriptive or actual
"active" : <boolean>, // Whether this group's record is in active use
"code" : { CodeableConcept }, // Kind of Group members
"name" : "<string>", // Label for Group
"quantity" : "<unsignedInt>", // Number of members
"characteristic" : [{ // Trait of group members
"code" : { CodeableConcept }, // R! Kind of characteristic
// value[x]: Value held by characteristic. One of these 4:
" },
">,
" },
" },
"
"
"valueCodeableConcept" : { CodeableConcept },
"valueBoolean" : <boolean>,
"valueQuantity" : { Quantity },
"valueRange" : { Range },
"exclude" : <boolean>, // R! Group includes or excludes
"period" : { Period } // Period over which characteristic is tested
}],
"
"
"
"
"member" : [{ // C? Who or what is in group
"entity" : { Reference(Patient|Practitioner|Device|Medication|Substance) }, // R! Reference to the group member
"period" : { Period }, // Period member belonged to the group
"inactive" : <boolean> // If member is no longer in group
}]
}
Alternate
definitions:
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:Group; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:Group.identifier [ Identifier ], ... ; # 0..* Unique id fhir:Group.type [ code ]; # 1..1 person | animal | practitioner | device | medication | substance fhir:Group.actual [ boolean ]; # 1..1 Descriptive or actual fhir:Group.active [ boolean ]; # 0..1 Whether this group's record is in active use fhir:Group.code [ CodeableConcept ]; # 0..1 Kind of Group members fhir:Group.name [ string ]; # 0..1 Label for Group fhir:Group.quantity [ unsignedInt ]; # 0..1 Number of members fhir:Group.characteristic [ # 0..* Trait of group members fhir:Group.characteristic.code [ CodeableConcept ]; # 1..1 Kind of characteristic # Group.characteristic.value[x] : 1..1 Value held by characteristic. One of these 4 fhir:Group.characteristic.valueCodeableConcept [ CodeableConcept ] fhir:Group.characteristic.valueBoolean [ boolean ] fhir:Group.characteristic.valueQuantity [ Quantity ] fhir:Group.characteristic.valueRange [ Range ] fhir:Group.characteristic.exclude [ boolean ]; # 1..1 Group includes or excludes fhir:Group.characteristic.period [ Period ]; # 0..1 Period over which characteristic is tested ], ...; fhir:Group.member [ # 0..* Who or what is in group fhir:Group.member.entity [ Reference(Patient|Practitioner|Device|Medication|Substance) ]; # 1..1 Reference to the group member fhir:Group.member.period [ Period ]; # 0..1 Period member belonged to the group fhir:Group.member.inactive [ boolean ]; # 0..1 If member is no longer in group ], ...; ]
Changes since DSTU2
| Group | |
| Group.active | added |
See the Full Difference for further information
Alternate definitions: Master Definition (
XML
,
JSON
),
XML
Schema
/
Schematron
,
Resource
Profile
(
XML
,
(for ) +
JSON
Schema
,
ShEx
(for
Turtle
),
Questionnaire
)
| Path | Definition | Type | Reference |
|---|---|---|---|
| Group.type |
|
Required | GroupType |
| Group.code |
|
Unknown |
|
| Group.characteristic.code |
|
Unknown |
|
| Group.characteristic.value[x] |
|
Unknown |
|
:
member.empty() or (actual = true)
)
Search parameters for this resource. The
common parameters
also apply. See
Searching
for
more
information
about
searching
in
REST,
messaging,
and
services.
for more information about searching in REST, messaging, and services.
| Name | Type | Description | Paths |
| actual | token |
|
Group.actual |
| characteristic | token |
|
Group.characteristic.code |
| characteristic-value | composite |
|
|
| code | token |
|
Group.code |
| exclude | token |
|
Group.characteristic.exclude |
| identifier | token |
|
Group.identifier |
| member | reference |
|
Group.member.entity
( |
| type | token |
|
Group.type |
| value | token |
|
Group.characteristic.value[x] |