Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CodeableConceptBuilder

A class representing a FHIR CodeableConceptBuilder

Hierarchy

Index

Constructors

constructor

Methods

addCoding

  • addCoding(coding: Coding): this
  • Adds a coding to the CodeableConcept

    Parameters

    • coding: Coding

      The coding to add

    Returns this

    The builder

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 CodeableConcept

    override

    Returns CodeableConcept

    • the CodeableConcept

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

getCoding

  • Returns either the coding identified by the provided system from the coding-array or the entire coding array, if no id is provided

    Returns Coding[]

    The coding or the coding-array

  • Parameters

    Returns Coding | undefined

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

getText

  • getText(): string | undefined
  • Returns the text-field of the CodeableConcept

    Returns string | undefined

    The text-field

Protected make

setCoding

  • setCoding(coding?: Coding[]): this
  • Sets the resource's coding-array to the provided array If no argument is provided, the field will be removed

    Parameters

    Returns this

    the Builder

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

setText

  • setText(text?: undefined | string): this
  • Sets the text-field of the CodeableConcept If no argument is provided, the field will be removed

    Parameters

    • Optional text: undefined | string

      The value to be set in the text-field

    Returns this

    • This CodeableConceptBuilder

use

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

    override

    Parameters

    Returns this

    The builder

Generated using TypeDoc