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: Primary Key Value - PRA (CE) optional
  • PRA-2: Practitioner Group (CE) optional repeating
  • PRA-3: Practitioner Category (IS) optional repeating
  • PRA-4: Provider Billing (ID) optional
  • PRA-5: Specialty (SPD) optional repeating
  • PRA-6: Practitioner ID Numbers (PLN) optional repeating
  • PRA-7: Privileges (PIP) optional repeating
  • PRA-8: Date Entered Practice (DT) optional
  • PRA-9: Institution (CE) optional
  • PRA-10: Date Left Practice (DT) optional
  • PRA-11: Government Reimbursement Billing Eligibility (CE) optional repeating
  • PRA-12: Set ID - PRA (SI) optional
See Also:
  • Constructor Details

  • Method Details

    • getPrimaryKeyValuePRA

      Returns PRA-1: "Primary Key Value - PRA" - creates it if necessary
    • getPra1_PrimaryKeyValuePRA

      Returns PRA-1: "Primary Key Value - PRA" - 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 IS 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 IS 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 IS 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 IS 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 SPD[] getSpecialty()
      Returns all repetitions of Specialty (PRA-5).
    • getPra5_Specialty

      public SPD[] 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 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 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 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 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 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 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 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

      public PLN insertPractitionerIDNumbers(int rep) throws HL7Exception
      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

      public PLN removePractitionerIDNumbers(int rep) throws HL7Exception
      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 PIP[] getPrivileges()
      Returns all repetitions of Privileges (PRA-7).
    • getPra7_Privileges

      public PIP[] 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 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 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 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 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 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 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)
    • getDateEnteredPractice

      Returns PRA-8: "Date Entered Practice" - creates it if necessary
    • getPra8_DateEnteredPractice

      Returns PRA-8: "Date Entered Practice" - creates it if necessary
    • getInstitution

      public CE getInstitution()
      Returns PRA-9: "Institution" - creates it if necessary
    • getPra9_Institution

      Returns PRA-9: "Institution" - creates it if necessary
    • getDateLeftPractice

      Returns PRA-10: "Date Left Practice" - creates it if necessary
    • getPra10_DateLeftPractice

      Returns PRA-10: "Date Left Practice" - creates it if necessary
    • getGovernmentReimbursementBillingEligibility

      Returns all repetitions of Government Reimbursement Billing Eligibility (PRA-11).
    • getPra11_GovernmentReimbursementBillingEligibility

      Returns all repetitions of Government Reimbursement Billing Eligibility (PRA-11).
    • getGovernmentReimbursementBillingEligibilityReps

      Returns a count of the current number of repetitions of Government Reimbursement Billing Eligibility (PRA-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getGovernmentReimbursementBillingEligibility

      Returns a specific repetition of PRA-11: "Government Reimbursement Billing Eligibility" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra11_GovernmentReimbursementBillingEligibility

      Returns a specific repetition of PRA-11: "Government Reimbursement Billing Eligibility" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPra11_GovernmentReimbursementBillingEligibilityReps

      Returns a count of the current number of repetitions of Government Reimbursement Billing Eligibility (PRA-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertGovernmentReimbursementBillingEligibility

      Inserts a repetition of PRA-11: "Government Reimbursement Billing Eligibility" 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)
    • insertPra11_GovernmentReimbursementBillingEligibility

      Inserts a repetition of PRA-11: "Government Reimbursement Billing Eligibility" 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)
    • removeGovernmentReimbursementBillingEligibility

      Removes a repetition of PRA-11: "Government Reimbursement Billing Eligibility" 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)
    • removePra11_GovernmentReimbursementBillingEligibility

      Removes a repetition of PRA-11: "Government Reimbursement Billing Eligibility" 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)
    • getSetIDPRA

      public SI getSetIDPRA()
      Returns PRA-12: "Set ID - PRA" - creates it if necessary
    • getPra12_SetIDPRA

      Returns PRA-12: "Set ID - PRA" - creates it if necessary
    • createNewTypeWithoutReflection

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