as used herein , the terms medicine , pill and pills refer to any size or shape of a capsule , caplet , granule , tablet , lozenge , suppository , ampoule or any other dosage form typically used for oral nasal , dermal or rectal administration of a medication or dietary supplement or for rectal administration in the form of a suppository . the term pill or pills can include medications used for injections . the terms pill and pills may also include delivery forms typically used for topical administration , such as encapsulated and packaged liquid suspensions or emulsions , powders , creams , salves , serums , ointments and the like . the terms pill , medicine or medication may be singular or plural and are used interchangeably herein . as used herein , the terms pill , medicine and or medication refer to prescription and over - the - counter medications , dietary supplements such as vitamins , minerals or cosmetic products . further , the terms pill , medicine and or medication refer to any product in pill form which the user has a need or desire to use on a predetermined , scheduled basis . further , the terms medicine and medicines can refer to any product which the user has a need or desire to use on a predetermined , scheduled basis . as used herein , the terms bluetooth , wireless , wireless communication or wireless protocol includes bluetooth , wi - fi and other known or future methods for secure wireless protocol that use electromagnetic radiation to connect wireless - enabled computers and devices to each other . bluetooth simplifies communications between bluetooth - enabled computers and devices by creating personal area networks ( pans ). to create a bluetooth pan , a user must have at least two devices that contain bluetooth electronics . a person of ordinary skill in the art will understand that a variety of known or future wireless command , control , and data systems can be used in the instant invention . the operating range for a given device depends on the device class . one type is primarily used in computers and mobile devices , such as cell phones , pdas , or mp3 players . the operating range is about 30 feet ( 10 meters ). not all wireless or bluetooth interfaces are the same . there are different versions of drivers with different interfaces as will be understood by a skilled artisan . bluetooth is only one standard wire - replacement communications protocol primarily designed for low - power consumption , with a short range based on low - cost transceiver microchips in each device . because the devices use a radio ( broadcast ) communications system , they do not have to be in visual line of sight of each other , however a quasi - optical wireless path must be viable . a person of ordinary skill in the art of electronics will understand how to implement a wireless protocol such as blue tooth or wi - fi communication protocol between a storage container for injectable medicines and a smart phone or other wireless device designed to communicate with a medicine storage container . as used herein the term “ smart phone ” or “ smart device ” includes any device capable of wireless command , control , and data management including but not limited to phones , tablets , lap - tops , computers , and other devices which can run software applications and utilize known or future wireless communication protocols to communicate with a remote device . in one non - limiting embodiment of the present invention as shown in fig1 - 7 , device 100 includes a housing 2 and a lid 6 being lockable to the housing to form a closed or an open unit . the device can use a battery to provide power . alternatively , a hardline power source can also be used . the lid is preferably transparent or translucent . the housing 2 includes a commandable locking mechanism 8 to lock the lid of housing until a medication dose is scheduled to be taken . the locking mechanism is operated by a smart device application as discussed below using a wireless communication protocol and a smart device . when the pre - determined time set in the application occurs , and the smart device is in wireless proximity with a wireless electronic communication module connected to smart end cap 10 , the device and the smart phone are “ paired ”, thus enabling the lock to open and allow a user access to the medicine via by opening the lid . a signal from the smart phone via a wireless protocol will enable a mechanical device such as a solenoid , actuator , or magnet to open or close the lock ( not shown ). a “ dumb ” or protective end cap 11 can seal one side of the housing and be used as an protective end cap in a modular arrangement as discussed below . a person of ordinary skill in the electro - mechanical arts will understand that the proximity locking and unlocking function can be carried out in a number of known ways . the housing includes compartments 12 for storing medicine vials 16 . the compartments can include a light 20 for each compartment , such as , for example an led light , or an illuminated area which can illuminate , change color , or flash when it is time to take a medication stored inside the compartment , when the device malfunctions , when the device is paired to a smart phone , or when the device is low on power . in some embodiments , housing can include a by - pass switch to allow a user to unlock the lid in case of emergency or malfunction and to allow access to the contents of the housing . the use of the by - pass switch can be electronically recorded and sent to the smart phone application for review and analysis . in this embodiment , housing 2 can include a switch or sensor for sensing when the lid is opened or closed . the switch can be , for example , an electrical switch , a mechanical switch , an optical switch , or other type of sensor 22 . the housing 2 also includes smart end cap 10 for housing wireless transceiver or chip set 52 and associated hardware necessary to carry out the wireless command and control function and to communicate information to the smart device and the application residing on the device . information regarding the status of the lid , including when it is opened and closed , or how many times it opened or closed , can be transmitted to the smart device and utilized by the application to provide user data . in this embodiment , sensors 22 located within the compartments can be used to sense when a vial is in the compartment . the sensor can send position data via the wireless connection protocol to the smart device which can be utilized by the application to provide user data . designated compartments will illuminate when it is time to take this medicine stored in the corresponding compartment . once the vial is removed from the compartment , the illumination with automatically shut off after the vial has been removed and replaced into its compartment . after dosing , the vials are replaced in the device , the lid is closed and locked and the dosing program continues according to the preprogrammed application . in use , a user installs custom software application on a smart device such as smart phone 30 . after the application “ pairs ” the smart device with wireless chip set or wireless transceiver 52 which can be located within the smart end cap , the lock can be disengaged and the user can open the lid . next , the user can load medicine vials or other medicines into the compartments of the housing and close the lid to lock the contents inside the housing and start a dosing regimen . in this embodiment , the application can be programmed to send the user an alarm on the smart phone and illuminate the light ( s ) in the appropriate compartments at pre - determined times . when the user next approaches the device , ( i . e . the smart device and housing will remain “ paired ” and will connect wirelessly when the phone is in range of the housing ) the smart phone application can be used to open the locking mechanism by sending a wireless signal to actuate the locking mechanism . the user can now access the medicine vials stored in the device . when the user accesses the medicine , the sensor 22 can electronically time stamp each time the lid is opened or closed . this data can be sent to the smart phone application for review and analysis . after each use , the lid is closed and locked . a timer in the application restarted so that when the next dose is due , the process is repeated . referring to fig1 a - 18b and 19a - 19c , in one embodiment , the smart device application 60 includes a scheduling screen 62 . when a medicine is due , the user will receive a visual or audible prompt 64 . as the user approaches the device 100 with the paired smartphone , the application can display a reminder screen 66 ( fig1 b ) in order to prompt the user to open the device 68 or to snooze until a later time 70 when the user wants to take the medicine . referring to fig1 a - 19c , three example screens of application 60 are shown . screen 72 depicts an adherence chart indicating the overall patient compliance to the medicine schedule . screen 74 depicts a schedule screen that shows the user which medicines are due , the time and the date due . screen 76 depicts the history of when the medicine was taken so that a user may review the prior dosing history . in some embodiments , the housing can include a battery or a rechargeable battery ( not shown ). optionally , the housing can be powered by an external power source , through power port 27 , such as by a plug and power outlet and can include a backup battery in case of power failure . as shown in fig6 - 7 , the device can be a modular configuration having a plurality of housings that can fit together via interlocking features 26 and 28 on the end caps 10 , 11 to allow for additional capacity . it is important to consider that the modular configuration requires a smart end cap on the “ smart ” unit to provide electronic signals to all of the “ dumb ” units . a dumb or protective endcap 11 is included on the last unit of the modular assembly . the interlocking features 26 , 28 , 29 , are used to hold the assembly together in a module that can be assembled or disassembled easily and to provide power and electronic signals for sending and receiving data from the electronics in the smart end cap to the sensors in the “ dumb ” units , for example , to illuminate a compartment , unlock or lock a lid , or signal that a lid is open or closed . the structure of the device can be fabricated from plastics or other structural materials and molding or fabrication processes which will be known to one skilled in the art of manufacturing . in another non - limiting embodiment of the present invention as shown in fig8 - 12 , device 200 includes a housing 202 and at least one compartment 204 being recessed in the housing . the housing 202 can include a battery ( not shown ) located within the housing . the battery can be used to provide power to the device . the device includes transparent or translucent lids 206 for covering medicine vials 208 . the device is operated by a smart phone application 60 using a wireless communication protocol and a smart phone as discussed above . when the pre - determined time set in the application occurs , and the smart phone is in proximity with a wireless electronic communication module 252 which can be located in the housing , when the smart phone is “ paired ”, a signal can be sent enabling the light ( s ) to illuminate and allow a user access to the medicine by opening the lid ( s ). a person of ordinary skill in the electro - mechanical arts will understand that the locking and unlocking function can be carried out in a number of known ways . the housing 202 can include a light ring or other light 244 , such as , for example an led light , or an illuminated area which can illuminate , change color , or flash when it is time to take a medication stored inside the housing , when the device malfunctions , when the device is paired to a smart phone , or when the device is low on power . in this embodiment , housing 202 includes sensor 248 for sensing when the lid is open or closed . the sensor 248 can be , for example , an electrical switch , a mechanical switch , or an optical switch or other sensor . the housing 202 can also include a wireless electronic communication module 252 and associated hardware necessary to carry out the wireless command and control function and to communicate information to the smart phone and the application residing on the phone . information regarding the status of the lid , including when it is opened and closed , or how many times it opened or closed , can be transmitted to the smart phone and utilized by the application to provide user data . in use , as discussed above , a user installs a custom software application 60 on a smart phone ( see fig1 - 19 ). after the application “ pairs ” the smart phone with a wireless chip set or wireless transceiver 252 in the housing , the lid ( s ) are opened by the user . next , the user can load vials 208 or other medicines into the compartments 204 and replace the lid ( s ) and start a dosing regimen . as discussed above , a commandable locking mechanism 205 can be used to lock the lids in place for security . in this embodiment , the application can be programmed to send the user an alarm on the smart phone and illuminate the light ( s ) 244 at pre - determined times . when the user approaches the device , ( i . e . the smart phone and device will remain “ paired ” and will connect wirelessly when the phone is in range of the housing ) the smart phone application can be used to open the locking mechanism , by sending a wireless signal to actuate the locking mechanism . the user can now access the medicine vial 208 stored in the device 200 . when the user accesses the medicine , the sensors 248 can electronically time stamp each time the lid is opened or closed . further , each sensor 248 can be configured to detect the presence or the absence of a medicine vial 208 within each compartment 204 . access data , such as when the lid was removed and replaced for each compartment , can be sent to the smart phone application for review and analysis . after each use , the lid is closed and can be locked . a timer in the application is restarted so that when the next dose is due , the process is repeated . in some embodiments , the housing includes a battery or a rechargeable battery . optionally , the housing can be powered by an external power source , such as by a plug and power outlet and can include a backup battery . in one embodiment , the housing or drawer can include a light sensor to determine whether the housing is in a lighted place or in a dark place . if , for example , if the housing is kept in a dark refrigerator , the sensor can signal the device to enter a “ sleep mode ” thereby saving power and extending the life of the battery . when the refrigerator is opened and ambient light is detected by the sensor , the device will enter a “ wake ” mode to perform its required functions as discussed above . in this embodiment , as discussed further below , the housings can be configured to be a modular expandable system . for example , as shown in fig8 - 12 the “ smart ” electronics 252 can be located in one housing 202 , while one or more modular expandable housings 203 are used to expand the configuration . for example , referring to fig1 , interlocking feature 207 , is used to connect an expansion unit housing 203 to the “ smart ” parent housing 202 . additional expansion housings 203 can be plugged in to each other via the interlocking features ( male 207 shown , female not shown ) in the housings . as discussed , this modular design allows multiple housings to be daisy chained together wherein the smart end housing provides electronic intelligence and power to the remainder of the units allowing more than one unit to efficiently function as an expandable system . at minimum , the system includes one smart housing and one compartment to store and track medicine use . in this way , a user can snap one or more “ dumb ” housings 203 into a “ smart ” housing 202 in order to provide power , command and control functions to the daisy chain of housings . a user could upgrade a “ dumb ” medicine holder to be a “ smart ” medicine holder capable of carrying out the operations discuss above , such as pairing with a smart phone application , automated locking and unlocking , and data collection such as open and closed times or frequency or other desirable functions such as time - temperature limits if a temperature sensor is included . once again referring to fig1 a and 18b , the smart device application 60 includes a scheduling screen 62 . when a medicine is due , the use will receive a visual or audible prompt 64 . as the user approaches the device 200 with the paired smart device , the application can display a reminder screen 66 ( fig1 b ) in order to prompt the user to open the lid 68 or to snooze 70 until a later time when the user wants to take the medicine . referring to fig1 a - 19c , three example screens for application 60 are shown . screen 72 depicts an adherence chart indicating the overall patient compliance to the medicine schedule . screen 74 depicts a schedule screen that shows the user which medicines are due , the time and the date due . screen 76 depicts the history of when the medicine was taken so that a user may review the prior dosing history . the user interface has a graphical display designed for ease of use . the user is guided through a series of steps to set up and program the device , dispense medications and perform other desirable functions as described . in another non - limiting embodiment of the present invention as shown in fig1 - 17 , device 300 includes a housing 302 having compartments 304 and lids 306 being lockable to the housing to form a closed or an open unit . the device can use a battery to provide power . alternatively , a hardline power source can also be used . the lids are preferably transparent or translucent . the housing 302 includes an automated locking mechanism 308 to lock the lid of housing until a medication dose is scheduled to be taken . the locking mechanism is operated by a smart device application as discussed above using a wireless communication protocol and a smart device . when the pre - determined time set in the application occurs , and the smart device is in wireless proximity with a wireless electronic communication module located in the housing ( not shown ), the housing and the smart device are “ paired ”, thus enabling the lock to open and allow a user access to the medicine via by opening one lid . a signal from the smart phone via a wireless protocol will enable a mechanical device such as a solenoid , actuator or magnet to open or close the lock ( not shown ). a person of ordinary skill in the electro - mechanical arts will understand that the proximity locking and unlocking function can be carried out in a number of known ways . the housing includes compartments 302 for storing medicine vials 316 . the compartments can include a light 320 for each compartment , such as , for example an led light , or an illuminated area which can illuminate , change color , or flash when it is time to take a medication stored inside the compartment , when the device malfunctions , when the device is paired to a smart phone , or when the device is low on power . in some embodiments , the housing can include a by - pass switch to allow a user to unlock the lid in case of emergency or malfunction and to allow access to the contents of the housing . the use of the by - pass switch can be electronically recorded and sent to the smart phone application for review and analysis . in this embodiment , each compartment includes a switch or sensor 322 for sensing when the lid is opened or closed . the sensors can be , for example , an electrical switch , a mechanical switch , or an optical switch or other sensor . the housing 302 also includes a wireless transceiver 352 or chip set and associated hardware necessary to carry out the wireless command and control function and to communicate information to the smart device and the application residing on the device . information regarding the status of the lid , including when it is opened and closed , or how many times it opened or closed , can be transmitted to the smart device and utilized by the application to provide user data . in this embodiment , sensors 322 located within the compartments can be used to sense when a vial is in a compartment . the sensor can send position data via the wireless connection protocol to the smart device which can be utilized by the application to provide user data . designated compartments will illuminate when it is time to take this medicine stored in the corresponding compartment . once a vial is removed from a compartment , the illumination with automatically shut off after the vial has been removed and replaced into its compartment . after dosing , when each vial is replaced in the device , the lid is replaced and locked and the dosing program continues according to the preprogrammed application . in use , a user installs custom software application on a smart device such as smart phone 30 . after the application “ pairs ” the smart device with wireless chip set or wireless transceiver , the lock can be disengaged and the user can open the lid . next , the user can load medicine vials or other medicines into the compartments of the housing and close the lids to lock the contents inside the housing and start a dosing regimen . in this embodiment , the application can be programmed to send the user an alarm on the smart phone and illuminate the light ( s ) in the appropriate compartments at pre - determined times . when the user next approaches the device , ( i . e . the smart device and housing will remain “ paired ” and will connect wirelessly when the phone is in range of the housing ) the smart phone application can be used to open the locking mechanism by sending a wireless signal to actuate the locking mechanism . the user can now access the medicine vials stored in the device . in some embodiments , the locking mechanism can include a an independent locking system for each compartment and corresponding lid such that a vial placed in a compartment by a user can be electronically locked or unlocked in the compartment according to a dosing schedule . preferably a corresponding illumination and de - illumination of the associated light alerts a user to see which compart or vial is unlocked to access the medicine at the appropriate time alternately , a central locking mechanism can be use such that a lock controller can rotate within the housing to the appropriate position in order to unlock the compartment and lid containing the medicine vial ( s ) at the predetermined times ( s ). when the user accesses the medicine , a sensor can electronically time stamp each time the lid is opened or closed . this data can be sent to the smart phone application for review and analysis . after each use , the lid is closed and locked . a timer in the application restarted so that when the next dose is due , the process is repeated . it is envisioned that the control system can be programmed to allow only one compartment and lid to be unlocked at a given time . this feature is designed for safety . that is , one compartment at a time is illuminated and unlocked . the user takes the medicine , returns the vial and replaces the lid . the light is extinguished and the compartment is locked . the process is repeated with the next medicine of interest . in this way , the user must replace the vial in the proper compartment thereby preventing unauthorized use or misuse of the correct medicine and ensuring compliance with the pre - programmed dosing schedule for one or more medicines . it will be understood by a person of ordinary skill in the mechanical arts that the components for a locking mechanism of either configuration can be constructed from known materials using standard manufacturing methods . referring to fig1 a - 18b and 19a - 19c , in one embodiment , the smart device application 60 includes a scheduling screen 62 . when a medicine is due , the user will receive a visual or audible prompt 64 . as the user approaches the device 100 with the paired smartphone , the application can display a reminder screen 66 ( fig8 b ) in order to prompt the user to open 68 the lid or to snooze 70 until a later time when the user wants to take the medicine . referring to fig1 a - 19c , three example screens of application 60 are shown . screen 72 depicts an adherence chart indicating the overall patient compliance to the medicine schedule . screen 74 depicts a schedule screen that shows the user which medicines are due , the time and the date due . screen 76 depicts the history of when the medicine was taken so that a user may review the prior dosing history . in some embodiments , the housing can include a battery or a rechargeable battery . optionally , the housing can be powered by an external power source , through power port 327 ( see fig1 ), such as by a plug and power outlet and can include a backup battery in case of power failure . in use , a doctor can explain to a patient that medication will be necessary to effectively treat the patient &# 39 ; s condition . a medication schedule , specifying dose and frequency can be provided to the patient . once the schedule is determined , the clinical nurse educator or the patient &# 39 ; s pharmacist , or the patient can program an application that resides on a smart phone or other device with the details of the patient &# 39 ; s medication schedule . for example , the patient may be required to take three pills three times each week , on monday mornings at 10 : 00 am . in practice , on monday morning at 10 : 00 am each week the smart device will sound an alarm reminding the patient that one or more medicines are scheduled . unlike other applications that merely provide alarm reminders , the instant alarm can only be turned off by opening the proper lid of the device . if the time is inconvenient for the patient , the patient can interact with a prompt to the question , for example , “ do you want to administer your injection now ?” to “ snooze ” the alarm . once the appropriate lid or lids where the scheduled medicine is stored is opened , a sensor sends a signal via the wireless antenna to the smart phone application , which in turn can send a message , for example an e - mail or a text message , to the patient &# 39 ; s caretaker or health care professional . after the device is programmed and loaded , the smart phone will alert the user when it is time to take the appropriate medication . first , the smart phone signals the user with a visual or audible alarm or both . the audible alarm can be selected from the audio files residing on the phone . for example , a ring tone or a song may act as an audible alarm . at the same time , the phone screen can display a visual alert including the dose time , an image of the pills to be taken and their names . to dispense the medication , the smart device is paired to the wireless electronics located in the housing . a wireless signal from the device unlocks the lid of the appropriate compartment . the user can open the lid to access the proper medicine at the proper time . the smart device will enter an alert mode when a dose is missed . the screen will display which medications were missed along with the dose time and images of the missed medications . further , the application can provide useful instructions to the user regarding what to do in the event of a missed dose and provides instant access to the prescribing doctor &# 39 ; s phone number . with a single touch of the phone touch screen , the patient can call the prescribing doctor for additional advice . the smart device can also provide internet hyperlinks to the medicine manufacturer &# 39 ; s website for additional information about each medication . when the lid is opened and the medicine is accessed , a signal can be sent from the smart device via a wireless network to a user &# 39 ; s private database . the database can be maintained on the phone and on a secure server . the database can be synchronized . the network can be a cell phone network , a wi - fi network or any other type of wireless network . in one embodiment , the application may include the ability to communicate through a hard line network such as a cable network or fiber optics network to connect to the internet . dispensing data can be communicated to a remote server database ; the data is available for review by the user or a care taker . the data may be presented in any number of ways including charts , graphs or tables . in this way , the user &# 39 ; s medication dispensing history can be reviewed for compliance with the desired schedule for taking medications . in one embodiment , the application includes a feature which alerts a care taker that a dose has not been dispensed via a wireless network . for example , application generates a phone message , text message or e - mail message which is sent directly to the user , care taker , doctor or any number of interested parties . this feature can be particularly useful when , for example , a care taker or family member desires to monitor the medication dispensing compliance of a senior citizen such as a parent or family member or individual who may be suffering from a memory disorder or who may simply be forgetful . when the user receives a “ missed dose ” message , appropriate action can be taken in real - time to correct the short term non - compliance and address the longer term issues associated with the inability or unwillingness of a patient to comply with a medication schedule . as illustrated above , users can input data for numerous medications into the smart phone application . medication specific supplementary information can also be provided directly by the manufacturer for one or more medications . supplementary information can include , for example , the name of the medication , its function , how and when the medication should be taken , missed dose information , information about side effects including specific actions required if the patient experiences side effects , possible interactions with other medications , and where the patient can find additional information about the medication , such as hyperlinks to the manufacturer &# 39 ; s website . further , manufacturers can send coupons and other desirable information such as , for example , safety alerts directly to users through the wireless network . the smart phone includes a software application that is programmed to store a medicine and schedule data for one or more medications . the phone database stores medicine and schedule information that is input by the user or acquired from the manufacture &# 39 ; s database . the phone database can be used to command the locking lid or drawer locks to locked or unlocked positions . when a dose is dispensed or missed by the user , the phone communicates with the secure server database . the server database can be accessed by users having a password and a username . authorized users can login to the database to monitor patient compliance . it is contemplated that numerous graphs and reports can be displayed or printed such that the person accessing the database can easily recognize compliance problems , determine whether there are any recurring compliance problems , or print medication lists . as previously described , the database can communicate with a monitoring module . in the event of a compliance problem , for example , a missed dose of heart medication , the module can issue commands to send an alarm or alarms to concerned individuals by e - mail , text or other means . in this way , a care taker can be timely notified of a missed dose and can implement corrective action . as will also be appreciated , a significant benefit of the present invention includes the ability to store the user &# 39 ; s medicine schedule on a smart phone which the user may carry with them . a patient &# 39 ; s medication information can be invaluable to a new doctor or in the event a user is taken to the hospital . the present invention allows a nurse , doctor , emt or other health care professional to access a patient &# 39 ; s medication regimen or dispensing history by accessing a smart phone or a server database . this feature can dramatically reduce the risk of prescribing the wrong medication and also reduce the time before necessary treatment is administered . although the invention herein has been described with reference to particular embodiments , it is to be understood that these embodiments are merely illustrative embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the disclosure herein .