Skip to main content

Substance

ResourceBase · EntitiesTrial useMaturity 2

A homogeneous material with a definite composition.

Tested supportFull test results →
Backends
PostgreSQLElasticsearch
Interactions
CreateReadUpdatePatchDelete
Search
8 of 8 parameters tested

Structure​

ElementCard.TypeDescription
identifierΣ
0..*IdentifierUnique identifier
status?!Σ
0..1codeactive | inactive | entered-in-errorBinding (required): substance-status
categoryΣ
0..*CodeableConceptWhat class/type of substance this isBinding (extensible): substance-category
codeRequiredΣ
1..1CodeableConceptWhat substance this isBinding (example): substance-code
descriptionΣ
0..1stringTextual description of the substance, comments
instanceΣ
0..*BackboneElementIf this describes a specific package/container of the substance
identifierΣ
0..1IdentifierIdentifier of the package/container
expiryΣ
0..1dateTimeWhen no longer valid to use
quantityΣ
0..1QuantityAmount of substance in the package
ingredientΣ
0..*BackboneElementComposition information about the substance
quantityΣ
0..1RatioOptional amount (concentration)
substance[x]RequiredΣ
1..1CodeableConcept | Reference(Substance)A component of the substanceBinding (example): substance-code

Σ in _summary results · ?! modifier element · 1.. required · inherited elements in grey

Search parameters​

Query with GET [base]/Substance?[parameter]=[value]. Type decides which modifiers and prefixes apply, see search features.

ParameterTypeDescriptionPGES
categorytoken

The category of the substance

Substance.category
codetoken

The code of the substance or ingredient

Substance.code | (Substance.ingredient.substance.ofType(CodeableConcept))
container-identifiertoken

Identifier of the package/container

Substance.instance.identifier
expirydate

Expiry date of package or container of substance

Substance.instance.expiry
identifiertoken

Unique identifier for the substance

Substance.identifier
quantityquantity

Amount of substance in the package

Substance.instance.quantity
statustoken

active | inactive | entered-in-error

Substance.status
substance-referencereference

A component of the substance

(Substance.ingredient.substance.ofType(Reference))

PG: PostgreSQL, ES: Elasticsearch. passes its TestScript checks, fails, not tested yet.

Common parameters on every resource (8)
_haste-health-authorreference

The author of the resource

_idtoken

Logical id of this artifact

_lastUpdateddate

When the resource version last changed

_profileuri

Profiles this resource claims to conform to

_securitytoken

Security Labels applied to this resource

_sourceuri

Identifies where the resource comes from

_tagtoken

Tags applied to this resource

_typetoken

Derived from the R4B Definition