System and method for adaptively adjusting reminding plan based on parameter change and medicine boxTechnical Field
The application relates to the technical field of medicine taking reminding, in particular to a system and a method for adaptively adjusting a reminding plan based on parameter change and a medicine box.
Background
At present, in order to remind people to take medicines on time, a traditional medicine taking reminding scheme is only a simple timed reminding task, namely, people firstly set reminding time before taking medicines, prompt is carried out in a mode similar to a timed alarm clock, and alarm is started after the time reaches preset time, wherein the reminding comprises modes such as voice reminding, short message reminding and the like.
However, with respect to the related art among the above, there are the following drawbacks: people need to record the medicine taking time and the medicine taking condition of the people deliberately, and then can set the reminding time of taking the medicine, so that the timeliness of medicine taking reminding cannot be well guaranteed, especially under the condition that the medicine is required to be taken in a delayed manner depending on the medicine, the people need to calculate the medicine taking interval time among the medicines, and the timeliness of medicine taking reminding is worse.
Disclosure of Invention
In order to improve the timeliness of medicine taking reminding, the application provides a system and a method for adaptively adjusting a reminding plan based on parameter change and a medicine box.
In a first aspect, the present application provides a system for adaptively adjusting a reminder plan based on parameter change, which adopts the following technical scheme:
a system for adaptively adjusting a reminding plan based on parameter change comprises a medicine box and an intelligent terminal bound with the medicine box, wherein the medicine box is in communication connection with the intelligent terminal;
the intelligent terminal is used for issuing a plurality of independent medicine taking plans and/or a plurality of mutually dependent medicine taking plans to the medicine box; the medicine box is used for generating an execution schedule according to all received medicine taking plans and sending out reminding signals according to the execution schedule and the collected user behavior information; the execution schedule is recorded with the predicted medicine taking time of each medicine taking plan, and the reminding signals comprise medicine taking reminding signals;
the medicine box is also used for sending a medicine taking reminding signal when the current time reaches a time point corresponding to a medicine taking plan which is arranged at the top in the execution plan table according to the predicted medicine taking time sequence, and judging whether the corresponding medicine taking plan belongs to a medicine taking plan which depends on the medicine taking reminding signal after a user takes medicine;
if the medicine box judges that the corresponding medicine taking plan belongs to a medicine taking plan with dependence, calculating the predicted medicine taking time of the related medicine taking plan with dependence according to the medicine taking time of the corresponding medicine taking plan, then deleting the executed medicine taking plan, sequencing the rest medicine taking plans from early to late according to the predicted medicine taking time of the related medicine taking plan with dependence obtained through calculation, and meanwhile updating an execution plan table;
and if the medicine box judges that the corresponding medicine taking plan does not belong to the medicine taking plan with dependence, directly deleting the executed medicine taking plan and updating the execution plan table.
Through adopting above-mentioned technical scheme, can accomplish the warning of taking medicine on time and rely on the delay of medicine to take medicine and remind the function based on medicine box and intelligent terminal's synergism, thereby people need not the warning time of taking medicine of memory oneself of carelessness to set for, need postpone the situation of taking medicine to rely on the medicine, people also need not remember the interval time of taking medicine between the dependence medicine of carelessness, the system can be according to the current time of taking medicine automatic to the dependence medicine warning of delaying to taking medicine, the promptness and the accuracy of reminding have been ensured, alleviate the memory burden for the user, it makes mistakes also to have avoided taking medicine, the security has been guaranteed.
Preferably, the medicine box is also used for starting timing when a medicine taking reminding signal is sent out; if the user takes the medicine before the timing reaches the set time threshold, the medicine box stops sending the medicine taking reminding signal after the user takes the medicine; and if the user does not take the medicine after the timing reaches the set time threshold, the medicine box stops sending the medicine taking reminding signal, directly deletes the corresponding medicine taking plan, and meanwhile updates the execution plan table.
By adopting the technical scheme, the execution schedule can be updated in time under the condition that a user does not take medicines for a long time, and judgment errors caused by excessive old data of the execution schedule are avoided.
Preferably, the reminding signal further comprises a repeat medicine taking reminding signal; the medicine box is also used for sending out a repeated medicine taking reminding signal when the user takes the medicine before the time point corresponding to the earliest medicine taking plan in the execution schedule according to the expected medicine taking time sequence.
By adopting the technical scheme, the execution schedule can be kept in the latest state, so that when the user takes the medicine before the time point corresponding to the earliest medicine taking plan, the system can immediately judge that the current medicine taking is the repeated medicine taking, so that the repeated medicine taking reminding is carried out, and the safety of taking the medicine and the timeliness of reminding are further ensured.
Preferably, the intelligent terminal comprises a communication module, a storage module, an analysis module and an auxiliary reminding module;
the communication module is used for carrying out data interaction with the medicine box and receiving medicine box data submitted by the medicine box, and the medicine box data comprises a medicine taking plan, an execution plan table, a reminding record and a medicine taking record; the storage module is used for storing the medicine box data received by the communication module;
the analysis module is used for analyzing the medicine box data stored in the storage module and synchronously sending a trigger instruction to the auxiliary reminding module according to the medicine box data at the time point when the medicine box sends the reminding signal; the auxiliary reminding module responds to the triggering instruction and sends out auxiliary reminding information.
By adopting the technical scheme, the function of assisting the medicine box to remind can be realized through the auxiliary reminding information sent by the intelligent terminal, and the reminding can be timely received through the intelligent terminal even if a user is not near the medicine box, so that the reminding timeliness is ensured from another aspect.
Preferably, the system further comprises a server side in communication connection with the intelligent terminal, and the server side is used for receiving and storing the medicine box data submitted by the intelligent terminal.
Through adopting above-mentioned technical scheme, the server can be saved the medicine box data that intelligent terminal submitted, is convenient for transfer when needs use later and takes out, in other words, the reference when the data of saving can regard as later stage doctor to diagnose the state of an illness of patient and treat.
In a second aspect, the present application provides a method for adaptively adjusting a reminder plan based on parameter change, which adopts the following technical scheme:
a method for adaptively adjusting a reminding plan based on parameter change comprises the following steps:
acquiring a non-dependent medicine taking plan and/or a dependent medicine taking plan;
generating an execution schedule according to all the acquired medicine taking plans, wherein the execution schedule records the predicted medicine taking time of each medicine taking plan;
when the current time reaches a time point corresponding to a medicine taking plan which is arranged in the execution plan table from morning to night according to the predicted medicine taking time and is at the forefront, medicine taking reminding is carried out;
after the medicine taking reminding is carried out, whether the user takes the medicine or not is judged; if the user takes the medicine, judging whether the corresponding medicine taking plan belongs to a medicine taking plan with dependence or not after the user takes the medicine; if the user does not take the medicine, continuing to remind the user to take the medicine;
if the user judges that the corresponding medicine taking plan belongs to the medicine taking plan with the dependence after taking the medicine, calculating the predicted medicine taking time of the related medicine taking plan with the dependence according to the medicine taking time of the corresponding medicine taking plan, then deleting the executed medicine taking plan, sequencing the rest medicine taking plans in the order from early to late according to the calculated predicted medicine taking time of the related medicine taking plan with the dependence, and updating an execution plan table;
if the user judges that the corresponding administration plan does not belong to the dependent administration plan after taking the medicine, the executed administration plan is directly deleted, and the execution plan table is updated.
Through adopting above-mentioned technical scheme, can realize the automatic delay of reminding and relying on the medicine of taking medicine and remind the function, the patient need not the self time of taking medicine of careful record and medicine situation, has alleviateed patient's burden greatly, has ensured the promptness and the accuracy of reminding of taking medicine.
Preferably, the method further comprises the step of judging whether the medicines are missed or not after the users take the medicines and before judging whether the corresponding medicine taking plans belong to the medicine taking plans with dependence or not; the step of judging whether the medicines are missed comprises the following steps:
under the condition that the medicines are missed, directly deleting the medicine taking plan corresponding to the missed medicines, and updating an execution plan table; whether the medicine taking plan corresponding to the taken medicine belongs to the dependent medicine taking plan or not is judged under the condition that the medicine is not missed and the medicine is missed.
By adopting the technical scheme, the medicine taking plan corresponding to the medicine which is missed by the user can be deleted in time, so that the execution plan table is ensured to be updated in time, and judgment errors caused by excessive old data of the execution plan table are avoided. On the other hand, the medicines which are missed are not taken, so that the judgment on whether the medicines depend on the medicines is not needed, namely, the medicines which are missed are not taken, so that the taking of other subsequent medicines is not influenced, therefore, the method realizes the timely updating of the execution schedule on the premise of ensuring the safety, reduces the burden of the user and ensures the safety of the user.
Preferably, the method further comprises the following steps: and when the user takes the medicine before the time point corresponding to the earliest medicine taking plan in the execution plan table according to the expected medicine taking time sequence, repeatedly reminding the user of taking the medicine.
By adopting the technical scheme, the function of reminding the patient of taking medicine repeatedly is realized, and the reminding accuracy and timeliness are further ensured.
In a third aspect, the present application provides a kit, which adopts the following technical scheme:
a cartridge comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and executed to perform any of the methods described above.
By adopting the technical scheme, the medicine box can realize the functions of medicine taking reminding and medicine taking reminding delaying depending on medicines, so that the reminding timeliness and accuracy are guaranteed, and the memory burden is reduced for a user.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer readable storage medium storing a computer program capable of being loaded by a processor and performing any of the methods described above.
By adopting the technical scheme, the corresponding program can be stored, and the medicine taking reminding method has the characteristic of improving the timeliness of medicine taking reminding.
Drawings
Fig. 1 is a block diagram of a system for adaptively adjusting a reminder plan based on a parameter change according to an embodiment of the present application.
Fig. 2 is a block diagram of a structure for embodying the intelligent terminal and the medicine box composition according to an embodiment of the present application.
Fig. 3 is a flowchart of a method for adaptively adjusting a reminder plan based on a parameter change according to an embodiment of the present application.
Description of reference numerals: 1. a kit; 11. a central processing module; 12. a medication plan management module; 13. a user operation identification module; 14. a reminding module; 15. a timing module; 16. a repeat reminding module; 2. an intelligent terminal; 21. a communication module; 22. a storage module; 23. an analysis module; 24. an auxiliary reminding module; 3. and a server side.
Detailed Description
The present application is described in further detail below with reference to figures 1-3.
The medicine box with the reminding function is also called a timing medicine box and an electronic medicine box in daily life, is a household electronic reminding and medicine distributing device which is used for storing medicines at ordinary times and reminding people to take the medicines on time, can distribute and select the medicines with the specified quantity and the specified types according to a preset medicine taking plan, and sends out reminding signals at the set time. The medicine box is generally used in a plurality of household scenes and is particularly suitable for the user group of the old people at home, and the main reason is that the old people are easy to get ill, and frequent medicine taking is involved, and the memory decline and the medicine taking can not be carried out on time.
The embodiment of the application discloses a system for adaptively adjusting a reminding plan based on parameter change. Referring to fig. 1, the system includesmedicine box 1, intelligent terminal 2 that binds withmedicine box 1 andserver 3 that carries out data interaction with intelligent terminal 2, and all communication connection betweenmedicine box 1 and intelligent terminal 2 and between intelligent terminal 2 and theserver 3. The mode of communication connection betweenmedicine box 1 and intelligent terminal 2 can be for the bluetooth is connected, also can be through internet connection, through internet connection between intelligent terminal 2 and theserver 3.
Referring to fig. 2, themedicine box 1 includes acentral processing module 11, and a medicine takingplan management module 12, a useroperation identification module 13 and a reminding module 14 which are connected to thecentral processing module 11, the intelligent terminal 2 is configured to issue a plurality of independent medicine taking plans and/or a plurality of mutually dependent medicine taking plans to themedicine box 1, after themedicine box 1 receives the medicine taking plans, thecentral processing module 11 stores the received medicine taking plans into the medicine takingplan management module 12, and the medicine takingplan management module 12 generates an execution plan table according to all the received medicine taking plans. The useroperation identification module 13 is used for identifying actions of opening and closing themedicine box 1 by a user and quantity information and type information of medicines in themedicine box 1, and thecentral processing module 11 controls the reminding module 14 to send out a reminding signal or not according to the execution plan generated by the medicine takingplan management module 12 and the user behavior information collected by the useroperation identification module 13. The execution schedule table records the label information of each medication plan and the corresponding predicted medication time, and the reminding signals sent by the reminding module 14 include medication reminding signals and repeat medication reminding signals.
Specifically, when the current time reaches a time point corresponding to a medicine taking plan which is arranged in the execution schedule from morning to evening according to the predicted medicine taking time and is positioned at the forefront, thecentral processing module 11 controls the reminding module 14 to send out a medicine taking reminding signal, and continuously controls the reminding module 14 to send out the medicine taking reminding signal when the user does not take the medicine, and judges whether the medicine is missed or not after the user takes the medicine. It should be noted that the medicine taking reminding signal sent by the reminding module 14 may be an indicator light signal or a buzzer signal, and is not limited specifically herein.
The mode for judging whether the user takes medicine is as follows: the user operates theidentification module 13 to detect whether themedicine box 1 is opened or not or whether the medicines sorted according to the current medicine taking plan in themedicine box 1 are reduced or not when themedicine box 1 is closed after being opened; if themedicine box 1 is not opened or themedicine box 1 is opened and closed and then the number of the medicines is not reduced, judging that the user does not take the medicine and sending detection result data representing that the user does not take the medicine to thecentral processing module 11; if the number of the medicines in themedicine box 1 is reduced after themedicine box 1 is opened and closed, the medicine taking of the user is judged, and detection result data representing that the user takes the medicine is sent to thecentral processing module 11.
The mode for judging whether the user has missed medicine is as follows: when the number of the medicines sorted according to the current medicine taking plan in themedicine box 1 is reduced, the user operates theidentification module 13 to detect whether the number of the reduced medicines is equal to the number of the medicines sorted in themedicine box 1; if the two conditions are equal, judging that the condition of medicine missing does not exist, and sending detection result data representing that the user does not take medicine missing to thecentral processing module 11; if the difference is not equal, the condition of missed medicine taking is judged, and detection result data representing that the user has missed medicine taking is sent to thecentral processing module 11.
Referring to fig. 2, after receiving the detection result data representing that the user has missed taking medicine, thecentral processing module 11 sends a control signal to the medicationplan management module 12, and after receiving the control signal, the medicationplan management module 12 directly deletes the medication plan corresponding to the missed medicine, and updates the execution plan table; and meanwhile, judging whether the medicine taking plan corresponding to the taken medicine belongs to a medicine taking plan with dependence. If thecentral processing module 11 receives the detection result data representing that the user has not missed the medication, the medicationplan management module 12 is controlled to determine whether the medication plan corresponding to the medication belongs to a medication plan that depends on the medication.
If the medicationplan management module 12 determines that a medication plan of medication plans corresponding to medication items belongs to a dependent medication plan, the medication plan management module calculates an estimated medication time of the dependent medication plan according to the medication time of the medication plan belonging to the dependent medication plan, deletes the medication plan that has been executed, i.e., has taken medication, sorts all remaining medication plans in the order of the estimated medication time from early to late according to the calculated estimated medication time of the dependent medication plan, and updates the execution plan table. If the medicationplan management module 12 determines that the medication plans corresponding to the medications do not belong to the dependent medication plans, the medication plans that have already been executed are directly deleted, and the execution plan table is updated.
The dependencies here mean: assuming that the medicine A and the medicine B have a dependency relationship, the medicine A and the medicine B can be taken too close to each other to take the medicine B at a later time point because the medicine A and the medicine B have side effects; at the moment, the medicine A and the medicine B correspond to a medicine taking plan which is dependent on each other, and the medicine taking time of the medicine B is determined according to the real-time medicine taking time of the medicine A, so that the estimated medicine taking time of the medicine B is calculated after the medicine A is taken; further, in the case where it is necessary to continue taking the medicine a and the medicine B at a later time point after the medicine a and the medicine B have been taken in order, for example, a → B → a → B, the medication plan corresponding to the subsequent medicine a and the medication plan corresponding to the previous medicine B are also dependent on each other, and it is necessary to calculate the estimated medication time of the subsequent medicine a from the medication time of the previous medicine B.
Referring to fig. 2, themedicine box 1 further comprises a timing module 15 for starting timing when the reminding module 14 sends out the medicine taking reminding signal, and the timing module 15 is connected with thecentral processing module 11 and controlled by thecentral processing module 11. If the user takes medicine before the time counted by the timing module 15 reaches the time threshold set in thecentral processing module 11, thecentral processing module 11 controls the reminding module 14 to stop sending the medicine taking reminding signal after the user takes medicine. If the user does not take medicine after the timing of the timing module 15 reaches the set time threshold, thecentral processing module 11 controls the reminding module 14 to stop sending the medicine taking reminding signal, controls the medicine takingplan management module 12 to directly delete the corresponding medicine taking plan, and updates the execution plan table. The time threshold set in thecentral processing module 11 is automatically adjusted according to the medication schedule, and the set time threshold is a time difference between the predicted medication time T1 corresponding to the currently reminding medication schedule or medication schedules with the same medication time and the predicted medication time T2 corresponding to the following medication schedule or medication schedules with the same medication time, in other words, the set time threshold is the predicted medication time T2 minus the predicted medication time T1.
Referring to fig. 2, themedicine box 1 further includes arepeat reminding module 16 connected to thecentral processing module 11, and thecentral processing module 11 is further configured to control therepeat reminding module 16 to send a repeat reminding signal when the user takes medicine before a time point corresponding to the earliest medicine taking plan in the execution schedule according to the predicted medicine taking time sequence, wherein the repeat reminding signal may be an indicator light signal or a buzzer signal.
Referring to fig. 1 and 2, the intelligent terminal 2 includes acommunication module 21, astorage module 22, ananalysis module 23, and an auxiliary remindingmodule 24.Communication module 21 is used for carrying out data interaction withmedicine box 1 and is used for receiving the medicine box data thatmedicine box 1 submitted, and intelligent terminal 2 can submit medicine box data toserver 3 and save after receiving medicine box data, and wherein, medicine box data include the plan of taking medicine, carry out the plan table, remind record and medicine record. Thestorage module 22 is used for storing the medicine box data received by thecommunication module 21. Theanalysis module 23 is configured to analyze the medicine box data stored in thestorage module 22, and synchronously send a trigger instruction to the auxiliary remindingmodule 24 according to the medicine box data at the time point when themedicine box 1 sends the reminding signal. The auxiliary remindingmodule 24 responds to the trigger instruction of theanalysis module 23 to send out an auxiliary reminding message so as to achieve the purpose of auxiliary reminding for taking medicine. The auxiliary reminding information can be a pushed message, and can also be an indicator light signal or a buzzing signal.
The embodiment of the application also discloses a method for adaptively adjusting the reminding plan based on the parameter change. Referring to fig. 3, the method includes the steps of:
s10, acquiring a medicine taking plan: an independent and/or dependent dosing schedule is obtained.
S20, generating an execution schedule: an execution schedule table is generated from all the taking plans acquired in step S10, and the flag information of each taking plan and the corresponding estimated taking time are recorded in the execution schedule table.
S30, medicine taking reminding: and when the current time reaches a time point corresponding to a medicine taking plan which is arranged at the top in the execution plan table from the morning to the evening according to the predicted medicine taking time, medicine taking reminding is carried out. And when the user takes the medicine before the time point corresponding to the earliest medicine taking plan in the execution plan table according to the expected medicine taking time sequence, the medicine taking reminding is repeatedly carried out.
S40, judging whether medicine taking is carried out: after the medicine taking reminding is carried out, whether the user takes the medicine or not is judged; if the user has taken the medicine, the process goes to step S50; if the user has not taken the medicine, the process returns to step S30.
S50, judging whether missing clothes exist: if there is a missed medication, simultaneously entering step S51 and step S60; if there is no missed medication, the process proceeds to step S60.
S51, directly deleting the medicine taking plan corresponding to the missed medicine, and then entering S80.
S60, judging whether the dependency is: judging whether the medicine taking plan corresponding to the taken medicine belongs to a medicine taking plan which depends on the taken medicine; if there is a dependent medication plan, the flow proceeds to step S61; if there is no dependent medication plan, the flow proceeds to step S70.
The dependency in step S60 means that: assuming that the medicine A and the medicine B have a dependency relationship, the medicine A and the medicine B can be taken too close to each other to take the medicine B at a later time point because the medicine A and the medicine B have side effects; at the moment, the medicine A and the medicine B correspond to a medicine taking plan which is dependent on each other, and the medicine taking time of the medicine B is determined according to the real-time medicine taking time of the medicine A, so that the estimated medicine taking time of the medicine B is calculated after the medicine A is taken; further, in the case where it is necessary to continue taking the medicine a and the medicine B at a later time point after the medicine a and the medicine B have been taken in order, for example, a → B → a → B, the medication plan corresponding to the subsequent medicine a and the medication plan corresponding to the previous medicine B are also dependent on each other, and it is necessary to calculate the estimated medication time of the subsequent medicine a from the medication time of the previous medicine B.
S61, calculating the predicted medicine taking time of the medicine taking plan with the dependence according to the medicine taking time of the medicine taking plan with the dependence obtained in the step S60, updating the calculated predicted medicine taking time to the corresponding medicine taking plan without reminding, namely, modifying the original predicted medicine taking time of the medicine taking plan with the dependence into the currently calculated corresponding predicted medicine taking time, and then, entering the step S62.
S62, deleting the executed medicine taking plans, sequencing all the remaining medicine taking plans which are not reminded according to the expected medicine taking time from early to late, and then entering the step S80.
S70, directly deleting the independent medicine taking plan which is executed.
S80, updating the execution schedule, and returning to step S30.
The embodiment of the application also discloses a medicine box. The kit comprises a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and execute the method of adaptively adjusting a reminder plan based on a change in a parameter as described above.
The embodiment of the application also discloses a computer readable storage medium. A computer program capable of being loaded by a processor and executing the method for adaptively adjusting a reminder plan based on a parameter change as described above is stored in a computer readable storage medium, which includes, for example: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above examples are only used to illustrate the technical solutions of the present invention, and do not limit the scope of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from these embodiments without making any inventive step, fall within the scope of the present invention. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art may still make various combinations, additions, deletions or other modifications of the features of the embodiments of the present invention according to the situation without conflict, so as to obtain different technical solutions without substantially departing from the spirit of the present invention, and these technical solutions also fall within the protection scope of the present invention.