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

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

public class PV2
extends AbstractSegment

Represents an HL7 PV2 message segment (Patient visit - additional information). This segment has the following fields:

See Also:
Serialized Form

Constructor Summary
PV2(Group parent, ModelClassFactory factory)
          Creates a new PV2 segment
 
Method Summary
protected  Type createNewTypeWithoutReflection(int field)
          
 CE getAccommodationCode()
          Returns PV2-2: "Accommodation Code" - creates it if necessary
 NM getActualLengthOfInpatientStay()
          Returns PV2-11: "Actual Length of Inpatient Stay" - creates it if necessary
 CE getAdmissionLevelOfCareCode()
          Returns PV2-40: "Admission Level of Care Code" - creates it if necessary
 CE getAdmitReason()
          Returns PV2-3: "Admit Reason" - creates it if necessary
 CE[] getAdvanceDirectiveCode()
          Returns all repetitions of Advance Directive Code (PV2-45).
 CE getAdvanceDirectiveCode(int rep)
          Returns a specific repetition of PV2-45: "Advance Directive Code" - creates it if necessary
 int getAdvanceDirectiveCodeReps()
          Returns a count of the current number of repetitions of Advance Directive Code (PV2-45).
 ID getBabyDetainedIndicator()
          Returns PV2-37: "Baby Detained Indicator" - creates it if necessary
 ID getBillingMediaCode()
          Returns PV2-32: "Billing Media Code" - creates it if necessary
 XON[] getClinicOrganizationName()
          Returns all repetitions of Clinic Organization Name (PV2-23).
 XON getClinicOrganizationName(int rep)
          Returns a specific repetition of PV2-23: "Clinic Organization Name" - creates it if necessary
 int getClinicOrganizationNameReps()
          Returns a count of the current number of repetitions of Clinic Organization Name (PV2-23).
 ID getEmploymentIllnessRelatedIndicator()
          Returns PV2-15: "Employment Illness Related Indicator" - creates it if necessary
 NM getEstimatedLengthOfInpatientStay()
          Returns PV2-10: "Estimated Length of Inpatient Stay" - creates it if necessary
 TS getExpectedAdmitDateTime()
          Returns PV2-8: "Expected Admit Date/Time" - creates it if necessary
 TS getExpectedDischargeDateTime()
          Returns PV2-9: "Expected Discharge Date/Time" - creates it if necessary
 IS getExpectedDischargeDisposition()
          Returns PV2-27: "Expected Discharge Disposition" - creates it if necessary
 TS getExpectedLOAReturnDateTime()
          Returns PV2-47: "Expected LOA Return Date/Time" - creates it if necessary
 NM getExpectedNumberOfInsurancePlans()
          Returns PV2-20: "Expected Number of Insurance Plans" - creates it if necessary
 TS getExpectedSurgeryDateAndTime()
          Returns PV2-33: "Expected Surgery Date and Time" - creates it if necessary
 DT getFirstSimilarIllnessDate()
          Returns PV2-29: "First Similar Illness Date" - creates it if necessary
 IS getLivingWillCode()
          Returns PV2-43: "Living Will Code" - creates it if necessary
 ID getMilitaryNonAvailabilityCode()
          Returns PV2-35: "Military Non-Availability Code" - creates it if necessary
 ID getMilitaryPartnershipCode()
          Returns PV2-34: "Military Partnership Code" - creates it if necessary
 CE getModeOfArrivalCode()
          Returns PV2-38: "Mode of Arrival Code" - creates it if necessary
 ID getNewbornBabyIndicator()
          Returns PV2-36: "Newborn Baby Indicator" - creates it if necessary
 IS getOrganDonorCode()
          Returns PV2-44: "Organ Donor Code" - creates it if necessary
 CE getPatientChargeAdjustmentCode()
          Returns PV2-30: "Patient Charge Adjustment Code" - creates it if necessary
 CE getPatientConditionCode()
          Returns PV2-42: "Patient Condition Code" - creates it if necessary
 IS getPatientStatusCode()
          Returns PV2-24: "Patient Status Code" - creates it if necessary
 DT getPatientStatusEffectiveDate()
          Returns PV2-46: "Patient Status Effective Date" - creates it if necessary
 ST[] getPatientValuables()
          Returns all repetitions of Patient Valuables (PV2-5).
 ST getPatientValuables(int rep)
          Returns a specific repetition of PV2-5: "Patient Valuables" - creates it if necessary
 ST getPatientValuablesLocation()
          Returns PV2-6: "Patient Valuables Location" - creates it if necessary
 int getPatientValuablesReps()
          Returns a count of the current number of repetitions of Patient Valuables (PV2-5).
 CE[] getPrecautionCode()
          Returns all repetitions of Precaution Code (PV2-41).
 CE getPrecautionCode(int rep)
          Returns a specific repetition of PV2-41: "Precaution Code" - creates it if necessary
 int getPrecautionCodeReps()
          Returns a count of the current number of repetitions of Precaution Code (PV2-41).
 DT getPreviousServiceDate()
          Returns PV2-14: "Previous Service Date" - creates it if necessary
 DT getPreviousTreatmentDate()
          Returns PV2-26: "Previous Treatment Date" - creates it if necessary
 PL getPriorPendingLocation()
          Returns PV2-1: "Prior Pending Location" - creates it if necessary
 IS getPurgeStatusCode()
          Returns PV2-16: "Purge Status Code" - creates it if necessary
 DT getPurgeStatusDate()
          Returns PV2-17: "Purge Status Date" - creates it if necessary
 PL getPv21_PriorPendingLocation()
          Returns PV2-1: "Prior Pending Location" - creates it if necessary
 NM getPv210_EstimatedLengthOfInpatientStay()
          Returns PV2-10: "Estimated Length of Inpatient Stay" - creates it if necessary
 NM getPv211_ActualLengthOfInpatientStay()
          Returns PV2-11: "Actual Length of Inpatient Stay" - creates it if necessary
 ST getPv212_VisitDescription()
          Returns PV2-12: "Visit Description" - creates it if necessary
 XCN getPv213_ReferralSourceCode(int rep)
          Returns a specific repetition of PV2-13: "Referral Source Code" - creates it if necessary
 int getPv213_ReferralSourceCodeReps()
          Returns a count of the current number of repetitions of Referral Source Code (PV2-13).
 DT getPv214_PreviousServiceDate()
          Returns PV2-14: "Previous Service Date" - creates it if necessary
 ID getPv215_EmploymentIllnessRelatedIndicator()
          Returns PV2-15: "Employment Illness Related Indicator" - creates it if necessary
 IS getPv216_PurgeStatusCode()
          Returns PV2-16: "Purge Status Code" - creates it if necessary
 DT getPv217_PurgeStatusDate()
          Returns PV2-17: "Purge Status Date" - creates it if necessary
 IS getPv218_SpecialProgramCode()
          Returns PV2-18: "Special Program Code" - creates it if necessary
 ID getPv219_RetentionIndicator()
          Returns PV2-19: "Retention Indicator" - creates it if necessary
 CE getPv22_AccommodationCode()
          Returns PV2-2: "Accommodation Code" - creates it if necessary
 NM getPv220_ExpectedNumberOfInsurancePlans()
          Returns PV2-20: "Expected Number of Insurance Plans" - creates it if necessary
 IS getPv221_VisitPublicityCode()
          Returns PV2-21: "Visit Publicity Code" - creates it if necessary
 ID getPv222_VisitProtectionIndicator()
          Returns PV2-22: "Visit Protection Indicator" - creates it if necessary
 XON getPv223_ClinicOrganizationName(int rep)
          Returns a specific repetition of PV2-23: "Clinic Organization Name" - creates it if necessary
 int getPv223_ClinicOrganizationNameReps()
          Returns a count of the current number of repetitions of Clinic Organization Name (PV2-23).
 IS getPv224_PatientStatusCode()
          Returns PV2-24: "Patient Status Code" - creates it if necessary
 IS getPv225_VisitPriorityCode()
          Returns PV2-25: "Visit Priority Code" - creates it if necessary
 DT getPv226_PreviousTreatmentDate()
          Returns PV2-26: "Previous Treatment Date" - creates it if necessary
 IS getPv227_ExpectedDischargeDisposition()
          Returns PV2-27: "Expected Discharge Disposition" - creates it if necessary
 DT getPv228_SignatureOnFileDate()
          Returns PV2-28: "Signature on File Date" - creates it if necessary
 DT getPv229_FirstSimilarIllnessDate()
          Returns PV2-29: "First Similar Illness Date" - creates it if necessary
 CE getPv23_AdmitReason()
          Returns PV2-3: "Admit Reason" - creates it if necessary
 CE getPv230_PatientChargeAdjustmentCode()
          Returns PV2-30: "Patient Charge Adjustment Code" - creates it if necessary
 IS getPv231_RecurringServiceCode()
          Returns PV2-31: "Recurring Service Code" - creates it if necessary
 ID getPv232_BillingMediaCode()
          Returns PV2-32: "Billing Media Code" - creates it if necessary
 TS getPv233_ExpectedSurgeryDateAndTime()
          Returns PV2-33: "Expected Surgery Date and Time" - creates it if necessary
 ID getPv234_MilitaryPartnershipCode()
          Returns PV2-34: "Military Partnership Code" - creates it if necessary
 ID getPv235_MilitaryNonAvailabilityCode()
          Returns PV2-35: "Military Non-Availability Code" - creates it if necessary
 ID getPv236_NewbornBabyIndicator()
          Returns PV2-36: "Newborn Baby Indicator" - creates it if necessary
 ID getPv237_BabyDetainedIndicator()
          Returns PV2-37: "Baby Detained Indicator" - creates it if necessary
 CE getPv238_ModeOfArrivalCode()
          Returns PV2-38: "Mode of Arrival Code" - creates it if necessary
 CE getPv239_RecreationalDrugUseCode(int rep)
          Returns a specific repetition of PV2-39: "Recreational Drug Use Code" - creates it if necessary
 int getPv239_RecreationalDrugUseCodeReps()
          Returns a count of the current number of repetitions of Recreational Drug Use Code (PV2-39).
 CE getPv24_TransferReason()
          Returns PV2-4: "Transfer Reason" - creates it if necessary
 CE getPv240_AdmissionLevelOfCareCode()
          Returns PV2-40: "Admission Level of Care Code" - creates it if necessary
 CE getPv241_PrecautionCode(int rep)
          Returns a specific repetition of PV2-41: "Precaution Code" - creates it if necessary
 int getPv241_PrecautionCodeReps()
          Returns a count of the current number of repetitions of Precaution Code (PV2-41).
 CE getPv242_PatientConditionCode()
          Returns PV2-42: "Patient Condition Code" - creates it if necessary
 IS getPv243_LivingWillCode()
          Returns PV2-43: "Living Will Code" - creates it if necessary
 IS getPv244_OrganDonorCode()
          Returns PV2-44: "Organ Donor Code" - creates it if necessary
 CE getPv245_AdvanceDirectiveCode(int rep)
          Returns a specific repetition of PV2-45: "Advance Directive Code" - creates it if necessary
 int getPv245_AdvanceDirectiveCodeReps()
          Returns a count of the current number of repetitions of Advance Directive Code (PV2-45).
 DT getPv246_PatientStatusEffectiveDate()
          Returns PV2-46: "Patient Status Effective Date" - creates it if necessary
 TS getPv247_ExpectedLOAReturnDateTime()
          Returns PV2-47: "Expected LOA Return Date/Time" - creates it if necessary
 ST getPv25_PatientValuables(int rep)
          Returns a specific repetition of PV2-5: "Patient Valuables" - creates it if necessary
 int getPv25_PatientValuablesReps()
          Returns a count of the current number of repetitions of Patient Valuables (PV2-5).
 ST getPv26_PatientValuablesLocation()
          Returns PV2-6: "Patient Valuables Location" - creates it if necessary
 IS getPv27_VisitUserCode(int rep)
          Returns a specific repetition of PV2-7: "Visit User Code" - creates it if necessary
 int getPv27_VisitUserCodeReps()
          Returns a count of the current number of repetitions of Visit User Code (PV2-7).
 TS getPv28_ExpectedAdmitDateTime()
          Returns PV2-8: "Expected Admit Date/Time" - creates it if necessary
 TS getPv29_ExpectedDischargeDateTime()
          Returns PV2-9: "Expected Discharge Date/Time" - creates it if necessary
 CE[] getRecreationalDrugUseCode()
          Returns all repetitions of Recreational Drug Use Code (PV2-39).
 CE getRecreationalDrugUseCode(int rep)
          Returns a specific repetition of PV2-39: "Recreational Drug Use Code" - creates it if necessary
 int getRecreationalDrugUseCodeReps()
          Returns a count of the current number of repetitions of Recreational Drug Use Code (PV2-39).
 IS getRecurringServiceCode()
          Returns PV2-31: "Recurring Service Code" - creates it if necessary
 XCN[] getReferralSourceCode()
          Returns all repetitions of Referral Source Code (PV2-13).
 XCN getReferralSourceCode(int rep)
          Returns a specific repetition of PV2-13: "Referral Source Code" - creates it if necessary
 int getReferralSourceCodeReps()
          Returns a count of the current number of repetitions of Referral Source Code (PV2-13).
 ID getRetentionIndicator()
          Returns PV2-19: "Retention Indicator" - creates it if necessary
 DT getSignatureOnFileDate()
          Returns PV2-28: "Signature on File Date" - creates it if necessary
 IS getSpecialProgramCode()
          Returns PV2-18: "Special Program Code" - creates it if necessary
 CE getTransferReason()
          Returns PV2-4: "Transfer Reason" - creates it if necessary
 ST getVisitDescription()
          Returns PV2-12: "Visit Description" - creates it if necessary
 IS getVisitPriorityCode()
          Returns PV2-25: "Visit Priority Code" - creates it if necessary
 ID getVisitProtectionIndicator()
          Returns PV2-22: "Visit Protection Indicator" - creates it if necessary
 IS getVisitPublicityCode()
          Returns PV2-21: "Visit Publicity Code" - creates it if necessary
 IS[] getVisitUserCode()
          Returns all repetitions of Visit User Code (PV2-7).
 IS getVisitUserCode(int rep)
          Returns a specific repetition of PV2-7: "Visit User Code" - creates it if necessary
 int getVisitUserCodeReps()
          Returns a count of the current number of repetitions of Visit User Code (PV2-7).
 CE insertAdvanceDirectiveCode(int rep)
          Inserts a repetition of PV2-45: "Advance Directive Code" at a specific index
 XON insertClinicOrganizationName(int rep)
          Inserts a repetition of PV2-23: "Clinic Organization Name" at a specific index
 ST insertPatientValuables(int rep)
          Inserts a repetition of PV2-5: "Patient Valuables" at a specific index
 CE insertPrecautionCode(int rep)
          Inserts a repetition of PV2-41: "Precaution Code" at a specific index
 XCN insertPv213_ReferralSourceCode(int rep)
          Inserts a repetition of PV2-13: "Referral Source Code" at a specific index
 XON insertPv223_ClinicOrganizationName(int rep)
          Inserts a repetition of PV2-23: "Clinic Organization Name" at a specific index
 CE insertPv239_RecreationalDrugUseCode(int rep)
          Inserts a repetition of PV2-39: "Recreational Drug Use Code" at a specific index
 CE insertPv241_PrecautionCode(int rep)
          Inserts a repetition of PV2-41: "Precaution Code" at a specific index
 CE insertPv245_AdvanceDirectiveCode(int rep)
          Inserts a repetition of PV2-45: "Advance Directive Code" at a specific index
 ST insertPv25_PatientValuables(int rep)
          Inserts a repetition of PV2-5: "Patient Valuables" at a specific index
 IS insertPv27_VisitUserCode(int rep)
          Inserts a repetition of PV2-7: "Visit User Code" at a specific index
 CE insertRecreationalDrugUseCode(int rep)
          Inserts a repetition of PV2-39: "Recreational Drug Use Code" at a specific index
 XCN insertReferralSourceCode(int rep)
          Inserts a repetition of PV2-13: "Referral Source Code" at a specific index
 IS insertVisitUserCode(int rep)
          Inserts a repetition of PV2-7: "Visit User Code" at a specific index
 CE removeAdvanceDirectiveCode(int rep)
          Removes a repetition of PV2-45: "Advance Directive Code" at a specific index
 XON removeClinicOrganizationName(int rep)
          Removes a repetition of PV2-23: "Clinic Organization Name" at a specific index
 ST removePatientValuables(int rep)
          Removes a repetition of PV2-5: "Patient Valuables" at a specific index
 CE removePrecautionCode(int rep)
          Removes a repetition of PV2-41: "Precaution Code" at a specific index
 XCN removePv213_ReferralSourceCode(int rep)
          Removes a repetition of PV2-13: "Referral Source Code" at a specific index
 XON removePv223_ClinicOrganizationName(int rep)
          Removes a repetition of PV2-23: "Clinic Organization Name" at a specific index
 CE removePv239_RecreationalDrugUseCode(int rep)
          Removes a repetition of PV2-39: "Recreational Drug Use Code" at a specific index
 CE removePv241_PrecautionCode(int rep)
          Removes a repetition of PV2-41: "Precaution Code" at a specific index
 CE removePv245_AdvanceDirectiveCode(int rep)
          Removes a repetition of PV2-45: "Advance Directive Code" at a specific index
 ST removePv25_PatientValuables(int rep)
          Removes a repetition of PV2-5: "Patient Valuables" at a specific index
 IS removePv27_VisitUserCode(int rep)
          Removes a repetition of PV2-7: "Visit User Code" at a specific index
 CE removeRecreationalDrugUseCode(int rep)
          Removes a repetition of PV2-39: "Recreational Drug Use Code" at a specific index
 XCN removeReferralSourceCode(int rep)
          Removes a repetition of PV2-13: "Referral Source Code" at a specific index
 IS removeVisitUserCode(int rep)
          Removes a repetition of PV2-7: "Visit User Code" 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

