v2+ Details
0.3.2 - Working Draft to present the concept ideas (FO)

v2+ Details - Local Development build (v0.3.2). See the Directory of published versions

Logical Model: v2+ Message Structure Definition

Official URL: http://v2.hl7.org/fhir/StructureDefinition/v2MessageStructureDefinition Version: 1st draft
Draft as of 2023-10-23 Computable Name: v2+ Message Structure Definition

Message Structure Definition

Usage:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from Base

NameFlagsCard.TypeDescription & Constraintsdoco
.. v2MessageStructureDefinition 0..*BaseBase for all types and resources
Instances of this logical model are not marked to be the target of a Reference
... code Σ1..1codecode name of this message structure, eg. ADT_A01
Binding: hl7VS-messageStructure (required): Message Structure Code

... title Σ0..1stringhuman readable display name
... description 0..1Narrativetextual description of this message structure
... steward 0..1codeBinding: steward (required): Steward for this Message Structure

... triggerEvents 0..*codeBinding: event (extensible): What are the associated triggering events?


... structure 1..*BackboneElementdetailed structure
This repeating element order: The order of segmentEntry elements defines the structure of the HL7 V2 message. Order SHALL be preserved by all implementations.
.... sequenceNumber 1..1integer
.... Slices for segment 1..*choice of segment group, segment, or choice
Slice: Unordered, Open by value:system
..... segment:SegmentGroup 1..1group of segments
...... name 1..1stringgroup of segments
...... structure 1..1BackboneElementNested Structure
..... segment:IndividualSegment 1..*individual segments
...... code 1..1stringcode for individual segment
..... segment:ChoiceGroup 1..*choice of segments
...... number 1..1integernumber to identify this individual group
...... name 1..1stringgroupname
...... structure 1..1BackboneElementNested Structure
.... implement 0..1codeThis value indicates wheether this segment has to be implemented. The default value is empty, i.e. optional.
Binding: v2plus-implement (required)
.... minCardinality 0..1integer
.... maxCardinality 0..1integer
.... status 0..1string

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
v2MessageStructureDefinition.coderequiredHl7VSMessageStructure
v2MessageStructureDefinition.messageTyperequiredhttp://terminology.hl7.org/ValueSet/v2plus-vs-message-type
v2MessageStructureDefinition.stewardrequiredsteward
v2MessageStructureDefinition.triggerEventsextensibleevent
v2MessageStructureDefinition.structure.implementrequiredv2plus-implement
NameFlagsCard.TypeDescription & Constraintsdoco
.. v2MessageStructureDefinition 0..*BaseBase for all types and resources
Instances of this logical model are not marked to be the target of a Reference
... code Σ1..1codecode name of this message structure, eg. ADT_A01
Binding: hl7VS-messageStructure (required): Message Structure Code

... title Σ0..1stringhuman readable display name
... description 0..1Narrativetextual description of this message structure
... steward 0..1codeBinding: steward (required): Steward for this Message Structure

... triggerEvents 0..*codeBinding: event (extensible): What are the associated triggering events?


... structure 1..*BackboneElementdetailed structure
This repeating element order: The order of segmentEntry elements defines the structure of the HL7 V2 message. Order SHALL be preserved by all implementations.
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... sequenceNumber 1..1integer
.... Slices for segment:SegmentGroup 1..1group of segments
Slice: Unordered, Open by value:system
..... segment:SegmentGroup:All Slices Content/Rules for all slices
...... name 1..1stringgroupname
...... structure 1..1BackboneElementNested Structure
..... segment:IndividualSegment 1..*individual segments
...... code 1..1stringcode for individual segment
..... segment:ChoiceGroup 1..*choice of segments
...... number 1..1integernumber to identify this individual group
.... implement 0..1codeThis value indicates wheether this segment has to be implemented. The default value is empty, i.e. optional.
Binding: v2plus-implement (required)
.... minCardinality 0..1integer
.... maxCardinality 0..1integer
.... status 0..1string

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
v2MessageStructureDefinition.coderequiredHl7VSMessageStructure
v2MessageStructureDefinition.messageTyperequiredhttp://terminology.hl7.org/ValueSet/v2plus-vs-message-type
v2MessageStructureDefinition.stewardrequiredsteward
v2MessageStructureDefinition.triggerEventsextensibleevent
v2MessageStructureDefinition.structure.implementrequiredv2plus-implement

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. v2MessageStructureDefinition 0..*BaseBase for all types and resources
Instances of this logical model are not marked to be the target of a Reference
... code Σ1..1codecode name of this message structure, eg. ADT_A01
Binding: hl7VS-messageStructure (required): Message Structure Code

