Class FAC

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class FAC extends AbstractSegment

Represents an HL7 FAC message segment (Facility). This segment has the following fields:

  • FAC-1: Facility ID (EI) repeating
  • FAC-2: Facility Type (ID) optional
  • FAC-3: Facility Address (XAD)
  • FAC-4: Facility Telecommunication (XTN)
  • FAC-5: Contact Person (XCN) optional repeating
  • FAC-6: Contact Title (ST) optional repeating
  • FAC-7: Contact Address (XAD) optional repeating
  • FAC-8: Contact Telecommunication (XTN) optional repeating
  • FAC-9: Signature Authority (XCN)
  • FAC-10: Signature Authority Title (ST) optional
  • FAC-11: Signature Authority Address (XAD) optional
  • FAC-12: Signature Authority Telecommunication (XTN) optional
See Also:
  • Constructor Details

  • Method Details

    • getFacilityID

      public EI[] getFacilityID()
      Returns all repetitions of Facility ID (FAC-1).
    • getFac1_FacilityID

      public EI[] getFac1_FacilityID()
      Returns all repetitions of Facility ID (FAC-1).
    • getFacilityIDReps

      public int getFacilityIDReps()
      Returns a count of the current number of repetitions of Facility ID (FAC-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getFacilityID

      public EI getFacilityID(int rep)
      Returns a specific repetition of FAC-1: "Facility ID" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFac1_FacilityID

      public EI getFac1_FacilityID(int rep)
      Returns a specific repetition of FAC-1: "Facility ID" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFac1_FacilityIDReps

      public int getFac1_FacilityIDReps()
      Returns a count of the current number of repetitions of Facility ID (FAC-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertFacilityID

      public EI insertFacilityID(int rep) throws HL7Exception
      Inserts a repetition of FAC-1: "Facility ID" 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)
    • insertFac1_FacilityID

      public EI insertFac1_FacilityID(int rep) throws HL7Exception
      Inserts a repetition of FAC-1: "Facility ID" 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)
    • removeFacilityID

      public EI removeFacilityID(int rep) throws HL7Exception
      Removes a repetition of FAC-1: "Facility ID" 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)
    • removeFac1_FacilityID

      public EI removeFac1_FacilityID(int rep) throws HL7Exception
      Removes a repetition of FAC-1: "Facility ID" 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)
    • getFacilityType

      public ID getFacilityType()
      Returns FAC-2: "Facility Type" - creates it if necessary
    • getFac2_FacilityType

      Returns FAC-2: "Facility Type" - creates it if necessary
    • getFacilityAddress

      Returns FAC-3: "Facility Address" - creates it if necessary
    • getFac3_FacilityAddress

      Returns FAC-3: "Facility Address" - creates it if necessary
    • getFacilityTelecommunication

      Returns FAC-4: "Facility Telecommunication" - creates it if necessary
    • getFac4_FacilityTelecommunication

      Returns FAC-4: "Facility Telecommunication" - creates it if necessary
    • getContactPerson

      public XCN[] getContactPerson()
      Returns all repetitions of Contact Person (FAC-5).
    • getFac5_ContactPerson

      Returns all repetitions of Contact Person (FAC-5).
    • getContactPersonReps

      public int getContactPersonReps()
      Returns a count of the current number of repetitions of Contact Person (FAC-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getContactPerson

      public XCN getContactPerson(int rep)
      Returns a specific repetition of FAC-5: "Contact Person" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFac5_ContactPerson

      public XCN getFac5_ContactPerson(int rep)
      Returns a specific repetition of FAC-5: "Contact Person" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFac5_ContactPersonReps

      Returns a count of the current number of repetitions of Contact Person (FAC-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertContactPerson

      public XCN insertContactPerson(int rep) throws HL7Exception
      Inserts a repetition of FAC-5: "Contact 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)
    • insertFac5_ContactPerson

      public XCN insertFac5_ContactPerson(int rep) throws HL7Exception
      Inserts a repetition of FAC-5: "Contact 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)
    • removeContactPerson

      public XCN removeContactPerson(int rep) throws HL7Exception
      Removes a repetition of FAC-5: "Contact 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)
    • removeFac5_ContactPerson

      public XCN removeFac5_ContactPerson(int rep) throws HL7Exception
      Removes a repetition of FAC-5: "Contact 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)
    • getContactTitle

      public ST[] getContactTitle()
      Returns all repetitions of Contact Title (FAC-6).
    • getFac6_ContactTitle

      Returns all repetitions of Contact Title (FAC-6).
    • getContactTitleReps

      public int getContactTitleReps()
      Returns a count of the current number of repetitions of Contact Title (FAC-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getContactTitle

      public ST getContactTitle(int rep)
      Returns a specific repetition of FAC-6: "Contact Title" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFac6_ContactTitle

      public ST getFac6_ContactTitle(int rep)
      Returns a specific repetition of FAC-6: "Contact Title" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFac6_ContactTitleReps

      Returns a count of the current number of repetitions of Contact Title (FAC-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertContactTitle

      public ST insertContactTitle(int rep) throws HL7Exception
      Inserts a repetition of FAC-6: "Contact Title" 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)
    • insertFac6_ContactTitle

      public ST insertFac6_ContactTitle(int rep) throws HL7Exception
      Inserts a repetition of FAC-6: "Contact Title" 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)
    • removeContactTitle

      public ST removeContactTitle(int rep) throws HL7Exception
      Removes a repetition of FAC-6: "Contact Title" 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)
    • removeFac6_ContactTitle

      public ST removeFac6_ContactTitle(int rep) throws HL7Exception
      Removes a repetition of FAC-6: "Contact Title" 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)
    • getContactAddress

      public XAD[] getContactAddress()
      Returns all repetitions of Contact Address (FAC-7).
    • getFac7_ContactAddress

      Returns all repetitions of Contact Address (FAC-7).
    • getContactAddressReps

      public int getContactAddressReps()
      Returns a count of the current number of repetitions of Contact Address (FAC-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getContactAddress

      public XAD getContactAddress(int rep)
      Returns a specific repetition of FAC-7: "Contact Address" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFac7_ContactAddress

      public XAD getFac7_ContactAddress(int rep)
      Returns a specific repetition of FAC-7: "Contact Address" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFac7_ContactAddressReps

      Returns a count of the current number of repetitions of Contact Address (FAC-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertContactAddress

      public XAD insertContactAddress(int rep) throws HL7Exception
      Inserts a repetition of FAC-7: "Contact 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)
    • insertFac7_ContactAddress

      public XAD insertFac7_ContactAddress(int rep) throws HL7Exception
      Inserts a repetition of FAC-7: "Contact 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)
    • removeContactAddress

      public XAD removeContactAddress(int rep) throws HL7Exception
      Removes a repetition of FAC-7: "Contact 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)
    • removeFac7_ContactAddress

      public XAD removeFac7_ContactAddress(int rep) throws HL7Exception
      Removes a repetition of FAC-7: "Contact 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)
    • getContactTelecommunication

      Returns all repetitions of Contact Telecommunication (FAC-8).
    • getFac8_ContactTelecommunication

      Returns all repetitions of Contact Telecommunication (FAC-8).
    • getContactTelecommunicationReps

      Returns a count of the current number of repetitions of Contact Telecommunication (FAC-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getContactTelecommunication

      public XTN getContactTelecommunication(int rep)
      Returns a specific repetition of FAC-8: "Contact Telecommunication" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFac8_ContactTelecommunication

      Returns a specific repetition of FAC-8: "Contact Telecommunication" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFac8_ContactTelecommunicationReps

      Returns a count of the current number of repetitions of Contact Telecommunication (FAC-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertContactTelecommunication

      Inserts a repetition of FAC-8: "Contact Telecommunication" 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)
    • insertFac8_ContactTelecommunication

      Inserts a repetition of FAC-8: "Contact Telecommunication" 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)
    • removeContactTelecommunication

      Removes a repetition of FAC-8: "Contact Telecommunication" 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)
    • removeFac8_ContactTelecommunication

      Removes a repetition of FAC-8: "Contact Telecommunication" 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)
    • getSignatureAuthority

      Returns FAC-9: "Signature Authority" - creates it if necessary
    • getFac9_SignatureAuthority

      Returns FAC-9: "Signature Authority" - creates it if necessary
    • getSignatureAuthorityTitle

      Returns FAC-10: "Signature Authority Title" - creates it if necessary
    • getFac10_SignatureAuthorityTitle

      Returns FAC-10: "Signature Authority Title" - creates it if necessary
    • getSignatureAuthorityAddress

      Returns FAC-11: "Signature Authority Address" - creates it if necessary
    • getFac11_SignatureAuthorityAddress

      Returns FAC-11: "Signature Authority Address" - creates it if necessary
    • getSignatureAuthorityTelecommunication

      Returns FAC-12: "Signature Authority Telecommunication" - creates it if necessary
    • getFac12_SignatureAuthorityTelecommunication

      Returns FAC-12: "Signature Authority Telecommunication" - creates it if necessary
    • createNewTypeWithoutReflection

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