use crate::model::{Cardinality, Max, Node, SegmentRef, SegmentStatus, Structure};
use crate::segment;
pub static ADT_A20_NODES: [Node; 5] = [
Node::Segment(SegmentRef {
id: "ADT_A20.1-MSH",
position: 1,
segment: &segment::msh::MSH,
cardinality: Cardinality {
min: 1,
max: Max::Bounded(1),
},
status: Some(SegmentStatus::A),
}),
Node::Segment(SegmentRef {
id: "ADT_A20.2-SFT",
position: 2,
segment: &segment::sft::SFT,
cardinality: Cardinality {
min: 0,
max: Max::Unbounded,
},
status: Some(SegmentStatus::A),
}),
Node::Segment(SegmentRef {
id: "ADT_A20.3-UAC",
position: 3,
segment: &segment::uac::UAC,
cardinality: Cardinality {
min: 0,
max: Max::Bounded(1),
},
status: Some(SegmentStatus::A),
}),
Node::Segment(SegmentRef {
id: "ADT_A20.4-EVN",
position: 4,
segment: &segment::evn::EVN,
cardinality: Cardinality {
min: 1,
max: Max::Bounded(1),
},
status: Some(SegmentStatus::A),
}),
Node::Segment(SegmentRef {
id: "ADT_A20.5-NPU",
position: 5,
segment: &segment::npu::NPU,
cardinality: Cardinality {
min: 1,
max: Max::Bounded(1),
},
status: Some(SegmentStatus::A),
}),
];
pub static ADT_A20: Structure = Structure {
id: "ADT_A20",
url: Some("http://hl7.org/v2/StructureDefinition/ADT_A20"),
version: "2.9.1",
withdrawn_as_of: None,
nodes: &ADT_A20_NODES,
};