Package ca.uhn.hl7v2.model.v24.segment
Class CM2
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v24.segment.CM2
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 CM2 message segment (Clinical Study Schedule Master). This segment has the following fields:
- CM2-1: Set ID- CM2 (SI) optional
- CM2-2: Scheduled Time Point (CE)
- CM2-3: Description of Time Point (ST) optional
- CM2-4: Events Scheduled This Time Point (CE) repeating
- 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 CM2-1: "Set ID- CM2" - creates it if necessaryReturns CM2-2: "Scheduled Time Point" - creates it if necessaryReturns CM2-3: "Description of Time Point" - creates it if necessaryCE[]Returns all repetitions of Events Scheduled This Time Point (CM2-4).getCm24_EventsScheduledThisTimePoint(int rep) Returns a specific repetition of CM2-4: "Events Scheduled This Time Point" - creates it if necessaryintReturns a count of the current number of repetitions of Events Scheduled This Time Point (CM2-4).Returns CM2-3: "Description of Time Point" - creates it if necessaryCE[]Returns all repetitions of Events Scheduled This Time Point (CM2-4).getEventsScheduledThisTimePoint(int rep) Returns a specific repetition of CM2-4: "Events Scheduled This Time Point" - creates it if necessaryintReturns a count of the current number of repetitions of Events Scheduled This Time Point (CM2-4).Returns CM2-2: "Scheduled Time Point" - creates it if necessaryReturns CM2-1: "Set ID- CM2" - creates it if necessaryInserts a repetition of CM2-4: "Events Scheduled This Time Point" at a specific indexinsertEventsScheduledThisTimePoint(int rep) Inserts a repetition of CM2-4: "Events Scheduled This Time Point" at a specific indexRemoves a repetition of CM2-4: "Events Scheduled This Time Point" at a specific indexremoveEventsScheduledThisTimePoint(int rep) Removes a repetition of CM2-4: "Events Scheduled This Time Point" 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
-
CM2
Creates a new CM2 segment
-
-
Method Details
-
getSetIDCM2
Returns CM2-1: "Set ID- CM2" - creates it if necessary -
getCm21_SetIDCM2
Returns CM2-1: "Set ID- CM2" - creates it if necessary -
getScheduledTimePoint
Returns CM2-2: "Scheduled Time Point" - creates it if necessary -
getCm22_ScheduledTimePoint
Returns CM2-2: "Scheduled Time Point" - creates it if necessary -
getDescriptionOfTimePoint
Returns CM2-3: "Description of Time Point" - creates it if necessary -
getCm23_DescriptionOfTimePoint
Returns CM2-3: "Description of Time Point" - creates it if necessary -
getEventsScheduledThisTimePoint
Returns all repetitions of Events Scheduled This Time Point (CM2-4). -
getCm24_EventsScheduledThisTimePoint
Returns all repetitions of Events Scheduled This Time Point (CM2-4). -
getEventsScheduledThisTimePointReps
Returns a count of the current number of repetitions of Events Scheduled This Time Point (CM2-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getEventsScheduledThisTimePoint
Returns a specific repetition of CM2-4: "Events Scheduled This Time Point" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCm24_EventsScheduledThisTimePoint
Returns a specific repetition of CM2-4: "Events Scheduled This Time Point" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCm24_EventsScheduledThisTimePointReps
Returns a count of the current number of repetitions of Events Scheduled This Time Point (CM2-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertEventsScheduledThisTimePoint
Inserts a repetition of CM2-4: "Events Scheduled This Time Point" 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)
-
insertCm24_EventsScheduledThisTimePoint
Inserts a repetition of CM2-4: "Events Scheduled This Time Point" 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)
-
removeEventsScheduledThisTimePoint
Removes a repetition of CM2-4: "Events Scheduled This Time Point" 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)
-
removeCm24_EventsScheduledThisTimePoint
Removes a repetition of CM2-4: "Events Scheduled This Time Point" 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)
-
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-