Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CodingBuilder

A class representing a FHIR CodingBuilder

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

build

  • Builds and returns the Coding

    override

    Returns Coding

    • the Coding

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

getCode

  • getCode(): code | undefined
  • Returns the code-field of the Coding

    Returns code | undefined

    The code-field

getDisplay

  • getDisplay(): string | undefined
  • Returns the display-field of the Coding

    Returns string | undefined

    The display-field

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

getSystem

  • getSystem(): string | undefined
  • Returns the system-field of the Coding

    Returns string | undefined

    The system-field

getUserSelected

  • getUserSelected(): boolean | undefined
  • Returns the userSelected-field of the Coding

    Returns boolean | undefined

    The userSelected-field

getVersion

  • getVersion(): string | undefined
  • Returns the version-field of the Coding

    Returns string | undefined

    The version-field

Protected make

  • Creates a new Coding

    override

    Returns Coding

    The coding

setCode

  • setCode(code?: code): this
  • Sets the code-field of the Coding If no argument is provided, the field will be removed

    Parameters

    • Optional code: code

      The value to be set in the code-field

    Returns this

    • This CodingBuilder

setDisplay

  • setDisplay(display?: undefined | string): this
  • Sets the display-field of the Coding If no argument is provided, the field will be removed

    Parameters

    • Optional display: undefined | string

      The value to be set in the display-field

    Returns this

    • This CodingBuilder

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

setSystem

  • setSystem(system?: undefined | string): this
  • Sets the system-field of the Coding If no argument is provided, the field will be removed

    Parameters

    • Optional system: undefined | string

      The value to be set in the system-field

    Returns this

    • This CodingBuilder

setUserSelected

  • setUserSelected(userSelected?: undefined | false | true): this
  • Sets the userSelected-field of the Coding If no argument is provided, the field will be removed

    Parameters

    • Optional userSelected: undefined | false | true

      The value to be set in the userSelected-field

    Returns this

    • This CodingBuilder

setVersion

  • setVersion(version?: undefined | string): this
  • Sets the version-field of the Coding If no argument is provided, the field will be removed

    Parameters

    • Optional version: undefined | string

      The value to be set in the version-field

    Returns this

    • This CodingBuilder

use

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

    override

    Parameters

    • Optional coding: Coding

      the coding to be set

    Returns this

    The builder

Generated using TypeDoc