Class PackagedProductDefinition.Package
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.type.Element
-
- org.linuxforhealth.fhir.model.type.BackboneElement
-
- org.linuxforhealth.fhir.model.resource.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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PackagedProductDefinition.Package.Builder
static class
PackagedProductDefinition.Package.ContainedItem
The item(s) within the packaging.static class
PackagedProductDefinition.Package.Property
General characteristics of this item.static class
PackagedProductDefinition.Package.ShelfLifeStorage
Shelf Life and storage information.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static PackagedProductDefinition.Package.Builder
builder()
boolean
equals(java.lang.Object obj)
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.java.util.List<PackagedProductDefinition.Package.ContainedItem>
getContainedItem()
The item(s) within the packaging.java.util.List<Identifier>
getIdentifier()
An identifier that is specific to this particular part of the packaging.java.util.List<Reference>
getManufacturer()
Manufacturer of this package Item.java.util.List<CodeableConcept>
getMaterial()
Material type of the package item.java.util.List<PackagedProductDefinition.Package>
getPackage()
Allows containers (and parts of containers) parwithin containers, still a single packaged product.java.util.List<PackagedProductDefinition.Package.Property>
getProperty()
General characteristics of this item.Integer
getQuantity()
The quantity of this level of packaging in the package that contains it.java.util.List<PackagedProductDefinition.Package.ShelfLifeStorage>
getShelfLifeStorage()
Shelf Life and storage information.CodeableConcept
getType()
The physical type of the container of the items.boolean
hasChildren()
int
hashCode()
PackagedProductDefinition.Package.Builder
toBuilder()
Create a new Builder from the contents of this Element-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
getModifierExtension
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element
as, getExtension, getId, hasValue, is
-
-
-
-
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.
-
getShelfLifeStorage
public java.util.List<PackagedProductDefinition.Package.ShelfLifeStorage> getShelfLifeStorage()
Shelf Life and storage information.- Returns:
- An unmodifiable list containing immutable objects of type
PackagedProductDefinition.Package.ShelfLifeStorage
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.
-
getProperty
public java.util.List<PackagedProductDefinition.Package.Property> getProperty()
General characteristics of this item.- Returns:
- An unmodifiable list containing immutable objects of type
PackagedProductDefinition.Package.Property
that may be empty.
-
getContainedItem
public java.util.List<PackagedProductDefinition.Package.ContainedItem> getContainedItem()
The item(s) within the packaging.- Returns:
- An unmodifiable list containing immutable objects of type
PackagedProductDefinition.Package.ContainedItem
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.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classBackboneElement
-
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 interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public PackagedProductDefinition.Package.Builder toBuilder()
Description copied from class:Element
Create a new Builder from the contents of this Element- Specified by:
toBuilder
in classBackboneElement
-
builder
public static PackagedProductDefinition.Package.Builder builder()
-
-