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 `HD` complex data type: hierarchic designator.

use crate::data_type;
use crate::model::{
    Cardinality, Component, ConformanceLength, DataType, Length, Max, Optionality, Table,
};

/// The `HD` data type definition, `http://hl7.org/v2/StructureDefinition/HD`.
pub static HD: DataType = DataType {
    code: "HD",
    url: "http://hl7.org/v2/StructureDefinition/HD",
    name: "hierarchic designator",
    components: &[
        Component {
            id: "HD.1",
            position: 1,
            name: "Namespace ID",
            data_type: Some(&data_type::is::IS),
            cardinality: Some(Cardinality {
                min: 0,
                max: Max::Bounded(1),
            }),
            optionality: Optionality::O,
            length: None,
            conformance_length: Some(ConformanceLength {
                length: Some(20),
                no_truncate: Some(true),
            }),
            table: Some(Table {
                id: "0300",
                value_set: "http://terminology.hl7.org/ValueSet/v2-0300",
            }),
        },
        Component {
            id: "HD.2",
            position: 2,
            name: "Universal ID",
            data_type: Some(&data_type::st::ST),
            cardinality: Some(Cardinality {
                min: 0,
                max: Max::Bounded(1),
            }),
            optionality: Optionality::C,
            length: None,
            conformance_length: Some(ConformanceLength {
                length: Some(199),
                no_truncate: Some(true),
            }),
            table: None,
        },
        Component {
            id: "HD.3",
            position: 3,
            name: "Universal ID Type",
            data_type: Some(&data_type::id::ID),
            cardinality: Some(Cardinality {
                min: 0,
                max: Max::Bounded(1),
            }),
            optionality: Optionality::C,
            length: Some(Length {
                min: 1,
                max: Some(6),
            }),
            conformance_length: None,
            table: Some(Table {
                id: "0301",
                value_set: "http://terminology.hl7.org/ValueSet/v2-0301",
            }),
        },
    ],
};