This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2
This resource maintained by the FHIR Management Group Work Group
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 2 resources that provide for constructing collections of other resources:
This resource is referenced by Composition, DiagnosticOrder, DiagnosticReport, DocumentManifest, DocumentReference, List, Media, Observation, Order, RiskAssessment and Specimen
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Group | I | DomainResource | Group of multiple entities Can't have more members associated with the group than the value specified for "quantity" Can only have members if group is "actual" | |
identifier | Σ | 0..1 | Identifier | Unique id |
type | Σ | 1..1 | code | person | animal | practitioner | device | medication | substance GroupType (Required) |
actual | Σ I | 1..1 | boolean | Descriptive or actual |
code | Σ | 0..1 | CodeableConcept | Kind of Group members |
name | Σ | 0..1 | string | Label for Group |
quantity | Σ | 0..1 | integer | Number of members |
characteristic | 0..* | Element | Trait of group members | |
code | 1..1 | CodeableConcept | Kind of characteristic | |
value[x] | Value held by characteristic | |||
valueCodeableConcept | 1..1 | CodeableConcept | ||
valueBoolean | 1..1 | boolean | ||
valueQuantity | 1..1 | Quantity | ||
valueRange | 1..1 | Range | ||
exclude | M | 1..1 | boolean | Group includes or excludes |
member | I | 0..* | Patient | Practitioner | Device | Medication | Substance | Who is in group Member resource types SHALL agree with group type |
UML Diagram
XML Template
<Group xmlns="http://hl7.org/fhir"> <!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <identifier><!-- 0..1 Identifier Unique id --></identifier> <type value="[code]"/><!-- 1..1 person | animal | practitioner | device | medication | substance --> <actual value="[boolean]"/><!-- 1..1 Descriptive or actual --> <code><!-- 0..1 CodeableConcept Kind of Group members --></code> <name value="[string]"/><!-- 0..1 Label for Group --> <quantity value="[integer]"/><!-- 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 --> </characteristic> <member><!-- 0..* Reference(Patient|Practitioner|Device|Medication|Substance) Who is in group --></member> </Group>
JSON Template
{ "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 "code" : { CodeableConcept }, // Kind of Group members "name" : "<string>", // Label for Group "quantity" : <integer>, // 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 }], "member" : [{ Reference(Patient|Practitioner|Device|Medication|Substance) }] // C? Who is in group }
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Group | I | DomainResource | Group of multiple entities Can't have more members associated with the group than the value specified for "quantity" Can only have members if group is "actual" | |
identifier | Σ | 0..1 | Identifier | Unique id |
type | Σ | 1..1 | code | person | animal | practitioner | device | medication | substance GroupType (Required) |
actual | Σ I | 1..1 | boolean | Descriptive or actual |
code | Σ | 0..1 | CodeableConcept | Kind of Group members |
name | Σ | 0..1 | string | Label for Group |
quantity | Σ | 0..1 | integer | Number of members |
characteristic | 0..* | Element | Trait of group members | |
code | 1..1 | CodeableConcept | Kind of characteristic | |
value[x] | Value held by characteristic | |||
valueCodeableConcept | 1..1 | CodeableConcept | ||
valueBoolean | 1..1 | boolean | ||
valueQuantity | 1..1 | Quantity | ||
valueRange | 1..1 | Range | ||
exclude | M | 1..1 | boolean | Group includes or excludes |
member | I | 0..* | Patient | Practitioner | Device | Medication | Substance | Who is in group Member resource types SHALL agree with group type |
XML Template
<Group xmlns="http://hl7.org/fhir"> <!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <identifier><!-- 0..1 Identifier Unique id --></identifier> <type value="[code]"/><!-- 1..1 person | animal | practitioner | device | medication | substance --> <actual value="[boolean]"/><!-- 1..1 Descriptive or actual --> <code><!-- 0..1 CodeableConcept Kind of Group members --></code> <name value="[string]"/><!-- 0..1 Label for Group --> <quantity value="[integer]"/><!-- 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 --> </characteristic> <member><!-- 0..* Reference(Patient|Practitioner|Device|Medication|Substance) Who is in group --></member> </Group>
JSON Template
{ "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 "code" : { CodeableConcept }, // Kind of Group members "name" : "<string>", // Label for Group "quantity" : <integer>, // 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 }], "member" : [{ Reference(Patient|Practitioner|Device|Medication|Substance) }] // C? Who is in group }
Alternate definitions: Schema/Schematron, Resource Profile (XML, JSON), Questionnaire
Path | Definition | Type | Reference |
---|---|---|---|
Group.type | Types of resources that are part of group | Fixed | http://hl7.org/fhir/group-type |
Group.code | Kind of particular resource. E.g. cow, syringe, lake, etc. | Unknown | No details provided yet |
Group.characteristic.code | List of characteristics used to describe group members. E.g. gender, age, owner, location, etc. | Unknown | No details provided yet |
Group.characteristic.value[x] | Value of descriptive member characteristic. E.g. red, male, pneumonia, caucasian, etc. | Unknown | No details provided yet |
Search parameters for this resource. The common parameters also apply. See Searching for more information about searching in REST, messaging, and services.
Name | Type | Description | Paths |
actual | token | Descriptive or actual | Group.actual |
characteristic | token | Kind of characteristic | Group.characteristic.code |
characteristic-value | composite | A composite of both characteristic and value | |
code | token | The kind of resources contained | Group.code |
exclude | token | Group includes or excludes | Group.characteristic.exclude |
identifier | token | Unique id | Group.identifier |
member | reference | Who is in group | Group.member (Medication, Device, Patient, Substance, Practitioner) |
type | token | The type of resources the group contains | Group.type |
value | token | Value held by characteristic | Group.characteristic.value[x] |