public class OUL_R21 extends AbstractMessage
Represents a OUL_R21 message structure (see chapter 7). This structure contains the following elements:
log| Constructor and Description |
|---|
OUL_R21()
Creates a new OUL_R21 message with DefaultModelClassFactory.
|
OUL_R21(ModelClassFactory factory)
Creates a new OUL_R21 message with custom ModelClassFactory.
|
| Modifier and Type | Method and Description |
|---|---|
DSC |
getDSC()
Returns
DSC (Continuation Pointer) - creates it if necessary
|
MSH |
getMSH()
Returns
MSH (Message Header) - creates it if necessary
|
NTE |
getNTE()
Returns
NTE (Notes and Comments) - creates it if necessary
|
OUL_R21_ORDER_OBSERVATION |
getORDER_OBSERVATION()
Returns
the first repetition of
ORDER_OBSERVATION (a Group object) - creates it if necessary
|
OUL_R21_ORDER_OBSERVATION |
getORDER_OBSERVATION(int rep)
Returns a specific repetition of
ORDER_OBSERVATION (a Group object) - creates it if necessary
|
List<OUL_R21_ORDER_OBSERVATION> |
getORDER_OBSERVATIONAll()
Returns a non-modifiable List containing all current existing repetitions of ORDER_OBSERVATION.
|
int |
getORDER_OBSERVATIONReps()
Returns the number of existing repetitions of ORDER_OBSERVATION
|
OUL_R21_PATIENT |
getPATIENT()
Returns
PATIENT (a Group object) - creates it if necessary
|
String |
getVersion()
Returns "2.4"
|
OUL_R21_VISIT |
getVISIT()
Returns
VISIT (a Group object) - creates it if necessary
|
OUL_R21_ORDER_OBSERVATION |
insertORDER_OBSERVATION(int rep)
Inserts a specific repetition of ORDER_OBSERVATION (a Group object)
|
void |
insertORDER_OBSERVATION(OUL_R21_ORDER_OBSERVATION structure,
int rep)
Inserts a specific repetition of ORDER_OBSERVATION (a Group object)
|
OUL_R21_ORDER_OBSERVATION |
removeORDER_OBSERVATION(int rep)
Removes a specific repetition of ORDER_OBSERVATION (a Group object)
|
accept, encode, fillResponseHeader, generateACK, generateACK, generateACK, getEncodingCharactersValue, getFieldSeparatorValue, getMessage, getParent, getParser, getValidationContext, initQuickstart, parse, printStructure, printStructure, setParser, setValidationContext, toStringadd, 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, visitNestedStructuresclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddNonstandardSegment, addNonstandardSegment, get, get, getAll, getClass, getNames, isChoiceElement, isGroup, isRepeating, isRequiredisEmpty, provideLocationpublic OUL_R21()
public OUL_R21(ModelClassFactory factory)
public String getVersion()
getVersion in interface MessagegetVersion in class AbstractMessagepublic OUL_R21_PATIENT getPATIENT()
Returns PATIENT (a Group object) - creates it if necessary
public OUL_R21_VISIT getVISIT()
Returns VISIT (a Group object) - creates it if necessary
public OUL_R21_ORDER_OBSERVATION getORDER_OBSERVATION()
Returns the first repetition of ORDER_OBSERVATION (a Group object) - creates it if necessary
public OUL_R21_ORDER_OBSERVATION getORDER_OBSERVATION(int rep)
Returns a specific repetition of ORDER_OBSERVATION (a Group object) - creates it if necessary
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 getORDER_OBSERVATIONReps()
Returns the number of existing repetitions of ORDER_OBSERVATION
public List<OUL_R21_ORDER_OBSERVATION> getORDER_OBSERVATIONAll() throws HL7Exception
Returns a non-modifiable List containing all current existing repetitions of ORDER_OBSERVATION.
Note that unlike getORDER_OBSERVATION(), this method will not create any reps
if none are already present, so an empty list may be returned.
HL7Exceptionpublic void insertORDER_OBSERVATION(OUL_R21_ORDER_OBSERVATION structure, int rep) throws HL7Exception
Inserts a specific repetition of ORDER_OBSERVATION (a Group object)
HL7ExceptionAbstractGroup#insertRepetition(Structure, int)public OUL_R21_ORDER_OBSERVATION insertORDER_OBSERVATION(int rep) throws HL7Exception
Inserts a specific repetition of ORDER_OBSERVATION (a Group object)
HL7ExceptionAbstractGroup#insertRepetition(Structure, int)public OUL_R21_ORDER_OBSERVATION removeORDER_OBSERVATION(int rep) throws HL7Exception
Removes a specific repetition of ORDER_OBSERVATION (a Group object)
HL7ExceptionAbstractGroup.removeRepetition(String, int)Copyright © 2001-2014 University Health Network. All Rights Reserved.