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

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

/// The top-level nodes of [`BRP_O30`], one `static` so a structure with the same tree links to it.
pub static BRP_O30_NODES: [Node; 8] = [
    Node::Segment(SegmentRef {
        id: "BRP_O30.1-MSH",
        position: 1,
        segment: &segment::msh::MSH,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "BRP_O30.2-MSA",
        position: 2,
        segment: &segment::msa::MSA,
        cardinality: Cardinality {
            min: 1,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "BRP_O30.3-ARV",
        position: 3,
        segment: &segment::arv::ARV,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "BRP_O30.4-ERR",
        position: 4,
        segment: &segment::err::ERR,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "BRP_O30.5-SFT",
        position: 5,
        segment: &segment::sft::SFT,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "BRP_O30.6-UAC",
        position: 6,
        segment: &segment::uac::UAC,
        cardinality: Cardinality {
            min: 0,
            max: Max::Bounded(1),
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Segment(SegmentRef {
        id: "BRP_O30.7-NTE",
        position: 7,
        segment: &segment::nte::NTE,
        cardinality: Cardinality {
            min: 0,
            max: Max::Unbounded,
        },
        status: Some(SegmentStatus::A),
    }),
    Node::Group(Group {
        id: "BRP_O30.8-RESPONSE",
        position: 8,
        name: "RESPONSE",
        cardinality: Cardinality {
            min: 0,
            max: Max::Bounded(1),
        },
        kind: GroupKind::Sequence,
        children: &[Node::Group(Group {
            id: "BRP_O30.8-RESPONSE.1-PATIENT",
            position: 1,
            name: "PATIENT",
            cardinality: Cardinality {
                min: 0,
                max: Max::Bounded(1),
            },
            kind: GroupKind::Sequence,
            children: &[
                Node::Segment(SegmentRef {
                    id: "BRP_O30.8-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: "BRP_O30.8-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: "BRP_O30.8-RESPONSE.1-PATIENT.3-ARV",
                    position: 3,
                    segment: &segment::arv::ARV,
                    cardinality: Cardinality {
                        min: 0,
                        max: Max::Unbounded,
                    },
                    status: Some(SegmentStatus::B),
                }),
                Node::Group(Group {
                    id: "BRP_O30.8-RESPONSE.1-PATIENT.4-ORDER",
                    position: 4,
                    name: "ORDER",
                    cardinality: Cardinality {
                        min: 0,
                        max: Max::Unbounded,
                    },
                    kind: GroupKind::Sequence,
                    children: &[
                        Node::Segment(SegmentRef {
                            id: "BRP_O30.8-RESPONSE.1-PATIENT.4-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: "BRP_O30.8-RESPONSE.1-PATIENT.4-ORDER.2-PRT",
                            position: 2,
                            segment: &segment::prt::PRT,
                            cardinality: Cardinality {
                                min: 0,
                                max: Max::Unbounded,
                            },
                            status: Some(SegmentStatus::A),
                        }),
                        Node::Group(Group {
                            id: "BRP_O30.8-RESPONSE.1-PATIENT.4-ORDER.3-TIMING",
                            position: 3,
                            name: "TIMING",
                            cardinality: Cardinality {
                                min: 0,
                                max: Max::Unbounded,
                            },
                            kind: GroupKind::Sequence,
                            children: &[
                                Node::Segment(SegmentRef {
                                    id: "BRP_O30.8-RESPONSE.1-PATIENT.4-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: "BRP_O30.8-RESPONSE.1-PATIENT.4-ORDER.3-TIMING.2-TQ2",
                                    position: 2,
                                    segment: &segment::tq2::TQ2,
                                    cardinality: Cardinality {
                                        min: 0,
                                        max: Max::Unbounded,
                                    },
                                    status: Some(SegmentStatus::A),
                                }),
                            ],
                        }),
                        Node::Segment(SegmentRef {
                            id: "BRP_O30.8-RESPONSE.1-PATIENT.4-ORDER.4-BPO",
                            position: 4,
                            segment: &segment::bpo::BPO,
                            cardinality: Cardinality {
                                min: 0,
                                max: Max::Bounded(1),
                            },
                            status: Some(SegmentStatus::A),
                        }),
                        Node::Segment(SegmentRef {
                            id: "BRP_O30.8-RESPONSE.1-PATIENT.4-ORDER.5-BPX",
                            position: 5,
                            segment: &segment::bpx::BPX,
                            cardinality: Cardinality {
                                min: 0,
                                max: Max::Unbounded,
                            },
                            status: Some(SegmentStatus::A),
                        }),
                    ],
                }),
            ],
        })],
    }),
];

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