APIs

Show:

Popup for creating / updating inventory products

Methods

didAddCodes

(
  • list
  • models
  • collection
)
type

Called after a user selects one or more codes to add to the inventory product.

Parameters:

  • list Array

    The list of codes to store these to. Will be deduped.

  • models Object

    Maps code name to the code model object.

  • collection Array

    Collection of CodeSystemModels

Returns:

type:

[description]

didAddImmunization

(
  • vaccine
  • manufacturers
)
type

Called after a user selects an immunization (vaccine). Updates the form to reflect the selection.

Parameters:

  • vaccine Object

    [description]

  • manufacturers Array

    [description]

Returns:

type:

[description]

getVaccineManufacturers

(
  • vac_id
)
$.Deferred

Gets a list of manufacturers for a given vaccine.

Parameters:

  • vac_id Integer

    the vaccine id

Returns:

$.Deferred:

""

save

() type

Saves the Inventory Class

Returns:

type:

[description]

willAddCodes

(
  • codeLookupView
  • list
  • models
)
$.Deferred

Called when the user wants to add one or more codes to the inventory product.

Parameters:

  • codeLookupView Object

    An instance of CodeLookupView

  • list Array

    The list of codes to store these to.

  • models Object

    Maps code name to the code model object.

Returns:

$.Deferred:

return

willAddImmunization

() type

Called when a user will be adding a new immunization inventory type.

Returns:

type:

[description]