ca.uhn.hl7v2.model.v24.segment
Class PD1

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractSegment
      extended by ca.uhn.hl7v2.model.v24.segment.PD1
All Implemented Interfaces:
Segment, Structure, Serializable

public class PD1
extends AbstractSegment

Represents an HL7 PD1 message segment (patient additional demographic). This segment has the following fields:

See Also:
Serialized Form

Constructor Summary
PD1(Group parent, ModelClassFactory factory)
          Creates a new PD1 segment
 
Method Summary
protected  Type createNewTypeWithoutReflection(int field)
          
 CE[] getAdvanceDirectiveCode()
          Returns all repetitions of Advance Directive Code (PD1-15).
 CE getAdvanceDirectiveCode(int rep)
          Returns a specific repetition of PD1-15: "Advance Directive Code" - creates it if necessary
 int getAdvanceDirectiveCodeReps()
          Returns a count of the current number of repetitions of Advance Directive Code (PD1-15).
 CX[] getDuplicatePatient()
          Returns all repetitions of Duplicate Patient (PD1-10).
 CX getDuplicatePatient(int rep)
          Returns a specific repetition of PD1-10: "Duplicate Patient" - creates it if necessary
 int getDuplicatePatientReps()
          Returns a count of the current number of repetitions of Duplicate Patient (PD1-10).
 IS getHandicap()
          Returns PD1-6: "Handicap" - creates it if necessary
 IS getImmunizationRegistryStatus()
          Returns PD1-16: "Immunization Registry Status" - creates it if necessary
 DT getImmunizationRegistryStatusEffectiveDate()
          Returns PD1-17: "Immunization Registry Status Effective Date" - creates it if necessary
 IS getLivingArrangement()
          Returns PD1-2: "Living Arrangement" - creates it if necessary
 IS[] getLivingDependency()
          Returns all repetitions of Living Dependency (PD1-1).
 IS getLivingDependency(int rep)
          Returns a specific repetition of PD1-1: "Living Dependency" - creates it if necessary
 int getLivingDependencyReps()
          Returns a count of the current number of repetitions of Living Dependency (PD1-1).
 IS getLivingWillCode()
          Returns PD1-7: "Living Will Code" - creates it if necessary
 IS getMilitaryBranch()
          Returns PD1-19: "Military Branch" - creates it if necessary
 IS getMilitaryRankGrade()
          Returns PD1-20: "Military Rank/Grade" - creates it if necessary
 IS getMilitaryStatus()
          Returns PD1-21: "Military Status" - creates it if necessary
 IS getOrganDonorCode()
          Returns PD1-8: "Organ Donor Code" - creates it if necessary
 XCN[] getPatientPrimaryCareProviderNameIDNo()
          Returns all repetitions of Patient Primary Care Provider Name & ID No.
 XCN getPatientPrimaryCareProviderNameIDNo(int rep)
          Returns a specific repetition of PD1-4: "Patient Primary Care Provider Name & ID No." - creates it if necessary
 int getPatientPrimaryCareProviderNameIDNoReps()
          Returns a count of the current number of repetitions of Patient Primary Care Provider Name & ID No.
 XON[] getPatientPrimaryFacility()
          Returns all repetitions of Patient Primary Facility (PD1-3).
 XON getPatientPrimaryFacility(int rep)
          Returns a specific repetition of PD1-3: "Patient Primary Facility" - creates it if necessary
 int getPatientPrimaryFacilityReps()
          Returns a count of the current number of repetitions of Patient Primary Facility (PD1-3).
 IS getPd11_LivingDependency(int rep)
          Returns a specific repetition of PD1-1: "Living Dependency" - creates it if necessary
 int getPd11_LivingDependencyReps()
          Returns a count of the current number of repetitions of Living Dependency (PD1-1).
 CX getPd110_DuplicatePatient(int rep)
          Returns a specific repetition of PD1-10: "Duplicate Patient" - creates it if necessary
 int getPd110_DuplicatePatientReps()
          Returns a count of the current number of repetitions of Duplicate Patient (PD1-10).
 CE getPd111_PublicityCode()
          Returns PD1-11: "Publicity Code" - creates it if necessary
 ID getPd112_ProtectionIndicator()
          Returns PD1-12: "Protection Indicator" - creates it if necessary
 DT getPd113_ProtectionIndicatorEffectiveDate()
          Returns PD1-13: "Protection Indicator Effective Date" - creates it if necessary
 XON getPd114_PlaceOfWorship(int rep)
          Returns a specific repetition of PD1-14: "Place of Worship" - creates it if necessary
 int getPd114_PlaceOfWorshipReps()
          Returns a count of the current number of repetitions of Place of Worship (PD1-14).
 CE getPd115_AdvanceDirectiveCode(int rep)
          Returns a specific repetition of PD1-15: "Advance Directive Code" - creates it if necessary
 int getPd115_AdvanceDirectiveCodeReps()
          Returns a count of the current number of repetitions of Advance Directive Code (PD1-15).
 IS getPd116_ImmunizationRegistryStatus()
          Returns PD1-16: "Immunization Registry Status" - creates it if necessary
 DT getPd117_ImmunizationRegistryStatusEffectiveDate()
          Returns PD1-17: "Immunization Registry Status Effective Date" - creates it if necessary
 DT getPd118_PublicityCodeEffectiveDate()
          Returns PD1-18: "Publicity Code Effective Date" - creates it if necessary
 IS getPd119_MilitaryBranch()
          Returns PD1-19: "Military Branch" - creates it if necessary
 IS getPd12_LivingArrangement()
          Returns PD1-2: "Living Arrangement" - creates it if necessary
 IS getPd120_MilitaryRankGrade()
          Returns PD1-20: "Military Rank/Grade" - creates it if necessary
 IS getPd121_MilitaryStatus()
          Returns PD1-21: "Military Status" - creates it if necessary
 XON getPd13_PatientPrimaryFacility(int rep)
          Returns a specific repetition of PD1-3: "Patient Primary Facility" - creates it if necessary
 int getPd13_PatientPrimaryFacilityReps()
          Returns a count of the current number of repetitions of Patient Primary Facility (PD1-3).
 XCN getPd14_PatientPrimaryCareProviderNameIDNo(int rep)
          Returns a specific repetition of PD1-4: "Patient Primary Care Provider Name & ID No." - creates it if necessary
 int getPd14_PatientPrimaryCareProviderNameIDNoReps()
          Returns a count of the current number of repetitions of Patient Primary Care Provider Name & ID No.
 IS getPd15_StudentIndicator()
          Returns PD1-5: "Student Indicator" - creates it if necessary
 IS getPd16_Handicap()
          Returns PD1-6: "Handicap" - creates it if necessary
 IS getPd17_LivingWillCode()
          Returns PD1-7: "Living Will Code" - creates it if necessary
 IS getPd18_OrganDonorCode()
          Returns PD1-8: "Organ Donor Code" - creates it if necessary
 ID getPd19_SeparateBill()
          Returns PD1-9: "Separate Bill" - creates it if necessary
 XON[] getPlaceOfWorship()
          Returns all repetitions of Place of Worship (PD1-14).
 XON getPlaceOfWorship(int rep)
          Returns a specific repetition of PD1-14: "Place of Worship" - creates it if necessary
 int getPlaceOfWorshipReps()
          Returns a count of the current number of repetitions of Place of Worship (PD1-14).
 ID getProtectionIndicator()
          Returns PD1-12: "Protection Indicator" - creates it if necessary
 DT getProtectionIndicatorEffectiveDate()
          Returns PD1-13: "Protection Indicator Effective Date" - creates it if necessary
 CE getPublicityCode()
          Returns PD1-11: "Publicity Code" - creates it if necessary
 DT getPublicityCodeEffectiveDate()
          Returns PD1-18: "Publicity Code Effective Date" - creates it if necessary
 ID getSeparateBill()
          Returns PD1-9: "Separate Bill" - creates it if necessary
 IS getStudentIndicator()
          Returns PD1-5: "Student Indicator" - creates it if necessary
 CE insertAdvanceDirectiveCode(int rep)
          Inserts a repetition of PD1-15: "Advance Directive Code" at a specific index
 CX insertDuplicatePatient(int rep)
          Inserts a repetition of PD1-10: "Duplicate Patient" at a specific index
 IS insertLivingDependency(int rep)
          Inserts a repetition of PD1-1: "Living Dependency" at a specific index
 XCN insertPatientPrimaryCareProviderNameIDNo(int rep)
          Inserts a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific index
 XON insertPatientPrimaryFacility(int rep)
          Inserts a repetition of PD1-3: "Patient Primary Facility" at a specific index
 IS insertPd11_LivingDependency(int rep)
          Inserts a repetition of PD1-1: "Living Dependency" at a specific index
 CX insertPd110_DuplicatePatient(int rep)
          Inserts a repetition of PD1-10: "Duplicate Patient" at a specific index
 XON insertPd114_PlaceOfWorship(int rep)
          Inserts a repetition of PD1-14: "Place of Worship" at a specific index
 CE insertPd115_AdvanceDirectiveCode(int rep)
          Inserts a repetition of PD1-15: "Advance Directive Code" at a specific index
 XON insertPd13_PatientPrimaryFacility(int rep)
          Inserts a repetition of PD1-3: "Patient Primary Facility" at a specific index
 XCN insertPd14_PatientPrimaryCareProviderNameIDNo(int rep)
          Inserts a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific index
 XON insertPlaceOfWorship(int rep)
          Inserts a repetition of PD1-14: "Place of Worship" at a specific index
 CE removeAdvanceDirectiveCode(int rep)
          Removes a repetition of PD1-15: "Advance Directive Code" at a specific index
 CX removeDuplicatePatient(int rep)
          Removes a repetition of PD1-10: "Duplicate Patient" at a specific index
 IS removeLivingDependency(int rep)
          Removes a repetition of PD1-1: "Living Dependency" at a specific index
 XCN removePatientPrimaryCareProviderNameIDNo(int rep)
          Removes a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific index
 XON removePatientPrimaryFacility(int rep)
          Removes a repetition of PD1-3: "Patient Primary Facility" at a specific index
 IS removePd11_LivingDependency(int rep)
          Removes a repetition of PD1-1: "Living Dependency" at a specific index
 CX removePd110_DuplicatePatient(int rep)
          Removes a repetition of PD1-10: "Duplicate Patient" at a specific index
 XON removePd114_PlaceOfWorship(int rep)
          Removes a repetition of PD1-14: "Place of Worship" at a specific index
 CE removePd115_AdvanceDirectiveCode(int rep)
          Removes a repetition of PD1-15: "Advance Directive Code" at a specific index
 XON removePd13_PatientPrimaryFacility(int rep)
          Removes a repetition of PD1-3: "Patient Primary Facility" at a specific index
 XCN removePd14_PatientPrimaryCareProviderNameIDNo(int rep)
          Removes a repetition of PD1-4: "Patient Primary Care Provider Name & ID No." at a specific index
 XON removePlaceOfWorship(int rep)
          Removes a repetition of PD1-14: "Place of Worship" at a specific index
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractSegment
add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getMessage, getName, getNames, getParent, insertRepetition, isRequired, main, numFields, parse, removeRepetition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PD1

