hl7v2-types 0.0.0

Generated HL7 v2 message structure trees, segment field tables, data type components and message definitions
Documentation
// @generated by fhir-codegen from HL7/v2ig 3adcdbfff654ccbff5cd33aa34bd909a087e8e19 input/sourceOfTruth. DO NOT EDIT.
// Change the emitter (tools/fhir-codegen) and regenerate.
// SPDX-FileCopyrightText: Vernum Projecten B.V.
// SPDX-License-Identifier: Apache-2.0
//! The `EHC_E04` message structure.

use crate::model::{
    Cardinality, Group, GroupKind, Max, Node, SegmentRef, SegmentStatus, Structure,
};
use crate::segment;

/// The top-level nodes of [`EHC_E04`], one `static` so a structure with the same tree links to it.
pub static EHC_E04_NODES: [Node; 4] = [
    Node::Segment(SegmentRef {
        id: "EHC_E04.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_E04.2-SFT",
        position: 2,
        segment: &segment::sft::SFT,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "EHC_E04.3-UAC",
        position: 3,
        segment: &segment::uac::UAC,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Group(Group {
        id: "EHC_E04.4-REASSESSMENT_REQUEST_INFO",
        position: 4,
        name: "REASSESSMENT_REQUEST_INFO",
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        kind: GroupKind::Choice,
        children: &[Node::Group(Group {
            id: "EHC_E04.4-REASSESSMENT_REQUEST_INFO.choice-1-Group",
            position: 1,
            name: "Group",
            cardinality: Cardinality {
                min: 0,
                max: Max::Bounded(1),
            },
            kind: GroupKind::Sequence,
            children: &[
                Node::Segment(SegmentRef {
                    id: "EHC_E04.4-REASSESSMENT_REQUEST_INFO.choice-1-Group.1-IVC",
                    position: 1,
                    segment: &segment::ivc::IVC,
                    cardinality: Cardinality {
                        min: 1,
                        max: Max::Bounded(1),
                    },
                    status: Some(SegmentStatus::A),
                }),
                Node::Segment(SegmentRef {
                    id: "EHC_E04.4-REASSESSMENT_REQUEST_INFO.choice-1-Group.2-NTE",
                    position: 2,
                    segment: &segment::nte::NTE,
                    cardinality: Cardinality {
                        min: 0,
                        max: Max::Unbounded,
                    },
                    status: Some(SegmentStatus::A),
                }),
                Node::Group(Group {
                    id: "EHC_E04.4-REASSESSMENT_REQUEST_INFO.choice-1-Group.3-PRODUCT_SERVICE_SECTION",
                    position: 3,
                    name: "PRODUCT_SERVICE_SECTION",
                    cardinality: Cardinality {
                        min: 0,
                        max: Max::Unbounded,
                    },
                    kind: GroupKind::Sequence,
                    children: &[
                        Node::Segment(SegmentRef {
                            id: "EHC_E04.4-REASSESSMENT_REQUEST_INFO.choice-1-Group.3-PRODUCT_SERVICE_SECTION.1-PSS",
                            position: 1,
                            segment: &segment::pss::PSS,
                            cardinality: Cardinality {
                                min: 1,
                                max: Max::Bounded(1),
                            },
                            status: Some(SegmentStatus::A),
                        }),
                        Node::Group(Group {
                            id: "EHC_E04.4-REASSESSMENT_REQUEST_INFO.choice-1-Group.3-PRODUCT_SERVICE_SECTION.2-PRODUCT_SERVICE_GROUP",
                            position: 2,
                            name: "PRODUCT_SERVICE_GROUP",
                            cardinality: Cardinality {
                                min: 0,
                                max: Max::Unbounded,
                            },
                            kind: GroupKind::Sequence,
                            children: &[
                                Node::Segment(SegmentRef {
                                    id: "EHC_E04.4-REASSESSMENT_REQUEST_INFO.choice-1-Group.3-PRODUCT_SERVICE_SECTION.2-PRODUCT_SERVICE_GROUP.1-PSG",
                                    position: 1,
                                    segment: &segment::psg::PSG,
                                    cardinality: Cardinality {
                                        min: 1,
                                        max: Max::Bounded(1),
                                    },
                                    status: Some(SegmentStatus::A),
                                }),
                                Node::Segment(SegmentRef {
                                    id: "EHC_E04.4-REASSESSMENT_REQUEST_INFO.choice-1-Group.3-PRODUCT_SERVICE_SECTION.2-PRODUCT_SERVICE_GROUP.2-PSL",
                                    position: 2,
                                    segment: &segment::psl::PSL,
                                    cardinality: Cardinality {
                                        min: 0,
                                        max: Max::Unbounded,
                                    },
                                    status: Some(SegmentStatus::A),
                                }),
                            ],
                        }),
                    ],
                }),
            ],
        })],
    }),
];

/// The `EHC_E04` message structure definition, `http://hl7.org/v2/StructureDefinition/EHC_E04`.
pub static EHC_E04: Structure = Structure {
    id: "EHC_E04",
    url: Some("http://hl7.org/v2/StructureDefinition/EHC_E04"),
    version: "2.9.1",
    withdrawn_as_of: None,
    nodes: &EHC_E04_NODES,
};