Data Model Libraries
    Preparing search index...

    Abstract Resource Class

    This is the base resource type for everything.

    This specification defines a series of different types of resource that can be used to exchange and/or store data to solve a wide range of healthcare-related problems, both clinical and administrative. In addition, this specification defines several different ways of exchanging the resources.

    A resource is an entity that:

    • has a known identity (a URL) by which it can be addressed
    • identifies itself as one of the types of resource defined in this specification
    • contains a set of structured data items as described by the definition of the resource type
    • has an identified version that changes if the contents of the resource change.

    FHIR Specification

    • Short: Base Resource.
    • Definition: This is the base resource type for everything.
    • FHIR Version: 4.0.1; Normative since 4.0.0

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    id?: any

    Resource.id Element

    FHIR Specification

    • Short: Logical id of this artifact
    • Definition: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    • Comment: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
    • FHIR Type: id
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    meta?: any

    Resource.meta Element

    FHIR Specification

    • Short: Metadata about the resource
    • Definition: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
    • FHIR Type: Meta
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    implicitRules?: any

    Resource.implicitRules Element

    FHIR Specification

    • Short: A set of rules under which this content was created
    • Definition: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
    • Comment: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
    • FHIR Type: uri
    • Cardinality: 0..1
    • isModifier: true
    • isModifierReason: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
    • isSummary: true
    language?: any

    Resource.language Element

    FHIR Specification

    • Short: Language of the resource content
    • Definition: The base language in which the resource is written.
    • Comment: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
    • FHIR Type: code
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false

    Methods

    • Parse the provided json to instantiate the data model.

      Parameters

      • _sourceJson: JsonObject

        JSON representing FHIR resource

      • Optional_optSourceField: string

        Optional data source field (e.g. <complexTypeName>.<complexTypeFieldName>)

      Returns undefined | IResource

      Data model or undefined

    • Returns string

      the FHIR resource type as defined by the FHIR specification

    • Returns IdType

      the id property value as a PrimitiveType

    • Assigns the provided PrimitiveType value to the id property.

      Parameters

      • element: undefined | IdType

        the id value

      Returns this

      this

    • Returns boolean

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

    • 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

    • Returns Meta

      the meta property value as a Meta

    • 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 PrimitiveType value to the implicitRules property.

      Parameters

      • element: undefined | UriType

        the implicitRules value

      Returns this

      this

    • Returns boolean

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

    • Returns undefined | string

      the implicitRules property value as a primitive value

    • 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 boolean

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

    • Assigns the provided PrimitiveType value to the language property.

      Parameters

      • element: undefined | CodeType

        the language value

      Returns this

      this

    • Returns boolean

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

    • 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 string

      the FHIR type defined in the FHIR standard

    • Returns boolean

      true if the instance is empty; false otherwise

    • Creates a copy of the current instance.

      Returns Resource

      the a new instance copied from the current instance

    • Returns boolean

      true if the instance is a FHIR resource; false otherwise

    • Returns undefined | Value

      the JSON value

    • 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

    • Returns boolean

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

    • Returns boolean

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

    • Returns boolean

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

    • Returns boolean

      true if the instance is a FHIR primitive string-based datatype; false otherwise

    • Returns boolean

      true if the instance is a FHIR primitive number-based datatype; false otherwise

    • Returns boolean

      true if the instance is a FHIR primitive bigint-based datatype; false otherwise

    • Returns boolean

      true if the instance is a FHIR primitive datetime-based datatype; false otherwise

    • Protected

      Copies the current instance's elements into the provided object.

      Parameters

      Returns void