Skip to main content

FhirDosageUtils

Hierarchy

  • Utils
    • FhirDosageUtils

Index

Methods

changeLanguage

  • changeLanguage(lng: string): Promise<TFunction<common, undefined>>
  • Parameters

    • lng: string

    Returns Promise<TFunction<common, undefined>>

containsOnlySequentialInstructions

  • containsOnlySequentialInstructions(dosages: Dosage[]): boolean
  • Parameters

    • dosages: Dosage[]

    Returns boolean

fromDosageToText

  • fromDosageToText(dos: Dosage): string
  • Parameters

    • dos: Dosage

    Returns string

fromMultipleDosageToText

  • fromMultipleDosageToText(dosages: Dosage[]): string
  • Parameters

    • dosages: Dosage[]

    Returns string

getFields

  • getFields(dos: Dosage, ...order: (method | doseQuantity | doseRange | rateRatio | rateQuantity | rateRange | durationDurationMax | frequencyFrequencyMax | periodPeriodMax | frequencyFrequencyMaxPeriodPeriodMax | offsetWhen | dayOfWeek | timeOfDay | route | site | asNeeded | boundsDuration | boundsPeriod | boundsRange | countCountMax | event | code | maxDosePerPeriod | maxDosePerAdministration | maxDosePerLifetime | additionalInstruction | patientInstruction | text | extension | timingExtension | timingRepeatExtension | modifierExtension | timingModifierExtension)[]): string
  • Parameters

    • dos: Dosage
    • rest...order: (method | doseQuantity | doseRange | rateRatio | rateQuantity | rateRange | durationDurationMax | frequencyFrequencyMax | periodPeriodMax | frequencyFrequencyMaxPeriodPeriodMax | offsetWhen | dayOfWeek | timeOfDay | route | site | asNeeded | boundsDuration | boundsPeriod | boundsRange | countCountMax | event | code | maxDosePerPeriod | maxDosePerAdministration | maxDosePerLifetime | additionalInstruction | patientInstruction | text | extension | timingExtension | timingRepeatExtension | modifierExtension | timingModifierExtension)[]

    Returns string

getProperty

  • getProperty<T>(key: T): Config[T]
  • Type parameters

    Parameters

    • key: T

    Returns Config[T]

groupBySequence

  • groupBySequence(dosages: Dosage[]): Dosage[][]
  • Parameters

    • dosages: Dosage[]

    Returns Dosage[][]

setProperty

  • setProperty<T>(key: T, value: Config[T]): undefined
  • Type parameters

    • T: SettableProperties

    Parameters

    Returns undefined

staticbuild