Package ca.uhn.fhir.model.dstu2.resource
Class Medication.Package
java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.api.BaseIdentifiableElement
ca.uhn.fhir.model.dstu2.resource.Medication.Package
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IIdentifiableElement
,ca.uhn.fhir.model.api.IResourceBlock
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
- Enclosing class:
Medication
public static class Medication.Package
extends ca.uhn.fhir.model.api.BaseIdentifiableElement
implements ca.uhn.fhir.model.api.IResourceBlock
Block class for child element: Medication.package ()
Definition: Information that only applies to packages (not products)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for content ()addContent
(Medication.PackageContent theValue) Adds a given new value for content ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for container ().Gets the value(s) for content ().Gets the first repetition for content (), creating it if it does not already exist.boolean
isEmpty()
setContainer
(CodeableConceptDt theValue) Sets the value(s) for container ()setContent
(List<Medication.PackageContent> theValue) Sets the value(s) for content ()Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Constructor Details
-
Package
public Package()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getContainer
Gets the value(s) for container (). creating it if it does not exist. Will not returnnull
.Definition: The kind of container that this package comes as
-
setContainer
Sets the value(s) for container ()Definition: The kind of container that this package comes as
-
getContent
Gets the value(s) for content (). creating it if it does not exist. Will not returnnull
.Definition: A set of components that go to make up the described item.
-
setContent
Sets the value(s) for content ()Definition: A set of components that go to make up the described item.
-
addContent
Adds and returns a new value for content ()Definition: A set of components that go to make up the described item.
-
addContent
Adds a given new value for content ()Definition: A set of components that go to make up the described item.
- Parameters:
theValue
- The content to add (must not benull
)
-
getContentFirstRep
Gets the first repetition for content (), creating it if it does not already exist.Definition: A set of components that go to make up the described item.
-