Class LCC

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class LCC extends AbstractSegment

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

  • LCC-1: Primary Key Value - LCC (PL)
  • LCC-2: Location Department (CE)
  • LCC-3: Accommodation Type (CE) optional repeating
  • LCC-4: Charge Code (CE) repeating
See Also:
  • Constructor Details

  • Method Details

    • getPrimaryKeyValueLCC

      Returns LCC-1: "Primary Key Value - LCC" - creates it if necessary
    • getLcc1_PrimaryKeyValueLCC

      Returns LCC-1: "Primary Key Value - LCC" - creates it if necessary
    • getLocationDepartment

      Returns LCC-2: "Location Department" - creates it if necessary
    • getLcc2_LocationDepartment

      Returns LCC-2: "Location Department" - creates it if necessary
    • getAccommodationType

      Returns all repetitions of Accommodation Type (LCC-3).
    • getLcc3_AccommodationType

      Returns all repetitions of Accommodation Type (LCC-3).
    • 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

      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).
    • getLcc4_ChargeCode

      public CE[] getLcc4_ChargeCode()
      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