Package ca.uhn.hl7v2.model.v23.segment
Class PD1
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v23.segment.PD1
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 PD1 message segment (Patient Demographic). This segment has the following fields:
- PD1-1: Living Dependency (IS) optional
- PD1-2: Living Arrangement (IS) optional
- PD1-3: Patient Primary Facility (XON) optional repeating
- PD1-4: Patient Primary Care Provider Name & ID No. (XCN) optional repeating
- PD1-5: Student Indicator (IS) optional
- PD1-6: Handicap (IS) optional
- PD1-7: Living Will (IS) optional
- PD1-8: Organ Donor (IS) optional
- PD1-9: Separate Bill (ID) optional
- PD1-10: Duplicate Patient (CX) optional repeating
- PD1-11: Publicity Indicator (CE) optional
- PD1-12: Protection Indicator (ID) optional
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypecreateNewTypeWithoutReflection(int field) CX[]Returns all repetitions of Duplicate Patient (PD1-10).getDuplicatePatient(int rep) Returns a specific repetition of PD1-10: "Duplicate Patient" - creates it if necessaryintReturns a count of the current number of repetitions of Duplicate Patient (PD1-10).Returns PD1-6: "Handicap" - creates it if necessaryReturns PD1-2: "Living Arrangement" - creates it if necessaryReturns PD1-1: "Living Dependency" - creates it if necessaryReturns PD1-7: "Living Will" - creates it if necessaryReturns PD1-8: "Organ Donor" - creates it if necessaryXCN[]Returns all repetitions of Patient Primary Care Provider Name & ID No.Returns a specific repetition of PD1-4: "Patient Primary Care Provider Name & ID No." - creates it if necessaryintReturns a count of the current number of repetitions of Patient Primary Care Provider Name & ID No.XON[]Returns all repetitions of Patient Primary Facility (PD1-3).getPatientPrimaryFacility(int rep) Returns a specific repetition of PD1-3: "Patient Primary Facility" - creates it if necessaryintReturns a count of the current number of repetitions of Patient Primary Facility (PD1-3).Returns PD1-1: "Living Dependency" - creates it if necessaryCX[]Returns all repetitions of Duplicate Patient (PD1-10).getPd110_DuplicatePatient(int rep) Returns a specific repetition of PD1-10: "Duplicate Patient" - creates it if necessaryintReturns a count of the current number of repetitions of Duplicate Patient (PD1-10).Returns PD1-11: "Publicity Indicator" - creates it if necessaryReturns PD1-12: "Protection Indicator" - creates it if necessaryReturns PD1-2: "Living Arrangement" - creates it if necessaryXON[]Returns all repetitions of Patient Primary Facility (PD1-3).getPd13_PatientPrimaryFacility(int rep) Returns a specific repetition of PD1-3: "Patient Primary Facility" - creates it if necessaryintReturns a count of the current number of repetitions of Patient Primary Facility (PD1-3).XCN[]Returns all repetitions of Patient Primary Care Provider Name & ID No.Returns a specific repetition of PD1-4: "Patient Primary Care Provider Name & ID No." - creates it if necessaryintReturns a count of the current number of repetitions of Patient Primary Care Provider Name & ID No.Returns PD1-5: "Student Indicator" - creates it if necessaryReturns PD1-6: "Handicap" - creates it if necessaryReturns PD1-7: "Living Will" - creates it if necessaryReturns PD1-8: "Organ Donor" - creates it if necessaryReturns PD1-9: "Separate Bill" - creates it if necessaryReturns PD1-12: "Protection Indicator" - creates it if necessaryReturns PD1-11: "Publicity Indicator" - creates it if necessaryReturns PD1-9: "Separate Bill" - creates it if necessaryReturns PD1-5: "Student Indicator" - creates it if necessaryinsertDuplicatePatient(int rep) Inserts a repetition of PD1-10: "Duplicate Patient" at a specific indexInserts a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific indexinsertPatientPrimaryFacility(int rep) Inserts a repetition of PD1-3: "Patient Primary Facility" at a specific indexinsertPd110_DuplicatePatient(int rep) Inserts a repetition of PD1-10: "Duplicate Patient" at a specific indexinsertPd13_PatientPrimaryFacility(int rep) Inserts a repetition of PD1-3: "Patient Primary Facility" at a specific indexInserts a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific indexremoveDuplicatePatient(int rep) Removes a repetition of PD1-10: "Duplicate Patient" at a specific indexRemoves a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific indexremovePatientPrimaryFacility(int rep) Removes a repetition of PD1-3: "Patient Primary Facility" at a specific indexremovePd110_DuplicatePatient(int rep) Removes a repetition of PD1-10: "Duplicate Patient" at a specific indexremovePd13_PatientPrimaryFacility(int rep) Removes a repetition of PD1-3: "Patient Primary Facility" at a specific indexRemoves a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific indexMethods inherited from class ca.uhn.hl7v2.model.AbstractSegment
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitionMethods inherited from class ca.uhn.hl7v2.model.AbstractStructure
getMessage, getParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Structure
getMessage, getParent
-
Constructor Details
-
PD1
Creates a new PD1 segment
-
-
Method Details
-
getLivingDependency
Returns PD1-1: "Living Dependency" - creates it if necessary -
getPd11_LivingDependency
Returns PD1-1: "Living Dependency" - creates it if necessary -
getLivingArrangement
Returns PD1-2: "Living Arrangement" - creates it if necessary -
getPd12_LivingArrangement
Returns PD1-2: "Living Arrangement" - creates it if necessary -
getPatientPrimaryFacility
Returns all repetitions of Patient Primary Facility (PD1-3). -
getPd13_PatientPrimaryFacility
Returns all repetitions of Patient Primary Facility (PD1-3). -
getPatientPrimaryFacilityReps
Returns a count of the current number of repetitions of Patient Primary Facility (PD1-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getPatientPrimaryFacility
Returns a specific repetition of PD1-3: "Patient Primary Facility" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getPd13_PatientPrimaryFacility
Returns a specific repetition of PD1-3: "Patient Primary Facility" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getPd13_PatientPrimaryFacilityReps
Returns a count of the current number of repetitions of Patient Primary Facility (PD1-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertPatientPrimaryFacility
Inserts a repetition of PD1-3: "Patient Primary Facility" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertPd13_PatientPrimaryFacility
Inserts a repetition of PD1-3: "Patient Primary Facility" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removePatientPrimaryFacility
Removes a repetition of PD1-3: "Patient Primary Facility" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removePd13_PatientPrimaryFacility
Removes a repetition of PD1-3: "Patient Primary Facility" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getPatientPrimaryCareProviderNameIDNo
Returns all repetitions of Patient Primary Care Provider Name & ID No. (PD1-4). -
getPd14_PatientPrimaryCareProviderNameIDNo
Returns all repetitions of Patient Primary Care Provider Name & ID No. (PD1-4). -
getPatientPrimaryCareProviderNameIDNoReps
Returns a count of the current number of repetitions of Patient Primary Care Provider Name & ID No. (PD1-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getPatientPrimaryCareProviderNameIDNo
Returns a specific repetition of PD1-4: "Patient Primary Care Provider Name & ID No." - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getPd14_PatientPrimaryCareProviderNameIDNo
Returns a specific repetition of PD1-4: "Patient Primary Care Provider Name & ID No." - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getPd14_PatientPrimaryCareProviderNameIDNoReps
Returns a count of the current number of repetitions of Patient Primary Care Provider Name & ID No. (PD1-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertPatientPrimaryCareProviderNameIDNo
Inserts a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertPd14_PatientPrimaryCareProviderNameIDNo
Inserts a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removePatientPrimaryCareProviderNameIDNo
Removes a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removePd14_PatientPrimaryCareProviderNameIDNo
Removes a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getStudentIndicator
Returns PD1-5: "Student Indicator" - creates it if necessary -
getPd15_StudentIndicator
Returns PD1-5: "Student Indicator" - creates it if necessary -
getHandicap
Returns PD1-6: "Handicap" - creates it if necessary -
getPd16_Handicap
Returns PD1-6: "Handicap" - creates it if necessary -
getLivingWill
Returns PD1-7: "Living Will" - creates it if necessary -
getPd17_LivingWill
Returns PD1-7: "Living Will" - creates it if necessary -
getOrganDonor
Returns PD1-8: "Organ Donor" - creates it if necessary -
getPd18_OrganDonor
Returns PD1-8: "Organ Donor" - creates it if necessary -
getSeparateBill
Returns PD1-9: "Separate Bill" - creates it if necessary -
getPd19_SeparateBill
Returns PD1-9: "Separate Bill" - creates it if necessary -
getDuplicatePatient
Returns all repetitions of Duplicate Patient (PD1-10). -
getPd110_DuplicatePatient
Returns all repetitions of Duplicate Patient (PD1-10). -
getDuplicatePatientReps
Returns a count of the current number of repetitions of Duplicate Patient (PD1-10). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getDuplicatePatient
Returns a specific repetition of PD1-10: "Duplicate Patient" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getPd110_DuplicatePatient
Returns a specific repetition of PD1-10: "Duplicate Patient" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getPd110_DuplicatePatientReps
Returns a count of the current number of repetitions of Duplicate Patient (PD1-10). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertDuplicatePatient
Inserts a repetition of PD1-10: "Duplicate Patient" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertPd110_DuplicatePatient
Inserts a repetition of PD1-10: "Duplicate Patient" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeDuplicatePatient
Removes a repetition of PD1-10: "Duplicate Patient" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removePd110_DuplicatePatient
Removes a repetition of PD1-10: "Duplicate Patient" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getPublicityIndicator
Returns PD1-11: "Publicity Indicator" - creates it if necessary -
getPd111_PublicityIndicator
Returns PD1-11: "Publicity Indicator" - creates it if necessary -
getProtectionIndicator
Returns PD1-12: "Protection Indicator" - creates it if necessary -
getPd112_ProtectionIndicator
Returns PD1-12: "Protection Indicator" - creates it if necessary -
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-