Data Model Libraries
    Preparing search index...

    SubstanceDefinition Class

    The detailed description of a substance, typically at a level beyond what is used for prescribing.

    FHIR Specification

    • Short: The detailed description of a substance, typically at a level beyond what is used for prescribing
    • Definition: The detailed description of a substance, typically at a level beyond what is used for prescribing.
    • FHIR Version: 5.0.0

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    parse getIdentifier setIdentifier addIdentifier hasIdentifier getVersionElement setVersionElement hasVersionElement getVersion setVersion hasVersion getStatus setStatus hasStatus getClassification setClassification addClassification hasClassification getDomain setDomain hasDomain getGrade setGrade addGrade hasGrade getDescriptionElement setDescriptionElement hasDescriptionElement getDescription setDescription hasDescription getInformationSource setInformationSource addInformationSource hasInformationSource getNote setNote addNote hasNote getManufacturer setManufacturer addManufacturer hasManufacturer getSupplier setSupplier addSupplier hasSupplier getMoiety setMoiety addMoiety hasMoiety getCharacterization setCharacterization addCharacterization hasCharacterization getProperty setProperty addProperty hasProperty getReferenceInformation setReferenceInformation hasReferenceInformation getMolecularWeight setMolecularWeight addMolecularWeight hasMolecularWeight getStructure setStructure hasStructure getCode setCode addCode hasCode getName setName addName hasName getRelationship setRelationship addRelationship hasRelationship getNucleicAcid setNucleicAcid hasNucleicAcid getPolymer setPolymer hasPolymer getProtein setProtein hasProtein getSourceMaterial setSourceMaterial hasSourceMaterial fhirType isEmpty copy toJSON getText setText hasText getContained setContained addContained hasContained getExtension setExtension hasExtension getExtensionByUrl addExtension removeExtension getModifierExtension setModifierExtension hasModifierExtension getModifierExtensionByUrl addModifierExtension removeModifierExtension resourceType getIdElement setIdElement hasIdElement getId setId hasId getMeta setMeta hasMeta getImplicitRulesElement setImplicitRulesElement hasImplicitRulesElement getImplicitRules setImplicitRules hasImplicitRules getLanguageElement setLanguageElement hasLanguageElement getLanguage setLanguage hasLanguage isResource isRequiredFieldsEmpty isDataType isComplexDataType isPrimitive isBooleanPrimitive isStringPrimitive isNumberPrimitive isBigIntPrimitive isDateTimePrimitive copyValues initIdentifier initClassification initGrade initInformationSource initNote initManufacturer initSupplier initMoiety initCharacterization initProperty initMolecularWeight initCode initName initRelationship

    Constructors

    Properties

    identifier?: Identifier[]

    SubstanceDefinition.identifier Element

    FHIR Specification

    • Short: Identifier by which this substance is known
    • Definition: Identifier by which this substance is known.
    • FHIR Type: Identifier
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    version?: StringType

    SubstanceDefinition.version Element

    FHIR Specification

    • Short: A business level version identifier of the substance
    • Definition: A business level version identifier of the substance.
    • FHIR Type: string
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    SubstanceDefinition.status Element

    FHIR Specification

    • Short: Status of substance within the catalogue e.g. active, retired
    • Definition: Status of substance within the catalogue e.g. active, retired.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    classification?: CodeableConcept[]

    SubstanceDefinition.classification Element

    FHIR Specification

    • Short: A categorization, high level e.g. polymer or nucleic acid, or food, chemical, biological, or lower e.g. polymer linear or branch chain, or type of impurity
    • Definition: A high level categorization, e.g. polymer or nucleic acid, or food, chemical, biological, or a lower level such as the general types of polymer (linear or branch chain) or type of impurity (process related or contaminant).
    • FHIR Type: CodeableConcept
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true

    SubstanceDefinition.domain Element

    FHIR Specification

    • Short: If the substance applies to human or veterinary use
    • Definition: If the substance applies to human or veterinary use.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    grade?: CodeableConcept[]

    SubstanceDefinition.grade Element

    FHIR Specification

    • Short: The quality standard, established benchmark, to which substance complies (e.g. USP/NF, BP)
    • Definition: The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard).
    • FHIR Type: CodeableConcept
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    description?: MarkdownType

    SubstanceDefinition.description Element

    FHIR Specification

    • Short: Textual description of the substance
    • Definition: Textual description of the substance.
    • FHIR Type: markdown
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    informationSource?: Reference[]

    SubstanceDefinition.informationSource Element

    FHIR Specification

    note?: Annotation[]

    SubstanceDefinition.note Element

    FHIR Specification

    • Short: Textual comment about the substance's catalogue or registry record
    • Definition: Textual comment about the substance's catalogue or registry record.
    • FHIR Type: Annotation
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    manufacturer?: Reference[]

    SubstanceDefinition.manufacturer Element

    FHIR Specification

    • Short: The entity that creates, makes, produces or fabricates the substance
    • Definition: The entity that creates, makes, produces or fabricates the substance. This is a set of potential manufacturers but is not necessarily comprehensive.
    • FHIR Type: Reference
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    supplier?: Reference[]

    SubstanceDefinition.supplier Element

    FHIR Specification

    • Short: An entity that is the source for the substance. It may be different from the manufacturer
    • Definition: An entity that is the source for the substance. It may be different from the manufacturer. Supplier is synonymous to a distributor.
    • FHIR Type: Reference
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true

    SubstanceDefinition.moiety Element

    FHIR Specification

    • Short: Moiety, for structural modifications
    • Definition: Moiety, for structural modifications.
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true

    SubstanceDefinition.characterization Element

    FHIR Specification

    • Short: General specifications for this substance
    • Definition: General specifications for this substance.
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true

    SubstanceDefinition.property Element

    FHIR Specification

    • Short: General specifications for this substance
    • Definition: General specifications for this substance.
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    referenceInformation?: Reference

    SubstanceDefinition.referenceInformation Element

    FHIR Specification

    SubstanceDefinition.molecularWeight Element

    FHIR Specification

    • Short: The average mass of a molecule of a compound
    • Definition: The average mass of a molecule of a compound compared to 1/12 the mass of carbon 12 and calculated as the sum of the atomic weights of the constituent atoms.
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true

    SubstanceDefinition.structure Element

    FHIR Specification

    • Short: Structural information
    • Definition: Structural information.
    • FHIR Type: BackboneElement
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    SubstanceDefinition.code Element

    FHIR Specification

    • Short: Codes associated with the substance
    • Definition: Codes associated with the substance.
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true

    FHIR Specification

    • Short: Names applicable to this substance
    • Definition: Names applicable to this substance.
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true

    SubstanceDefinition.relationship Element

    FHIR Specification

    • Short: A link between this substance and another
    • Definition: A link between this substance and another, with details of the relationship.
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    nucleicAcid?: Reference

    SubstanceDefinition.nucleicAcid Element

    FHIR Specification

    polymer?: Reference

    SubstanceDefinition.polymer Element

    FHIR Specification

    protein?: Reference

    SubstanceDefinition.protein Element

    FHIR Specification

    SubstanceDefinition.sourceMaterial Element

    FHIR Specification

    • Short: Material or taxonomic/anatomical source
    • Definition: Material or taxonomic/anatomical source for the substance.
    • FHIR Type: BackboneElement
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    Methods

    • Parse the provided SubstanceDefinition JSON to instantiate the SubstanceDefinition data model.

      Parameters

      • sourceJson: Value

        JSON representing FHIR SubstanceDefinition

      • OptionaloptSourceField: string

        Optional data source field (e.g. <complexTypeName>.<complexTypeFieldName>); defaults to SubstanceDefinition

      Returns undefined | SubstanceDefinition

      SubstanceDefinition data model or undefined for SubstanceDefinition

      JsonError if the provided JSON is not a valid JSON object

    • Assigns the provided ReferenceInformation object value to the referenceInformation property.

      Parameters

      • value: undefined | Reference

        the referenceInformation object value

      Returns this

      this

      @ReferenceTargets('SubstanceDefinition.referenceInformation', ['SubstanceReferenceInformation',])

      InvalidTypeError for invalid data type or reference value

    • Assigns the provided value to the text property.

      Parameters

      Returns this

      this

    • Returns boolean

      true if the text property exists and has a value; false otherwise

    • Assigns the provided Resource array value to the contained property.

      Parameters

      • value: undefined | IResource[]

        the contained array value

      Returns this

      this

    • Returns boolean

      true if the contained property exists and has a value; false otherwise

    • Assigns the provided array of Extension values to the extension property.

      Parameters

      • extension: undefined | IExtension[]

        array of Extensions

      Returns this

      this

    • Determines if the extension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      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

    • Adds the provided Extension to the extension property array.

      Parameters

      • extension: undefined | IExtension

        the Extension value to add to the extension property array

      Returns this

      this

    • Removes the Extension having the provided url from the extension property array.

      Parameters

      • url: string

        the url that identifies a specific Extension to remove

      Returns void

      AssertionError for invalid url

    • Determines if the modifierExtension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      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

    • Assigns the provided PrimitiveType value to the id property.

      Parameters

      • element: undefined | IdType

        the id value

      Returns this

      this

    • Returns undefined | string

      the id property value as a primitive value

    • Assigns the provided primitive value to the id property.

      Parameters

      • value: undefined | string

        the id value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns boolean

      true if the id property exists and has a value; false otherwise

    • Assigns the provided value to the meta property.

      Parameters

      • value: undefined | Meta

        the meta value

      Returns this

      this

    • Returns boolean

      true if the meta property exists and has a value; false otherwise

    • Assigns the provided primitive value to the implicitRules property.

      Parameters

      • value: undefined | string

        the implicitRules value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns undefined | string

      the language property value as a primitive value

    • Assigns the provided primitive value to the language property.

      Parameters

      • value: undefined | string

        the language value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns boolean

      true if the language property exists and has a value; false otherwise

    • Returns boolean

      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

    • Returns boolean

      true if the instance is a FHIR complex or primitive datatype; false otherwise