1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// @generated by fhir-codegen from HL7/v2ig 9c307dadb0bb3f99de399d30cd80c24b47bb08da input/sourceOfTruth. DO NOT EDIT.
// Change the emitter (tools/fhir-codegen) and regenerate.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-License-Identifier: Apache-2.0
//! The `EHC_E21` message structure.
use crate::model::{
Cardinality, Group, GroupKind, Max, Node, SegmentRef, SegmentStatus, Structure,
};
use crate::segment;
/// The top-level nodes of [`EHC_E21`], one `static` so a structure with the same tree links to it.
pub static EHC_E21_NODES: [Node; 4] = [
Node::Segment(SegmentRef {
id: "EHC_E21.1-MSH",
position: 1,
segment: &segment::msh::MSH,
cardinality: Cardinality {
min: 1,
max: Max::Bounded(1),
},
status: Some(SegmentStatus::A),
}),
Node::Segment(SegmentRef {
id: "EHC_E21.2-SFT",
position: 2,
segment: &segment::sft::SFT,
cardinality: Cardinality {
min: 0,
max: Max::Unbounded,
},
status: Some(SegmentStatus::A),
}),
Node::Segment(SegmentRef {
id: "EHC_E21.3-UAC",
position: 3,
segment: &segment::uac::UAC,
cardinality: Cardinality {
min: 0,
max: Max::Unbounded,
},
status: Some(SegmentStatus::A),
}),
Node::Group(Group {
id: "EHC_E21.4-AUTHORIZATION_REQUEST",
position: 4,
name: "AUTHORIZATION_REQUEST",
cardinality: Cardinality {
min: 1,
max: Max::Bounded(1),
},
kind: GroupKind::Choice,
children: &[Node::Group(Group {
id: "EHC_E21.4-AUTHORIZATION_REQUEST.choice-1-Group",
position: 1,
name: "Group",
cardinality: Cardinality {
min: 0,
max: Max::Bounded(1),
},
kind: GroupKind::Sequence,
children: &[
Node::Segment(SegmentRef {
id: "EHC_E21.4-AUTHORIZATION_REQUEST.choice-1-Group.1-IVC",
position: 1,
segment: &segment::ivc::IVC,
cardinality: Cardinality {
min: 1,
max: Max::Bounded(1),
},
status: Some(SegmentStatus::A),
}),
Node::Group(Group {
id: "EHC_E21.4-AUTHORIZATION_REQUEST.choice-1-Group.2-PSL_ITEM_INFO",
position: 2,
name: "PSL_ITEM_INFO",
cardinality: Cardinality {
min: 1,
max: Max::Unbounded,
},
kind: GroupKind::Sequence,
children: &[
Node::Segment(SegmentRef {
id: "EHC_E21.4-AUTHORIZATION_REQUEST.choice-1-Group.2-PSL_ITEM_INFO.1-PSL",
position: 1,
segment: &segment::psl::PSL,
cardinality: Cardinality {
min: 1,
max: Max::Bounded(1),
},
status: Some(SegmentStatus::A),
}),
Node::Segment(SegmentRef {
id: "EHC_E21.4-AUTHORIZATION_REQUEST.choice-1-Group.2-PSL_ITEM_INFO.2-NTE",
position: 2,
segment: &segment::nte::NTE,
cardinality: Cardinality {
min: 0,
max: Max::Unbounded,
},
status: Some(SegmentStatus::A),
}),
Node::Segment(SegmentRef {
id: "EHC_E21.4-AUTHORIZATION_REQUEST.choice-1-Group.2-PSL_ITEM_INFO.3-AUT",
position: 3,
segment: &segment::aut::AUT,
cardinality: Cardinality {
min: 0,
max: Max::Bounded(1),
},
status: Some(SegmentStatus::A),
}),
],
}),
],
})],
}),
];
/// The `EHC_E21` message structure definition, `http://hl7.org/v2/StructureDefinition/EHC_E21`.
pub static EHC_E21: Structure = Structure {
id: "EHC_E21",
url: Some("http://hl7.org/v2/StructureDefinition/EHC_E21"),
version: "2.9.1",
withdrawn_as_of: None,
nodes: &EHC_E21_NODES,
};