Data Model Libraries
    Preparing search index...

    SubstanceSpecification 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: 4.0.1

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    parse getIdentifier setIdentifier hasIdentifier getType setType hasType getStatus setStatus hasStatus getDomain setDomain hasDomain getDescriptionElement setDescriptionElement hasDescriptionElement getDescription setDescription hasDescription getSource setSource addSource hasSource getCommentElement setCommentElement hasCommentElement getComment setComment hasComment getMoiety setMoiety addMoiety hasMoiety getProperty setProperty addProperty hasProperty getReferenceInformation setReferenceInformation hasReferenceInformation getStructure setStructure hasStructure getCode setCode addCode hasCode getName setName addName hasName getMolecularWeight setMolecularWeight addMolecularWeight hasMolecularWeight 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 initSource initMoiety initProperty initCode initName initMolecularWeight initRelationship

    Constructors

    Properties

    identifier?: Identifier

    SubstanceSpecification.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..1
    • isModifier: false
    • isSummary: true

    SubstanceSpecification.type Element

    FHIR Specification

    • Short: High level categorization, e.g. polymer or nucleic acid
    • Definition: High level categorization, e.g. polymer or nucleic acid.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    SubstanceSpecification.status Element

    FHIR Specification

    • Short: Status of substance within the catalogue e.g. approved
    • Definition: Status of substance within the catalogue e.g. approved.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    SubstanceSpecification.domain Element

    FHIR Specification

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

    SubstanceSpecification.description Element

    FHIR Specification

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

    SubstanceSpecification.source Element

    FHIR Specification

    comment?: StringType

    SubstanceSpecification.comment Element

    FHIR Specification

    • Short: Textual comment about this record of a substance
    • Definition: Textual comment about this record of a substance.
    • FHIR Type: string
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    SubstanceSpecification.moiety Element

    FHIR Specification

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

    SubstanceSpecification.property Element

    FHIR Specification

    • Short: General specifications for this substance, including how it is related to other substances
    • Definition: General specifications for this substance, including how it is related to other substances.
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    referenceInformation?: Reference

    SubstanceSpecification.referenceInformation Element

    FHIR Specification

    SubstanceSpecification.structure Element

    FHIR Specification

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

    SubstanceSpecification.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

    SubstanceSpecification.molecularWeight Element

    FHIR Specification

    • Short: The molecular weight or weight range (for proteins, polymers or nucleic acids)
    • Definition: The molecular weight or weight range (for proteins, polymers or nucleic acids).
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true

    SubstanceSpecification.relationship Element

    FHIR Specification

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

    SubstanceSpecification.nucleicAcid Element

    FHIR Specification

    polymer?: Reference

    SubstanceSpecification.polymer Element

    FHIR Specification

    protein?: Reference

    SubstanceSpecification.protein Element

    FHIR Specification

    sourceMaterial?: Reference

    SubstanceSpecification.sourceMaterial Element

    FHIR Specification

    Methods

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

      Parameters

      • sourceJson: Value

        JSON representing FHIR SubstanceSpecification

      • OptionaloptSourceField: string

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

      Returns undefined | SubstanceSpecification

      SubstanceSpecification data model or undefined for SubstanceSpecification

      JsonError if the provided JSON is not a valid JSON object

    • 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