public PD1(Group parent,
           ModelClassFactory factory)
Creates a new PD1 segment

Method Detail

getLivingDependency

public IS[] getLivingDependency()
Returns all repetitions of Living Dependency (PD1-1).


getLivingDependencyReps

public int getLivingDependencyReps()
Returns a count of the current number of repetitions of Living Dependency (PD1-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getLivingDependency

public IS getLivingDependency(int rep)
Returns a specific repetition of PD1-1: "Living Dependency" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getPd11_LivingDependency

public IS getPd11_LivingDependency(int rep)
Returns a specific repetition of PD1-1: "Living Dependency" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getPd11_LivingDependencyReps

public int getPd11_LivingDependencyReps()
Returns a count of the current number of repetitions of Living Dependency (PD1-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertLivingDependency

public IS insertLivingDependency(int rep)
                          throws HL7Exception
Inserts a repetition of PD1-1: "Living Dependency" 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)

insertPd11_LivingDependency

public IS insertPd11_LivingDependency(int rep)
                               throws HL7Exception
Inserts a repetition of PD1-1: "Living Dependency" 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)

removeLivingDependency

public IS removeLivingDependency(int rep)
                          throws HL7Exception
Removes a repetition of PD1-1: "Living Dependency" 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)

removePd11_LivingDependency

