Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BackboneElementBuilder

Class representing a FHIR Resource builder

Hierarchy

Index

Constructors

constructor

Methods

addExtension

  • Adds the extension provided as an argument to the resource's extension array

    Parameters

    • extension: Extension

      The resource to be added to the extension array

    Returns this

    the Builder

addModifierExtension

  • addModifierExtension(extension: Extension): this
  • Adds the extension provided as an argument to the resource's modifierExtension array

    Parameters

    • extension: Extension

      The resource to be added to the modifierExtension array

    Returns this

    the Builder

build

  • Builds and returns the backboneElement

    override

    Returns BackboneElement

    The backboneElement

conflictsWith

  • conflictsWith(element: Element): boolean
  • Returns whether or not the element provided as an argument is in conflict with the element used in the builder

    Parameters

    • element: Element

      The element to test for conflict

    Returns boolean

    Whether it is in conflict

getExtension

  • Returns either the extensions identified by the provided url from the extension array or the entire extension array, if no url is provided

    Parameters

    • Optional url: url

    Returns Extension[]

    The extensions if they exists or the extension-array

getId

  • getId(): id | undefined
  • Returns the element's id

    Returns id | undefined

    The element's id

getModifierExtension

  • Returns either the extensions identified by the provided url from the modifierExtension array or the entire modifierExtension array, if no url is provided

    Parameters

    • Optional url: uri

    Returns Extension[]

    The extensions if it exists or the modifierExtension-array

Protected make

  • Make a new object that implements a FHIR BackboneElement

    override

    Returns BackboneElement

    An object that implements FHIR BackboneElement

setExtension

  • setExtension(extension?: Extension[]): this
  • Sets the resource'extension-array to the provided array If no argument is provided, the field will be removed

    Parameters

    • Optional extension: Extension[]

      The array to be set as the resource's extension array

    Returns this

    the Builder

setId

  • setId(id?: id): this
  • Sets the element's id to the id provided as an argument If no argument is provided, the field will be removed

    Parameters

    • Optional id: id

      the id to be set

    Returns this

    the Builder

setModifierExtension

  • setModifierExtension(extension?: Extension[]): this
  • Sets the resource's modifierExtension-array to the provided array. If no argument is provided, the field will be removed

    Parameters

    Returns this

    the Builder

use

  • Sets a copy of an existing backboneElement for this builder to allow for manipulation If no argument is provided, a new BackboneElement will be generated

    override

    Parameters

    Returns this

    The builder

Generated using TypeDoc