Refrigerator Types represent the different models of refrigerators available. This is convenient for adding a new refrigerator to a health facility, as the model will already include information about the refrigerator that might not be obvious to the worker installing the unit. It also provides an easy reference if spare parts are needed or the model itself is needed for any reason.
Lists of Refrigerator Types¶
The list portion contains each refrigerator type. Clicking that list item will open the Refrigerator Type Menu. The list can be searched by the refrigerator type ID, catalog ID, or the manufacturer. A substring of the search string can be provided and all matching records will be displayed.
The list items each show a picture of the refrigerator model to ease navigation and provide a more familiar reference than the model name.
This page is paginated by default to 10 refrigerator types per page. This can be adjusted to 20, 50, 100, or 1000 by selecting the option from the drop menu. To navigate between pages of refrigerator types, use the Next and Prev buttons.
The refrigerator types list uses the files
tables/refrigerator_types/js/refrigerator_types.js similarly to the refrigerators list.
The key differences are the
searchParams variables that define the values that will populate the same user interface. This file's versions of
listQuery performs a simple
SELECT * from the Refrigerator Types table and this versions of
searchParams searches for matching catalog ID, manufacturer, or model ID.
That logic that implements that user interface is discussed in The list_view_logic.js library.