default
Index
Properties
config
Methods
changeDateTimeFormatOptions
Parameters
opts: DateTimeFormatOptions
Returns void
changeDisplayOrder
To change display order
Parameters
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)[]
Returns void
changeDisplaySeparator
Set display separator
Parameters
sep: string
Returns void
changeLanguage
To change language
Parameters
lng: en | fr | nl | de
Returns Promise<TFunction<common, undefined>>
fromDosageToText
Turn a FHIR Dosage object into text
Parameters
dos: Dosage
Returns string
fromMultipleDosageToText
Turn multiple FHIR Dosage object into text
Parameters
dosages: Dosage[]
Returns string
getDateTimeFormatOptions
Get date time format options
Returns DateTimeFormatOptions
getDisplayOrder
Get display order
Returns (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)[]
getDisplaySeparator
Get display separator
Returns string
getFields
From a single dosage, extract specific field(s) requested by user. Some use cases could request to split part of the object for given needs (quantity and timing separately)
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)[]
Returns string
getLanguage
Get current language
Returns en | fr | nl | de
staticbuild
Factory to create a fine-tuned instance of the utility class
Parameters
optionalargs: Params
Returns Promise<FhirDosageUtils>
Set date time format options