Package ca.uhn.hl7v2.model.v24.group
Class CSU_C09_STUDY_SCHEDULE
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractGroup
ca.uhn.hl7v2.model.v24.group.CSU_C09_STUDY_SCHEDULE
- All Implemented Interfaces:
Group,Structure,Visitable,Serializable
Represents a CSU_C09_STUDY_SCHEDULE 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:
- 1: CSS (Clinical Study Data Schedule Segment) optional
- 2: CSU_C09_STUDY_OBSERVATION (a Group object) repeating
- 3: CSU_C09_STUDY_PHARM (a Group object) repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionCSU_C09_STUDY_SCHEDULE(Group parent, ModelClassFactory factory) Creates a new CSU_C09_STUDY_SCHEDULE group -
Method Summary
Modifier and TypeMethodDescriptiongetCSS()Returns CSS (Clinical Study Data Schedule Segment) - creates it if necessaryReturns the first repetition of STUDY_OBSERVATION (a Group object) - creates it if necessarygetSTUDY_OBSERVATION(int rep) Returns a specific repetition of STUDY_OBSERVATION (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of STUDY_OBSERVATION.intReturns the number of existing repetitions of STUDY_OBSERVATIONReturns the first repetition of STUDY_PHARM (a Group object) - creates it if necessarygetSTUDY_PHARM(int rep) Returns a specific repetition of STUDY_PHARM (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of STUDY_PHARM.intReturns the number of existing repetitions of STUDY_PHARMReturns "2.4"insertSTUDY_OBSERVATION(int rep) Inserts a specific repetition of STUDY_OBSERVATION (a Group object)voidinsertSTUDY_OBSERVATION(CSU_C09_STUDY_OBSERVATION structure, int rep) Inserts a specific repetition of STUDY_OBSERVATION (a Group object)insertSTUDY_PHARM(int rep) Inserts a specific repetition of STUDY_PHARM (a Group object)voidinsertSTUDY_PHARM(CSU_C09_STUDY_PHARM structure, int rep) Inserts a specific repetition of STUDY_PHARM (a Group object)removeSTUDY_OBSERVATION(int rep) Removes a specific repetition of STUDY_OBSERVATION (a Group object)removeSTUDY_PHARM(int rep) Removes a specific repetition of STUDY_PHARM (a Group object)Methods inherited from class ca.uhn.hl7v2.model.AbstractGroup
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, visitNestedStructuresMethods 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
-
CSU_C09_STUDY_SCHEDULE
Creates a new CSU_C09_STUDY_SCHEDULE group
-
-
Method Details
-
getVersion
Returns "2.4" -
getCSS
Returns CSS (Clinical Study Data Schedule Segment) - creates it if necessary -
getSTUDY_OBSERVATION
Returns the first repetition of STUDY_OBSERVATION (a Group object) - creates it if necessary -
getSTUDY_OBSERVATION
Returns a specific repetition of STUDY_OBSERVATION (a Group object) - creates it if necessary- Parameters:
rep- The repetition index (0-indexed, i.e. the first repetition is at index 0)- Throws:
HL7Exception- if the repetition requested is more than one greater than the number of existing repetitions.
-
getSTUDY_OBSERVATIONReps
Returns the number of existing repetitions of STUDY_OBSERVATION -
getSTUDY_OBSERVATIONAll
Returns a non-modifiable List containing all current existing repetitions of STUDY_OBSERVATION.
Note that unlike
getSTUDY_OBSERVATION(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertSTUDY_OBSERVATION
public void insertSTUDY_OBSERVATION(CSU_C09_STUDY_OBSERVATION structure, int rep) throws HL7Exception Inserts a specific repetition of STUDY_OBSERVATION (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertSTUDY_OBSERVATION
Inserts a specific repetition of STUDY_OBSERVATION (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeSTUDY_OBSERVATION
Removes a specific repetition of STUDY_OBSERVATION (a Group object)- Throws:
HL7Exception- See Also:
-
getSTUDY_PHARM
Returns the first repetition of STUDY_PHARM (a Group object) - creates it if necessary -
getSTUDY_PHARM
Returns a specific repetition of STUDY_PHARM (a Group object) - creates it if necessary- Parameters:
rep- The repetition index (0-indexed, i.e. the first repetition is at index 0)- Throws:
HL7Exception- if the repetition requested is more than one greater than the number of existing repetitions.
-
getSTUDY_PHARMReps
Returns the number of existing repetitions of STUDY_PHARM -
getSTUDY_PHARMAll
Returns a non-modifiable List containing all current existing repetitions of STUDY_PHARM.
Note that unlike
getSTUDY_PHARM(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertSTUDY_PHARM
Inserts a specific repetition of STUDY_PHARM (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertSTUDY_PHARM
Inserts a specific repetition of STUDY_PHARM (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeSTUDY_PHARM
Removes a specific repetition of STUDY_PHARM (a Group object)- Throws:
HL7Exception- See Also:
-