... title Σ0..1stringhuman readable display name
... description 0..1Narrativetextual description of this message structure
... steward 0..1codeBinding: steward (required): Steward for this Message Structure

... triggerEvents 0..*codeBinding: event (extensible): What are the associated triggering events?


... structure 1..*BackboneElementdetailed structure
This repeating element order: The order of segmentEntry elements defines the structure of the HL7 V2 message. Order SHALL be preserved by all implementations.
.... @id 0..1idUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... sequenceNumber 1..1integer
.... Slices for segment:SegmentGroup 1..1group of segments
Slice: Unordered, Open by value:system
..... segment:SegmentGroup:All Slices Content/Rules for all slices
...... name 1..1stringgroupname
...... structure 1..1BackboneElementNested Structure
..... segment:IndividualSegment 1..*individual segments
...... code 1..1stringcode for individual segment
..... segment:ChoiceGroup 1..*choice of segments
...... number 1..1integernumber to identify this individual group
.... implement 0..1codeThis value indicates wheether this segment has to be implemented. The default value is empty, i.e. optional.
Binding: v2plus-implement (required)
.... minCardinality 0..1integer
.... maxCardinality 0..1integer
.... status 0..1string

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
v2MessageStructureDefinition.coderequiredHl7VSMessageStructure
v2MessageStructureDefinition.messageTyperequiredhttp://terminology.hl7.org/ValueSet/v2plus-vs-message-type
v2MessageStructureDefinition.stewardrequiredsteward
v2MessageStructureDefinition.triggerEventsextensibleevent
v2MessageStructureDefinition.structure.implementrequiredv2plus-implement

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from Base

Summary

Mandatory: 3 elements (11 nested mandatory elements)

Slices

This structure defines the following Slices:

  • The element v2MessageStructureDefinition.structure.segment is sliced based on the value of value:system

Differential View

This structure is derived from Base

NameFlagsCard.TypeDescription & Constraintsdoco
.. v2MessageStructureDefinition 0..*BaseBase for all types and resources
Instances of this logical model are not marked to be the target of a Reference
... code Σ1..1codecode name of this message structure, eg. ADT_A01
Binding: hl7VS-messageStructure (required): Message Structure Code

... title Σ0..1stringhuman readable display name
... description 0..1Narrativetextual description of this message structure
... steward 0..1codeBinding: steward (required): Steward for this Message Structure

... triggerEvents 0..*codeBinding: event (extensible): What are the associated triggering events?


... structure 1..*BackboneElementdetailed structure
This repeating element order: The order of segmentEntry elements defines the structure of the HL7 V2 message. Order SHALL be preserved by all implementations.
.... sequenceNumber 1..1integer
.... Slices for segment 1..*choice of segment group, segment, or choice
Slice: Unordered, Open by value:system
..... segment:SegmentGroup 1..1group of segments
...... name 1..1stringgroup of segments
...... structure 1..1BackboneElementNested Structure
..... segment:IndividualSegment 1..*individual segments
...... code 1..1stringcode for individual segment
..... segment:ChoiceGroup 1..*choice of segments
...... number 1..1integernumber to identify this individual group
...... name 1..1stringgroupname
...... structure 1..1BackboneElementNested Structure
.... implement 0..1codeThis value indicates wheether this segment has to be implemented. The default value is empty, i.e. optional.
Binding: v2plus-implement (required)
.... minCardinality 0..1integer
.... maxCardinality 0..1integer
.... status 0..1string

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
v2MessageStructureDefinition.coderequiredHl7VSMessageStructure
v2MessageStructureDefinition.messageTyperequiredhttp://terminology.hl7.org/ValueSet/v2plus-vs-message-type
v2MessageStructureDefinition.stewardrequiredsteward
v2MessageStructureDefinition.triggerEventsextensibleevent
v2MessageStructureDefinition.structure.implementrequiredv2plus-implement

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. v2MessageStructureDefinition 0..*BaseBase for all types and resources
Instances of this logical model are not marked to be the target of a Reference
... code Σ1..1codecode name of this message structure, eg. ADT_A01
Binding: hl7VS-messageStructure (required): Message Structure Code

