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

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

public class LCC
extends AbstractSegment

Represents an HL7 LCC message segment (Location Charge Code). This segment has the following fields:

See Also:
Serialized Form

Constructor Summary
LCC(Group parent, ModelClassFactory factory)
          Creates a new LCC segment
 
Method Summary
protected  Type createNewTypeWithoutReflection(int field)
          
 CE[] getAccommodationType()
          Returns all repetitions of Accommodation Type (LCC-3).
 CE getAccommodationType(int rep)
          Returns a specific repetition of LCC-3: "Accommodation Type" - creates it if necessary
 int getAccommodationTypeReps()
          Returns a count of the current number of repetitions of Accommodation Type (LCC-3).
 CE[] getChargeCode()
          Returns all repetitions of Charge Code (LCC-4).
 CE getChargeCode(int rep)
          Returns a specific repetition of LCC-4: "Charge Code" - creates it if necessary
 int getChargeCodeReps()
          Returns a count of the current number of repetitions of Charge Code (LCC-4).
 PL getLcc1_PrimaryKeyValueLCC()
          Returns LCC-1: "Primary Key Value - LCC" - creates it if necessary
 CE getLcc2_LocationDepartment()
          Returns LCC-2: "Location Department" - creates it if necessary
 CE getLcc3_AccommodationType(int rep)
          Returns a specific repetition of LCC-3: "Accommodation Type" - creates it if necessary
 int getLcc3_AccommodationTypeReps()
          Returns a count of the current number of repetitions of Accommodation Type (LCC-3).
 CE getLcc4_ChargeCode(int rep)
          Returns a specific repetition of LCC-4: "Charge Code" - creates it if necessary
 int getLcc4_ChargeCodeReps()
          Returns a count of the current number of repetitions of Charge Code (LCC-4).
 CE getLocationDepartment()
          Returns LCC-2: "Location Department" - creates it if necessary
 PL getPrimaryKeyValueLCC()
          Returns LCC-1: "Primary Key Value - LCC" - creates it if necessary
 CE insertAccommodationType(int rep)
          Inserts a repetition of LCC-3: "Accommodation Type" at a specific index
 CE insertChargeCode(int rep)
          Inserts a repetition of LCC-4: "Charge Code" at a specific index
 CE insertLcc3_AccommodationType(int rep)
          Inserts a repetition of LCC-3: "Accommodation Type" at a specific index
 CE insertLcc4_ChargeCode(int rep)
          Inserts a repetition of LCC-4: "Charge Code" at a specific index
 CE removeAccommodationType(int rep)
          Removes a repetition of LCC-3: "Accommodation Type" at a specific index
 CE removeChargeCode(int rep)
          Removes a repetition of LCC-4: "Charge Code" at a specific index
 CE removeLcc3_AccommodationType(int rep)
          Removes a repetition of LCC-3: "Accommodation Type" at a specific index
 CE removeLcc4_ChargeCode(int rep)
          Removes a repetition of LCC-4: "Charge Code" 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

LCC

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

Method Detail

getPrimaryKeyValueLCC

public PL getPrimaryKeyValueLCC()
Returns LCC-1: "Primary Key Value - LCC" - creates it if necessary


getLcc1_PrimaryKeyValueLCC

public PL getLcc1_PrimaryKeyValueLCC()
Returns LCC-1: "Primary Key Value - LCC" - creates it if necessary


getLocationDepartment

public CE getLocationDepartment()
Returns LCC-2: "Location Department" - creates it if necessary


getLcc2_LocationDepartment

public CE getLcc2_LocationDepartment()
Returns LCC-2: "Location Department" - creates it if necessary


getAccommodationType

public CE[] getAccommodationType()
Returns all repetitions of Accommodation Type (LCC-3).


getAccommodationTypeReps

public int getAccommodationTypeReps()
Returns a count of the current number of repetitions of Accommodation Type (LCC-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getAccommodationType

public CE getAccommodationType(int rep)
Returns a specific repetition of LCC-3: "Accommodation Type" - creates it if necessary

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

getLcc3_AccommodationType

public CE getLcc3_AccommodationType(int rep)
Returns a specific repetition of LCC-3: "Accommodation Type" - creates it if necessary

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

getLcc3_AccommodationTypeReps

public int getLcc3_AccommodationTypeReps()
Returns a count of the current number of repetitions of Accommodation Type (LCC-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertAccommodationType

public CE insertAccommodationType(int rep)
                           throws HL7Exception
Inserts a repetition of LCC-3: "Accommodation 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)

insertLcc3_AccommodationType

public CE insertLcc3_AccommodationType(int rep)
                                throws HL7Exception
Inserts a repetition of LCC-3: "Accommodation 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)

removeAccommodationType

public CE removeAccommodationType(int rep)
                           throws HL7Exception
Removes a repetition of LCC-3: "Accommodation 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)

removeLcc3_AccommodationType

public CE removeLcc3_AccommodationType(int rep)
                                throws HL7Exception
Removes a repetition of LCC-3: "Accommodation 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)

getChargeCode

public CE[] getChargeCode()
Returns all repetitions of Charge Code (LCC-4).


getChargeCodeReps

public int getChargeCodeReps()
Returns a count of the current number of repetitions of Charge Code (LCC-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getChargeCode

public CE getChargeCode(int rep)
Returns a specific repetition of LCC-4: "Charge Code" - creates it if necessary

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

getLcc4_ChargeCode

public CE getLcc4_ChargeCode(int rep)
Returns a specific repetition of LCC-4: "Charge Code" - creates it if necessary

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

getLcc4_ChargeCodeReps

public int getLcc4_ChargeCodeReps()
Returns a count of the current number of repetitions of Charge Code (LCC-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertChargeCode

public CE insertChargeCode(int rep)
                    throws HL7Exception
Inserts a repetition of LCC-4: "Charge Code" 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)

insertLcc4_ChargeCode

public CE insertLcc4_ChargeCode(int rep)
                         throws HL7Exception
Inserts a repetition of LCC-4: "Charge Code" 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)

removeChargeCode

public CE removeChargeCode(int rep)
                    throws HL7Exception
Removes a repetition of LCC-4: "Charge Code" 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)

removeLcc4_ChargeCode

public CE removeLcc4_ChargeCode(int rep)
                         throws HL7Exception
Removes a repetition of LCC-4: "Charge Code" 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.