Package ca.uhn.hl7v2.model.v251.segment
Class ROL
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v251.segment.ROL
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 ROL message segment (Role). This segment has the following fields:
- ROL-1: Role Instance ID (EI) optional
- ROL-2: Action Code (ID)
- ROL-3: Role-ROL (CE)
- ROL-4: Role Person (XCN) repeating
- ROL-5: Role Begin Date/Time (TS) optional
- ROL-6: Role End Date/Time (TS) optional
- ROL-7: Role Duration (CE) optional
- ROL-8: Role Action Reason (CE) optional
- ROL-9: Provider Type (CE) optional repeating
- ROL-10: Organization Unit Type (CE) optional
- ROL-11: Office/Home Address/Birthplace (XAD) optional repeating
- ROL-12: Phone (XTN) optional 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 ROL-2: "Action Code" - creates it if necessaryXAD[]Returns all repetitions of Office/Home Address/Birthplace (ROL-11).getOfficeHomeAddressBirthplace(int rep) Returns a specific repetition of ROL-11: "Office/Home Address/Birthplace" - creates it if necessaryintReturns a count of the current number of repetitions of Office/Home Address/Birthplace (ROL-11).Returns ROL-10: "Organization Unit Type" - creates it if necessaryXTN[]getPhone()Returns all repetitions of Phone (ROL-12).getPhone(int rep) Returns a specific repetition of ROL-12: "Phone" - creates it if necessaryintReturns a count of the current number of repetitions of Phone (ROL-12).CE[]Returns all repetitions of Provider Type (ROL-9).getProviderType(int rep) Returns a specific repetition of ROL-9: "Provider Type" - creates it if necessaryintReturns a count of the current number of repetitions of Provider Type (ROL-9).Returns ROL-1: "Role Instance ID" - creates it if necessaryReturns ROL-10: "Organization Unit Type" - creates it if necessaryXAD[]Returns all repetitions of Office/Home Address/Birthplace (ROL-11).getRol11_OfficeHomeAddressBirthplace(int rep) Returns a specific repetition of ROL-11: "Office/Home Address/Birthplace" - creates it if necessaryintReturns a count of the current number of repetitions of Office/Home Address/Birthplace (ROL-11).XTN[]Returns all repetitions of Phone (ROL-12).getRol12_Phone(int rep) Returns a specific repetition of ROL-12: "Phone" - creates it if necessaryintReturns a count of the current number of repetitions of Phone (ROL-12).Returns ROL-2: "Action Code" - creates it if necessaryReturns ROL-3: "Role-ROL" - creates it if necessaryXCN[]Returns all repetitions of Role Person (ROL-4).getRol4_RolePerson(int rep) Returns a specific repetition of ROL-4: "Role Person" - creates it if necessaryintReturns a count of the current number of repetitions of Role Person (ROL-4).Returns ROL-5: "Role Begin Date/Time" - creates it if necessaryReturns ROL-6: "Role End Date/Time" - creates it if necessaryReturns ROL-7: "Role Duration" - creates it if necessaryReturns ROL-8: "Role Action Reason" - creates it if necessaryCE[]Returns all repetitions of Provider Type (ROL-9).getRol9_ProviderType(int rep) Returns a specific repetition of ROL-9: "Provider Type" - creates it if necessaryintReturns a count of the current number of repetitions of Provider Type (ROL-9).Returns ROL-8: "Role Action Reason" - creates it if necessaryReturns ROL-5: "Role Begin Date/Time" - creates it if necessaryReturns ROL-7: "Role Duration" - creates it if necessaryReturns ROL-6: "Role End Date/Time" - creates it if necessaryReturns ROL-1: "Role Instance ID" - creates it if necessaryXCN[]Returns all repetitions of Role Person (ROL-4).getRolePerson(int rep) Returns a specific repetition of ROL-4: "Role Person" - creates it if necessaryintReturns a count of the current number of repetitions of Role Person (ROL-4).Returns ROL-3: "Role-ROL" - creates it if necessaryinsertOfficeHomeAddressBirthplace(int rep) Inserts a repetition of ROL-11: "Office/Home Address/Birthplace" at a specific indexinsertPhone(int rep) Inserts a repetition of ROL-12: "Phone" at a specific indexinsertProviderType(int rep) Inserts a repetition of ROL-9: "Provider Type" at a specific indexInserts a repetition of ROL-11: "Office/Home Address/Birthplace" at a specific indexinsertRol12_Phone(int rep) Inserts a repetition of ROL-12: "Phone" at a specific indexinsertRol4_RolePerson(int rep) Inserts a repetition of ROL-4: "Role Person" at a specific indexinsertRol9_ProviderType(int rep) Inserts a repetition of ROL-9: "Provider Type" at a specific indexinsertRolePerson(int rep) Inserts a repetition of ROL-4: "Role Person" at a specific indexremoveOfficeHomeAddressBirthplace(int rep) Removes a repetition of ROL-11: "Office/Home Address/Birthplace" at a specific indexremovePhone(int rep) Removes a repetition of ROL-12: "Phone" at a specific indexremoveProviderType(int rep) Removes a repetition of ROL-9: "Provider Type" at a specific indexRemoves a repetition of ROL-11: "Office/Home Address/Birthplace" at a specific indexremoveRol12_Phone(int rep) Removes a repetition of ROL-12: "Phone" at a specific indexremoveRol4_RolePerson(int rep) Removes a repetition of ROL-4: "Role Person" at a specific indexremoveRol9_ProviderType(int rep) Removes a repetition of ROL-9: "Provider Type" at a specific indexremoveRolePerson(int rep) Removes a repetition of ROL-4: "Role Person" 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
-
ROL
Creates a new ROL segment
-
-
Method Details
-
getRoleInstanceID
Returns ROL-1: "Role Instance ID" - creates it if necessary -
getRol1_RoleInstanceID
Returns ROL-1: "Role Instance ID" - creates it if necessary -
getActionCode
Returns ROL-2: "Action Code" - creates it if necessary -
getRol2_ActionCode
Returns ROL-2: "Action Code" - creates it if necessary -
getRoleROL
Returns ROL-3: "Role-ROL" - creates it if necessary -
getRol3_RoleROL
Returns ROL-3: "Role-ROL" - creates it if necessary -
getRolePerson
Returns all repetitions of Role Person (ROL-4). -
getRol4_RolePerson
Returns all repetitions of Role Person (ROL-4). -
getRolePersonReps
Returns a count of the current number of repetitions of Role Person (ROL-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getRolePerson
Returns a specific repetition of ROL-4: "Role Person" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getRol4_RolePerson
Returns a specific repetition of ROL-4: "Role Person" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getRol4_RolePersonReps
Returns a count of the current number of repetitions of Role Person (ROL-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertRolePerson
Inserts a repetition of ROL-4: "Role Person" 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)
-
insertRol4_RolePerson
Inserts a repetition of ROL-4: "Role Person" 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)
-
removeRolePerson
Removes a repetition of ROL-4: "Role Person" 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)
-
removeRol4_RolePerson
Removes a repetition of ROL-4: "Role Person" 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)
-
getRoleBeginDateTime
Returns ROL-5: "Role Begin Date/Time" - creates it if necessary -
getRol5_RoleBeginDateTime
Returns ROL-5: "Role Begin Date/Time" - creates it if necessary -
getRoleEndDateTime
Returns ROL-6: "Role End Date/Time" - creates it if necessary -
getRol6_RoleEndDateTime
Returns ROL-6: "Role End Date/Time" - creates it if necessary -
getRoleDuration
Returns ROL-7: "Role Duration" - creates it if necessary -
getRol7_RoleDuration
Returns ROL-7: "Role Duration" - creates it if necessary -
getRoleActionReason
Returns ROL-8: "Role Action Reason" - creates it if necessary -
getRol8_RoleActionReason
Returns ROL-8: "Role Action Reason" - creates it if necessary -
getProviderType
Returns all repetitions of Provider Type (ROL-9). -
getRol9_ProviderType
Returns all repetitions of Provider Type (ROL-9). -
getProviderTypeReps
Returns a count of the current number of repetitions of Provider Type (ROL-9). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getProviderType
Returns a specific repetition of ROL-9: "Provider Type" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getRol9_ProviderType
Returns a specific repetition of ROL-9: "Provider Type" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getRol9_ProviderTypeReps
Returns a count of the current number of repetitions of Provider Type (ROL-9). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertProviderType
Inserts a repetition of ROL-9: "Provider Type" 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)
-
insertRol9_ProviderType
Inserts a repetition of ROL-9: "Provider Type" 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)
-
removeProviderType
Removes a repetition of ROL-9: "Provider Type" 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)
-
removeRol9_ProviderType
Removes a repetition of ROL-9: "Provider Type" 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)
-
getOrganizationUnitType
Returns ROL-10: "Organization Unit Type" - creates it if necessary -
getRol10_OrganizationUnitType
Returns ROL-10: "Organization Unit Type" - creates it if necessary -
getOfficeHomeAddressBirthplace
Returns all repetitions of Office/Home Address/Birthplace (ROL-11). -
getRol11_OfficeHomeAddressBirthplace
Returns all repetitions of Office/Home Address/Birthplace (ROL-11). -
getOfficeHomeAddressBirthplaceReps
Returns a count of the current number of repetitions of Office/Home Address/Birthplace (ROL-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getOfficeHomeAddressBirthplace
Returns a specific repetition of ROL-11: "Office/Home Address/Birthplace" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getRol11_OfficeHomeAddressBirthplace
Returns a specific repetition of ROL-11: "Office/Home Address/Birthplace" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getRol11_OfficeHomeAddressBirthplaceReps
Returns a count of the current number of repetitions of Office/Home Address/Birthplace (ROL-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertOfficeHomeAddressBirthplace
Inserts a repetition of ROL-11: "Office/Home Address/Birthplace" 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)
-
insertRol11_OfficeHomeAddressBirthplace
Inserts a repetition of ROL-11: "Office/Home Address/Birthplace" 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)
-
removeOfficeHomeAddressBirthplace
Removes a repetition of ROL-11: "Office/Home Address/Birthplace" 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)
-
removeRol11_OfficeHomeAddressBirthplace
Removes a repetition of ROL-11: "Office/Home Address/Birthplace" 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)
-
getPhone
Returns all repetitions of Phone (ROL-12). -
getRol12_Phone
Returns all repetitions of Phone (ROL-12). -
getPhoneReps
Returns a count of the current number of repetitions of Phone (ROL-12). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getPhone
Returns a specific repetition of ROL-12: "Phone" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getRol12_Phone
Returns a specific repetition of ROL-12: "Phone" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getRol12_PhoneReps
Returns a count of the current number of repetitions of Phone (ROL-12). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertPhone
Inserts a repetition of ROL-12: "Phone" 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)
-
insertRol12_Phone
Inserts a repetition of ROL-12: "Phone" 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)
-
removePhone
Removes a repetition of ROL-12: "Phone" 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)
-
removeRol12_Phone
Removes a repetition of ROL-12: "Phone" 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
-