core.schedulingdurationtominutes
Home > @medplum/core > schedulingDurationToMinutes
schedulingDurationToMinutes() function
Converts a SchedulingParameters duration to minutes.
Signature:
export declare function schedulingDurationToMinutes(duration: Duration | undefined): number | undefined;
Parameters
Parameter | Type | Description |
|---|---|---|
duration | Duration | undefined | The duration to convert. |
Returns:
number | undefined
The length in minutes, or undefined when the duration has no value, a negative value, or a unit scheduling does not accept.