... title Σ0..1stringhuman readable display name
... description 0..1Narrativetextual description of this message structure
... steward 0..1codeBinding: steward (required): Steward for this Message Structure

... triggerEvents 0..*codeBinding: event (extensible): What are the associated triggering events?


... structure 1..*BackboneElementdetailed structure
This repeating element order: The order of segmentEntry elements defines the structure of the HL7 V2 message. Order SHALL be preserved by all implementations.
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... sequenceNumber 1..1integer
.... Slices for segment:SegmentGroup 1..1group of segments
Slice: Unordered, Open by value:system
..... segment:SegmentGroup:All Slices Content/Rules for all slices
...... name 1..1stringgroupname
...... structure 1..1BackboneElementNested Structure
..... segment:IndividualSegment 1..*individual segments
...... code 1..1stringcode for individual segment
..... segment:ChoiceGroup 1..*choice of segments
...... number 1..1integernumber to identify this individual group
.... implement 0..1codeThis value indicates wheether this segment has to be implemented. The default value is empty, i.e. optional.
Binding: v2plus-implement (required)
.... minCardinality 0..1integer
.... maxCardinality 0..1integer
.... status 0..1string

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
v2MessageStructureDefinition.coderequiredHl7VSMessageStructure
v2MessageStructureDefinition.messageTyperequiredhttp://terminology.hl7.org/ValueSet/v2plus-vs-message-type
v2MessageStructureDefinition.stewardrequiredsteward
v2MessageStructureDefinition.triggerEventsextensibleevent
v2MessageStructureDefinition.structure.implementrequiredv2plus-implement

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. v2MessageStructureDefinition 0..*BaseBase for all types and resources
Instances of this logical model are not marked to be the target of a Reference
... code Σ1..1codecode name of this message structure, eg. ADT_A01
Binding: hl7VS-messageStructure (required): Message Structure Code

... title Σ0..1stringhuman readable display name
... description 0..1Narrativetextual description of this message structure
... steward 0..1codeBinding: steward (required): Steward for this Message Structure

... triggerEvents 0..*codeBinding: event (extensible): What are the associated triggering events?


... structure 1..*BackboneElementdetailed structure
This repeating element order: The order of segmentEntry elements defines the structure of the HL7 V2 message. Order SHALL be preserved by all implementations.
.... @id 0..1idUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... sequenceNumber 1..1integer
.... Slices for segment:SegmentGroup 1..1group of segments
Slice: Unordered, Open by value:system
..... segment:SegmentGroup:All Slices Content/Rules for all slices
...... name 1..1stringgroupname
...... structure 1..1BackboneElementNested Structure
..... segment:IndividualSegment 1..*individual segments
...... code 1..1stringcode for individual segment
..... segment:ChoiceGroup 1..*choice of segments
...... number 1..1integernumber to identify this individual group
.... implement 0..1codeThis value indicates wheether this segment has to be implemented. The default value is empty, i.e. optional.
Binding: v2plus-implement (required)
.... minCardinality 0..1integer
.... maxCardinality 0..1integer
.... status 0..1string

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
v2MessageStructureDefinition.coderequiredHl7VSMessageStructure
v2MessageStructureDefinition.messageTyperequiredhttp://terminology.hl7.org/ValueSet/v2plus-vs-message-type
v2MessageStructureDefinition.stewardrequiredsteward
v2MessageStructureDefinition.triggerEventsextensibleevent
v2MessageStructureDefinition.structure.implementrequiredv2plus-implement

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from Base

Summary

Mandatory: 3 elements (11 nested mandatory elements)

Slices

This structure defines the following Slices:

  • The element v2MessageStructureDefinition.structure.segment is sliced based on the value of value:system

 

Other representations of profile: CSV, Excel