PV2

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

Method Detail

getPriorPendingLocation

public PL getPriorPendingLocation()
Returns PV2-1: "Prior Pending Location" - creates it if necessary


getPv21_PriorPendingLocation

public PL getPv21_PriorPendingLocation()
Returns PV2-1: "Prior Pending Location" - creates it if necessary


getAccommodationCode

public CE getAccommodationCode()
Returns PV2-2: "Accommodation Code" - creates it if necessary


getPv22_AccommodationCode

public CE getPv22_AccommodationCode()
Returns PV2-2: "Accommodation Code" - creates it if necessary


getAdmitReason

public CE getAdmitReason()
Returns PV2-3: "Admit Reason" - creates it if necessary


getPv23_AdmitReason

public CE getPv23_AdmitReason()
Returns PV2-3: "Admit Reason" - creates it if necessary


getTransferReason

public CE getTransferReason()
Returns PV2-4: "Transfer Reason" - creates it if necessary


getPv24_TransferReason

public CE getPv24_TransferReason()
Returns PV2-4: "Transfer Reason" - creates it if necessary


getPatientValuables

public ST[] getPatientValuables()
Returns all repetitions of Patient Valuables (PV2-5).


getPatientValuablesReps

public int getPatientValuablesReps()
Returns a count of the current number of repetitions of Patient Valuables (PV2-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getPatientValuables

public ST getPatientValuables(int rep)
Returns a specific repetition of PV2-5: "Patient Valuables" - creates it if necessary

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

getPv25_PatientValuables

public ST getPv25_PatientValuables(int rep)
Returns a specific repetition of PV2-5: "Patient Valuables" - creates it if necessary

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

getPv25_PatientValuablesReps

public int getPv25_PatientValuablesReps()
Returns a count of the current number of repetitions of Patient Valuables (PV2-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertPatientValuables

public ST insertPatientValuables(int rep)
                          throws HL7Exception
Inserts a repetition of PV2-5: "Patient Valuables" 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)

insertPv25_PatientValuables

public ST insertPv25_PatientValuables(int rep)
                               throws HL7Exception
Inserts a repetition of PV2-5: "Patient Valuables" 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)

