InventoryPopupView Class
/var/www/azaleahealth.com/branches/docs/source_repo/awa/resources/apps/js/inventory/InventoryPopupView.js:16
Popup for creating / updating inventory products
Item Index
Methods
didAddCodes
-
list -
models -
collection
Called after a user selects one or more codes to add to the inventory product.
Parameters:
-
listArrayThe list of codes to store these to. Will be deduped.
-
modelsObjectMaps code name to the code model object.
-
collectionArrayCollection of CodeSystemModels
Returns:
[description]
didAddImmunization
-
vaccine -
manufacturers
Called after a user selects an immunization (vaccine). Updates the form to reflect the selection.
Parameters:
-
vaccineObject[description]
-
manufacturersArray[description]
Returns:
[description]
getVaccineManufacturers
-
vac_id
Gets a list of manufacturers for a given vaccine.
Parameters:
-
vac_idIntegerthe vaccine id
Returns:
""
initialize
()
initializeForm
()
type
Returns:
[description]
render
()
save
()
type
Saves the Inventory Class
Returns:
[description]
willAddCodes
-
codeLookupView -
list -
models
Called when the user wants to add one or more codes to the inventory product.
Parameters:
-
codeLookupViewObjectAn instance of CodeLookupView
-
listArrayThe list of codes to store these to.
-
modelsObjectMaps code name to the code model object.
Returns:
return
willAddImmunization
()
type
Called when a user will be adding a new immunization inventory type.
Returns:
[description]