Data Model Libraries
    Preparing search index...

    Basic Class

    Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.

    Need some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources.

    FHIR Specification

    • Short: Resource for non-supported content
    • Definition: Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.
    • FHIR Version: 4.0.1

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    identifier?: Identifier[]

    Basic.identifier Element

    FHIR Specification

    • Short: Business identifier
    • Definition: Identifier assigned to the resource for business purposes, outside the context of FHIR.
    • FHIR Type: Identifier
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    code: null | CodeableConcept

    Basic.code Element

    FHIR Specification

    • Short: Kind of Resource
    • Definition: Identifies the 'type' of resource - equivalent to the resource name for other resources.
    • Comment: Because resource references will only be able to indicate 'Basic', the type of reference will need to be specified in a Profile identified as part of the resource. Refer to the resource notes section for information on appropriate terminologies for this code. This element is labeled as a modifier because it defines the meaning of the resource and cannot be ignored.
    • Requirements: Must be able to distinguish different types of Basic resources.
    • FHIR Type: CodeableConcept
    • Cardinality: 1..1
    • isModifier: true
    • isModifierReason: This element determines what kind of resource is being represented which drives the meaning of all of the other elements.
    • isSummary: true
    subject?: Reference

    Basic.subject Element

    FHIR Specification

    • Short: Identifies the focus of this resource
    • Definition: Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.
    • Comment: Optional as not all potential resources will have subjects. Resources associated with multiple subjects can handle this via extension.
    • Requirements: Needed for partitioning the resource by Patient.
    • FHIR Type: Reference
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    created?: DateType

    Basic.created Element

    FHIR Specification

    • Short: When created
    • Definition: Identifies when the resource was first created.
    • Requirements: Allows ordering resource instances by time.
    • FHIR Type: date
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    author?: Reference

    Basic.author Element

    FHIR Specification

    Methods

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

      Parameters

      • sourceJson: Value

        JSON representing FHIR Basic

      • OptionaloptSourceField: string

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

      Returns undefined | Basic

      Basic data model or undefined for Basic

      JsonError if the provided JSON is not a valid JSON object

    • Assigns the provided Author object value to the author property.

      Parameters

      • value: undefined | Reference

        the author object value

      Returns this

      this

      @ReferenceTargets('Basic.author', ['Practitioner','PractitionerRole','Patient','RelatedPerson','Organization',])

      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 the instance is a FHIR complex or primitive datatype; false otherwise