removePatientValuables

public ST removePatientValuables(int rep)
                          throws HL7Exception
Removes a repetition of PV2-5: "Patient Valuables" 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)

removePv25_PatientValuables

public ST removePv25_PatientValuables(int rep)
                               throws HL7Exception
Removes a repetition of PV2-5: "Patient Valuables" 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)

getPatientValuablesLocation

public ST getPatientValuablesLocation()
Returns PV2-6: "Patient Valuables Location" - creates it if necessary


getPv26_PatientValuablesLocation

public ST getPv26_PatientValuablesLocation()
Returns PV2-6: "Patient Valuables Location" - creates it if necessary


getVisitUserCode

public IS[] getVisitUserCode()
Returns all repetitions of Visit User Code (PV2-7).


getVisitUserCodeReps

public int getVisitUserCodeReps()
Returns a count of the current number of repetitions of Visit User Code (PV2-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getVisitUserCode

public IS getVisitUserCode(int rep)
Returns a specific repetition of PV2-7: "Visit User Code" - creates it if necessary

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

getPv27_VisitUserCode

public IS getPv27_VisitUserCode(int rep)
Returns a specific repetition of PV2-7: "Visit User Code" - creates it if necessary

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

getPv27_VisitUserCodeReps

public int getPv27_VisitUserCodeReps()
Returns a count of the current number of repetitions of Visit User Code (PV2-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertVisitUserCode

public IS insertVisitUserCode(int rep)
                       throws HL7Exception
Inserts a repetition of PV2-7: "Visit User 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)

insertPv27_VisitUserCode

public IS insertPv27_VisitUserCode(int rep)
                            throws HL7Exception
Inserts a repetition of PV2-7: "Visit User 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)

removeVisitUserCode

public IS removeVisitUserCode(int rep)
                       throws HL7Exception
Removes a repetition of PV2-7: "Visit User 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)

removePv27_VisitUserCode

public IS removePv27_VisitUserCode(int rep)
                            throws HL7Exception
Removes a repetition of PV2-7: "Visit User 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)

getExpectedAdmitDateTime

public TS getExpectedAdmitDateTime()
Returns PV2-8: "Expected Admit Date/Time" - creates it if necessary


getPv28_ExpectedAdmitDateTime

public TS getPv28_ExpectedAdmitDateTime()
Returns PV2-8: "Expected Admit Date/Time" - creates it if necessary


getExpectedDischargeDateTime

public TS getExpectedDischargeDateTime()
Returns PV2-9: "Expected Discharge Date/Time" - creates it if necessary


getPv29_ExpectedDischargeDateTime

public TS getPv29_ExpectedDischargeDateTime()
Returns PV2-9: "Expected Discharge Date/Time" - creates it if necessary


getEstimatedLengthOfInpatientStay

public NM getEstimatedLengthOfInpatientStay()
Returns PV2-10: "Estimated Length of Inpatient Stay" - creates it if necessary


getPv210_EstimatedLengthOfInpatientStay

public NM getPv210_EstimatedLengthOfInpatientStay()
Returns PV2-10: "Estimated Length of Inpatient Stay" - creates it if necessary


getActualLengthOfInpatientStay

public NM getActualLengthOfInpatientStay()
Returns PV2-11: "Actual Length of Inpatient Stay" - creates it if necessary


getPv211_ActualLengthOfInpatientStay

public NM getPv211_ActualLengthOfInpatientStay()
Returns PV2-11: "Actual Length of Inpatient Stay" - creates it if necessary


getVisitDescription

public ST getVisitDescription()
Returns PV2-12: "Visit Description" - creates it if necessary


getPv212_VisitDescription

public ST getPv212_VisitDescription()
Returns PV2-12: "Visit Description" - creates it if necessary


getReferralSourceCode

public XCN[] getReferralSourceCode()
Returns all repetitions of Referral Source Code (PV2-13).


getReferralSourceCodeReps

public int getReferralSourceCodeReps()
Returns a count of the current number of repetitions of Referral Source Code (PV2-13). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getReferralSourceCode

public XCN getReferralSourceCode(int rep)
Returns a specific repetition of PV2-13: "Referral Source Code" - creates it if necessary

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

getPv213_ReferralSourceCode

public XCN getPv213_ReferralSourceCode(int rep)
Returns a specific repetition of PV2-13: "Referral Source Code" - creates it if necessary

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

getPv213_ReferralSourceCodeReps

public int getPv213_ReferralSourceCodeReps()
Returns a count of the current number of repetitions of Referral Source Code (PV2-13). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertReferralSourceCode

public XCN insertReferralSourceCode(int rep)
                             throws HL7Exception
Inserts a repetition of PV2-13: "Referral Source 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)

insertPv213_ReferralSourceCode

public XCN insertPv213_ReferralSourceCode(int rep)
                                   throws HL7Exception
Inserts a repetition of PV2-13: "Referral Source 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)

removeReferralSourceCode

public XCN removeReferralSourceCode(int rep)
                             throws HL7Exception
Removes a repetition of PV2-13: "Referral Source 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)

removePv213_ReferralSourceCode

public XCN removePv213_ReferralSourceCode(int rep)
                                   throws HL7Exception
Removes a repetition of PV2-13: "Referral Source 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)

getPreviousServiceDate

public DT getPreviousServiceDate()
Returns PV2-14: "Previous Service Date" - creates it if necessary


getPv214_PreviousServiceDate

public DT getPv214_PreviousServiceDate()
Returns PV2-14: "Previous Service Date" - creates it if necessary


getEmploymentIllnessRelatedIndicator

public ID getEmploymentIllnessRelatedIndicator()
Returns PV2-15: "Employment Illness Related Indicator" - creates it if necessary


getPv215_EmploymentIllnessRelatedIndicator

public ID getPv215_EmploymentIllnessRelatedIndicator()
Returns PV2-15: "Employment Illness Related Indicator" - creates it if necessary


getPurgeStatusCode

public IS getPurgeStatusCode()
Returns PV2-16: "Purge Status Code" - creates it if necessary


getPv216_PurgeStatusCode

public IS getPv216_PurgeStatusCode()
Returns PV2-16: "Purge Status Code" - creates it if necessary


getPurgeStatusDate

public DT getPurgeStatusDate()
Returns PV2-17: "Purge Status Date" - creates it if necessary


getPv217_PurgeStatusDate

public DT getPv217_PurgeStatusDate()
Returns PV2-17: "Purge Status Date" - creates it if necessary


getSpecialProgramCode

public IS getSpecialProgramCode()
Returns PV2-18: "Special Program Code" - creates it if necessary


getPv218_SpecialProgramCode

public IS getPv218_SpecialProgramCode()
Returns PV2-18: "Special Program Code" - creates it if necessary


getRetentionIndicator

public ID getRetentionIndicator()
Returns PV2-19: "Retention Indicator" - creates it if necessary


getPv219_RetentionIndicator

public ID getPv219_RetentionIndicator()
Returns PV2-19: "Retention Indicator" - creates it if necessary


getExpectedNumberOfInsurancePlans

public NM getExpectedNumberOfInsurancePlans()
Returns PV2-20: "Expected Number of Insurance Plans" - creates it if necessary


getPv220_ExpectedNumberOfInsurancePlans

public NM getPv220_ExpectedNumberOfInsurancePlans()
Returns PV2-20: "Expected Number of Insurance Plans" - creates it if necessary


getVisitPublicityCode

public IS getVisitPublicityCode()
Returns PV2-21: "Visit Publicity Code" - creates it if necessary


getPv221_VisitPublicityCode

public IS getPv221_VisitPublicityCode()
Returns PV2-21: "Visit Publicity Code" - creates it if necessary


getVisitProtectionIndicator

public ID getVisitProtectionIndicator()
Returns PV2-22: "Visit Protection Indicator" - creates it if necessary


getPv222_VisitProtectionIndicator

public ID getPv222_VisitProtectionIndicator()
Returns PV2-22: "Visit Protection Indicator" - creates it if necessary


getClinicOrganizationName

public XON[] getClinicOrganizationName()
Returns all repetitions of Clinic Organization Name (PV2-23).


getClinicOrganizationNameReps

public int getClinicOrganizationNameReps()
Returns a count of the current number of repetitions of Clinic Organization Name (PV2-23). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getClinicOrganizationName

public XON getClinicOrganizationName(int rep)
Returns a specific repetition of PV2-23: "Clinic Organization Name" - creates it if necessary

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

getPv223_ClinicOrganizationName

public XON getPv223_ClinicOrganizationName(int rep)
Returns a specific repetition of PV2-23: "Clinic Organization Name" - creates it if necessary

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

getPv223_ClinicOrganizationNameReps

public int getPv223_ClinicOrganizationNameReps()
Returns a count of the current number of repetitions of Clinic Organization Name (PV2-23). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertClinicOrganizationName

public XON insertClinicOrganizationName(int rep)
                                 throws HL7Exception
Inserts a repetition of PV2-23: "Clinic Organization Name" 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)

insertPv223_ClinicOrganizationName

public XON insertPv223_ClinicOrganizationName(int rep)
                                       throws HL7Exception
Inserts a repetition of PV2-23: "Clinic Organization Name" 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)

