Class PRA

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class PRA extends AbstractSegment

Represents an HL7 PRA message segment (practitioner detail). This segment has the following fields:

  • PRA-1: PRA - primary key value (ST)
  • PRA-2: Practitioner group (CE) optional repeating
  • PRA-3: Practitioner Category (ID) optional repeating
  • PRA-4: Provider Billing (ID) optional
  • PRA-5: Specialty (CM_SPD) optional repeating
  • PRA-6: Practitioner ID Numbers (CM_PLN) optional repeating
  • PRA-7: Privileges (CM_PIP) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getPRAPrimaryKeyValue

      Returns PRA-1: "PRA - primary key value" - creates it if necessary
    • getPra1_PRAPrimaryKeyValue

      Returns PRA-1: "PRA - primary key value" - creates it if necessary
    • getPractitionerGroup

      Returns all repetitions of Practitioner group (PRA-2).
    • getPra2_PractitionerGroup

      Returns all repetitions of Practitioner group (PRA-2).
    • getPractitionerGroupReps

      Returns a count of the current number of repetitions of Practitioner group (PRA-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getPractitionerGroup

      public CE getPractitionerGroup(int rep)
      Returns a specific repetition of PRA-2: "Practitioner group" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra2_PractitionerGroup

      public CE getPra2_PractitionerGroup(int rep)
      Returns a specific repetition of PRA-2: "Practitioner group" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra2_PractitionerGroupReps

      Returns a count of the current number of repetitions of Practitioner group (PRA-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertPractitionerGroup

      public CE insertPractitionerGroup(int rep) throws HL7Exception
      Inserts a repetition of PRA-2: "Practitioner group" 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)
    • insertPra2_PractitionerGroup

      public CE insertPra2_PractitionerGroup(int rep) throws HL7Exception
      Inserts a repetition of PRA-2: "Practitioner group" 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)
    • removePractitionerGroup

      public CE removePractitionerGroup(int rep) throws HL7Exception
      Removes a repetition of PRA-2: "Practitioner group" 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)
    • removePra2_PractitionerGroup

      public CE removePra2_PractitionerGroup(int rep) throws HL7Exception
      Removes a repetition of PRA-2: "Practitioner group" 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)
    • getPractitionerCategory

      Returns all repetitions of Practitioner Category (PRA-3).
    • getPra3_PractitionerCategory

      Returns all repetitions of Practitioner Category (PRA-3).
    • getPractitionerCategoryReps

      Returns a count of the current number of repetitions of Practitioner Category (PRA-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getPractitionerCategory

      public ID getPractitionerCategory(int rep)
      Returns a specific repetition of PRA-3: "Practitioner Category" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra3_PractitionerCategory

      public ID getPra3_PractitionerCategory(int rep)
      Returns a specific repetition of PRA-3: "Practitioner Category" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra3_PractitionerCategoryReps

      Returns a count of the current number of repetitions of Practitioner Category (PRA-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertPractitionerCategory

      public ID insertPractitionerCategory(int rep) throws HL7Exception
      Inserts a repetition of PRA-3: "Practitioner Category" 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)
    • insertPra3_PractitionerCategory

      Inserts a repetition of PRA-3: "Practitioner Category" 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)
    • removePractitionerCategory

      public ID removePractitionerCategory(int rep) throws HL7Exception
      Removes a repetition of PRA-3: "Practitioner Category" 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)
    • removePra3_PractitionerCategory

      Removes a repetition of PRA-3: "Practitioner Category" 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)
    • getProviderBilling

      Returns PRA-4: "Provider Billing" - creates it if necessary
    • getPra4_ProviderBilling

      Returns PRA-4: "Provider Billing" - creates it if necessary
    • getSpecialty

      public CM_SPD[] getSpecialty()
      Returns all repetitions of Specialty (PRA-5).
    • getPra5_Specialty

      Returns all repetitions of Specialty (PRA-5).
    • getSpecialtyReps

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

      public CM_SPD getSpecialty(int rep)
      Returns a specific repetition of PRA-5: "Specialty" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra5_Specialty

      public CM_SPD getPra5_Specialty(int rep)
      Returns a specific repetition of PRA-5: "Specialty" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra5_SpecialtyReps

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

      public CM_SPD insertSpecialty(int rep) throws HL7Exception
      Inserts a repetition of PRA-5: "Specialty" 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)
    • insertPra5_Specialty

      public CM_SPD insertPra5_Specialty(int rep) throws HL7Exception
      Inserts a repetition of PRA-5: "Specialty" 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)
    • removeSpecialty

      public CM_SPD removeSpecialty(int rep) throws HL7Exception
      Removes a repetition of PRA-5: "Specialty" 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)
    • removePra5_Specialty

      public CM_SPD removePra5_Specialty(int rep) throws HL7Exception
      Removes a repetition of PRA-5: "Specialty" 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)
    • getPractitionerIDNumbers

      Returns all repetitions of Practitioner ID Numbers (PRA-6).
    • getPra6_PractitionerIDNumbers

      Returns all repetitions of Practitioner ID Numbers (PRA-6).
    • getPractitionerIDNumbersReps

      Returns a count of the current number of repetitions of Practitioner ID Numbers (PRA-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getPractitionerIDNumbers

      public CM_PLN getPractitionerIDNumbers(int rep)
      Returns a specific repetition of PRA-6: "Practitioner ID Numbers" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra6_PractitionerIDNumbers

      Returns a specific repetition of PRA-6: "Practitioner ID Numbers" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra6_PractitionerIDNumbersReps

      Returns a count of the current number of repetitions of Practitioner ID Numbers (PRA-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertPractitionerIDNumbers

      Inserts a repetition of PRA-6: "Practitioner ID Numbers" 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)
    • insertPra6_PractitionerIDNumbers

      Inserts a repetition of PRA-6: "Practitioner ID Numbers" 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)
    • removePractitionerIDNumbers

      Removes a repetition of PRA-6: "Practitioner ID Numbers" 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)
    • removePra6_PractitionerIDNumbers

      Removes a repetition of PRA-6: "Practitioner ID Numbers" 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)
    • getPrivileges

      public CM_PIP[] getPrivileges()
      Returns all repetitions of Privileges (PRA-7).
    • getPra7_Privileges

      Returns all repetitions of Privileges (PRA-7).
    • getPrivilegesReps

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

      public CM_PIP getPrivileges(int rep)
      Returns a specific repetition of PRA-7: "Privileges" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra7_Privileges

      public CM_PIP getPra7_Privileges(int rep)
      Returns a specific repetition of PRA-7: "Privileges" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra7_PrivilegesReps

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

      public CM_PIP insertPrivileges(int rep) throws HL7Exception
      Inserts a repetition of PRA-7: "Privileges" 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)
    • insertPra7_Privileges

      public CM_PIP insertPra7_Privileges(int rep) throws HL7Exception
      Inserts a repetition of PRA-7: "Privileges" 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)
    • removePrivileges

      public CM_PIP removePrivileges(int rep) throws HL7Exception
      Removes a repetition of PRA-7: "Privileges" 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)
    • removePra7_Privileges

      public CM_PIP removePra7_Privileges(int rep) throws HL7Exception
      Removes a repetition of PRA-7: "Privileges" 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