Class LAN

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class LAN extends AbstractSegment

Represents an HL7 LAN message segment (Language Detail). This segment has the following fields:

  • LAN-1: Set ID - LAN (SI)
  • LAN-2: Language Code (CE)
  • LAN-3: Language Ability Code (CE) optional repeating
  • LAN-4: Language Proficiency Code (CE) optional
See Also:
  • Constructor Details

  • Method Details

    • getSetIDLAN

      public SI getSetIDLAN()
      Returns LAN-1: "Set ID - LAN" - creates it if necessary
    • getLan1_SetIDLAN

      public SI getLan1_SetIDLAN()
      Returns LAN-1: "Set ID - LAN" - creates it if necessary
    • getLanguageCode

      public CE getLanguageCode()
      Returns LAN-2: "Language Code" - creates it if necessary
    • getLan2_LanguageCode

      Returns LAN-2: "Language Code" - creates it if necessary
    • getLanguageAbilityCode

      Returns all repetitions of Language Ability Code (LAN-3).
    • getLan3_LanguageAbilityCode

      Returns all repetitions of Language Ability Code (LAN-3).
    • getLanguageAbilityCodeReps

      Returns a count of the current number of repetitions of Language Ability Code (LAN-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getLanguageAbilityCode

      public CE getLanguageAbilityCode(int rep)
      Returns a specific repetition of LAN-3: "Language Ability Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getLan3_LanguageAbilityCode

      public CE getLan3_LanguageAbilityCode(int rep)
      Returns a specific repetition of LAN-3: "Language Ability Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getLan3_LanguageAbilityCodeReps

      Returns a count of the current number of repetitions of Language Ability Code (LAN-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertLanguageAbilityCode

      public CE insertLanguageAbilityCode(int rep) throws HL7Exception
      Inserts a repetition of LAN-3: "Language Ability 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)
    • insertLan3_LanguageAbilityCode

      Inserts a repetition of LAN-3: "Language Ability 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)
    • removeLanguageAbilityCode

      public CE removeLanguageAbilityCode(int rep) throws HL7Exception
      Removes a repetition of LAN-3: "Language Ability 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)
    • removeLan3_LanguageAbilityCode

      Removes a repetition of LAN-3: "Language Ability 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)
    • getLanguageProficiencyCode

      Returns LAN-4: "Language Proficiency Code" - creates it if necessary
    • getLan4_LanguageProficiencyCode

      Returns LAN-4: "Language Proficiency Code" - creates it if necessary
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment