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 `LCH` segment: Location Characteristic.

use crate::data_type;
use crate::model::{Cardinality, DataTypeRef, Field, Length, Max, Optionality, Segment, Table};

/// The `LCH` segment definition, `http://hl7.org/v2/StructureDefinition/LCH`.
pub static LCH: Segment = Segment {
    id: "LCH",
    url: Some("http://hl7.org/v2/StructureDefinition/LCH"),
    name: "Location Characteristic",
    fields: &[
        Field {
            id: "LCH.1-primaryKeyValue",
            position: 1,
            name: "Primary Key Value - LCH",
            data_type: Some(DataTypeRef::Defined(&data_type::pl::PL)),
            cardinality: Cardinality {
                min: 1,
                max: Max::Bounded(1),
            },
            optionality: Optionality::R,
            length: None,
            conformance_length: None,
            table: None,
            standards_status: None,
        },
        Field {
            id: "LCH.2-segmentActionCode",
            position: 2,
            name: "Segment Action Code",
            data_type: Some(DataTypeRef::Defined(&data_type::id::ID)),
            cardinality: Cardinality {
                min: 0,
                max: Max::Bounded(1),
            },
            optionality: Optionality::O,
            length: Some(Length {
                min: 1,
                max: Some(1),
            }),
            conformance_length: None,
            table: Some(Table {
                id: "0206",
                value_set: "http://terminology.hl7.org/ValueSet/v2-0206",
            }),
            standards_status: None,
        },
        Field {
            id: "LCH.3-segmentUniqueKey",
            position: 3,
            name: "Segment Unique Key",
            data_type: Some(DataTypeRef::Defined(&data_type::ei::EI)),
            cardinality: Cardinality {
                min: 0,
                max: Max::Bounded(1),
            },
            optionality: Optionality::O,
            length: None,
            conformance_length: None,
            table: None,
            standards_status: None,
        },
        Field {
            id: "LCH.4-locationCharacteristicId",
            position: 4,
            name: "Location Characteristic ID",
            data_type: Some(DataTypeRef::Defined(&data_type::cwe::CWE)),
            cardinality: Cardinality {
                min: 1,
                max: Max::Bounded(1),
            },
            optionality: Optionality::R,
            length: None,
            conformance_length: None,
            table: Some(Table {
                id: "0324",
                value_set: "http://terminology.hl7.org/ValueSet/v2-0324",
            }),
            standards_status: None,
        },
        Field {
            id: "LCH.5-locationCharacteristicValue",
            position: 5,
            name: "Location Characteristic Value - LCH",
            data_type: Some(DataTypeRef::Defined(&data_type::cwe::CWE)),
            cardinality: Cardinality {
                min: 1,
                max: Max::Bounded(1),
            },
            optionality: Optionality::R,
            length: None,
            conformance_length: None,
            table: Some(Table {
                id: "0136",
                value_set: "http://terminology.hl7.org/ValueSet/v2-0136",
            }),
            standards_status: None,
        },
    ],
};