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

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

/// The top-level nodes of [`RSP_K21`], one `static` so a structure with the same tree links to it.
pub static RSP_K21_NODES: [Node; 10] = [
    Node::Segment(SegmentRef {
        id: "RSP_K21.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_K21.2-ARV",
        position: 2,
        segment: &segment::arv::ARV,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RSP_K21.3-SFT",
        position: 3,
        segment: &segment::sft::SFT,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RSP_K21.4-UAC",
        position: 4,
        segment: &segment::uac::UAC,
        cardinality: Cardinality {
            min: 0,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RSP_K21.5-MSA",
        position: 5,
        segment: &segment::msa::MSA,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RSP_K21.6-ERR",
        position: 6,
        segment: &segment::err::ERR,
        cardinality: Cardinality {
            min: 0,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RSP_K21.7-QAK",
        position: 7,
        segment: &segment::qak::QAK,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RSP_K21.8-QPD",
        position: 8,
        segment: &segment::qpd::QPD,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Group(Group {
        id: "RSP_K21.9-QUERY_RESPONSE",
        position: 9,
        name: "QUERY_RESPONSE",
        cardinality: Cardinality {
            min: 0,
            max: Max::Bounded(1),
        },
        kind: GroupKind::Sequence,
        children: &[
            Node::Segment(SegmentRef {
                id: "RSP_K21.9-QUERY_RESPONSE.1-PID",
                position: 1,
                segment: &segment::pid::PID,
                cardinality: Cardinality {
                    min: 1,
                    max: Max::Bounded(1),
                },
                status: Some(SegmentStatus::A),
            }),
            Node::Segment(SegmentRef {
                id: "RSP_K21.9-QUERY_RESPONSE.2-PD1",
                position: 2,
                segment: &segment::pd1::PD1,
                cardinality: Cardinality {
                    min: 0,
                    max: Max::Bounded(1),
                },
                status: Some(SegmentStatus::A),
            }),
            Node::Segment(SegmentRef {
                id: "RSP_K21.9-QUERY_RESPONSE.3-GSP",
                position: 3,
                segment: &segment::gsp::GSP,
                cardinality: Cardinality {
                    min: 0,
                    max: Max::Unbounded,
                },
                status: Some(SegmentStatus::A),
            }),
            Node::Segment(SegmentRef {
                id: "RSP_K21.9-QUERY_RESPONSE.4-GSR",
                position: 4,
                segment: &segment::gsr::GSR,
                cardinality: Cardinality {
                    min: 0,
                    max: Max::Unbounded,
                },
                status: Some(SegmentStatus::A),
            }),
            Node::Segment(SegmentRef {
                id: "RSP_K21.9-QUERY_RESPONSE.5-GSC",
                position: 5,
                segment: &segment::gsc::GSC,
                cardinality: Cardinality {
                    min: 0,
                    max: Max::Unbounded,
                },
                status: Some(SegmentStatus::A),
            }),
            Node::Segment(SegmentRef {
                id: "RSP_K21.9-QUERY_RESPONSE.6-ARV",
                position: 6,
                segment: &segment::arv::ARV,
                cardinality: Cardinality {
                    min: 0,
                    max: Max::Unbounded,
                },
                status: Some(SegmentStatus::B),
            }),
            Node::Group(Group {
                id: "RSP_K21.9-QUERY_RESPONSE.7-NEXT_OF_KIN",
                position: 7,
                name: "NEXT_OF_KIN",
                cardinality: Cardinality {
                    min: 0,
                    max: Max::Unbounded,
                },
                kind: GroupKind::Sequence,
                children: &[
                    Node::Segment(SegmentRef {
                        id: "RSP_K21.9-QUERY_RESPONSE.7-NEXT_OF_KIN.1-NK1",
                        position: 1,
                        segment: &segment::nk1::NK1,
                        cardinality: Cardinality {
                            min: 1,
                            max: Max::Bounded(1),
                        },
                        status: Some(SegmentStatus::A),
                    }),
                    Node::Segment(SegmentRef {
                        id: "RSP_K21.9-QUERY_RESPONSE.7-NEXT_OF_KIN.2-GSP",
                        position: 2,
                        segment: &segment::gsp::GSP,
                        cardinality: Cardinality {
                            min: 0,
                            max: Max::Unbounded,
                        },
                        status: Some(SegmentStatus::A),
                    }),
                    Node::Segment(SegmentRef {
                        id: "RSP_K21.9-QUERY_RESPONSE.7-NEXT_OF_KIN.3-GSR",
                        position: 3,
                        segment: &segment::gsr::GSR,
                        cardinality: Cardinality {
                            min: 0,
                            max: Max::Unbounded,
                        },
                        status: Some(SegmentStatus::A),
                    }),
                ],
            }),
            Node::Segment(SegmentRef {
                id: "RSP_K21.9-QUERY_RESPONSE.8-QRI",
                position: 8,
                segment: &segment::qri::QRI,
                cardinality: Cardinality {
                    min: 1,
                    max: Max::Bounded(1),
                },
                status: Some(SegmentStatus::A),
            }),
        ],
    }),
    Node::Segment(SegmentRef {
        id: "RSP_K21.10-DSC",
        position: 10,
        segment: &segment::dsc::DSC,
        cardinality: Cardinality {
            min: 0,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
];

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