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 `PSS` segment: Product/Service Section.

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

/// The `PSS` segment definition, `http://hl7.org/v2/StructureDefinition/PSS`.
pub static PSS: Segment = Segment {
    id: "PSS",
    url: Some("http://hl7.org/v2/StructureDefinition/PSS"),
    name: "Product/Service Section",
    fields: &[
        Field {
            id: "PSS.1-providerProductServiceSectionNumber",
            position: 1,
            name: "Provider Product/Service Section Number",
            data_type: Some(DataTypeRef::Defined(&data_type::ei::EI)),
            cardinality: Cardinality {
                min: 1,
                max: Max::Bounded(1),
            },
            optionality: Optionality::R,
            length: None,
            conformance_length: None,
            table: None,
            standards_status: None,
        },
        Field {
            id: "PSS.2-payerProductServiceSectionNumber",
            position: 2,
            name: "Payer Product/Service Section Number",
            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: "PSS.3-productServiceSectionSequenceNumber",
            position: 3,
            name: "Product/Service Section Sequence Number",
            data_type: Some(DataTypeRef::Defined(&data_type::si::SI)),
            cardinality: Cardinality {
                min: 1,
                max: Max::Bounded(1),
            },
            optionality: Optionality::R,
            length: Some(Length {
                min: 1,
                max: Some(4),
            }),
            conformance_length: None,
            table: None,
            standards_status: None,
        },
        Field {
            id: "PSS.4-billedAmount",
            position: 4,
            name: "Billed Amount",
            data_type: Some(DataTypeRef::Defined(&data_type::cp::CP)),
            cardinality: Cardinality {
                min: 1,
                max: Max::Bounded(1),
            },
            optionality: Optionality::R,
            length: None,
            conformance_length: None,
            table: None,
            standards_status: None,
        },
        Field {
            id: "PSS.5-sectionDescriptionOrHeading",
            position: 5,
            name: "Section Description or Heading",
            data_type: Some(DataTypeRef::Defined(&data_type::st::ST)),
            cardinality: Cardinality {
                min: 1,
                max: Max::Bounded(1),
            },
            optionality: Optionality::R,
            length: None,
            conformance_length: Some(ConformanceLength {
                length: Some(254),
                no_truncate: Some(false),
            }),
            table: None,
            standards_status: None,
        },
    ],
};