Package org.hl7.fhir.dstu2.model
Class Substance
java.lang.Object
org.hl7.fhir.dstu2.model.Base
org.hl7.fhir.dstu2.model.BaseResource
org.hl7.fhir.dstu2.model.Resource
org.hl7.fhir.dstu2.model.DomainResource
org.hl7.fhir.dstu2.model.Substance
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IAnyResource
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
,org.hl7.fhir.instance.model.api.IBaseResource
,org.hl7.fhir.instance.model.api.IDomainResource
A homogeneous material with a definite composition.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected List
<CodeableConcept> A code that classifies the general type of substance.protected CodeableConcept
A code (or set of codes) that identify this substance.protected StringType
A description of the substance - its appearance, handling requirements, and other usage notes.protected List
<Identifier> Unique identifier for the substance.protected List
<Substance.SubstanceIngredientComponent> A substance can be composed of other substances.protected List
<Substance.SubstanceInstanceComponent> Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAG
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
equalsDeep
(Base other) boolean
equalsShallow
(Base other) fhirType()
getCode()
boolean
boolean
hasCode()
boolean
boolean
boolean
boolean
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> childrenList) setCode
(CodeableConcept value) setDescription
(String value) setDescriptionElement
(StringType value) void
setProperty
(String name, Base value) protected Substance
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionByUrl, getModifierExtension, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setText
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
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.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Field Details
-
identifier
Unique identifier for the substance. -
category
A code that classifies the general type of substance. This is used for searching, sorting and display purposes. -
code
A code (or set of codes) that identify this substance. -
description
A description of the substance - its appearance, handling requirements, and other usage notes. -
instance
Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance. -
ingredient
A substance can be composed of other substances. -
SP_IDENTIFIER
- See Also:
-
SP_CONTAINERIDENTIFIER
- See Also:
-
SP_CODE
- See Also:
-
SP_QUANTITY
- See Also:
-
SP_SUBSTANCE
- See Also:
-
SP_EXPIRY
- See Also:
-
SP_CATEGORY
- See Also:
-
-
Constructor Details
-
Substance
public Substance() -
Substance
-
-
Method Details
-
getIdentifier
- Returns:
identifier
(Unique identifier for the substance.)
-
hasIdentifier
-
addIdentifier
- Returns:
identifier
(Unique identifier for the substance.)
-
addIdentifier
-
getCategory
- Returns:
category
(A code that classifies the general type of substance. This is used for searching, sorting and display purposes.)
-
hasCategory
-
addCategory
- Returns:
category
(A code that classifies the general type of substance. This is used for searching, sorting and display purposes.)
-
addCategory
-
getCode
- Returns:
code
(A code (or set of codes) that identify this substance.)
-
hasCode
-
setCode
- Parameters:
value
-code
(A code (or set of codes) that identify this substance.)
-
getDescriptionElement
- Returns:
description
(A description of the substance - its appearance, handling requirements, and other usage notes.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
hasDescriptionElement
-
hasDescription
-
setDescriptionElement
- Parameters:
value
-description
(A description of the substance - its appearance, handling requirements, and other usage notes.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
getDescription
- Returns:
- A description of the substance - its appearance, handling requirements, and other usage notes.
-
setDescription
- Parameters:
value
- A description of the substance - its appearance, handling requirements, and other usage notes.
-
getInstance
- Returns:
instance
(Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.)
-
hasInstance
-
addInstance
- Returns:
instance
(Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.)
-
addInstance
-
getIngredient
- Returns:
ingredient
(A substance can be composed of other substances.)
-
hasIngredient
-
addIngredient
- Returns:
ingredient
(A substance can be composed of other substances.)
-
addIngredient
-
listChildren
- Overrides:
listChildren
in classDomainResource
-
setProperty
- Overrides:
setProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Overrides:
addChild
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
- Specified by:
fhirType
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
fhirType
in classDomainResource
-
copy
- Specified by:
copy
in classDomainResource
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classDomainResource
-
equalsShallow
- Overrides:
equalsShallow
in classDomainResource
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
isEmpty
in classDomainResource
-
getResourceType
- Specified by:
getResourceType
in classResource
-