Package ca.uhn.hl7v2.model.v23.segment
Class PV2
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v23.segment.PV2
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 PV2 message segment (Patient visit - additional information). This segment has the following fields:
- PV2-1: Prior Pending Location (PL) optional
- PV2-2: Accommodation Code (CE) optional
- PV2-3: Admit Reason (CE) optional
- PV2-4: Transfer Reason (CE) optional
- PV2-5: Patient Valuables (ST) optional repeating
- PV2-6: Patient Valuables Location (ST) optional
- PV2-7: Visit User Code (IS) optional
- PV2-8: Expected Admit Date (TS) optional
- PV2-9: Expected Discharge Date (TS) optional
- PV2-10: Estimated Length of Inpatient Stay (NM) optional
- PV2-11: Actual Length of Inpatient Stay (NM) optional
- PV2-12: Visit Description (ST) optional
- PV2-13: Referral Source Code (XCN) optional
- PV2-14: Previous Service Date (DT) optional
- PV2-15: Employment Illness Related Indicator (ID) optional
- PV2-16: Purge Status Code (IS) optional
- PV2-17: Purge Status Date (DT) optional
- PV2-18: Special Program Code (IS) optional
- PV2-19: Retention Indicator (ID) optional
- PV2-20: Expected Number of Insurance Plans (NM) optional
- PV2-21: Visit Publicity Code (IS) optional
- PV2-22: Visit Protection Indicator (ID) optional
- PV2-23: Clinic Organization Name (XON) optional repeating
- PV2-24: Patient Status Code (IS) optional
- PV2-25: Visit Priority Code (IS) optional
- PV2-26: Previous Treatment Date (DT) optional
- PV2-27: Expected Discharge Disposition (IS) optional
- PV2-28: Signature on File Date (DT) optional
- PV2-29: First Similar Illness Date (DT) optional
- PV2-30: Patient Charge Adjustment Code (IS) optional
- PV2-31: Recurring Service Code (IS) optional
- PV2-32: Billing Media Code (ID) optional
- PV2-33: Expected Surgery Date & Time (TS) optional
- PV2-34: Military Partnership Code (ID) optional
- PV2-35: Military Non-Availabiltiy Code (ID) optional
- PV2-36: Newborn Baby Indicator (ID) optional
- PV2-37: Baby Detained 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) Returns PV2-2: "Accommodation Code" - creates it if necessaryReturns PV2-11: "Actual Length of Inpatient Stay" - creates it if necessaryReturns PV2-3: "Admit Reason" - creates it if necessaryReturns PV2-37: "Baby Detained Indicator" - creates it if necessaryReturns PV2-32: "Billing Media Code" - creates it if necessaryXON[]Returns all repetitions of Clinic Organization Name (PV2-23).getClinicOrganizationName(int rep) Returns a specific repetition of PV2-23: "Clinic Organization Name" - creates it if necessaryintReturns a count of the current number of repetitions of Clinic Organization Name (PV2-23).Returns PV2-15: "Employment Illness Related Indicator" - creates it if necessaryReturns PV2-10: "Estimated Length of Inpatient Stay" - creates it if necessaryReturns PV2-8: "Expected Admit Date" - creates it if necessaryReturns PV2-9: "Expected Discharge Date" - creates it if necessaryReturns PV2-27: "Expected Discharge Disposition" - creates it if necessaryReturns PV2-20: "Expected Number of Insurance Plans" - creates it if necessaryReturns PV2-33: "Expected Surgery Date & Time" - creates it if necessaryReturns PV2-29: "First Similar Illness Date" - creates it if necessaryReturns PV2-35: "Military Non-Availabiltiy Code" - creates it if necessaryReturns PV2-34: "Military Partnership Code" - creates it if necessaryReturns PV2-36: "Newborn Baby Indicator" - creates it if necessaryReturns PV2-30: "Patient Charge Adjustment Code" - creates it if necessaryReturns PV2-24: "Patient Status Code" - creates it if necessaryST[]Returns all repetitions of Patient Valuables (PV2-5).getPatientValuables(int rep) Returns a specific repetition of PV2-5: "Patient Valuables" - creates it if necessaryReturns PV2-6: "Patient Valuables Location" - creates it if necessaryintReturns a count of the current number of repetitions of Patient Valuables (PV2-5).Returns PV2-14: "Previous Service Date" - creates it if necessaryReturns PV2-26: "Previous Treatment Date" - creates it if necessaryReturns PV2-1: "Prior Pending Location" - creates it if necessaryReturns PV2-16: "Purge Status Code" - creates it if necessaryReturns PV2-17: "Purge Status Date" - creates it if necessaryReturns PV2-1: "Prior Pending Location" - creates it if necessaryReturns PV2-10: "Estimated Length of Inpatient Stay" - creates it if necessaryReturns PV2-11: "Actual Length of Inpatient Stay" - creates it if necessaryReturns PV2-12: "Visit Description" - creates it if necessaryReturns PV2-13: "Referral Source Code" - creates it if necessaryReturns PV2-14: "Previous Service Date" - creates it if necessaryReturns PV2-15: "Employment Illness Related Indicator" - creates it if necessaryReturns PV2-16: "Purge Status Code" - creates it if necessaryReturns PV2-17: "Purge Status Date" - creates it if necessaryReturns PV2-18: "Special Program Code" - creates it if necessaryReturns PV2-19: "Retention Indicator" - creates it if necessaryReturns PV2-2: "Accommodation Code" - creates it if necessaryReturns PV2-20: "Expected Number of Insurance Plans" - creates it if necessaryReturns PV2-21: "Visit Publicity Code" - creates it if necessaryReturns PV2-22: "Visit Protection Indicator" - creates it if necessaryXON[]Returns all repetitions of Clinic Organization Name (PV2-23).getPv223_ClinicOrganizationName(int rep) Returns a specific repetition of PV2-23: "Clinic Organization Name" - creates it if necessaryintReturns a count of the current number of repetitions of Clinic Organization Name (PV2-23).Returns PV2-24: "Patient Status Code" - creates it if necessaryReturns PV2-25: "Visit Priority Code" - creates it if necessaryReturns PV2-26: "Previous Treatment Date" - creates it if necessaryReturns PV2-27: "Expected Discharge Disposition" - creates it if necessaryReturns PV2-28: "Signature on File Date" - creates it if necessaryReturns PV2-29: "First Similar Illness Date" - creates it if necessaryReturns PV2-3: "Admit Reason" - creates it if necessaryReturns PV2-30: "Patient Charge Adjustment Code" - creates it if necessaryReturns PV2-31: "Recurring Service Code" - creates it if necessaryReturns PV2-32: "Billing Media Code" - creates it if necessaryReturns PV2-33: "Expected Surgery Date & Time" - creates it if necessaryReturns PV2-34: "Military Partnership Code" - creates it if necessaryReturns PV2-35: "Military Non-Availabiltiy Code" - creates it if necessaryReturns PV2-36: "Newborn Baby Indicator" - creates it if necessaryReturns PV2-37: "Baby Detained Indicator" - creates it if necessaryReturns PV2-4: "Transfer Reason" - creates it if necessaryST[]Returns all repetitions of Patient Valuables (PV2-5).getPv25_PatientValuables(int rep) Returns a specific repetition of PV2-5: "Patient Valuables" - creates it if necessaryintReturns a count of the current number of repetitions of Patient Valuables (PV2-5).Returns PV2-6: "Patient Valuables Location" - creates it if necessaryReturns PV2-7: "Visit User Code" - creates it if necessaryReturns PV2-8: "Expected Admit Date" - creates it if necessaryReturns PV2-9: "Expected Discharge Date" - creates it if necessaryReturns PV2-31: "Recurring Service Code" - creates it if necessaryReturns PV2-13: "Referral Source Code" - creates it if necessaryReturns PV2-19: "Retention Indicator" - creates it if necessaryReturns PV2-28: "Signature on File Date" - creates it if necessaryReturns PV2-18: "Special Program Code" - creates it if necessaryReturns PV2-4: "Transfer Reason" - creates it if necessaryReturns PV2-12: "Visit Description" - creates it if necessaryReturns PV2-25: "Visit Priority Code" - creates it if necessaryReturns PV2-22: "Visit Protection Indicator" - creates it if necessaryReturns PV2-21: "Visit Publicity Code" - creates it if necessaryReturns PV2-7: "Visit User Code" - creates it if necessaryinsertClinicOrganizationName(int rep) Inserts a repetition of PV2-23: "Clinic Organization Name" at a specific indexinsertPatientValuables(int rep) Inserts a repetition of PV2-5: "Patient Valuables" at a specific indexinsertPv223_ClinicOrganizationName(int rep) Inserts a repetition of PV2-23: "Clinic Organization Name" at a specific indexinsertPv25_PatientValuables(int rep) Inserts a repetition of PV2-5: "Patient Valuables" at a specific indexremoveClinicOrganizationName(int rep) Removes a repetition of PV2-23: "Clinic Organization Name" at a specific indexremovePatientValuables(int rep) Removes a repetition of PV2-5: "Patient Valuables" at a specific indexremovePv223_ClinicOrganizationName(int rep) Removes a repetition of PV2-23: "Clinic Organization Name" at a specific indexremovePv25_PatientValuables(int rep) Removes a repetition of PV2-5: "Patient Valuables" 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
-
PV2
Creates a new PV2 segment
-
-
Method Details
-
getPriorPendingLocation
Returns PV2-1: "Prior Pending Location" - creates it if necessary -
getPv21_PriorPendingLocation
Returns PV2-1: "Prior Pending Location" - creates it if necessary -
getAccommodationCode
Returns PV2-2: "Accommodation Code" - creates it if necessary -
getPv22_AccommodationCode
Returns PV2-2: "Accommodation Code" - creates it if necessary -
getAdmitReason
Returns PV2-3: "Admit Reason" - creates it if necessary -
getPv23_AdmitReason
Returns PV2-3: "Admit Reason" - creates it if necessary -
getTransferReason
Returns PV2-4: "Transfer Reason" - creates it if necessary -
getPv24_TransferReason
Returns PV2-4: "Transfer Reason" - creates it if necessary -
getPatientValuables
Returns all repetitions of Patient Valuables (PV2-5). -
getPv25_PatientValuables
Returns all repetitions of Patient Valuables (PV2-5). -
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
Returns a specific repetition of PV2-5: "Patient Valuables" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getPv25_PatientValuables
Returns a specific repetition of PV2-5: "Patient Valuables" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
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
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
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
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
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
Returns PV2-6: "Patient Valuables Location" - creates it if necessary -
getPv26_PatientValuablesLocation
Returns PV2-6: "Patient Valuables Location" - creates it if necessary -
getVisitUserCode
Returns PV2-7: "Visit User Code" - creates it if necessary -
getPv27_VisitUserCode
Returns PV2-7: "Visit User Code" - creates it if necessary -
getExpectedAdmitDate
Returns PV2-8: "Expected Admit Date" - creates it if necessary -
getPv28_ExpectedAdmitDate
Returns PV2-8: "Expected Admit Date" - creates it if necessary -
getExpectedDischargeDate
Returns PV2-9: "Expected Discharge Date" - creates it if necessary -
getPv29_ExpectedDischargeDate
Returns PV2-9: "Expected Discharge Date" - creates it if necessary -
getEstimatedLengthOfInpatientStay
Returns PV2-10: "Estimated Length of Inpatient Stay" - creates it if necessary -
getPv210_EstimatedLengthOfInpatientStay
Returns PV2-10: "Estimated Length of Inpatient Stay" - creates it if necessary -
getActualLengthOfInpatientStay
Returns PV2-11: "Actual Length of Inpatient Stay" - creates it if necessary -
getPv211_ActualLengthOfInpatientStay
Returns PV2-11: "Actual Length of Inpatient Stay" - creates it if necessary -
getVisitDescription
Returns PV2-12: "Visit Description" - creates it if necessary -
getPv212_VisitDescription
Returns PV2-12: "Visit Description" - creates it if necessary -
getReferralSourceCode
Returns PV2-13: "Referral Source Code" - creates it if necessary -
getPv213_ReferralSourceCode
Returns PV2-13: "Referral Source Code" - creates it if necessary -
getPreviousServiceDate
Returns PV2-14: "Previous Service Date" - creates it if necessary -
getPv214_PreviousServiceDate
Returns PV2-14: "Previous Service Date" - creates it if necessary -
getEmploymentIllnessRelatedIndicator
Returns PV2-15: "Employment Illness Related Indicator" - creates it if necessary -
getPv215_EmploymentIllnessRelatedIndicator
Returns PV2-15: "Employment Illness Related Indicator" - creates it if necessary -
getPurgeStatusCode
Returns PV2-16: "Purge Status Code" - creates it if necessary -
getPv216_PurgeStatusCode
Returns PV2-16: "Purge Status Code" - creates it if necessary -
getPurgeStatusDate
Returns PV2-17: "Purge Status Date" - creates it if necessary -
getPv217_PurgeStatusDate
Returns PV2-17: "Purge Status Date" - creates it if necessary -
getSpecialProgramCode
Returns PV2-18: "Special Program Code" - creates it if necessary -
getPv218_SpecialProgramCode
Returns PV2-18: "Special Program Code" - creates it if necessary -
getRetentionIndicator
Returns PV2-19: "Retention Indicator" - creates it if necessary -
getPv219_RetentionIndicator
Returns PV2-19: "Retention Indicator" - creates it if necessary -
getExpectedNumberOfInsurancePlans
Returns PV2-20: "Expected Number of Insurance Plans" - creates it if necessary -
getPv220_ExpectedNumberOfInsurancePlans
Returns PV2-20: "Expected Number of Insurance Plans" - creates it if necessary -
getVisitPublicityCode
Returns PV2-21: "Visit Publicity Code" - creates it if necessary -
getPv221_VisitPublicityCode
Returns PV2-21: "Visit Publicity Code" - creates it if necessary -
getVisitProtectionIndicator
Returns PV2-22: "Visit Protection Indicator" - creates it if necessary -
getPv222_VisitProtectionIndicator
Returns PV2-22: "Visit Protection Indicator" - creates it if necessary -
getClinicOrganizationName
Returns all repetitions of Clinic Organization Name (PV2-23). -
getPv223_ClinicOrganizationName
Returns all repetitions of Clinic Organization Name (PV2-23). -
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
Returns a specific repetition of PV2-23: "Clinic Organization Name" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getPv223_ClinicOrganizationName
Returns a specific repetition of PV2-23: "Clinic Organization Name" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
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
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
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
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
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
Returns PV2-24: "Patient Status Code" - creates it if necessary -
getPv224_PatientStatusCode
Returns PV2-24: "Patient Status Code" - creates it if necessary -
getVisitPriorityCode
Returns PV2-25: "Visit Priority Code" - creates it if necessary -
getPv225_VisitPriorityCode
Returns PV2-25: "Visit Priority Code" - creates it if necessary -
getPreviousTreatmentDate
Returns PV2-26: "Previous Treatment Date" - creates it if necessary -
getPv226_PreviousTreatmentDate
Returns PV2-26: "Previous Treatment Date" - creates it if necessary -
getExpectedDischargeDisposition
Returns PV2-27: "Expected Discharge Disposition" - creates it if necessary -
getPv227_ExpectedDischargeDisposition
Returns PV2-27: "Expected Discharge Disposition" - creates it if necessary -
getSignatureOnFileDate
Returns PV2-28: "Signature on File Date" - creates it if necessary -
getPv228_SignatureOnFileDate
Returns PV2-28: "Signature on File Date" - creates it if necessary -
getFirstSimilarIllnessDate
Returns PV2-29: "First Similar Illness Date" - creates it if necessary -
getPv229_FirstSimilarIllnessDate
Returns PV2-29: "First Similar Illness Date" - creates it if necessary -
getPatientChargeAdjustmentCode
Returns PV2-30: "Patient Charge Adjustment Code" - creates it if necessary -
getPv230_PatientChargeAdjustmentCode
Returns PV2-30: "Patient Charge Adjustment Code" - creates it if necessary -
getRecurringServiceCode
Returns PV2-31: "Recurring Service Code" - creates it if necessary -
getPv231_RecurringServiceCode
Returns PV2-31: "Recurring Service Code" - creates it if necessary -
getBillingMediaCode
Returns PV2-32: "Billing Media Code" - creates it if necessary -
getPv232_BillingMediaCode
Returns PV2-32: "Billing Media Code" - creates it if necessary -
getExpectedSurgeryDateTime
Returns PV2-33: "Expected Surgery Date & Time" - creates it if necessary -
getPv233_ExpectedSurgeryDateTime
Returns PV2-33: "Expected Surgery Date & Time" - creates it if necessary -
getMilitaryPartnershipCode
Returns PV2-34: "Military Partnership Code" - creates it if necessary -
getPv234_MilitaryPartnershipCode
Returns PV2-34: "Military Partnership Code" - creates it if necessary -
getMilitaryNonAvailabiltiyCode
Returns PV2-35: "Military Non-Availabiltiy Code" - creates it if necessary -
getPv235_MilitaryNonAvailabiltiyCode
Returns PV2-35: "Military Non-Availabiltiy Code" - creates it if necessary -
getNewbornBabyIndicator
Returns PV2-36: "Newborn Baby Indicator" - creates it if necessary -
getPv236_NewbornBabyIndicator
Returns PV2-36: "Newborn Baby Indicator" - creates it if necessary -
getBabyDetainedIndicator
Returns PV2-37: "Baby Detained Indicator" - creates it if necessary -
getPv237_BabyDetainedIndicator
Returns PV2-37: "Baby Detained Indicator" - creates it if necessary -
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-