removeClinicOrganizationName

public XON removeClinicOrganizationName(int rep)
                                 throws HL7Exception
Removes a repetition of PV2-23: "Clinic Organization Name" 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)

removePv223_ClinicOrganizationName

public XON removePv223_ClinicOrganizationName(int rep)
                                       throws HL7Exception
Removes a repetition of PV2-23: "Clinic Organization Name" 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)

getPatientStatusCode

public IS getPatientStatusCode()
Returns PV2-24: "Patient Status Code" - creates it if necessary


getPv224_PatientStatusCode

public IS getPv224_PatientStatusCode()
Returns PV2-24: "Patient Status Code" - creates it if necessary


getVisitPriorityCode

public IS getVisitPriorityCode()
Returns PV2-25: "Visit Priority Code" - creates it if necessary


getPv225_VisitPriorityCode

public IS getPv225_VisitPriorityCode()
Returns PV2-25: "Visit Priority Code" - creates it if necessary


getPreviousTreatmentDate

public DT getPreviousTreatmentDate()
Returns PV2-26: "Previous Treatment Date" - creates it if necessary


getPv226_PreviousTreatmentDate

public DT getPv226_PreviousTreatmentDate()
Returns PV2-26: "Previous Treatment Date" - creates it if necessary


getExpectedDischargeDisposition

