Class PackagedProductDefinition.Package

  • All Implemented Interfaces:
    Visitable
    Enclosing class:
    PackagedProductDefinition

    public static class PackagedProductDefinition.Package
    extends BackboneElement
    A packaging item, as a container for medically related items, possibly with other packaging items within, or a packaging component, such as bottle cap (which is not a device or a medication manufactured item).
    • Method Detail

      • getIdentifier

        public java.util.List<Identifier> getIdentifier()
        An identifier that is specific to this particular part of the packaging. Including possibly Data Carrier Identifier (a GS1 barcode).
        Returns:
        An unmodifiable list containing immutable objects of type Identifier that may be empty.
      • getType

        public CodeableConcept getType()
        The physical type of the container of the items.
        Returns:
        An immutable object of type CodeableConcept that may be null.
      • getQuantity

        public Integer getQuantity()
        The quantity of this level of packaging in the package that contains it. If specified, the outermost level is always 1.
        Returns:
        An immutable object of type Integer that may be null.
      • getMaterial

        public java.util.List<CodeableConcept> getMaterial()
        Material type of the package item.
        Returns:
        An unmodifiable list containing immutable objects of type CodeableConcept that may be empty.
      • getAlternateMaterial

        public java.util.List<CodeableConcept> getAlternateMaterial()
        A possible alternate material for this part of the packaging, that is allowed to be used instead of the usual material (e.g. different types of plastic for a blister sleeve).
        Returns:
        An unmodifiable list containing immutable objects of type CodeableConcept that may be empty.
      • getManufacturer

        public java.util.List<Reference> getManufacturer()
        Manufacturer of this package Item. When there are multiple it means these are all possible manufacturers.
        Returns:
        An unmodifiable list containing immutable objects of type Reference that may be empty.
      • getPackage

        public java.util.List<PackagedProductDefinition.Package> getPackage()
        Allows containers (and parts of containers) parwithin containers, still a single packaged product. See also PackagedProductDefinition.package.containedItem.item(PackagedProductDefinition).
        Returns:
        An unmodifiable list containing immutable objects of type PackagedProductDefinition.Package that may be empty.
      • accept

        public void accept​(java.lang.String elementName,
                           int elementIndex,
                           Visitor visitor)
        Description copied from interface: Visitable
        Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:
         if (visitor.preVisit(this)) {
             visitor.visitStart(elementName, elementIndex, this);
             if (visitor.visit(elementName, elementIndex, this)) {
                 // visit children
             }
             visitor.visitEnd(elementName, elementIndex, this);
             visitor.postVisit(this);
         }
         
        Specified by:
        accept in interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object