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 classPackagedProductDefinition.Package.Builderstatic classPackagedProductDefinition.Package.ContainedItemThe item(s) within the packaging.static classPackagedProductDefinition.Package.PropertyGeneral characteristics of this item.static classPackagedProductDefinition.Package.ShelfLifeStorageShelf 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 voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static PackagedProductDefinition.Package.Builderbuilder()booleanequals(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.IntegergetQuantity()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.CodeableConceptgetType()The physical type of the container of the items.booleanhasChildren()inthashCode()PackagedProductDefinition.Package.BuildertoBuilder()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
Identifierthat may be empty.
-
getType
public CodeableConcept getType()
The physical type of the container of the items.- Returns:
- An immutable object of type
CodeableConceptthat 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
Integerthat 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
CodeableConceptthat 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
CodeableConceptthat 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.ShelfLifeStoragethat 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
Referencethat 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.Propertythat 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.ContainedItemthat 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.Packagethat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)Description copied from interface:VisitableAccept 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:
acceptin interfaceVisitable- Specified by:
acceptin 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public PackagedProductDefinition.Package.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static PackagedProductDefinition.Package.Builder builder()
-
-