public IS getExpectedDischargeDisposition()
Returns PV2-27: "Expected Discharge Disposition" - creates it if necessary


getPv227_ExpectedDischargeDisposition

public IS getPv227_ExpectedDischargeDisposition()
Returns PV2-27: "Expected Discharge Disposition" - creates it if necessary


getSignatureOnFileDate

public DT getSignatureOnFileDate()
Returns PV2-28: "Signature on File Date" - creates it if necessary


getPv228_SignatureOnFileDate

public DT getPv228_SignatureOnFileDate()
Returns PV2-28: "Signature on File Date" - creates it if necessary


getFirstSimilarIllnessDate

public DT getFirstSimilarIllnessDate()
Returns PV2-29: "First Similar Illness Date" - creates it if necessary


getPv229_FirstSimilarIllnessDate

public DT getPv229_FirstSimilarIllnessDate()
Returns PV2-29: "First Similar Illness Date" - creates it if necessary


getPatientChargeAdjustmentCode

public CE getPatientChargeAdjustmentCode()
Returns PV2-30: "Patient Charge Adjustment Code" - creates it if necessary


getPv230_PatientChargeAdjustmentCode

public CE getPv230_PatientChargeAdjustmentCode()
Returns PV2-30: "Patient Charge Adjustment Code" - creates it if necessary


