Class PDC

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class PDC extends AbstractSegment

Represents an HL7 PDC message segment (Product Detail Country). This segment has the following fields:

  • PDC-1: Manufacturer/Distributor (XON)
  • PDC-2: Country (CE)
  • PDC-3: Brand Name (ST)
  • PDC-4: Device Family Name (ST) optional
  • PDC-5: Generic Name (CE) optional
  • PDC-6: Model Identifier (ST) optional repeating
  • PDC-7: Catalogue Identifier (ST) optional
  • PDC-8: Other Identifier (ST) optional repeating
  • PDC-9: Product Code (CE) optional
  • PDC-10: Marketing Basis (ID) optional
  • PDC-11: Marketing Approval Identifier (ST) optional
  • PDC-12: Labeled Shelf Life (CQ) optional
  • PDC-13: Expected Shelf Life (CQ) optional
  • PDC-14: Date First Marked (TS) optional
  • PDC-15: Date Last Marked (TS) optional
See Also:
  • Constructor Details

  • Method Details

    • getManufacturerDistributor

      Returns PDC-1: "Manufacturer/Distributor" - creates it if necessary
    • getPdc1_ManufacturerDistributor

      Returns PDC-1: "Manufacturer/Distributor" - creates it if necessary
    • getCountry

      public CE getCountry()
      Returns PDC-2: "Country" - creates it if necessary
    • getPdc2_Country

      public CE getPdc2_Country()
      Returns PDC-2: "Country" - creates it if necessary
    • getBrandName

      public ST getBrandName()
      Returns PDC-3: "Brand Name" - creates it if necessary
    • getPdc3_BrandName

      Returns PDC-3: "Brand Name" - creates it if necessary
    • getDeviceFamilyName

      Returns PDC-4: "Device Family Name" - creates it if necessary
    • getPdc4_DeviceFamilyName

      Returns PDC-4: "Device Family Name" - creates it if necessary
    • getGenericName

      public CE getGenericName()
      Returns PDC-5: "Generic Name" - creates it if necessary
    • getPdc5_GenericName

      Returns PDC-5: "Generic Name" - creates it if necessary
    • getModelIdentifier

      public ST[] getModelIdentifier()
      Returns all repetitions of Model Identifier (PDC-6).
    • getPdc6_ModelIdentifier

      Returns all repetitions of Model Identifier (PDC-6).
    • getModelIdentifierReps

      public int getModelIdentifierReps()
      Returns a count of the current number of repetitions of Model Identifier (PDC-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getModelIdentifier

      public ST getModelIdentifier(int rep)
      Returns a specific repetition of PDC-6: "Model Identifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPdc6_ModelIdentifier

      public ST getPdc6_ModelIdentifier(int rep)
      Returns a specific repetition of PDC-6: "Model Identifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPdc6_ModelIdentifierReps

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

      public ST insertModelIdentifier(int rep) throws HL7Exception
      Inserts a repetition of PDC-6: "Model Identifier" 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)
    • insertPdc6_ModelIdentifier

      public ST insertPdc6_ModelIdentifier(int rep) throws HL7Exception
      Inserts a repetition of PDC-6: "Model Identifier" 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)
    • removeModelIdentifier

      public ST removeModelIdentifier(int rep) throws HL7Exception
      Removes a repetition of PDC-6: "Model Identifier" 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)
    • removePdc6_ModelIdentifier

      public ST removePdc6_ModelIdentifier(int rep) throws HL7Exception
      Removes a repetition of PDC-6: "Model Identifier" 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)
    • getCatalogueIdentifier

      Returns PDC-7: "Catalogue Identifier" - creates it if necessary
    • getPdc7_CatalogueIdentifier

      Returns PDC-7: "Catalogue Identifier" - creates it if necessary
    • getOtherIdentifier

      public ST[] getOtherIdentifier()
      Returns all repetitions of Other Identifier (PDC-8).
    • getPdc8_OtherIdentifier

      Returns all repetitions of Other Identifier (PDC-8).
    • getOtherIdentifierReps

      public int getOtherIdentifierReps()
      Returns a count of the current number of repetitions of Other Identifier (PDC-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getOtherIdentifier

      public ST getOtherIdentifier(int rep)
      Returns a specific repetition of PDC-8: "Other Identifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPdc8_OtherIdentifier

      public ST getPdc8_OtherIdentifier(int rep)
      Returns a specific repetition of PDC-8: "Other Identifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPdc8_OtherIdentifierReps

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

      public ST insertOtherIdentifier(int rep) throws HL7Exception
      Inserts a repetition of PDC-8: "Other Identifier" 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)
    • insertPdc8_OtherIdentifier

      public ST insertPdc8_OtherIdentifier(int rep) throws HL7Exception
      Inserts a repetition of PDC-8: "Other Identifier" 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)
    • removeOtherIdentifier

      public ST removeOtherIdentifier(int rep) throws HL7Exception
      Removes a repetition of PDC-8: "Other Identifier" 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)
    • removePdc8_OtherIdentifier

      public ST removePdc8_OtherIdentifier(int rep) throws HL7Exception
      Removes a repetition of PDC-8: "Other Identifier" 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)
    • getProductCode

      public CE getProductCode()
      Returns PDC-9: "Product Code" - creates it if necessary
    • getPdc9_ProductCode

      Returns PDC-9: "Product Code" - creates it if necessary
    • getMarketingBasis

      Returns PDC-10: "Marketing Basis" - creates it if necessary
    • getPdc10_MarketingBasis

      Returns PDC-10: "Marketing Basis" - creates it if necessary
    • getMarketingApprovalIdentifier

      Returns PDC-11: "Marketing Approval Identifier" - creates it if necessary
    • getPdc11_MarketingApprovalIdentifier

      Returns PDC-11: "Marketing Approval Identifier" - creates it if necessary
    • getLabeledShelfLife

      Returns PDC-12: "Labeled Shelf Life" - creates it if necessary
    • getPdc12_LabeledShelfLife

      Returns PDC-12: "Labeled Shelf Life" - creates it if necessary
    • getExpectedShelfLife

      Returns PDC-13: "Expected Shelf Life" - creates it if necessary
    • getPdc13_ExpectedShelfLife

      Returns PDC-13: "Expected Shelf Life" - creates it if necessary
    • getDateFirstMarked

      Returns PDC-14: "Date First Marked" - creates it if necessary
    • getPdc14_DateFirstMarked

      Returns PDC-14: "Date First Marked" - creates it if necessary
    • getDateLastMarked

      Returns PDC-15: "Date Last Marked" - creates it if necessary
    • getPdc15_DateLastMarked

      Returns PDC-15: "Date Last Marked" - creates it if necessary
    • createNewTypeWithoutReflection

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