ca.uhn.hl7v2.model.v24.segment
Class ROL

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractSegment
      extended by ca.uhn.hl7v2.model.v24.segment.ROL
All Implemented Interfaces:
Segment, Structure, Serializable

public class ROL
extends AbstractSegment

Represents an HL7 ROL message segment (Role). This segment has the following fields:

See Also:
Serialized Form

Constructor Summary
ROL(Group parent, ModelClassFactory factory)
          Creates a new ROL segment
 
Method Summary
protected  Type createNewTypeWithoutReflection(int field)
          
 ID getActionCode()
          Returns ROL-2: "Action Code" - creates it if necessary
 XAD[] getOfficeHomeAddress()
          Returns all repetitions of Office/Home Address (ROL-11).
 XAD getOfficeHomeAddress(int rep)
          Returns a specific repetition of ROL-11: "Office/Home Address" - creates it if necessary
 int getOfficeHomeAddressReps()
          Returns a count of the current number of repetitions of Office/Home Address (ROL-11).
 CE getOrganizationUnitTypeROL()
          Returns ROL-10: "Organization Unit Type - ROL" - creates it if necessary
 XTN[] getPhone()
          Returns all repetitions of Phone (ROL-12).
 XTN getPhone(int rep)
          Returns a specific repetition of ROL-12: "Phone" - creates it if necessary
 int getPhoneReps()
          Returns a count of the current number of repetitions of Phone (ROL-12).
 CE[] getProviderType()
          Returns all repetitions of Provider Type (ROL-9).
 CE getProviderType(int rep)
          Returns a specific repetition of ROL-9: "Provider Type" - creates it if necessary
 int getProviderTypeReps()
          Returns a count of the current number of repetitions of Provider Type (ROL-9).
 EI getRol1_RoleInstanceID()
          Returns ROL-1: "Role Instance ID" - creates it if necessary
 CE getRol10_OrganizationUnitTypeROL()
          Returns ROL-10: "Organization Unit Type - ROL" - creates it if necessary
 XAD getRol11_OfficeHomeAddress(int rep)
          Returns a specific repetition of ROL-11: "Office/Home Address" - creates it if necessary
 int getRol11_OfficeHomeAddressReps()
          Returns a count of the current number of repetitions of Office/Home Address (ROL-11).
 XTN getRol12_Phone(int rep)
          Returns a specific repetition of ROL-12: "Phone" - creates it if necessary
 int getRol12_PhoneReps()
          Returns a count of the current number of repetitions of Phone (ROL-12).
 ID getRol2_ActionCode()
          Returns ROL-2: "Action Code" - creates it if necessary
 CE getRol3_RoleROL()
          Returns ROL-3: "Role-ROL" - creates it if necessary
 XCN getRol4_RolePerson(int rep)
          Returns a specific repetition of ROL-4: "Role Person" - creates it if necessary
 int getRol4_RolePersonReps()
          Returns a count of the current number of repetitions of Role Person (ROL-4).
 TS getRol5_RoleBeginDateTime()
          Returns ROL-5: "Role Begin Date/Time" - creates it if necessary
 TS getRol6_RoleEndDateTime()
          Returns ROL-6: "Role End Date/Time" - creates it if necessary
 CE getRol7_RoleDuration()
          Returns ROL-7: "Role Duration" - creates it if necessary
 CE getRol8_RoleActionReason()
          Returns ROL-8: "Role Action Reason" - creates it if necessary
 CE getRol9_ProviderType(int rep)
          Returns a specific repetition of ROL-9: "Provider Type" - creates it if necessary
 int getRol9_ProviderTypeReps()
          Returns a count of the current number of repetitions of Provider Type (ROL-9).
 CE getRoleActionReason()
          Returns ROL-8: "Role Action Reason" - creates it if necessary
 TS getRoleBeginDateTime()
          Returns ROL-5: "Role Begin Date/Time" - creates it if necessary
 CE getRoleDuration()
          Returns ROL-7: "Role Duration" - creates it if necessary
 TS getRoleEndDateTime()
          Returns ROL-6: "Role End Date/Time" - creates it if necessary
 EI getRoleInstanceID()
          Returns ROL-1: "Role Instance ID" - creates it if necessary
 XCN[] getRolePerson()
          Returns all repetitions of Role Person (ROL-4).
 XCN getRolePerson(int rep)
          Returns a specific repetition of ROL-4: "Role Person" - creates it if necessary
 int getRolePersonReps()
          Returns a count of the current number of repetitions of Role Person (ROL-4).
 CE getRoleROL()
          Returns ROL-3: "Role-ROL" - creates it if necessary
 XAD insertOfficeHomeAddress(int rep)
          Inserts a repetition of ROL-11: "Office/Home Address" at a specific index
 XTN insertPhone(int rep)
          Inserts a repetition of ROL-12: "Phone" at a specific index
 CE insertProviderType(int rep)
          Inserts a repetition of ROL-9: "Provider Type" at a specific index
 XAD insertRol11_OfficeHomeAddress(int rep)
          Inserts a repetition of ROL-11: "Office/Home Address" at a specific index
 XTN insertRol12_Phone(int rep)
          Inserts a repetition of ROL-12: "Phone" at a specific index
 XCN insertRol4_RolePerson(int rep)
          Inserts a repetition of ROL-4: "Role Person" at a specific index
 CE insertRol9_ProviderType(int rep)
          Inserts a repetition of ROL-9: "Provider Type" at a specific index
 XCN insertRolePerson(int rep)
          Inserts a repetition of ROL-4: "Role Person" at a specific index
 XAD removeOfficeHomeAddress(int rep)
          Removes a repetition of ROL-11: "Office/Home Address" at a specific index
 XTN removePhone(int rep)
          Removes a repetition of ROL-12: "Phone" at a specific index
 CE removeProviderType(int rep)
          Removes a repetition of ROL-9: "Provider Type" at a specific index
 XAD removeRol11_OfficeHomeAddress(int rep)
          Removes a repetition of ROL-11: "Office/Home Address" at a specific index
 XTN removeRol12_Phone(int rep)
          Removes a repetition of ROL-12: "Phone" at a specific index
 XCN removeRol4_RolePerson(int rep)
          Removes a repetition of ROL-4: "Role Person" at a specific index
 CE removeRol9_ProviderType(int rep)
          Removes a repetition of ROL-9: "Provider Type" at a specific index
 XCN removeRolePerson(int rep)
          Removes a repetition of ROL-4: "Role Person" at a specific index
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractSegment
add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getMessage, getName, getNames, getParent, insertRepetition, isRequired, main, numFields, parse, removeRepetition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ROL

