Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ThresholdSetThresholdBuilder

Class representing a Threshold builder for Fhir ThresholdSets

Hierarchy

Index

Constructors

constructor

Methods

addEffectiveWhen

  • addEffectiveWhen(effectiveWhen: Extension): this
  • Adds an effectiveWhen to the effectiveWhen array of the threshold

    Parameters

    • effectiveWhen: Extension

      The effectiveWhen to add to the effectiveWhen-array

    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 plandefinition

    override

    Returns Extension

    • the plandefinition

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

getEffectiveBehavior

  • Returns whether the threshold is in effect if all or any of the effectiveWhens are in effect

    Returns ThresholdEffectiveBehavior | undefined

    The effectiveBehavior

getEffectiveWhen

  • Returns an array of effectiveWhens in the form of extensions

    Returns Extension[]

    The array of effectiveWhens as extensions

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

getType

  • Returns the type of the threshold

    Returns CodeableConcept | undefined

    The version

Protected make

  • Make a new object that implements a FHIR ThresholdSet

    override

    Returns Extension

    • an object that implements FHIR ThresholdSet

setEffectiveBehavior

  • Sets whether the threshold is in effect if all or any of the effectiveWhens are in effect If no argument is provided, the field will be removed

    Parameters

    Returns this

    • The builder

setEffectiveWhen

  • setEffectiveWhen(effectiveWhen?: Extension[]): this
  • Sets the effectiveWhen array of the thresholdSet 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

setType

  • Sets the type of the threshold If no argument is provided, the field will be removed

    Parameters

    Returns this

    • The builder

use

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

    override

    Parameters

    • Optional threshold: Extension

      The threshold to set

    Returns this

    The builder

Generated using TypeDoc