public class EHC_E20_PAT_INFO extends AbstractGroup
Represents a EHC_E20_PAT_INFO group structure (a Group object). A Group is an ordered collection of message segments that can repeat together or be optionally in/excluded together. This Group contains the following elements:
Note that this structure has "choice" elements. This means that one of the structures above marked as "choice" must be present, but no more than one.
log
Constructor and Description |
---|
EHC_E20_PAT_INFO(Group parent,
ModelClassFactory factory)
Creates a new EHC_E20_PAT_INFO group
|
Modifier and Type | Method and Description |
---|---|
ACC |
getACC()
Returns
the first repetition of
ACC (Accident) - creates it if necessary
|
ACC |
getACC(int rep)
Returns a specific repetition of
ACC (Accident) - creates it if necessary
|
List<ACC> |
getACCAll()
Returns a non-modifiable List containing all current existing repetitions of ACC.
|
int |
getACCReps()
Returns the number of existing repetitions of ACC
|
EHC_E20_DIAGNOSIS |
getDIAGNOSIS()
Returns
the first repetition of
DIAGNOSIS (a Group object) - creates it if necessary
|
EHC_E20_DIAGNOSIS |
getDIAGNOSIS(int rep)
Returns a specific repetition of
DIAGNOSIS (a Group object) - creates it if necessary
|
List<EHC_E20_DIAGNOSIS> |
getDIAGNOSISAll()
Returns a non-modifiable List containing all current existing repetitions of DIAGNOSIS.
|
int |
getDIAGNOSISReps()
Returns the number of existing repetitions of DIAGNOSIS
|
EHC_E20_INSURANCE |
getINSURANCE()
Returns
the first repetition of
INSURANCE (a Group object) - creates it if necessary
|
EHC_E20_INSURANCE |
getINSURANCE(int rep)
Returns a specific repetition of
INSURANCE (a Group object) - creates it if necessary
|
List<EHC_E20_INSURANCE> |
getINSURANCEAll()
Returns a non-modifiable List containing all current existing repetitions of INSURANCE.
|
int |
getINSURANCEReps()
Returns the number of existing repetitions of INSURANCE
|
OBX |
getOBX()
Returns
the first repetition of
OBX (Observation/Result) - creates it if necessary
|
OBX |
getOBX(int rep)
Returns a specific repetition of
OBX (Observation/Result) - creates it if necessary
|
List<OBX> |
getOBXAll()
Returns a non-modifiable List containing all current existing repetitions of OBX.
|
int |
getOBXReps()
Returns the number of existing repetitions of OBX
|
PID |
getPID()
Returns
PID (Patient Identification) - creates it if necessary
|
String |
getVersion()
Returns "2.7"
|
void |
insertACC(ACC structure,
int rep)
Inserts a specific repetition of ACC (Accident)
|
ACC |
insertACC(int rep)
Inserts a specific repetition of ACC (Accident)
|
void |
insertDIAGNOSIS(EHC_E20_DIAGNOSIS structure,
int rep)
Inserts a specific repetition of DIAGNOSIS (a Group object)
|
EHC_E20_DIAGNOSIS |
insertDIAGNOSIS(int rep)
Inserts a specific repetition of DIAGNOSIS (a Group object)
|
void |
insertINSURANCE(EHC_E20_INSURANCE structure,
int rep)
Inserts a specific repetition of INSURANCE (a Group object)
|
EHC_E20_INSURANCE |
insertINSURANCE(int rep)
Inserts a specific repetition of INSURANCE (a Group object)
|
OBX |
insertOBX(int rep)
Inserts a specific repetition of OBX (Observation/Result)
|
void |
insertOBX(OBX structure,
int rep)
Inserts a specific repetition of OBX (Observation/Result)
|
ACC |
removeACC(int rep)
Removes a specific repetition of ACC (Accident)
|
EHC_E20_DIAGNOSIS |
removeDIAGNOSIS(int rep)
Removes a specific repetition of DIAGNOSIS (a Group object)
|
EHC_E20_INSURANCE |
removeINSURANCE(int rep)
Removes a specific repetition of INSURANCE (a Group object)
|
OBX |
removeOBX(int rep)
Removes a specific repetition of OBX (Observation/Result)
|
accept, add, add, add, addNonstandardSegment, addNonstandardSegment, clear, currentReps, get, get, getAll, getAllAsList, getClass, getFieldNumForName, getModelClassFactory, getName, getNames, getNonStandardNames, getReps, getTyped, getTyped, insert, insert, insertRepetition, insertRepetition, isChoiceElement, isEmpty, isGroup, isRepeating, isRequired, provideLocation, removeRepetition, tryToInstantiateStructure, visitNestedStructures
getMessage, getParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, getParent
public EHC_E20_PAT_INFO(Group parent, ModelClassFactory factory)
public String getVersion()
public ACC getACC(int rep)
rep
- The repetition index (0-indexed, i.e. the first repetition is at index 0)HL7Exception
- if the repetition requested is more than one
greater than the number of existing repetitions.public int getACCReps()
public List<ACC> getACCAll() throws HL7Exception
Returns a non-modifiable List containing all current existing repetitions of ACC.
Note that unlike getACC()
, this method will not create any reps
if none are already present, so an empty list may be returned.
HL7Exception
public void insertACC(ACC structure, int rep) throws HL7Exception
HL7Exception
AbstractGroup#insertRepetition(Structure, int)
public ACC insertACC(int rep) throws HL7Exception
HL7Exception
AbstractGroup#insertRepetition(Structure, int)
public ACC removeACC(int rep) throws HL7Exception
HL7Exception
AbstractGroup.removeRepetition(String, int)
public EHC_E20_INSURANCE getINSURANCE()
public EHC_E20_INSURANCE getINSURANCE(int rep)
rep
- The repetition index (0-indexed, i.e. the first repetition is at index 0)HL7Exception
- if the repetition requested is more than one
greater than the number of existing repetitions.public int getINSURANCEReps()
public List<EHC_E20_INSURANCE> getINSURANCEAll() throws HL7Exception
Returns a non-modifiable List containing all current existing repetitions of INSURANCE.
Note that unlike getINSURANCE()
, this method will not create any reps
if none are already present, so an empty list may be returned.
HL7Exception
public void insertINSURANCE(EHC_E20_INSURANCE structure, int rep) throws HL7Exception
HL7Exception
AbstractGroup#insertRepetition(Structure, int)
public EHC_E20_INSURANCE insertINSURANCE(int rep) throws HL7Exception
HL7Exception
AbstractGroup#insertRepetition(Structure, int)
public EHC_E20_INSURANCE removeINSURANCE(int rep) throws HL7Exception
HL7Exception
AbstractGroup.removeRepetition(String, int)
public EHC_E20_DIAGNOSIS getDIAGNOSIS()
public EHC_E20_DIAGNOSIS getDIAGNOSIS(int rep)
rep
- The repetition index (0-indexed, i.e. the first repetition is at index 0)HL7Exception
- if the repetition requested is more than one
greater than the number of existing repetitions.public int getDIAGNOSISReps()
public List<EHC_E20_DIAGNOSIS> getDIAGNOSISAll() throws HL7Exception
Returns a non-modifiable List containing all current existing repetitions of DIAGNOSIS.
Note that unlike getDIAGNOSIS()
, this method will not create any reps
if none are already present, so an empty list may be returned.
HL7Exception
public void insertDIAGNOSIS(EHC_E20_DIAGNOSIS structure, int rep) throws HL7Exception
HL7Exception
AbstractGroup#insertRepetition(Structure, int)
public EHC_E20_DIAGNOSIS insertDIAGNOSIS(int rep) throws HL7Exception
HL7Exception
AbstractGroup#insertRepetition(Structure, int)
public EHC_E20_DIAGNOSIS removeDIAGNOSIS(int rep) throws HL7Exception
HL7Exception
AbstractGroup.removeRepetition(String, int)
public OBX getOBX()
public OBX getOBX(int rep)
rep
- The repetition index (0-indexed, i.e. the first repetition is at index 0)HL7Exception
- if the repetition requested is more than one
greater than the number of existing repetitions.public int getOBXReps()
public List<OBX> getOBXAll() throws HL7Exception
Returns a non-modifiable List containing all current existing repetitions of OBX.
Note that unlike getOBX()
, this method will not create any reps
if none are already present, so an empty list may be returned.
HL7Exception
public void insertOBX(OBX structure, int rep) throws HL7Exception
HL7Exception
AbstractGroup#insertRepetition(Structure, int)
public OBX insertOBX(int rep) throws HL7Exception
HL7Exception
AbstractGroup#insertRepetition(Structure, int)
public OBX removeOBX(int rep) throws HL7Exception
HL7Exception
AbstractGroup.removeRepetition(String, int)
Copyright © 2001–2017 University Health Network. All rights reserved.