visit the hl7 website The Demo site for our new HL7 Version 2+ (plus) Standard

18.8.147 RGS - Resource Group Segment (10.6.3)

The RGS segment is used to identify relationships between resources identified for a scheduled event. This segment can be used, on a site specified basis, to identify groups of resources that are used together within a scheduled event, or to describe some other relationship between resources. To specify related groups of resources within a message, begin each group with an RGS segment, and then follow that RGS with one or more of the Appointment Information segments (AIG, AIL, AIS, or AIP).

If a message does not require any grouping of resources, then specify a single RGS in the message, and follow it with all of the Appointment Information segments for the scheduled event. (At least one RGS segment is required in each message - even if no grouping of resources is required - to allow parsers to properly understand the message.)

HL7 Attribute Table - RGS - Resource Group

Base Framework
Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData Type
RGS
101203Set ID - RGS SHOULD[1..1][1..4]
SI

Sequence ID


200763Segment Action Code
C

Condition defined for this element

MAY[0..1][1..1]univ: SegmentActionCode (CD) hl7VS-segmentActionCode (VS) segmentAction (CS)
ID

Coded Value for HL7 Defined Tables

301204Resource Group ID MAY[0..1] 
CWE

Coded with Exceptions

Conditions/Invariants

The root for the expression is on the segment.

Seq. Referenced Elements Introduction Invariant Comment
1 ?

Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData Type
RGS
101203Set ID - RGS SHALL[1..1][1..4]
SI

Sequence ID


200763Segment Action Code
C

Condition defined for this element

MAY[0..1][1..1]univ: SegmentActionCode (CD) hl7VS-segmentActionCode (VS) segmentAction (CS)
ID

Coded Value for HL7 Defined Tables

301204Resource Group ID MAY[0..1] 
CWE

Coded with Exceptions

Base FrameworkBase Standard Profile
Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData TypeImplementVocabulary
RGS 
101203Set ID - RGS SHOULD[1..1][1..4]
SI

Sequence ID

SHALL

200763Segment Action Code
C

Condition defined for this element

MAY[0..1][1..1]univ: SegmentActionCode (CD) hl7VS-segmentActionCode (VS) segmentAction (CS)
ID

Coded Value for HL7 Defined Tables

MAY 
301204Resource Group ID MAY[0..1] 
CWE

Coded with Exceptions

MAY
Base Framework Base Standard Profile
Seq# Data Element Description Flags Optionality Repetition Length C.LEN Table Data Type Optionality Table
RGS  
1 01203 Set ID - RGS   O   [1..4]  
SI

Sequence ID

R  

2 00763 Segment Action Code
C

Condition defined for this element

O   [1..1]  
ID

Coded Value for HL7 Defined Tables

  (0206)
3 01204 Resource Group ID   O      
CWE

Coded with Exceptions

   
Seq# Data Element Description Optionality Repetition Length C.LEN Table Data Type
RGS
1 01203 Set ID - RGS R   [1..4]  
SI

Sequence ID

2 00763 Segment Action Code C   [1..1] (0206)
ID

Coded Value for HL7 Defined Tables

3 01204 Resource Group ID O      
CWE

Coded with Exceptions

18.8.147.1 RGS Field Definitions (10.6.3.0)

18.8.147.2 RGS-1 Set ID - RGS (SI) 01203 (10.6.3.1)

Definition: This field contains a number that uniquely identifies the information represented by this segment in this transaction for the purposes of addition, change or deletion.

18.8.147.3 RGS-2 Segment Action Code (ID) 00763 (10.6.3.2)

Definition: This field contains the action to be taken when updating or modifying information in this segment from previously sent interface transactions. Refer to HL7 Table 0206 - Segment Action Code in Chapter 2C, Code Tables, for valid values.

This field is conditionally required. It is required for all updating or modifying trigger events.

18.8.147.4 RGS-3 Resource Group ID (CWE) 01204 (10.6.3.3)

Definition: This field contains an identifier code describing the group of resources following this RGS segment.