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 `MFN_Znn` message structure.

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

/// The top-level nodes of [`MFN_ZNN`], one `static` so a structure with the same tree links to it.
pub static MFN_ZNN_NODES: [Node; 5] = [
    Node::Segment(SegmentRef {
        id: "MFN_Znn.1-MSH",
        position: 1,
        segment: &segment::msh::MSH,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "MFN_Znn.2-SFT",
        position: 2,
        segment: &segment::sft::SFT,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "MFN_Znn.3-UAC",
        position: 3,
        segment: &segment::uac::UAC,
        cardinality: Cardinality {
            min: 0,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "MFN_Znn.4-MFI",
        position: 4,
        segment: &segment::mfi::MFI,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Group(Group {
        id: "MFN_Znn.5-MF_SITE_DEFINED",
        position: 5,
        name: "MF_SITE_DEFINED",
        cardinality: Cardinality {
            min: 1,
            max: Max::Unbounded,
        },
        kind: GroupKind::Sequence,
        children: &[
            Node::Segment(SegmentRef {
                id: "MFN_Znn.5-MF_SITE_DEFINED.1-MFE",
                position: 1,
                segment: &segment::mfe::MFE,
                cardinality: Cardinality {
                    min: 1,
                    max: Max::Bounded(1),
                },
                status: Some(SegmentStatus::A),
            }),
            Node::Placeholder(Placeholder {
                id: "MFN_Znn.5-MF_SITE_DEFINED.2-Hxx",
                position: 2,
                cardinality: Cardinality {
                    min: 1,
                    max: Max::Unbounded,
                },
            }),
        ],
    }),
];

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