public IS removePd11_LivingDependency(int rep)
                               throws HL7Exception
Removes a repetition of PD1-1: "Living Dependency" 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)

getLivingArrangement

public IS getLivingArrangement()
Returns PD1-2: "Living Arrangement" - creates it if necessary


getPd12_LivingArrangement

public IS getPd12_LivingArrangement()
Returns PD1-2: "Living Arrangement" - creates it if necessary


getPatientPrimaryFacility

public XON[] getPatientPrimaryFacility()
Returns all repetitions of Patient Primary Facility (PD1-3).


getPatientPrimaryFacilityReps

public int 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

public XON getPatientPrimaryFacility(int rep)
Returns a specific repetition of PD1-3: "Patient Primary Facility" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getPd13_PatientPrimaryFacility

public XON getPd13_PatientPrimaryFacility(int rep)
Returns a specific repetition of PD1-3: "Patient Primary Facility" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getPd13_PatientPrimaryFacilityReps

public int 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

public XON insertPatientPrimaryFacility(int rep)
                                 throws HL7Exception
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

public XON insertPd13_PatientPrimaryFacility(int rep)
                                      throws HL7Exception
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

public XON removePatientPrimaryFacility(int rep)
                                 throws HL7Exception
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

public XON removePd13_PatientPrimaryFacility(int rep)
                                      throws HL7Exception
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

