Class INV

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class INV extends AbstractSegment

Represents an HL7 INV message segment (Inventory Detail). This segment has the following fields:

  • INV-1: Substance Identifier (CE)
  • INV-2: Substance Status (CE) repeating
  • INV-3: Substance Type (CE) optional
  • INV-4: Inventory Container Identifier (CE) optional
  • INV-5: Container Carrier Identifier (CE) optional
  • INV-6: Position on Carrier (CE) optional
  • INV-7: Initial Quantity (NM) optional
  • INV-8: Current Quantity (NM) optional
  • INV-9: Available Quantity (NM) optional
  • INV-10: Consumption Quantity (NM) optional
  • INV-11: Quantity Units (CE) optional
  • INV-12: Expiration Date/Time (TS) optional
  • INV-13: First Used Date/Time (TS) optional
  • INV-14: On Board Stability Duration (TQ) optional
  • INV-15: Test/Fluid Identifier(s) (CE) optional repeating
  • INV-16: Manufacturer Lot Number (ST) optional
  • INV-17: Manufacturer Identifier (CE) optional
  • INV-18: Supplier Identifier (CE) optional
See Also:
  • Constructor Details

  • Method Details

    • getSubstanceIdentifier

      Returns INV-1: "Substance Identifier" - creates it if necessary
    • getInv1_SubstanceIdentifier

      Returns INV-1: "Substance Identifier" - creates it if necessary
    • getSubstanceStatus

      public CE[] getSubstanceStatus()
      Returns all repetitions of Substance Status (INV-2).
    • getInv2_SubstanceStatus

      Returns all repetitions of Substance Status (INV-2).
    • getSubstanceStatusReps

      public int getSubstanceStatusReps()
      Returns a count of the current number of repetitions of Substance Status (INV-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getSubstanceStatus

      public CE getSubstanceStatus(int rep)
      Returns a specific repetition of INV-2: "Substance Status" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getInv2_SubstanceStatus

      public CE getInv2_SubstanceStatus(int rep)
      Returns a specific repetition of INV-2: "Substance Status" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getInv2_SubstanceStatusReps

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

      public CE insertSubstanceStatus(int rep) throws HL7Exception
      Inserts a repetition of INV-2: "Substance Status" 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)
    • insertInv2_SubstanceStatus

      public CE insertInv2_SubstanceStatus(int rep) throws HL7Exception
      Inserts a repetition of INV-2: "Substance Status" 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)
    • removeSubstanceStatus

      public CE removeSubstanceStatus(int rep) throws HL7Exception
      Removes a repetition of INV-2: "Substance Status" 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)
    • removeInv2_SubstanceStatus

      public CE removeInv2_SubstanceStatus(int rep) throws HL7Exception
      Removes a repetition of INV-2: "Substance Status" 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)
    • getSubstanceType

      public CE getSubstanceType()
      Returns INV-3: "Substance Type" - creates it if necessary
    • getInv3_SubstanceType

      Returns INV-3: "Substance Type" - creates it if necessary
    • getInventoryContainerIdentifier

      Returns INV-4: "Inventory Container Identifier" - creates it if necessary
    • getInv4_InventoryContainerIdentifier

      Returns INV-4: "Inventory Container Identifier" - creates it if necessary
    • getContainerCarrierIdentifier

      Returns INV-5: "Container Carrier Identifier" - creates it if necessary
    • getInv5_ContainerCarrierIdentifier

      Returns INV-5: "Container Carrier Identifier" - creates it if necessary
    • getPositionOnCarrier

      Returns INV-6: "Position on Carrier" - creates it if necessary
    • getInv6_PositionOnCarrier

      Returns INV-6: "Position on Carrier" - creates it if necessary
    • getInitialQuantity

      Returns INV-7: "Initial Quantity" - creates it if necessary
    • getInv7_InitialQuantity

      Returns INV-7: "Initial Quantity" - creates it if necessary
    • getCurrentQuantity

      Returns INV-8: "Current Quantity" - creates it if necessary
    • getInv8_CurrentQuantity

      Returns INV-8: "Current Quantity" - creates it if necessary
    • getAvailableQuantity

      Returns INV-9: "Available Quantity" - creates it if necessary
    • getInv9_AvailableQuantity

      Returns INV-9: "Available Quantity" - creates it if necessary
    • getConsumptionQuantity

      Returns INV-10: "Consumption Quantity" - creates it if necessary
    • getInv10_ConsumptionQuantity

      Returns INV-10: "Consumption Quantity" - creates it if necessary
    • getQuantityUnits

      public CE getQuantityUnits()
      Returns INV-11: "Quantity Units" - creates it if necessary
    • getInv11_QuantityUnits

      Returns INV-11: "Quantity Units" - creates it if necessary
    • getExpirationDateTime

      Returns INV-12: "Expiration Date/Time" - creates it if necessary
    • getInv12_ExpirationDateTime

      Returns INV-12: "Expiration Date/Time" - creates it if necessary
    • getFirstUsedDateTime

      Returns INV-13: "First Used Date/Time" - creates it if necessary
    • getInv13_FirstUsedDateTime

      Returns INV-13: "First Used Date/Time" - creates it if necessary
    • getOnBoardStabilityDuration

      Returns INV-14: "On Board Stability Duration" - creates it if necessary
    • getInv14_OnBoardStabilityDuration

      Returns INV-14: "On Board Stability Duration" - creates it if necessary
    • getTestFluidIdentifierS

      Returns all repetitions of Test/Fluid Identifier(s) (INV-15).
    • getInv15_TestFluidIdentifierS

      Returns all repetitions of Test/Fluid Identifier(s) (INV-15).
    • getTestFluidIdentifierSReps

      Returns a count of the current number of repetitions of Test/Fluid Identifier(s) (INV-15). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getTestFluidIdentifierS

      public CE getTestFluidIdentifierS(int rep)
      Returns a specific repetition of INV-15: "Test/Fluid Identifier(s)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getInv15_TestFluidIdentifierS

      Returns a specific repetition of INV-15: "Test/Fluid Identifier(s)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getInv15_TestFluidIdentifierSReps

      Returns a count of the current number of repetitions of Test/Fluid Identifier(s) (INV-15). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertTestFluidIdentifierS

      public CE insertTestFluidIdentifierS(int rep) throws HL7Exception
      Inserts a repetition of INV-15: "Test/Fluid Identifier(s)" 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)
    • insertInv15_TestFluidIdentifierS

      Inserts a repetition of INV-15: "Test/Fluid Identifier(s)" 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)
    • removeTestFluidIdentifierS

      public CE removeTestFluidIdentifierS(int rep) throws HL7Exception
      Removes a repetition of INV-15: "Test/Fluid Identifier(s)" 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)
    • removeInv15_TestFluidIdentifierS

      Removes a repetition of INV-15: "Test/Fluid Identifier(s)" 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)
    • getManufacturerLotNumber

      Returns INV-16: "Manufacturer Lot Number" - creates it if necessary
    • getInv16_ManufacturerLotNumber

      Returns INV-16: "Manufacturer Lot Number" - creates it if necessary
    • getManufacturerIdentifier

      Returns INV-17: "Manufacturer Identifier" - creates it if necessary
    • getInv17_ManufacturerIdentifier

      Returns INV-17: "Manufacturer Identifier" - creates it if necessary
    • getSupplierIdentifier

      Returns INV-18: "Supplier Identifier" - creates it if necessary
    • getInv18_SupplierIdentifier

      Returns INV-18: "Supplier Identifier" - creates it if necessary
    • createNewTypeWithoutReflection

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