getRecurringServiceCode

public IS getRecurringServiceCode()
Returns PV2-31: "Recurring Service Code" - creates it if necessary


getPv231_RecurringServiceCode

public IS getPv231_RecurringServiceCode()
Returns PV2-31: "Recurring Service Code" - creates it if necessary


getBillingMediaCode

public ID getBillingMediaCode()
Returns PV2-32: "Billing Media Code" - creates it if necessary


getPv232_BillingMediaCode

public ID getPv232_BillingMediaCode()
Returns PV2-32: "Billing Media Code" - creates it if necessary


getExpectedSurgeryDateAndTime

public TS getExpectedSurgeryDateAndTime()
Returns PV2-33: "Expected Surgery Date and Time" - creates it if necessary


getPv233_ExpectedSurgeryDateAndTime

public TS getPv233_ExpectedSurgeryDateAndTime()
Returns PV2-33: "Expected Surgery Date and Time" - creates it if necessary


getMilitaryPartnershipCode

public ID getMilitaryPartnershipCode()
Returns PV2-34: "Military Partnership Code" - creates it if necessary


getPv234_MilitaryPartnershipCode

public ID getPv234_MilitaryPartnershipCode()
Returns PV2-34: "Military Partnership Code" - creates it if necessary


getMilitaryNonAvailabilityCode

