Private OptionalidentifierSubstance.identifier Element
Privateinstance_Substance.instance Element
FHIR Specification
booleanPrivate ReadonlysubstanceFHIR CodeSystem: SubstanceStatus
Private OptionalstatusSubstance.status Element
FHIR Specification
codeCodeSystem Enumeration: SubstanceStatusEnum
Private OptionalcategorySubstance.category Element
FHIR Specification
CodeableConceptPrivatecodeSubstance.code Element
FHIR Specification
CodeableReference
Private OptionaldescriptionSubstance.description Element
Private OptionalexpirySubstance.expiry Element
Private OptionalquantitySubstance.quantity Element
Private OptionalingredientSubstance.ingredient Element
StaticparseParse the provided Substance JSON to instantiate the Substance data model.
JSON representing FHIR Substance
OptionaloptSourceField: stringOptional data source field (e.g. <complexTypeName>.<complexTypeFieldName>); defaults to Substance
Substance data model or undefined for Substance
JsonError if the provided JSON is not a valid JSON object
the identifier property value as a Identifier array
Assigns the provided Identifier array value to the identifier property.
the identifier array value
this
InvalidTypeError for invalid data types
Add the provided Identifier value to the identifier array property.
the identifier value
this
InvalidTypeError for invalid data types
true if the identifier property exists and has a value; false otherwise
the instance_ property value as a BooleanType object if defined; else an empty BooleanType object
Assigns the provided PrimitiveType value to the instance_ property.
the instance_ value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the instance_ property exists and has a value; false otherwise
the instance_ property value as a fhirBoolean if defined; else null
Assigns the provided primitive value to the instance_ property.
the instance_ value
this
PrimitiveTypeError for invalid primitive types
true if the instance_ property exists and has a value; false otherwise
the status property value as a EnumCodeType if defined; else undefined
CodeSystem Enumeration: SubstanceStatusEnum
Assigns the provided EnumCodeType value to the status property.
the status value
this
InvalidCodeError for invalid code values
InvalidTypeError for invalid data types
CodeSystem Enumeration: SubstanceStatusEnum
true if the status property exists and has a value; false otherwise
the status property value as a CodeType if defined; else undefined
CodeSystem Enumeration: SubstanceStatusEnum
Assigns the provided PrimitiveType value to the status property.
the status value
this
InvalidCodeError for invalid code value
InvalidTypeError for invalid data types
CodeSystem Enumeration: SubstanceStatusEnum
true if the status property exists and has a value; false otherwise
the status property value as a fhirCode if defined; else undefined
CodeSystem Enumeration: SubstanceStatusEnum
Assigns the provided primitive value to the status property.
the status value
this
InvalidCodeError for invalid code value
PrimitiveTypeError for invalid primitive types
CodeSystem Enumeration: SubstanceStatusEnum
true if the status property exists and has a value; false otherwise
the category property value as a CodeableConcept array
Assigns the provided CodeableConcept array value to the category property.
the category array value
this
InvalidTypeError for invalid data types
Add the provided CodeableConcept value to the category array property.
the category value
this
InvalidTypeError for invalid data types
true if the category property exists and has a value; false otherwise
the code property value as a CodeableReference object if defined; else an empty CodeableReference object
Assigns the provided CodeableReference object value to the code property.
the code object value
this
InvalidTypeError for invalid data types
true if the code property exists and has a value; false otherwise
the description property value as a MarkdownType object if defined; else an empty MarkdownType object
Assigns the provided PrimitiveType value to the description property.
the description value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the description property exists and has a value; false otherwise
the description property value as a fhirMarkdown if defined; else undefined
Assigns the provided primitive value to the description property.
the description value
this
PrimitiveTypeError for invalid primitive types
true if the description property exists and has a value; false otherwise
the expiry property value as a DateTimeType object if defined; else an empty DateTimeType object
Assigns the provided PrimitiveType value to the expiry property.
the expiry value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the expiry property exists and has a value; false otherwise
the expiry property value as a fhirDateTime if defined; else undefined
Assigns the provided primitive value to the expiry property.
the expiry value
this
PrimitiveTypeError for invalid primitive types
true if the expiry property exists and has a value; false otherwise
the quantity property value as a Quantity object if defined; else an empty Quantity object
Assigns the provided Quantity object value to the quantity property.
the quantity object value
this
InvalidTypeError for invalid data types
true if the quantity property exists and has a value; false otherwise
the ingredient property value as a SubstanceIngredientComponent array
Assigns the provided SubstanceIngredientComponent array value to the ingredient property.
the ingredient array value
this
InvalidTypeError for invalid data types
Add the provided SubstanceIngredientComponent value to the ingredient array property.
the ingredient value
this
InvalidTypeError for invalid data types
true if the ingredient property exists and has a value; false otherwise
the FHIR type defined in the FHIR standard
true if the instance is empty; false otherwise
true if and only if the data model has required fields (min cardinality > 0)
and at least one of those required fields in the instance is empty; false otherwise
Creates a copy of the current instance.
the a new instance copied from the current instance
the JSON value or undefined if the instance is empty
the text property value as a Narrative
Assigns the provided value to the text property.
the text value
this
true if the text property exists and has a value; false otherwise
the contained property value as a Resource array
Assigns the provided Resource array value to the contained property.
the contained array value
this
Add the provided Resource value to the contained array property.
the contained value
this
true if the contained property exists and has a value; false otherwise
the array of extension values
Assigns the provided array of Extension values to the extension property.
array of Extensions
this
Determines if the extension property exists.
Optionalurl: stringthe url that identifies a specific Extension
true if an Extension has the provided url; false otherwise
If the url is provided, determines if an Extension having
the provided url exists. If the url is not provided, determines
if the extension property exists and has any values.
AssertionError for invalid url
Returns the Extension having the provided url.
the url that identifies a specific Extension
the Extension having the provided url
AssertionError for invalid url
Adds the provided Extension to the extension property array.
the Extension value to add to the extension property array
this
Removes the Extension having the provided url from the extension property array.
the url that identifies a specific Extension to remove
AssertionError for invalid url
the array of modifierExtension values
Assigns the provided array of Extension values to the modifierExtension property.
array of Extensions
this
Determines if the modifierExtension property exists.
Optionalurl: stringthe url that identifies a specific Extension
true if an Extension has the provided url
If the url is provided, determines if an Extension having
the provided url exists. If the url is not provided, determines
if the modifierExtension property exists and has any values.
AssertionError for invalid url
Returns the Extension having the provided url.
the url that identifies a specific Extension
the Extension having the provided url
AssertionError for invalid url
Adds the provided Extension to the modifierExtension property array.
the Extension value to add to the modifierExtension property array
this
Removes the Extension having the provided url from the modifierExtension property array.
the url that identifies a specific Extension to remove
AssertionError for invalid url
the FHIR resource type as defined by the FHIR specification
the id property value as a PrimitiveType
Assigns the provided PrimitiveType value to the id property.
the id value
this
true if the id property exists and has a value; false otherwise
the id property value as a primitive value
Assigns the provided primitive value to the id property.
the id value
this
PrimitiveTypeError for invalid primitive types
true if the id property exists and has a value; false otherwise
the meta property value as a Meta
Assigns the provided value to the meta property.
the meta value
this
true if the meta property exists and has a value; false otherwise
the implicitRules property value as a PrimitiveType
Assigns the provided PrimitiveType value to the implicitRules property.
the implicitRules value
this
true if the implicitRules property exists and has a value; false otherwise
the implicitRules property value as a primitive value
Assigns the provided primitive value to the implicitRules property.
the implicitRules value
this
PrimitiveTypeError for invalid primitive types
true if the system property exists and has a value; false otherwise
the language property value as a PrimitiveType
Assigns the provided PrimitiveType value to the language property.
the language value
this
true if the language property exists and has a value; false otherwise
the language property value as a primitive value
Assigns the provided primitive value to the language property.
the language value
this
PrimitiveTypeError for invalid primitive types
true if the language property exists and has a value; false otherwise
true if the instance is a FHIR resource; false otherwise
true if the instance is a FHIR complex or primitive datatype; false otherwise
true if the instance is a FHIR complex datatype; false otherwise
true if the instance is a FHIR primitive datatype; false otherwise
true if the instance is a FHIR primitive boolean datatype; false otherwise
true if the instance is a FHIR primitive string-based datatype; false otherwise
true if the instance is a FHIR primitive number-based datatype; false otherwise
true if the instance is a FHIR primitive bigint-based datatype; false otherwise
true if the instance is a FHIR primitive datetime-based datatype; false otherwise
ProtectedcopyProtectedCopies the current instance's elements into the provided object.
the copied instance
PrivateinitInitialize the identifier property
PrivateinitInitialize the category property
PrivateinitInitialize the ingredient property
Substance Class
Remarks
A homogeneous material with a definite composition.
FHIR Specification
See
FHIR Substance