Class PRD

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class PRD extends AbstractSegment

Represents an HL7 PRD message segment (Provider Data). This segment has the following fields:

  • PRD-1: Provider Role (CE) repeating
  • PRD-2: Provider Name (XPN) optional repeating
  • PRD-3: Provider Address (XAD) optional repeating
  • PRD-4: Provider Location (PL) optional
  • PRD-5: Provider Communication Information (XTN) optional repeating
  • PRD-6: Preferred Method of Contact (CE) optional
  • PRD-7: Provider Identifiers (PI) optional repeating
  • PRD-8: Effective Start Date of Provider Role (TS) optional
  • PRD-9: Effective End Date of Provider Role (TS) optional
See Also:
  • Constructor Details

  • Method Details

    • getProviderRole

      public CE[] getProviderRole()
      Returns all repetitions of Provider Role (PRD-1).
    • getPrd1_ProviderRole

      Returns all repetitions of Provider Role (PRD-1).
    • getProviderRoleReps

      public int getProviderRoleReps()
      Returns a count of the current number of repetitions of Provider Role (PRD-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getProviderRole

      public CE getProviderRole(int rep)
      Returns a specific repetition of PRD-1: "Provider Role" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPrd1_ProviderRole

      public CE getPrd1_ProviderRole(int rep)
      Returns a specific repetition of PRD-1: "Provider Role" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPrd1_ProviderRoleReps

      Returns a count of the current number of repetitions of Provider Role (PRD-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertProviderRole

      public CE insertProviderRole(int rep) throws HL7Exception
      Inserts a repetition of PRD-1: "Provider Role" 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)
    • insertPrd1_ProviderRole

      public CE insertPrd1_ProviderRole(int rep) throws HL7Exception
      Inserts a repetition of PRD-1: "Provider Role" 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)
    • removeProviderRole

      public CE removeProviderRole(int rep) throws HL7Exception
      Removes a repetition of PRD-1: "Provider Role" 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)
    • removePrd1_ProviderRole

      public CE removePrd1_ProviderRole(int rep) throws HL7Exception
      Removes a repetition of PRD-1: "Provider Role" 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)
    • getProviderName

      public XPN[] getProviderName()
      Returns all repetitions of Provider Name (PRD-2).
    • getPrd2_ProviderName

      Returns all repetitions of Provider Name (PRD-2).
    • getProviderNameReps

      public int getProviderNameReps()
      Returns a count of the current number of repetitions of Provider Name (PRD-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getProviderName

      public XPN getProviderName(int rep)
      Returns a specific repetition of PRD-2: "Provider Name" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPrd2_ProviderName

      public XPN getPrd2_ProviderName(int rep)
      Returns a specific repetition of PRD-2: "Provider Name" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPrd2_ProviderNameReps

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

      public XPN insertProviderName(int rep) throws HL7Exception
      Inserts a repetition of PRD-2: "Provider Name" 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)
    • insertPrd2_ProviderName

      public XPN insertPrd2_ProviderName(int rep) throws HL7Exception
      Inserts a repetition of PRD-2: "Provider Name" 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)
    • removeProviderName

      public XPN removeProviderName(int rep) throws HL7Exception
      Removes a repetition of PRD-2: "Provider Name" 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)
    • removePrd2_ProviderName

      public XPN removePrd2_ProviderName(int rep) throws HL7Exception
      Removes a repetition of PRD-2: "Provider Name" 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)
    • getProviderAddress

      public XAD[] getProviderAddress()
      Returns all repetitions of Provider Address (PRD-3).
    • getPrd3_ProviderAddress

      Returns all repetitions of Provider Address (PRD-3).
    • getProviderAddressReps

      public int getProviderAddressReps()
      Returns a count of the current number of repetitions of Provider Address (PRD-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getProviderAddress

      public XAD getProviderAddress(int rep)
      Returns a specific repetition of PRD-3: "Provider Address" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPrd3_ProviderAddress

      public XAD getPrd3_ProviderAddress(int rep)
      Returns a specific repetition of PRD-3: "Provider Address" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPrd3_ProviderAddressReps

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

      public XAD insertProviderAddress(int rep) throws HL7Exception
      Inserts a repetition of PRD-3: "Provider 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)
    • insertPrd3_ProviderAddress

      public XAD insertPrd3_ProviderAddress(int rep) throws HL7Exception
      Inserts a repetition of PRD-3: "Provider 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)
    • removeProviderAddress

      public XAD removeProviderAddress(int rep) throws HL7Exception
      Removes a repetition of PRD-3: "Provider 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)
    • removePrd3_ProviderAddress

      public XAD removePrd3_ProviderAddress(int rep) throws HL7Exception
      Removes a repetition of PRD-3: "Provider 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)
    • getProviderLocation

      Returns PRD-4: "Provider Location" - creates it if necessary
    • getPrd4_ProviderLocation

      Returns PRD-4: "Provider Location" - creates it if necessary
    • getProviderCommunicationInformation

      Returns all repetitions of Provider Communication Information (PRD-5).
    • getPrd5_ProviderCommunicationInformation

      Returns all repetitions of Provider Communication Information (PRD-5).
    • getProviderCommunicationInformationReps

      Returns a count of the current number of repetitions of Provider Communication Information (PRD-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getProviderCommunicationInformation

      Returns a specific repetition of PRD-5: "Provider Communication Information" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPrd5_ProviderCommunicationInformation

      Returns a specific repetition of PRD-5: "Provider Communication Information" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPrd5_ProviderCommunicationInformationReps

      Returns a count of the current number of repetitions of Provider Communication Information (PRD-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertProviderCommunicationInformation

      Inserts a repetition of PRD-5: "Provider Communication Information" 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)
    • insertPrd5_ProviderCommunicationInformation

      Inserts a repetition of PRD-5: "Provider Communication Information" 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)
    • removeProviderCommunicationInformation

      Removes a repetition of PRD-5: "Provider Communication Information" 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)
    • removePrd5_ProviderCommunicationInformation

      Removes a repetition of PRD-5: "Provider Communication Information" 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)
    • getPreferredMethodOfContact

      Returns PRD-6: "Preferred Method of Contact" - creates it if necessary
    • getPrd6_PreferredMethodOfContact

      Returns PRD-6: "Preferred Method of Contact" - creates it if necessary
    • getProviderIdentifiers

      Returns all repetitions of Provider Identifiers (PRD-7).
    • getPrd7_ProviderIdentifiers

      Returns all repetitions of Provider Identifiers (PRD-7).
    • getProviderIdentifiersReps

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

      public PI getProviderIdentifiers(int rep)
      Returns a specific repetition of PRD-7: "Provider Identifiers" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPrd7_ProviderIdentifiers

      public PI getPrd7_ProviderIdentifiers(int rep)
      Returns a specific repetition of PRD-7: "Provider Identifiers" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPrd7_ProviderIdentifiersReps

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

      public PI insertProviderIdentifiers(int rep) throws HL7Exception
      Inserts a repetition of PRD-7: "Provider Identifiers" 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)
    • insertPrd7_ProviderIdentifiers

      Inserts a repetition of PRD-7: "Provider Identifiers" 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)
    • removeProviderIdentifiers

      public PI removeProviderIdentifiers(int rep) throws HL7Exception
      Removes a repetition of PRD-7: "Provider Identifiers" 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)
    • removePrd7_ProviderIdentifiers

      Removes a repetition of PRD-7: "Provider Identifiers" 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)
    • getEffectiveStartDateOfProviderRole

      Returns PRD-8: "Effective Start Date of Provider Role" - creates it if necessary
    • getPrd8_EffectiveStartDateOfProviderRole

      Returns PRD-8: "Effective Start Date of Provider Role" - creates it if necessary
    • getEffectiveEndDateOfProviderRole

      Returns PRD-9: "Effective End Date of Provider Role" - creates it if necessary
    • getPrd9_EffectiveEndDateOfProviderRole

      Returns PRD-9: "Effective End Date of Provider Role" - creates it if necessary
    • createNewTypeWithoutReflection

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