public XCN[] getPatientPrimaryCareProviderNameIDNo()
Returns all repetitions of Patient Primary Care Provider Name & ID No. (PD1-4).


getPatientPrimaryCareProviderNameIDNoReps

public int 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

public XCN getPatientPrimaryCareProviderNameIDNo(int rep)
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

public XCN getPd14_PatientPrimaryCareProviderNameIDNo(int rep)
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

public int 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

public XCN insertPatientPrimaryCareProviderNameIDNo(int rep)
                                             throws HL7Exception
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

public XCN insertPd14_PatientPrimaryCareProviderNameIDNo(int rep)
                                                  throws HL7Exception
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

public XCN removePatientPrimaryCareProviderNameIDNo(int rep)
                                             throws HL7Exception
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

public XCN removePd14_PatientPrimaryCareProviderNameIDNo(int rep)
                                                  throws HL7Exception
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

public IS getStudentIndicator()
Returns PD1-5: "Student Indicator" - creates it if necessary


getPd15_StudentIndicator

public IS getPd15_StudentIndicator()
Returns PD1-5: "Student Indicator" - creates it if necessary


getHandicap

public IS getHandicap()
Returns PD1-6: "Handicap" - creates it if necessary


getPd16_Handicap

public IS getPd16_Handicap()
Returns PD1-6: "Handicap" - creates it if necessary


getLivingWillCode

public IS getLivingWillCode()
Returns PD1-7: "Living Will Code" - creates it if necessary


