use crate::data_type;
use crate::model::{
Cardinality, ConformanceLength, DataTypeRef, Field, Length, Max, Optionality, Segment,
};
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,
},
],
};