public class PV2 extends AbstractSegment
Represents an HL7 PV2 message segment (PATIENT VISIT - additional information). This segment has the following fields:
log
Constructor and Description |
---|
PV2(Group parent,
ModelClassFactory factory)
Creates a new PV2 segment
|
Modifier and Type | Method and Description |
---|---|
protected Type |
createNewTypeWithoutReflection(int field) |
CE |
getAccommodationCode()
Returns
PV2-2: "Accommodation Code" - creates it if necessary
|
CE |
getAdmitReason()
Returns
PV2-3: "Admit Reason" - creates it if necessary
|
DT |
getExpectedAdmitDate()
Returns
PV2-8: "Expected Admit Date" - creates it if necessary
|
DT |
getExpectedDischargeDate()
Returns
PV2-9: "Expected Discharge 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).
|
CM_INTERNAL_LOCATION |
getPriorPendingLocation()
Returns
PV2-1: "Prior Pending Location" - creates it if necessary
|
CM_INTERNAL_LOCATION |
getPv21_PriorPendingLocation()
Returns
PV2-1: "Prior Pending Location" - creates it if necessary
|
CE |
getPv22_AccommodationCode()
Returns
PV2-2: "Accommodation Code" - creates it if necessary
|
CE |
getPv23_AdmitReason()
Returns
PV2-3: "Admit Reason" - creates it if necessary
|
CE |
getPv24_TransferReason()
Returns
PV2-4: "Transfer Reason" - creates it if necessary
|
ST[] |
getPv25_PatientValuables()
Returns all repetitions of Patient Valuables (PV2-5).
|
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
|
ID |
getPv27_VisitUserCode()
Returns
PV2-7: "Visit User Code" - creates it if necessary
|
DT |
getPv28_ExpectedAdmitDate()
Returns
PV2-8: "Expected Admit Date" - creates it if necessary
|
DT |
getPv29_ExpectedDischargeDate()
Returns
PV2-9: "Expected Discharge Date" - creates it if necessary
|
CE |
getTransferReason()
Returns
PV2-4: "Transfer Reason" - creates it if necessary
|
ID |
getVisitUserCode()
Returns
PV2-7: "Visit User Code" - creates it if necessary
|
ST |
insertPatientValuables(int rep)
Inserts a repetition of
PV2-5: "Patient Valuables" at a specific index
|
ST |
insertPv25_PatientValuables(int rep)
Inserts a repetition of
PV2-5: "Patient Valuables" at a specific index
|
ST |
removePatientValuables(int rep)
Removes a repetition of
PV2-5: "Patient Valuables" at a specific index
|
ST |
removePv25_PatientValuables(int rep)
Removes a repetition of
PV2-5: "Patient Valuables" at a specific index
|
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetition
getMessage, getParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, getParent
public PV2(Group parent, ModelClassFactory factory)
public CM_INTERNAL_LOCATION getPriorPendingLocation()
public CM_INTERNAL_LOCATION getPv21_PriorPendingLocation()
public CE getAccommodationCode()
public CE getPv22_AccommodationCode()
public CE getAdmitReason()
public CE getPv23_AdmitReason()
public CE getTransferReason()
public CE getPv24_TransferReason()
public ST[] getPatientValuables()
public ST[] getPv25_PatientValuables()
public int getPatientValuablesReps()
public ST getPatientValuables(int rep)
rep
- The repetition index (0-indexed)public ST getPv25_PatientValuables(int rep)
rep
- The repetition index (0-indexed)public int getPv25_PatientValuablesReps()
public ST insertPatientValuables(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public ST insertPv25_PatientValuables(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public ST removePatientValuables(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public ST removePv25_PatientValuables(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public ST getPatientValuablesLocation()
public ST getPv26_PatientValuablesLocation()
public ID getVisitUserCode()
public ID getPv27_VisitUserCode()
public DT getExpectedAdmitDate()
public DT getPv28_ExpectedAdmitDate()
public DT getExpectedDischargeDate()
public DT getPv29_ExpectedDischargeDate()
protected Type createNewTypeWithoutReflection(int field)
createNewTypeWithoutReflection
in class AbstractSegment
Copyright © 2001–2017 University Health Network. All rights reserved.