getPd17_LivingWillCode

public IS getPd17_LivingWillCode()
Returns PD1-7: "Living Will Code" - creates it if necessary


getOrganDonorCode

public IS getOrganDonorCode()
Returns PD1-8: "Organ Donor Code" - creates it if necessary


getPd18_OrganDonorCode

public IS getPd18_OrganDonorCode()
Returns PD1-8: "Organ Donor Code" - creates it if necessary


getSeparateBill

public ID getSeparateBill()
Returns PD1-9: "Separate Bill" - creates it if necessary


getPd19_SeparateBill

public ID getPd19_SeparateBill()
Returns PD1-9: "Separate Bill" - creates it if necessary


getDuplicatePatient

public CX[] getDuplicatePatient()
Returns all repetitions of Duplicate Patient (PD1-10).


getDuplicatePatientReps

public int 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

public CX getDuplicatePatient(int rep)
Returns a specific repetition of PD1-10: "Duplicate Patient" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getPd110_DuplicatePatient

public CX getPd110_DuplicatePatient(int rep)
Returns a specific repetition of PD1-10: "Duplicate Patient" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getPd110_DuplicatePatientReps

public int 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

public CX insertDuplicatePatient(int rep)
                          throws HL7Exception
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

public CX insertPd110_DuplicatePatient(int rep)
                                throws HL7Exception
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

public CX removeDuplicatePatient(int rep)
                          throws HL7Exception
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

public CX removePd110_DuplicatePatient(int rep)
                                throws HL7Exception
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)

getPublicityCode

public CE getPublicityCode()
Returns PD1-11: "Publicity Code" - creates it if necessary


getPd111_PublicityCode

public CE getPd111_PublicityCode()
Returns PD1-11: "Publicity Code" - creates it if necessary


getProtectionIndicator

public ID getProtectionIndicator()
Returns PD1-12: "Protection Indicator" - creates it if necessary


getPd112_ProtectionIndicator

public ID getPd112_ProtectionIndicator()
Returns PD1-12: "Protection Indicator" - creates it if necessary


getProtectionIndicatorEffectiveDate

public DT getProtectionIndicatorEffectiveDate()
Returns PD1-13: "Protection Indicator Effective Date" - creates it if necessary


getPd113_ProtectionIndicatorEffectiveDate

public DT getPd113_ProtectionIndicatorEffectiveDate()
Returns PD1-13: "Protection Indicator Effective Date" - creates it if necessary


getPlaceOfWorship

public XON[] getPlaceOfWorship()
Returns all repetitions of Place of Worship (PD1-14).


getPlaceOfWorshipReps

public int getPlaceOfWorshipReps()
Returns a count of the current number of repetitions of Place of Worship (PD1-14). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getPlaceOfWorship

public XON getPlaceOfWorship(int rep)
Returns a specific repetition of PD1-14: "Place of Worship" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getPd114_PlaceOfWorship

public XON getPd114_PlaceOfWorship(int rep)
Returns a specific repetition of PD1-14: "Place of Worship" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getPd114_PlaceOfWorshipReps

public int getPd114_PlaceOfWorshipReps()
Returns a count of the current number of repetitions of Place of Worship (PD1-14). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertPlaceOfWorship

public XON insertPlaceOfWorship(int rep)
                         throws HL7Exception
Inserts a repetition of PD1-14: "Place of Worship" 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)

insertPd114_PlaceOfWorship

public XON insertPd114_PlaceOfWorship(int rep)
                               throws HL7Exception
Inserts a repetition of PD1-14: "Place of Worship" 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)

removePlaceOfWorship

public XON removePlaceOfWorship(int rep)
                         throws HL7Exception
Removes a repetition of PD1-14: "Place of Worship" 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)

removePd114_PlaceOfWorship

public XON removePd114_PlaceOfWorship(int rep)
                               throws HL7Exception
Removes a repetition of PD1-14: "Place of Worship" 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)

