Data Model Libraries
    Preparing search index...

    Interface IElement represents a base element structure that extends the functionalities of IBase and IBaseExtension, providing additional methods for handling the id property.

    interface IElement {
        getId: () => undefined | string;
        setId: (value: undefined | string) => this;
        hasId: () => boolean;
        fhirType: () => string;
        isEmpty: () => boolean;
        copy: () => any;
        toJSON: () => undefined | Value;
        isRequiredFieldsEmpty: () => boolean;
        isResource: () => boolean;
        isDataType: () => boolean;
        isComplexDataType: () => boolean;
        isPrimitive: () => boolean;
        isBooleanPrimitive: () => boolean;
        isStringPrimitive: () => boolean;
        isNumberPrimitive: () => boolean;
        isBigIntPrimitive: () => boolean;
        isDateTimePrimitive: () => boolean;
        getExtension: () => undefined | IExtension[];
        setExtension: (extension: undefined | IExtension[]) => this;
        hasExtension: (url?: string) => boolean;
        getExtensionByUrl: (url: string) => undefined | IExtension;
        addExtension: (extension: undefined | IExtension) => this;
        removeExtension: (url: string) => void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    getId: () => undefined | string

    Type Declaration

      • (): undefined | string
      • Returns undefined | string

        the id property value

    setId: (value: undefined | string) => this

    Assigns the provided value to the id property.

    Type Declaration

      • (value: undefined | string): this
      • Parameters

        • value: undefined | string

          the id value

        Returns this

        this

    PrimitiveTypeError for invalid value

    hasId: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

        true if id exists and has a value; false otherwise

    fhirType: () => string

    Type Declaration

      • (): string
      • Returns string

        the FHIR type defined in the FHIR standard

    isEmpty: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

        true if the instance is empty; false otherwise

    copy: () => any

    Creates a copy of the current instance.

    Type Declaration

      • (): any
      • Returns any

        the a new instance copied from the current instance

    toJSON: () => undefined | Value

    Type Declaration

      • (): undefined | Value
      • Returns undefined | Value

        the JSON value

    isRequiredFieldsEmpty: () => boolean

    Type Declaration

      • (): boolean
      • 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

    isResource: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

        true if the instance is a FHIR resource; false otherwise

    isDataType: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

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

    isComplexDataType: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

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

    isPrimitive: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

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

    isBooleanPrimitive: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

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

    isStringPrimitive: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

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

    isNumberPrimitive: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

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

    isBigIntPrimitive: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

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

    isDateTimePrimitive: () => boolean

    Type Declaration

      • (): boolean
      • Returns boolean

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

    getExtension: () => undefined | IExtension[]

    Returns the array of extension values

    setExtension: (extension: undefined | IExtension[]) => this

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

    Type Declaration

      • (extension: undefined | IExtension[]): this
      • Parameters

        • extension: undefined | IExtension[]

          array of Extensions

        Returns this

    hasExtension: (url?: string) => boolean

    Determines if the extension property exists.

    Type Declaration

      • (url?: string): boolean
      • Parameters

        • Optionalurl: string

          the url that identifies a specific Extension

        Returns boolean

    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

    getExtensionByUrl: (url: string) => undefined | IExtension

    Returns the Extension having the provided url.

    Type Declaration

      • (url: string): undefined | IExtension
      • Parameters

        • url: string

          the url that identifies a specific Extension

        Returns undefined | IExtension

    AssertionError for invalid url

    addExtension: (extension: undefined | IExtension) => this

    Adds the provided Extension to the extension property array.

    Type Declaration

      • (extension: undefined | IExtension): this
      • Parameters

        • extension: undefined | IExtension

          the Extension value to add to the extension property array

        Returns this

    removeExtension: (url: string) => void

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

    Type Declaration

      • (url: string): void
      • Parameters

        • url: string

          the url that identifies a specific Extension to remove

        Returns void

    AssertionError for invalid url