Pummpcomm v2.1.5 Pummpcomm.PumpModel View Source
Link to this section Summary
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 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