Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ThresholdSetBuilder

Class representing a FHIR ThresholdSet builder

Hierarchy

Index

Constructors

constructor

Methods

_generateIsoDate

  • _generateIsoDate(): string
  • Creates an ISO-string for current time

    Returns string

addContained

  • addContained(contained: Resource): this
  • Adds the resource provided as an argument to the resource's contained array, if a resource with that id does not already exist in the array.

    throws

    { AlreadyExistsError } If the resource already exists

    Parameters

    • contained: Resource

      The resource to be added to the contained array

    Returns this

    the Builder

addExtension

  • Adds the extension provided as an argument to the resource's extension array

    Parameters

    • extension: Extension

      The extension to be added to the extension-array

    Returns this

    the Builder

addModifierExtension

  • addModifierExtension(modifierExtension: Extension): this
  • Adds the extension provided as an argument to the resource's modifierExtension array

    Parameters

    • modifierExtension: Extension

      The modifierExtension to be added to the modifierExtension-array

    Returns this

    the Builder

addThreshold

  • Adds a threshold to the threshold array of the thresholdSet

    Parameters

    • threshold: Extension

      The threshold to add to the threshold-array

    Returns this

    • The builder

build

  • Builds and returns the plandefinition

    override

    Returns Basic

    • the plandefinition

conflictsWith

  • conflictsWith(thresholdSet: Basic): boolean
  • Returns whether or not the thresholdSet provided as an argument is in conflict with the thresholdSet used in the builder

    override

    Parameters

    • thresholdSet: Basic

      The thresholdSet to test for conflict

    Returns boolean

    Whether it is in conflict

getAppliesTo

  • Returns a reference or canonical reference to the resource to which this thresholdSet applies

    Returns canonical | Reference | undefined

    The reference to the resource to which this thresholdSet applies

getApprovalDate

  • getApprovalDate(): dateTime | undefined
  • Returns the dateTime the thresholdSet was approved

    Returns dateTime | undefined

    The approvalDate

getApprovingPractitioner

  • getApprovingPractitioner(): Reference | undefined
  • Returns a reference to the practitioner who approved the thresholdSet

    Returns Reference | undefined

    The reference to the approving practitioner

getContained

  • Returns either the resource identified by the provided id from the contained array or the entire contained array, if no id is provided

    Returns Resource[]

    The resource if it exists or the contained-array

  • Parameters

    Returns Resource | 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: uri

    Returns Extension[]

    The extensions if they exists or the extension-array

getId

  • getId(): id | undefined
  • Returns the resource's id

    Returns id | undefined

    The resource's id

getImplicitRules

  • getImplicitRules(): uri | undefined
  • Returns the implicitRules-field of the Resource

    Returns uri | undefined

    The implicitRules-field

getLanguage

  • getLanguage(): code | undefined
  • Returns the language-field of the Resource

    Returns code | undefined

    The language-field

getMeta

  • getMeta(): Meta | undefined
  • Returns the meta-field of the Resource

    Returns Meta | undefined

    The meta-field

getModifierExtension

  • Returns either the modifierExtensions identified by the provided url from the modifierExtension array or the entire modifierExtension array, if no url is provided

    Parameters

    • Optional url: uri

    Returns Extension[]

    The modifierExtensions if they exists or the modifierExtension-array

getResourceType

  • getResourceType(): code | undefined
  • Returns the resourceType-field of the Resource

    Returns code | undefined

    The resourceType-field

getStatus

  • Returns the status of the ThresholdSet

    Returns ThresholdSetStatus | undefined

    The status

getText

getThreshold

  • Returns an array of thresholds in the form of extensions

    Returns Extension[]

    The array of thresholds as extensions

getVersion

  • getVersion(): string | undefined
  • Returns the version of the ThresholdSet

    Returns string | undefined

    The version

Protected make

  • Make a new object that implements a FHIR ThresholdSet

    override

    Returns Basic

    • an object that implements FHIR ThresholdSet

setAppliesTo

  • Sets a reference or canonical reference to the resource, to which this thresholdSet applies If no argument is provided, the field will be removed

    Parameters

    • Optional appliesTo: canonical | Reference

      The reference or canonical reference to the resource, to which this thresholdSet applies

    Returns this

    • The builder

setApprovalDate

  • setApprovalDate(approvalDate?: dateTime): this
  • Sets the dateTime the thresholdSet was approved If no argument is provided, the field will be removed

    Parameters

    • Optional approvalDate: dateTime

      The approvalDate

    Returns this

    • The builder

setApprovingPractitioner

  • setApprovingPractitioner(approvingPractitioner?: Reference): this
  • Sets a reference to the practitioner who approved the thresholdSet If no argument is provided, the field will be removed

    Parameters

    • Optional approvingPractitioner: Reference

      The reference to the approving practitioner

    Returns this

    • The builder

setContained

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

    Parameters

    • Optional contained: Resource[]

      The array to be set as the resource's contained array

    Returns this

    the Builder

setExtension

  • setExtension(extension?: Extension[]): this
  • Sets the resource's 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 resource'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

setImplicitRules

  • setImplicitRules(implicitRules?: uri): this
  • Sets the implicitRules-field of the Resource If no argument is provided, the field will be removed

    Parameters

    • Optional implicitRules: uri

      The value to be set in the implicitRules-field

    Returns this

    • The builder

setLanguage

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

    Parameters

    • Optional language: code

    Returns this

    • The builder

setMeta

  • setMeta(meta?: Meta): this
  • Sets the meta-field of the Resource If no argument is provided, the field will be removed

    Parameters

    • Optional meta: Meta

      The value to be set in the meta-field

    Returns this

    • The builder

setModifierExtension

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

    Parameters

    • Optional modifierExtension: Extension[]

      The array to be set as the resource's modifierExtension array

    Returns this

    the Builder

setResourceType

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

    Parameters

    • Optional resourceType: code

      The value to be set in the resourceType-field

    Returns this

    • The builder

setStatus

  • Sets the status of the ThresholdSet If no argument is provided, the field will be removed

    Parameters

    Returns this

    • The builder

setText

  • Sets the text-field of the DomainResource If no argument is provided, the field will be removed

    Parameters

    • Optional text: Narrative

      The value to be set in the text-field

    Returns this

    • The builder

setThreshold

  • setThreshold(threshold?: Extension[]): this
  • Sets the threshold array of the thresholdSet If no argument is provided, the field will be removed

    Parameters

    • Optional threshold: Extension[]

      The thresholdArray

    Returns this

    • The builder

setVersion

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

    Parameters

    • Optional system: undefined | string

    Returns this

    • The builder

use

  • use(thresholdSet?: Basic): this
  • Sets a copy of an existing thresholdSet for this ThresholdSetBuilder to allow for manipulating, or interacting with, the thresholdSet through this ThresholdSetBuilder If no argument is provided, a new ThresholdSet will be generated

    override

    Parameters

    • Optional thresholdSet: Basic

      The thresholdSet to set

    Returns this

    The builder

Generated using TypeDoc