Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElementBuilder

Class representing a FHIR Element builder

Hierarchy

Index

Constructors

constructor

  • Creates a new FHIR ElementBuilder

    Returns ElementBuilder

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

build

  • Builds and returns the element

    Returns Element

    • the element

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

Protected make

  • Make a new object that implements a FHIR Element

    Returns Element

    • an object that implements FHIR Element

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

use

  • Sets a copy of an existing element for this ElementBuilder to allow for manipulating, or interacting with, the element through this ElementBuilder If no argument is provided, a new Element will be generated

    Parameters

    • Optional element: Element

      The element to set

    Returns this

    The builder

Generated using TypeDoc