public ID getMilitaryNonAvailabilityCode()
Returns PV2-35: "Military Non-Availability Code" - creates it if necessary


getPv235_MilitaryNonAvailabilityCode

public ID getPv235_MilitaryNonAvailabilityCode()
Returns PV2-35: "Military Non-Availability Code" - creates it if necessary


getNewbornBabyIndicator

public ID getNewbornBabyIndicator()
Returns PV2-36: "Newborn Baby Indicator" - creates it if necessary


getPv236_NewbornBabyIndicator

public ID getPv236_NewbornBabyIndicator()
Returns PV2-36: "Newborn Baby Indicator" - creates it if necessary


getBabyDetainedIndicator

public ID getBabyDetainedIndicator()
Returns PV2-37: "Baby Detained Indicator" - creates it if necessary


getPv237_BabyDetainedIndicator

public ID getPv237_BabyDetainedIndicator()
Returns PV2-37: "Baby Detained Indicator" - creates it if necessary


getModeOfArrivalCode

public CE getModeOfArrivalCode()
Returns PV2-38: "Mode of Arrival Code" - creates it if necessary


getPv238_ModeOfArrivalCode

public CE getPv238_ModeOfArrivalCode()
Returns PV2-38: "Mode of Arrival Code" - creates it if necessary


getRecreationalDrugUseCode

public CE[] getRecreationalDrugUseCode()
Returns all repetitions of Recreational Drug Use Code (PV2-39).


getRecreationalDrugUseCodeReps

public int getRecreationalDrugUseCodeReps()
Returns a count of the current number of repetitions of Recreational Drug Use Code (PV2-39). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getRecreationalDrugUseCode

public CE getRecreationalDrugUseCode(int rep)
Returns a specific repetition of PV2-39: "Recreational Drug Use Code" - creates it if necessary

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

getPv239_RecreationalDrugUseCode

public CE getPv239_RecreationalDrugUseCode(int rep)
Returns a specific repetition of PV2-39: "Recreational Drug Use Code" - creates it if necessary

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

getPv239_RecreationalDrugUseCodeReps

public int getPv239_RecreationalDrugUseCodeReps()
Returns a count of the current number of repetitions of Recreational Drug Use Code (PV2-39). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertRecreationalDrugUseCode

