Package com.ibm.fhir.model.resource
Class MedicinalProductPackaged
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.MedicinalProductPackaged
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class MedicinalProductPackaged extends DomainResource
A medicinal product in a container or package.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MedicinalProductPackaged.BatchIdentifier
Batch numbering.static class
MedicinalProductPackaged.Builder
static class
MedicinalProductPackaged.PackageItem
A packaging item, as a contained for medicine, possibly with other packaging items within.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class com.ibm.fhir.model.resource.Resource
id, implicitRules, language, meta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static MedicinalProductPackaged.Builder
builder()
boolean
equals(Object obj)
List<MedicinalProductPackaged.BatchIdentifier>
getBatchIdentifier()
Batch numbering.String
getDescription()
Textual description.List<Identifier>
getIdentifier()
Unique identifier.CodeableConcept
getLegalStatusOfSupply()
The legal status of supply of the medicinal product as classified by the regulator.List<Reference>
getManufacturer()
Manufacturer of this Package Item.Reference
getMarketingAuthorization()
Manufacturer of this Package Item.List<MarketingStatus>
getMarketingStatus()
Marketing information.List<MedicinalProductPackaged.PackageItem>
getPackageItem()
A packaging item, as a contained for medicine, possibly with other packaging items within.List<Reference>
getSubject()
The product with this is a pack for.boolean
hasChildren()
int
hashCode()
MedicinalProductPackaged.Builder
toBuilder()
Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
Unique identifier.- Returns:
- An unmodifiable list containing immutable objects of type
Identifier
that may be empty.
-
getSubject
public List<Reference> getSubject()
The product with this is a pack for.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getDescription
public String getDescription()
Textual description.- Returns:
- An immutable object of type
String
that may be null.
-
getLegalStatusOfSupply
public CodeableConcept getLegalStatusOfSupply()
The legal status of supply of the medicinal product as classified by the regulator.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getMarketingStatus
public List<MarketingStatus> getMarketingStatus()
Marketing information.- Returns:
- An unmodifiable list containing immutable objects of type
MarketingStatus
that may be empty.
-
getMarketingAuthorization
public Reference getMarketingAuthorization()
Manufacturer of this Package Item.- Returns:
- An immutable object of type
Reference
that may be null.
-
getManufacturer
public List<Reference> getManufacturer()
Manufacturer of this Package Item.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getBatchIdentifier
public List<MedicinalProductPackaged.BatchIdentifier> getBatchIdentifier()
Batch numbering.- Returns:
- An unmodifiable list containing immutable objects of type
MedicinalProductPackaged.BatchIdentifier
that may be empty.
-
getPackageItem
public List<MedicinalProductPackaged.PackageItem> getPackageItem()
A packaging item, as a contained for medicine, possibly with other packaging items within.- Returns:
- An unmodifiable list containing immutable objects of type
MedicinalProductPackaged.PackageItem
that is non-empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
accept
public void accept(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
-
toBuilder
public MedicinalProductPackaged.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static MedicinalProductPackaged.Builder builder()
-
-