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 resource provided as an argument to the resource's extension array, if a resource with that id does not already exist in the 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

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

    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

    Parameters

    • Optional id: id

      the id to be set

    Returns this

    the Builder

use

  • Sets an existing element for this ElementBuilder to allow for manipulating, or interacting with, the element through this ElementBuilder

    Parameters

    • Optional element: Element

      The element to set

    Returns this

    The builder

Generated using TypeDoc