Medical Supplies Manager for My Mother

The Algorithm

  • Loading the data from the spreadsheet
  • Applying the management rules in the current data
  • Updating the spreadsheet
  • Verifying if there is any medical supply ending
  • If there is any medicine ending, notifying me and my brother
function manageMedicalSupplies() {
let endingSupplies;
// Initialization
let dataArray = dataHandling_loadArray();
Logger.log("Yesterday:")
Logger.log(dataArray)
// Action
dataArray = dataArray.map(supply_applyManagementRules);
Logger.log("Today:")
Logger.log(dataArray);
// Storing
dataHandling_updateSheet(dataArray);
// Notification
let isSupplyEnding = supply_verifyStatus(dataArray);
if (isSupplyEnding) {
endingSupplies = supply_getOnesEnding(dataArray);
notification_notifySons(endingSupplies);
}
Logger.log("Data updated!")
return true;
}

Project on Github

Software Developer graduated in Electrical Engineering. Data-driven, with a love for Business Automation and Customer Experience.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A full setup of Next JS with Redux, Tailwind, Material UI, PWA, and Docker

Next JS Banner

Shadow DOM vs Virtual DOM — what is the difference?

Introduction to PoseNet with three.js

12 Methods for Finding an Item in an Array (and Array of Objects) in JavaScript

[Angular] Why using ElementRef to manipulate DOM is no more a good idea!

G-FORCE BLC50 Masami Editionをリリース

JavaScript: Why ‘var’ is the Greatest Evil

extending hyper — ->

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Collier

Daniel Collier

Software Developer graduated in Electrical Engineering. Data-driven, with a love for Business Automation and Customer Experience.

More from Medium

Cross-platform [Technical Term]

A Must Check-list for e-commerce sites

Do You Need a Website or a Web App?

Using Google Sheets as a Source of Dynamic Data for your Static Website