public CE insertRecreationalDrugUseCode(int rep)
                                 throws HL7Exception
Inserts a repetition of PV2-39: "Recreational Drug Use 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)

insertPv239_RecreationalDrugUseCode

public CE insertPv239_RecreationalDrugUseCode(int rep)
                                       throws HL7Exception
Inserts a repetition of PV2-39: "Recreational Drug Use 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)

removeRecreationalDrugUseCode

public CE removeRecreationalDrugUseCode(int rep)
                                 throws HL7Exception
Removes a repetition of PV2-39: "Recreational Drug Use 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)

removePv239_RecreationalDrugUseCode

public CE removePv239_RecreationalDrugUseCode(int rep)
                                       throws HL7Exception
Removes a repetition of PV2-39: "Recreational Drug Use 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)

getAdmissionLevelOfCareCode

public CE getAdmissionLevelOfCareCode()
Returns PV2-40: "Admission Level of Care Code" - creates it if necessary


getPv240_AdmissionLevelOfCareCode

public CE getPv240_AdmissionLevelOfCareCode()
Returns PV2-40: "Admission Level of Care Code" - creates it if necessary


getPrecautionCode

public CE[] getPrecautionCode()
Returns all repetitions of Precaution Code (PV2-41).


getPrecautionCodeReps

public int getPrecautionCodeReps()
Returns a count of the current number of repetitions of Precaution Code (PV2-41). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getPrecautionCode

public CE getPrecautionCode(int rep)
Returns a specific repetition of PV2-41: "Precaution Code" - creates it if necessary

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

getPv241_PrecautionCode

public CE getPv241_PrecautionCode(int rep)
Returns a specific repetition of PV2-41: "Precaution Code" - creates it if necessary

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

getPv241_PrecautionCodeReps

public int getPv241_PrecautionCodeReps()
Returns a count of the current number of repetitions of Precaution Code (PV2-41). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertPrecautionCode

public CE insertPrecautionCode(int rep)
                        throws HL7Exception
Inserts a repetition of PV2-41: "Precaution 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)

insertPv241_PrecautionCode

public CE insertPv241_PrecautionCode(int rep)
                              throws HL7Exception
Inserts a repetition of PV2-41: "Precaution 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)

removePrecautionCode

public CE removePrecautionCode(int rep)
                        throws HL7Exception
Removes a repetition of PV2-41: "Precaution 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)

removePv241_PrecautionCode

public CE removePv241_PrecautionCode(int rep)
                              throws HL7Exception
Removes a repetition of PV2-41: "Precaution 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)

getPatientConditionCode

public CE getPatientConditionCode()
Returns PV2-42: "Patient Condition Code" - creates it if necessary


getPv242_PatientConditionCode

public CE getPv242_PatientConditionCode()
Returns PV2-42: "Patient Condition Code" - creates it if necessary


getLivingWillCode

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


getPv243_LivingWillCode

public IS getPv243_LivingWillCode()
Returns PV2-43: "Living Will Code" - creates it if necessary


getOrganDonorCode

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


getPv244_OrganDonorCode

public IS getPv244_OrganDonorCode()
Returns PV2-44: "Organ Donor Code" - creates it if necessary


getAdvanceDirectiveCode

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


getAdvanceDirectiveCodeReps

public int getAdvanceDirectiveCodeReps()
Returns a count of the current number of repetitions of Advance Directive Code (PV2-45). 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 PV2-45: "Advance Directive Code" - creates it if necessary

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

getPv245_AdvanceDirectiveCode

public CE getPv245_AdvanceDirectiveCode(int rep)
Returns a specific repetition of PV2-45: "Advance Directive Code" - creates it if necessary

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

getPv245_AdvanceDirectiveCodeReps

public int getPv245_AdvanceDirectiveCodeReps()
Returns a count of the current number of repetitions of Advance Directive Code (PV2-45). 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 PV2-45: "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)

insertPv245_AdvanceDirectiveCode

public CE insertPv245_AdvanceDirectiveCode(int rep)
                                    throws HL7Exception
Inserts a repetition of PV2-45: "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 PV2-45: "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)

removePv245_AdvanceDirectiveCode

public CE removePv245_AdvanceDirectiveCode(int rep)
                                    throws HL7Exception
Removes a repetition of PV2-45: "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)

getPatientStatusEffectiveDate

public DT getPatientStatusEffectiveDate()
Returns PV2-46: "Patient Status Effective Date" - creates it if necessary


getPv246_PatientStatusEffectiveDate

public DT getPv246_PatientStatusEffectiveDate()
Returns PV2-46: "Patient Status Effective Date" - creates it if necessary


getExpectedLOAReturnDateTime

public TS getExpectedLOAReturnDateTime()
Returns PV2-47: "Expected LOA Return Date/Time" - creates it if necessary


getPv247_ExpectedLOAReturnDateTime

public TS getPv247_ExpectedLOAReturnDateTime()
Returns PV2-47: "Expected LOA Return Date/Time" - creates it if necessary


createNewTypeWithoutReflection

protected Type createNewTypeWithoutReflection(int field)

Overrides:
createNewTypeWithoutReflection in class AbstractSegment


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