hl7v2-types 0.1.129

Generated HL7 v2 message structure trees, segment field tables, data type components and message definitions
Documentation
// @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 `CQU_I19` message structure.

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

/// The top-level nodes of [`CQU_I19`], one `static` so a structure with the same tree links to it.
pub static CQU_I19_NODES: [Node; 8] = [
    Node::Segment(SegmentRef {
        id: "CQU_I19.1-MSH",
        position: 1,
        segment: &segment::msh::MSH,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "CQU_I19.2-SFT",
        position: 2,
        segment: &segment::sft::SFT,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "CQU_I19.3-UAC",
        position: 3,
        segment: &segment::uac::UAC,
        cardinality: Cardinality {
            min: 0,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "CQU_I19.4-MSA",
        position: 4,
        segment: &segment::msa::MSA,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "CQU_I19.5-ERR",
        position: 5,
        segment: &segment::err::ERR,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "CQU_I19.6-RF1",
        position: 6,
        segment: &segment::rf1::RF1,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Group(Group {
        id: "CQU_I19.7-PROVIDER_CONTACT",
        position: 7,
        name: "PROVIDER_CONTACT",
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        kind: GroupKind::Sequence,
        children: &[
            Node::Segment(SegmentRef {
                id: "CQU_I19.7-PROVIDER_CONTACT.1-PRD",
                position: 1,
                segment: &segment::prd::PRD,
                cardinality: Cardinality {
                    min: 1,
                    max: Max::Bounded(1),
                },
                status: Some(SegmentStatus::A),
            }),
            Node::Segment(SegmentRef {
                id: "CQU_I19.7-PROVIDER_CONTACT.2-CTD",
                position: 2,
                segment: &segment::ctd::CTD,
                cardinality: Cardinality {
                    min: 0,
                    max: Max::Unbounded,
                },
                status: Some(SegmentStatus::A),
            }),
        ],
    }),
    Node::Group(Group {
        id: "CQU_I19.8-PATIENT",
        position: 8,
        name: "PATIENT",
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        kind: GroupKind::Sequence,
        children: &[
            Node::Segment(SegmentRef {
                id: "CQU_I19.8-PATIENT.1-PID",
                position: 1,
                segment: &segment::pid::PID,
                cardinality: Cardinality {
                    min: 1,
                    max: Max::Bounded(1),
                },
                status: Some(SegmentStatus::A),
            }),
            Node::Segment(SegmentRef {
                id: "CQU_I19.8-PATIENT.2-PD1",
                position: 2,
                segment: &segment::pd1::PD1,
                cardinality: Cardinality {
                    min: 0,
                    max: Max::Bounded(1),
                },
                status: Some(SegmentStatus::A),
            }),
        ],
    }),
];

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