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 `FTS` segment: File Trailer.

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

/// The `FTS` segment definition, `http://hl7.org/v2/StructureDefinition/FTS`.
pub static FTS: Segment = Segment {
    id: "FTS",
    url: Some("http://hl7.org/v2/StructureDefinition/FTS"),
    name: "File Trailer",
    fields: &[
        Field {
            id: "FTS.1-fileBatchCount",
            position: 1,
            name: "File Batch Count",
            data_type: Some(DataTypeRef::Defined(&data_type::nm::NM)),
            cardinality: Cardinality {
                min: 0,
                max: Max::Bounded(1),
            },
            optionality: Optionality::O,
            length: None,
            conformance_length: Some(ConformanceLength {
                length: Some(10),
                no_truncate: Some(false),
            }),
            table: None,
            standards_status: None,
        },
        Field {
            id: "FTS.2-fileTrailerComment",
            position: 2,
            name: "File Trailer Comment",
            data_type: Some(DataTypeRef::Defined(&data_type::st::ST)),
            cardinality: Cardinality {
                min: 0,
                max: Max::Bounded(1),
            },
            optionality: Optionality::O,
            length: None,
            conformance_length: Some(ConformanceLength {
                length: Some(80),
                no_truncate: Some(false),
            }),
            table: None,
            standards_status: None,
        },
    ],
};