public ROL(Group parent,
           ModelClassFactory factory)
Creates a new ROL segment

Method Detail

getRoleInstanceID

public EI getRoleInstanceID()
Returns ROL-1: "Role Instance ID" - creates it if necessary


getRol1_RoleInstanceID

public EI getRol1_RoleInstanceID()
Returns ROL-1: "Role Instance ID" - creates it if necessary


getActionCode

public ID getActionCode()
Returns ROL-2: "Action Code" - creates it if necessary


getRol2_ActionCode

public ID getRol2_ActionCode()
Returns ROL-2: "Action Code" - creates it if necessary


getRoleROL

public CE getRoleROL()
Returns ROL-3: "Role-ROL" - creates it if necessary


getRol3_RoleROL

public CE getRol3_RoleROL()
Returns ROL-3: "Role-ROL" - creates it if necessary


getRolePerson

public XCN[] getRolePerson()
Returns all repetitions of Role Person (ROL-4).


getRolePersonReps

public int 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

public XCN getRolePerson(int rep)
Returns a specific repetition of ROL-4: "Role Person" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getRol4_RolePerson

public XCN getRol4_RolePerson(int rep)
Returns a specific repetition of ROL-4: "Role Person" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getRol4_RolePersonReps

public int 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

public XCN insertRolePerson(int rep)
                     throws HL7Exception
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

public XCN insertRol4_RolePerson(int rep)
                          throws HL7Exception
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

public XCN removeRolePerson(int rep)
                     throws HL7Exception
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

public XCN removeRol4_RolePerson(int rep)
                          throws HL7Exception
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

public TS getRoleBeginDateTime()
Returns ROL-5: "Role Begin Date/Time" - creates it if necessary


getRol5_RoleBeginDateTime

public TS getRol5_RoleBeginDateTime()
Returns ROL-5: "Role Begin Date/Time" - creates it if necessary


