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

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

/// The top-level nodes of [`RRG_O16`], one `static` so a structure with the same tree links to it.
pub static RRG_O16_NODES: [Node; 7] = [
    Node::Segment(SegmentRef {
        id: "RRG_O16.1-MSH",
        position: 1,
        segment: &segment::msh::MSH,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RRG_O16.2-MSA",
        position: 2,
        segment: &segment::msa::MSA,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RRG_O16.3-ERR",
        position: 3,
        segment: &segment::err::ERR,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RRG_O16.4-SFT",
        position: 4,
        segment: &segment::sft::SFT,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RRG_O16.5-UAC",
        position: 5,
        segment: &segment::uac::UAC,
        cardinality: Cardinality {
            min: 0,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "RRG_O16.6-NTE",
        position: 6,
        segment: &segment::nte::NTE,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Group(Group {
        id: "RRG_O16.7-RESPONSE",
        position: 7,
        name: "RESPONSE",
        cardinality: Cardinality {
            min: 0,
            max: Max::Bounded(1),
        },
        kind: GroupKind::Sequence,
        children: &[
            Node::Group(Group {
                id: "RRG_O16.7-RESPONSE.1-PATIENT",
                position: 1,
                name: "PATIENT",
                cardinality: Cardinality {
                    min: 0,
                    max: Max::Bounded(1),
                },
                kind: GroupKind::Sequence,
                children: &[
                    Node::Segment(SegmentRef {
                        id: "RRG_O16.7-RESPONSE.1-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: "RRG_O16.7-RESPONSE.1-PATIENT.2-PRT",
                        position: 2,
                        segment: &segment::prt::PRT,
                        cardinality: Cardinality {
                            min: 0,
                            max: Max::Unbounded,
                        },
                        status: Some(SegmentStatus::A),
                    }),
                    Node::Segment(SegmentRef {
                        id: "RRG_O16.7-RESPONSE.1-PATIENT.3-NTE",
                        position: 3,
                        segment: &segment::nte::NTE,
                        cardinality: Cardinality {
                            min: 0,
                            max: Max::Unbounded,
                        },
                        status: Some(SegmentStatus::A),
                    }),
                ],
            }),
            Node::Group(Group {
                id: "RRG_O16.7-RESPONSE.2-ORDER",
                position: 2,
                name: "ORDER",
                cardinality: Cardinality {
                    min: 1,
                    max: Max::Unbounded,
                },
                kind: GroupKind::Sequence,
                children: &[
                    Node::Segment(SegmentRef {
                        id: "RRG_O16.7-RESPONSE.2-ORDER.1-ORC",
                        position: 1,
                        segment: &segment::orc::ORC,
                        cardinality: Cardinality {
                            min: 1,
                            max: Max::Bounded(1),
                        },
                        status: Some(SegmentStatus::A),
                    }),
                    Node::Segment(SegmentRef {
                        id: "RRG_O16.7-RESPONSE.2-ORDER.2-PRT",
                        position: 2,
                        segment: &segment::prt::PRT,
                        cardinality: Cardinality {
                            min: 0,
                            max: Max::Unbounded,
                        },
                        status: Some(SegmentStatus::A),
                    }),
                    Node::Group(Group {
                        id: "RRG_O16.7-RESPONSE.2-ORDER.3-TIMING",
                        position: 3,
                        name: "TIMING",
                        cardinality: Cardinality {
                            min: 0,
                            max: Max::Unbounded,
                        },
                        kind: GroupKind::Sequence,
                        children: &[
                            Node::Segment(SegmentRef {
                                id: "RRG_O16.7-RESPONSE.2-ORDER.3-TIMING.1-TQ1",
                                position: 1,
                                segment: &segment::tq1::TQ1,
                                cardinality: Cardinality {
                                    min: 1,
                                    max: Max::Bounded(1),
                                },
                                status: Some(SegmentStatus::A),
                            }),
                            Node::Segment(SegmentRef {
                                id: "RRG_O16.7-RESPONSE.2-ORDER.3-TIMING.2-TQ2",
                                position: 2,
                                segment: &segment::tq2::TQ2,
                                cardinality: Cardinality {
                                    min: 0,
                                    max: Max::Unbounded,
                                },
                                status: Some(SegmentStatus::A),
                            }),
                        ],
                    }),
                    Node::Group(Group {
                        id: "RRG_O16.7-RESPONSE.2-ORDER.4-GIVE",
                        position: 4,
                        name: "GIVE",
                        cardinality: Cardinality {
                            min: 0,
                            max: Max::Bounded(1),
                        },
                        kind: GroupKind::Sequence,
                        children: &[
                            Node::Segment(SegmentRef {
                                id: "RRG_O16.7-RESPONSE.2-ORDER.4-GIVE.1-RXG",
                                position: 1,
                                segment: &segment::rxg::RXG,
                                cardinality: Cardinality {
                                    min: 1,
                                    max: Max::Bounded(1),
                                },
                                status: Some(SegmentStatus::A),
                            }),
                            Node::Segment(SegmentRef {
                                id: "RRG_O16.7-RESPONSE.2-ORDER.4-GIVE.2-PRT",
                                position: 2,
                                segment: &segment::prt::PRT,
                                cardinality: Cardinality {
                                    min: 0,
                                    max: Max::Unbounded,
                                },
                                status: Some(SegmentStatus::A),
                            }),
                            Node::Group(Group {
                                id: "RRG_O16.7-RESPONSE.2-ORDER.4-GIVE.3-TIMING_GIVE",
                                position: 3,
                                name: "TIMING_GIVE",
                                cardinality: Cardinality {
                                    min: 1,
                                    max: Max::Unbounded,
                                },
                                kind: GroupKind::Sequence,
                                children: &[
                                    Node::Segment(SegmentRef {
                                        id: "RRG_O16.7-RESPONSE.2-ORDER.4-GIVE.3-TIMING_GIVE.1-TQ1",
                                        position: 1,
                                        segment: &segment::tq1::TQ1,
                                        cardinality: Cardinality {
                                            min: 1,
                                            max: Max::Bounded(1),
                                        },
                                        status: Some(SegmentStatus::A),
                                    }),
                                    Node::Segment(SegmentRef {
                                        id: "RRG_O16.7-RESPONSE.2-ORDER.4-GIVE.3-TIMING_GIVE.2-TQ2",
                                        position: 2,
                                        segment: &segment::tq2::TQ2,
                                        cardinality: Cardinality {
                                            min: 0,
                                            max: Max::Unbounded,
                                        },
                                        status: Some(SegmentStatus::A),
                                    }),
                                ],
                            }),
                            Node::Segment(SegmentRef {
                                id: "RRG_O16.7-RESPONSE.2-ORDER.4-GIVE.4-RXR",
                                position: 4,
                                segment: &segment::rxr::RXR,
                                cardinality: Cardinality {
                                    min: 1,
                                    max: Max::Unbounded,
                                },
                                status: Some(SegmentStatus::A),
                            }),
                            Node::Segment(SegmentRef {
                                id: "RRG_O16.7-RESPONSE.2-ORDER.4-GIVE.5-RXC",
                                position: 5,
                                segment: &segment::rxc::RXC,
                                cardinality: Cardinality {
                                    min: 0,
                                    max: Max::Unbounded,
                                },
                                status: Some(SegmentStatus::A),
                            }),
                        ],
                    }),
                ],
            }),
        ],
    }),
];

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