default
Hierarchy
- Configurator
- default
Index
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 | timingExtension | timingRepeatExtension | modifierExtension | timingModifierExtension)[]
Returns void
changeDisplaySeparator
Set display separator
Parameters
sep: string
Returns void
changeLanguage
To change language
Parameters
lng: string
Returns Promise<TFunction<common, undefined>>
containsOnlySequentialInstructions
Does this array of Dosage objects contains only "sequential" instructions ?
Parameters
dosages: Dosage[]
Returns boolean
fromDosageToText
Turn a FHIR Dosage object into text
Parameters
dos: Dosage
Returns string
fromMultipleDosageToText
Turn multiple FHIR Dosage objects 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 | timingExtension | timingRepeatExtension | modifierExtension | timingModifierExtension)[]
getDisplaySeparator
Get display separator
Returns string
getFields
From a single dosage, extract specific field(s) requested by user. +
default
Hierarchy
- Configurator
- default
Index
Methods
changeDateTimeFormatOptions
Set date time format options
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 | timingExtension | timingRepeatExtension | modifierExtension | timingModifierExtension)[]
Returns void
changeDisplaySeparator
Set display separator
Parameters
sep: string
Returns void
changeLanguage
To change language
Parameters
lng: string
Returns Promise<TFunction<common, undefined>>
containsOnlySequentialInstructions
Does this array of Dosage objects contains only "sequential" instructions ?
Parameters
dosages: Dosage[]
Returns boolean
fromDosageToText
Turn a FHIR Dosage object into text
Parameters
dos: Dosage
Returns string
fromMultipleDosageToText
Turn multiple FHIR Dosage objects 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 | timingExtension | timingRepeatExtension | modifierExtension | timingModifierExtension)[]
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 | timingExtension | timingRepeatExtension | modifierExtension | timingModifierExtension)[]
Returns string
getLanguage
Get current language
Returns string
groupBySequence
Turn this array of Dosage objects into a data structure useful to handle "sequential" and "concurrent" instructions (cf. "sequence" property).
Parameters
dosages: Dosage[]
Returns Dosage[][]
- A two-dimensional array where each inner array contains Dosage objects belonging to the same sequence numberr.
staticbuild
Factory to create a fine-tuned instance of the utility class
Parameters
optionaluserConfig: Params
i18nConfig: InitOptions<object> = defaultI18NConfig
Returns Promise<FhirDosageUtils>
- Configurator
Set date time format options