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

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

/// The top-level nodes of [`RSP_E22`], one `static` so a structure with the same tree links to it.
pub static RSP_E22_NODES: [Node; 6] = [
    Node::Segment(SegmentRef {
        id: "RSP_E22.1-MSH",
        position: 1,
        segment: &segment::msh::MSH,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RSP_E22.2-SFT",
        position: 2,
        segment: &segment::sft::SFT,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RSP_E22.3-UAC",
        position: 3,
        segment: &segment::uac::UAC,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RSP_E22.4-MSA",
        position: 4,
        segment: &segment::msa::MSA,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RSP_E22.5-ERR",
        position: 5,
        segment: &segment::err::ERR,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Group(Group {
        id: "RSP_E22.6-QUERY_ACK",
        position: 6,
        name: "QUERY_ACK",
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        kind: GroupKind::Choice,
        children: &[Node::Group(Group {
            id: "RSP_E22.6-QUERY_ACK.choice-1-Group",
            position: 1,
            name: "Group",
            cardinality: Cardinality {
                min: 0,
                max: Max::Bounded(1),
            },
            kind: GroupKind::Sequence,
            children: &[
                Node::Segment(SegmentRef {
                    id: "RSP_E22.6-QUERY_ACK.choice-1-Group.1-QAK",
                    position: 1,
                    segment: &segment::qak::QAK,
                    cardinality: Cardinality {
                        min: 1,
                        max: Max::Bounded(1),
                    },
                    status: Some(SegmentStatus::A),
                }),
                Node::Segment(SegmentRef {
                    id: "RSP_E22.6-QUERY_ACK.choice-1-Group.2-QPD",
                    position: 2,
                    segment: &segment::qpd::QPD,
                    cardinality: Cardinality {
                        min: 1,
                        max: Max::Bounded(1),
                    },
                    status: Some(SegmentStatus::A),
                }),
                Node::Group(Group {
                    id: "RSP_E22.6-QUERY_ACK.choice-1-Group.3-AUTHORIZATION_INFO",
                    position: 3,
                    name: "AUTHORIZATION_INFO",
                    cardinality: Cardinality {
                        min: 0,
                        max: Max::Bounded(1),
                    },
                    kind: GroupKind::Sequence,
                    children: &[
                        Node::Segment(SegmentRef {
                            id: "RSP_E22.6-QUERY_ACK.choice-1-Group.3-AUTHORIZATION_INFO.1-IVC",
                            position: 1,
                            segment: &segment::ivc::IVC,
                            cardinality: Cardinality {
                                min: 1,
                                max: Max::Bounded(1),
                            },
                            status: Some(SegmentStatus::A),
                        }),
                        Node::Segment(SegmentRef {
                            id: "RSP_E22.6-QUERY_ACK.choice-1-Group.3-AUTHORIZATION_INFO.2-PSG",
                            position: 2,
                            segment: &segment::psg::PSG,
                            cardinality: Cardinality {
                                min: 1,
                                max: Max::Bounded(1),
                            },
                            status: Some(SegmentStatus::A),
                        }),
                        Node::Group(Group {
                            id: "RSP_E22.6-QUERY_ACK.choice-1-Group.3-AUTHORIZATION_INFO.3-PSL_ITEM_INFO",
                            position: 3,
                            name: "PSL_ITEM_INFO",
                            cardinality: Cardinality {
                                min: 1,
                                max: Max::Unbounded,
                            },
                            kind: GroupKind::Sequence,
                            children: &[Node::Segment(SegmentRef {
                                id: "RSP_E22.6-QUERY_ACK.choice-1-Group.3-AUTHORIZATION_INFO.3-PSL_ITEM_INFO.1-PSL",
                                position: 1,
                                segment: &segment::psl::PSL,
                                cardinality: Cardinality {
                                    min: 1,
                                    max: Max::Bounded(1),
                                },
                                status: Some(SegmentStatus::A),
                            })],
                        }),
                    ],
                }),
            ],
        })],
    }),
];

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