getAdvanceDirectiveCode

public CE[] getAdvanceDirectiveCode()
Returns all repetitions of Advance Directive Code (PD1-15).


getAdvanceDirectiveCodeReps

public int getAdvanceDirectiveCodeReps()
Returns a count of the current number of repetitions of Advance Directive Code (PD1-15). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getAdvanceDirectiveCode

public CE getAdvanceDirectiveCode(int rep)
Returns a specific repetition of PD1-15: "Advance Directive Code" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getPd115_AdvanceDirectiveCode

public CE getPd115_AdvanceDirectiveCode(int rep)
Returns a specific repetition of PD1-15: "Advance Directive Code" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getPd115_AdvanceDirectiveCodeReps

public int getPd115_AdvanceDirectiveCodeReps()
Returns a count of the current number of repetitions of Advance Directive Code (PD1-15). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertAdvanceDirectiveCode

public CE insertAdvanceDirectiveCode(int rep)
                              throws HL7Exception
Inserts a repetition of PD1-15: "Advance Directive Code" 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)

insertPd115_AdvanceDirectiveCode

public CE insertPd115_AdvanceDirectiveCode(int rep)
                                    throws HL7Exception
Inserts a repetition of PD1-15: "Advance Directive Code" 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)

removeAdvanceDirectiveCode

public CE removeAdvanceDirectiveCode(int rep)
                              throws HL7Exception
Removes a repetition of PD1-15: "Advance Directive Code" 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)

removePd115_AdvanceDirectiveCode

public CE removePd115_AdvanceDirectiveCode(int rep)
                                    throws HL7Exception
Removes a repetition of PD1-15: "Advance Directive Code" 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)

getImmunizationRegistryStatus

public IS getImmunizationRegistryStatus()
Returns PD1-16: "Immunization Registry Status" - creates it if necessary


getPd116_ImmunizationRegistryStatus

public IS getPd116_ImmunizationRegistryStatus()
Returns PD1-16: "Immunization Registry Status" - creates it if necessary


getImmunizationRegistryStatusEffectiveDate

public DT getImmunizationRegistryStatusEffectiveDate()
Returns PD1-17: "Immunization Registry Status Effective Date" - creates it if necessary


getPd117_ImmunizationRegistryStatusEffectiveDate

public DT getPd117_ImmunizationRegistryStatusEffectiveDate()
Returns PD1-17: "Immunization Registry Status Effective Date" - creates it if necessary


getPublicityCodeEffectiveDate

public DT getPublicityCodeEffectiveDate()
Returns PD1-18: "Publicity Code Effective Date" - creates it if necessary


getPd118_PublicityCodeEffectiveDate

public DT getPd118_PublicityCodeEffectiveDate()
Returns PD1-18: "Publicity Code Effective Date" - creates it if necessary


getMilitaryBranch

public IS getMilitaryBranch()
Returns PD1-19: "Military Branch" - creates it if necessary


getPd119_MilitaryBranch

public IS getPd119_MilitaryBranch()
Returns PD1-19: "Military Branch" - creates it if necessary


getMilitaryRankGrade

public IS getMilitaryRankGrade()
Returns PD1-20: "Military Rank/Grade" - creates it if necessary


getPd120_MilitaryRankGrade

public IS getPd120_MilitaryRankGrade()
Returns PD1-20: "Military Rank/Grade" - creates it if necessary


getMilitaryStatus

public IS getMilitaryStatus()
Returns PD1-21: "Military Status" - creates it if necessary


getPd121_MilitaryStatus

public IS getPd121_MilitaryStatus()
Returns PD1-21: "Military Status" - creates it if necessary


createNewTypeWithoutReflection

protected Type createNewTypeWithoutReflection(int field)

Overrides:
createNewTypeWithoutReflection in class AbstractSegment


Copyright © 2001-2011 University Health Network. All Rights Reserved.