Pummpcomm v2.5.1 Pummpcomm.PumpModel View Source
Model-specific options and information
Link to this section Summary
Types
Model number of a pump as an integer
large_format
- history records use larger formatstrokes_per_unit
- how many turns the pump motor takes to deliver 1U of insulinsupports_low_suspend
- if the pump will automatically suspend basal when the CGM reports a low blood glucose
Return how many turns the pump motor takes to deliver 1U of insulin
Functions
Return true if history records use larger format
Return the model number of the pump from its model string
Return true if pump writes a square wave bolus to history as it starts, then updates the same entry upon completion
Returns how much the pump’s reservoir can hold
Return how many turns the pump motor takes to deliver 1U of insulin
Return true if pump supports low suspend
Return true if pump supports MySentry
Link to this section Types
Model number of a pump as an integer
pump_options() :: %{large_format: boolean, strokes_per_unit: strokes_per_unit, supports_low_suspend: boolean}
large_format
- history records use larger formatstrokes_per_unit
- how many turns the pump motor takes to deliver 1U of insulinsupports_low_suspend
- if the pump will automatically suspend basal when the CGM reports a low blood glucose
Return how many turns the pump motor takes to deliver 1U of insulin
Link to this section Functions
Return true if history records use larger format
Examples
iex> Pummpcomm.PumpModel.large_format?(723)
true
iex> Pummpcomm.PumpModel.large_format?(522)
false
Return the model number of the pump from its model string
Examples
iex> Pummpcomm.PumpModel.model_number("723")
{:ok, 723}
iex> Pummpcomm.PumpModel.model_number("522")
{:ok, 522}
iex> Pummpcomm.PumpModel.model_number("677")
{:error, "Bad Pump Model"}
iex> Pummpcomm.PumpModel.model_number("invalid")
{:error, "Bad Pump Model"}
Return true if pump writes a square wave bolus to history as it starts, then updates the same entry upon completion
Examples
iex> Pummpcomm.PumpModel.records_square_wave_bolus_before_delivery?(723)
true
iex> Pummpcomm.PumpModel.records_square_wave_bolus_before_delivery?(522)
false
Returns how much the pump’s reservoir can hold
Examples
iex> Pummpcomm.PumpModel.reservoir_capacity(522)
176
iex> Pummpcomm.PumpModel.reservoir_capacity(751)
300
Return how many turns the pump motor takes to deliver 1U of insulin
Examples
iex> Pummpcomm.PumpModel.strokes_per_unit(722)
10
iex> Pummpcomm.PumpModel.strokes_per_unit(751)
40
Return true if pump supports low suspend
Examples
iex> Pummpcomm.PumpModel.supports_low_suspend?(723)
false
iex> Pummpcomm.PumpModel.supports_low_suspend?(751)
true