getRoleEndDateTime

public TS getRoleEndDateTime()
Returns ROL-6: "Role End Date/Time" - creates it if necessary


getRol6_RoleEndDateTime

public TS getRol6_RoleEndDateTime()
Returns ROL-6: "Role End Date/Time" - creates it if necessary


getRoleDuration

public CE getRoleDuration()
Returns ROL-7: "Role Duration" - creates it if necessary


getRol7_RoleDuration

public CE getRol7_RoleDuration()
Returns ROL-7: "Role Duration" - creates it if necessary


getRoleActionReason

public CE getRoleActionReason()
Returns ROL-8: "Role Action Reason" - creates it if necessary


getRol8_RoleActionReason

public CE getRol8_RoleActionReason()
Returns ROL-8: "Role Action Reason" - creates it if necessary


getProviderType

public CE[] getProviderType()
Returns all repetitions of Provider Type (ROL-9).


getProviderTypeReps

public int 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

public CE getProviderType(int rep)
Returns a specific repetition of ROL-9: "Provider Type" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getRol9_ProviderType

public CE getRol9_ProviderType(int rep)
Returns a specific repetition of ROL-9: "Provider Type" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getRol9_ProviderTypeReps

public int 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

public CE insertProviderType(int rep)
                      throws HL7Exception
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

public CE insertRol9_ProviderType(int rep)
                           throws HL7Exception
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

public CE removeProviderType(int rep)
                      throws HL7Exception
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

public CE removeRol9_ProviderType(int rep)
                           throws HL7Exception
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)

getOrganizationUnitTypeROL

public CE getOrganizationUnitTypeROL()
Returns ROL-10: "Organization Unit Type - ROL" - creates it if necessary


getRol10_OrganizationUnitTypeROL

public CE getRol10_OrganizationUnitTypeROL()
Returns ROL-10: "Organization Unit Type - ROL" - creates it if necessary


getOfficeHomeAddress

public XAD[] getOfficeHomeAddress()
Returns all repetitions of Office/Home Address (ROL-11).


getOfficeHomeAddressReps

public int getOfficeHomeAddressReps()
Returns a count of the current number of repetitions of Office/Home Address (ROL-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getOfficeHomeAddress

public XAD getOfficeHomeAddress(int rep)
Returns a specific repetition of ROL-11: "Office/Home Address" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getRol11_OfficeHomeAddress

public XAD getRol11_OfficeHomeAddress(int rep)
Returns a specific repetition of ROL-11: "Office/Home Address" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getRol11_OfficeHomeAddressReps

public int getRol11_OfficeHomeAddressReps()
Returns a count of the current number of repetitions of Office/Home Address (ROL-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertOfficeHomeAddress

public XAD insertOfficeHomeAddress(int rep)
                            throws HL7Exception
Inserts a repetition of ROL-11: "Office/Home Address" 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_OfficeHomeAddress

public XAD insertRol11_OfficeHomeAddress(int rep)
                                  throws HL7Exception
Inserts a repetition of ROL-11: "Office/Home Address" 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)

removeOfficeHomeAddress

public XAD removeOfficeHomeAddress(int rep)
                            throws HL7Exception
Removes a repetition of ROL-11: "Office/Home Address" 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_OfficeHomeAddress

public XAD removeRol11_OfficeHomeAddress(int rep)
                                  throws HL7Exception
Removes a repetition of ROL-11: "Office/Home Address" 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

public XTN[] getPhone()
Returns all repetitions of Phone (ROL-12).


getPhoneReps

public int 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

public XTN getPhone(int rep)
Returns a specific repetition of ROL-12: "Phone" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getRol12_Phone

public XTN getRol12_Phone(int rep)
Returns a specific repetition of ROL-12: "Phone" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getRol12_PhoneReps

public int 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

public XTN insertPhone(int rep)
                throws HL7Exception
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

public XTN insertRol12_Phone(int rep)
                      throws HL7Exception
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

public XTN removePhone(int rep)
                throws HL7Exception
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

public XTN removeRol12_Phone(int rep)
                      throws HL7Exception
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

protected Type createNewTypeWithoutReflection(int field)

Overrides:
createNewTypeWithoutReflection in class AbstractSegment


Copyright © 2001-2011 University Health Network. All Rights Reserved.