A kind of system and method for being used to precisely remind slow disease patient to take medicine on timeTechnical field
The present invention relates to field of medical technology, and in particular to a kind of system for being used to precisely remind slow disease patient to take medicine on timeAnd method.
Background technology
At present, slow disease patient is often occupied most with aged people, and with the increase at age, the memory of the mankind is degeneratedSeriously, children again can not everyday personal prompting, it is very high that medicine misses phenomenon probability of happening.For slow disease patient, frequentlyMedicine miss and severely impacted medical effect, cause the further exacerbation of the state of an illness, while may greatly trigger complicationPossibility, therefore, punctual medication are extremely important for slow disease patient.
The content of the invention
For in the prior art the defects of, it is provided by the invention it is a kind of be used for precisely remind slow disease patient take medicine on time beSystem and method, enable slow disease patient to prevent by the punctual drug administration of doctor's advice because slow disease patient is leaked caused by the reasons such as forgettingTake phenomenon.
In a first aspect, a kind of system for being used to precisely remind slow disease patient to take medicine on time provided by the invention, including dataAcquiring unit, dosing regimens calculator, task engine unit and message push engine unit,
The data capture unit is used to obtain the prescription information of slow disease patient, doctor's advice and the dietetic life of patient rule letterBreath;
Prescription information, doctor's advice and the dietetic life of patient that dosing regimens calculator is used for the slow disease patient according to acquisition are advisedRestrain information generation dosing regimens data and by dosing regimens data sending to task engine unit;
The task engine unit is used to receive dosing regimens data, and creating timing according to dosing regimens data for patient touchesThe medication alert timed task of hair is simultaneously stored timed task, and timed task is triggered when meeting the trigger condition of setting,Carry out medication reminders distribution according to the timed task of triggering and perform to message push engine unit to send medication alert letterBreath;
The message push engine unit is used to receive medication reminders from task engine unit and push to terminal to takeMedicine prompting message.
Alternatively, the dosing regimens calculator includes prescription data storage device, order data storage device, data pumpingController and dosing regimens are taken to generate controller,
The prescription data storage device is used to store the prescription that doctor issues;
The order data storage device is used to store inspection, inspection, diet, treatment, medication suggestion of the doctor to patientInformation and medicine Time of Administration;
The data extraction controller is used to extract respectively from prescription data storage device and order data storage deviceThe prescription and order data of patient;
The dosing regimens generation controller is used for according to the prescription and order data for extracting patient, with reference to the diet of patientHabits and customs generate dosing regimens data.
Alternatively, the dosing regimens data include nomenclature of drug, the every kind of medicine taken medicine every time in patient's a cycleDosage, Time of Administration and take reminder time.
Alternatively, the task engine unit include job creator, thread pool controller, task scheduling controller, appointBusiness distribution controller and tasks carrying controller,
The job creator is used to create medication alert timed task according to dosing regimens data for patient;
The thread pool controller is used to create mission thread file, and according to mission thread file according to mean allocationPrinciple is assigned to thread pool, and thread pool controller takes office mission thread data-pushing according to the triggering attribute timing of timed taskIn business distribution controller;
The mission thread file situation that the task scheduling controller is used in thread pool carries out task scheduling distribution;
The task distribution controller is used for the mission thread data of receiving thread pool controller push, by the task lineNumber of passes evidence is distributed to tasks carrying controller;
The tasks carrying controller is used to receive mission thread data, and according to mission thread data execution task.
Alternatively, the attribute of the mission thread file is determined by the attribute of timed task, the attribute of the timed taskMake a summary including Patient identification, task triggered time and prompting message.
Alternatively, the task engine unit further includes tasks carrying data storage device, and the tasks carrying data are depositedStorage device is used for store tasks and performs the task data that controller performs.
Alternatively, the task engine unit further includes logger, and the logger is held for logger taskLine control unit performs the procedural information of task.
Alternatively, the message push engine unit includes message cache controller, message queue controller, message distributionController and cluster Management Controller,
The message cache controller is used for the process performance pressure for alleviating message establishing generation, utilizes memory storage mediumMessage is temporarily stored, duplicate removal processing is carried out to message, buffering area is provided for message queue controller;The message queueController is used to be arranged message in the way of first in first out;
The message distribution controller is used to obtain message from message queue, and the order entered according to message is sent to endEnd;
The cluster management controller is used for distributed type assembliesization management message.
Alternatively, the message push engine unit further includes load balancing controller, and the load balancing controller is usedIn message when high concurrent is handled, the message queue controller of loading condition minimum is selected.
A kind of second aspect, method for being used to precisely remind slow disease patient to take medicine on time provided by the invention, specifically includes:Doctor's advice, prescription information and the dietary life habits information of the data acquisition unit collection slow disease patient are simultaneously transmitted to dosing regimensCalculator;
The dosing regimens calculator generates dosing regimens data simultaneously according to the doctor's advice and prescription information of collection slow disease patientBy dosing regimens data sending to task engine unit;
The task engine unit receives dosing regimens data, and clocked flip is created for patient according to dosing regimens dataMedication alert timed task is simultaneously stored timed task, and timed task is triggered when meeting the trigger condition of setting, according toThe timed task of triggering carries out medication reminders distribution and performs to message push engine unit to send medication reminders;
The message push engine unit receives the medication reminders and pushes medication reminders to terminal.
Beneficial effects of the present invention:
A kind of system and method for being used to precisely remind slow disease patient to take medicine on time provided by the invention, are slow according to doctorThe medication alert timed task that prescription that patient issues, doctor's advice combination patient diet's rule are made, when time conditions are metMedication alert time, system send reminder message to terminal, and terminal sends alerting signal and reminds patient's medication, reminding function timeAccurately, slow disease patient is taken medicine on time by doctor's advice, avoid forgetting to take medicine, missing phenomenon for patient, it is ensured that medical effect.
Brief description of the drawings
, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution of the prior artEmbodiment or attached drawing needed to be used in the description of the prior art are briefly described.In all of the figs, similar elementOr part is generally identified by similar reference numeral.In attached drawing, each element or part might not be drawn according to actual ratio.
Fig. 1 show that first embodiment of the invention provided it is a kind of be used to precisely reminding slow disease patient to take medicine on time beThe structure diagram of system;
Fig. 2 shows the data interaction schematic diagram inside system shown in Figure 1;
Fig. 3 shows a kind of side for being used to precisely remind slow disease patient to take medicine on time that first embodiment of the invention is providedThe flow chart of method.
Embodiment
The embodiment of technical solution of the present invention is described in detail below in conjunction with attached drawing.Following embodiments are only used forClearly illustrate technical scheme, therefore be intended only as example, and the protection of the present invention cannot be limited with thisScope.
It should be noted that unless otherwise indicated, technical term or scientific terminology used in this application should be this hairThe ordinary meaning that bright one of ordinary skill in the art are understood.
As shown in Figure 1, show that one kind that first embodiment of the invention is provided is used to precisely remind slow disease patient on timeThe structure diagram of the system of medication, the system include data capture unit 1, dosing regimens calculator 2, task engine unit 3With message push engine unit 4, the data capture unit 1 is used to obtain the doctor's advice of slow disease patient, prescription information and patientDietetic life rule information;Dosing regimens calculator 2 is for the doctor's advice of the slow disease patient according to acquisition, prescription information and patientDietetic life rule information generates dosing regimens data and by dosing regimens data sending to task engine unit;The task is drawnHold up unit 3 to be used to receive dosing regimens data, create the medication alert timing of clocked flip for patient according to dosing regimens dataTask is simultaneously stored timed task, is triggered timed task when meeting the trigger condition of setting, is appointed according to the timing of triggeringBusiness carries out medication reminders distribution and performs to message push engine unit to send medication reminders;The message push is drawnUnit 4 is held up to be used to receive medication reminders from task engine unit and push medication reminders to terminal.
The present embodiment is used to precisely remind the system that slow disease patient takes medicine on time to pass through the slow disease of data capture unit acquisitionDoctor's advice, prescription information and the diet rule of life information of patient, dosing regimens calculator are generated according to these information and taken medicineDosing regimens data are simultaneously generated dosing regimens data sending to the processing of task engine unit, task engine unit by planning dataThe medication alert timed task of clocked flip, wherein, timed task is when the trigger condition triggering timed task for meeting setting, timingIncluding but not limited to patient's unique mark, task triggered time, prompting message summary info in task, appointed according to the timing of triggeringInformation in business carries out medication reminders distribution and performs to message push engine unit to send medication reminders, and message pushes awaySend engine unit that medication reminders are sent to medication alert terminal, terminal reminds slow disease patient medication.
Further, as shown in Fig. 2, dosing regimens calculator 2 includes prescription data storage device 21, order data storesDevice 22, data extraction controller 23 and dosing regimens generation controller 24, the prescription data storage device 21 are used to storeThe prescription that doctor issues, the information such as nomenclature of drug, dosage, usage, dosage are included in prescription;The order data storage device 22For storing inspection, inspection, diet, treatment, medication advisory information and medicine Time of Administration of the doctor to patient;The data are taken outController 23 is taken to be used for the prescription and doctor's advice for extracting patient respectively from prescription data storage device and order data storage deviceData;The dosing regimens generation controller 24 is used for according to the prescription and order data for extracting patient, with reference to the diet of patientHabits and customs generate dosing regimens data.Wherein, dosing regimens data include the medicine name taken medicine every time in patient's a cycleTitle, the dosage of every kind of medicine, Time of Administration and take reminder time.
Further, as shown in Fig. 2, the task engine unit 3 include job creator 31, thread pool controller 32,Task scheduling controller 33, task distribution controller 34 and tasks carrying controller 35, the job creator 31 are used for basisDosing regimens data create medication alert timed task for patient;The thread pool controller 32 is used to create mission thread textPart, and thread pool is assigned to according to the principle of mean allocation according to mission thread file, thread pool controller is according to timed taskTriggering attribute timing by mission thread data-pushing to task distribute controller in;The task scheduling controller 33 is used for rootTask scheduling distribution is carried out according to the mission thread file situation in thread pool;The task distribution controller 34 is used for receiving threadThe mission thread data of pool controller push, by the mission thread data distribution to tasks carrying controller;The task is heldLine control unit 35 is used to receive mission thread data, and according to mission thread data execution task.Wherein, mission thread fileAttribute is determined that the attribute of the timed task includes Patient identification, task triggered time and reminds letter by the attribute of timed taskBreath summary.
Further, it is described as shown in Fig. 2, the task engine unit 3 further includes tasks carrying data storage device 36Tasks carrying data storage device 36 is used for store tasks and performs the task data that controller performs.Task engine unit 3 also wrapsLogger 37 is included, the logger 37 is used for logger task and performs the procedural information that controller performs task.
Further, as shown in Fig. 2, the message push engine unit 4 includes message cache controller 41, message queueController 42, message distribution controller 43 and cluster Management Controller 44, message cache controller 41 are used to alleviate message establishingThe process performance pressure of generation, temporarily stores message using memory storage medium, duplicate removal processing is carried out to message, to disappearCease queue controller and buffering area is provided;The message queue controller 42 is used to be arranged message in the way of first in first outRow;The message distribution controller 43 is used to obtain message from message queue, and the order entered according to message is sent to terminal;The cluster management controller 44 is used for distributed type assembliesization management message.Terminal can be smart mobile phone, tablet computer or intelligenceEnergy medicine box, can send alerting signal and remind patient's medication.Message push engine unit 4 further includes load balancing controller 45, instituteState load balancing controller 45 and be used for message when high concurrent is handled, select the message queue controller of loading condition minimum.
With reference to figure 2, to illustrate the system provided in an embodiment of the present invention for being used to precisely remind slow disease patient to take medicine on timeInternal data exchange process:Data capture unit obtains prescription information, doctor's advice and the patient diet's rule information of slow disease patient,Prescription data is stored in prescription data storage device, and doctor's advice information is stored in doctor's advice storage device, dosing regimens calculatorAccording to the prescription information of patient, doctor's advice and the qualified prescription of the dietary of patient information extraction and doctor's advice, dosing regimensPatient prescription and order data of the controller according to extraction are generated, dosing regimens data are generated with reference to dietetic life rule information,Service program generates controllerPatient creates medication alert timed task, and thread pool controller is used in system operation, creates mission thread file, mission threadThe attribute of file includes Patient identification, task triggered time and prompting message summary, by mission thread file according to mean allocationPrinciple be assigned to thread pool, thread pool controller arrives mission thread data-pushing according to the triggering attribute timing of timed taskIn task distribution controller, mission thread file situation of the task scheduling controller in thread pool carries out task scheduling pointMatch somebody with somebody, task is transmitted in task distribution controller, task distributes the task that controller will receive the transmission of thread pool controllerThread-data, by mission thread data distribution to tasks carrying controller, tasks carrying controller receives mission thread data,According to mission thread data execution task, tasks carrying data are stored into tasks carrying data storage device, perform taskProcess record is in logger;Tasks carrying controller is communicated to connect with cache controller, and tasks carrying controller need toThe timed reminding message to be pushed is sent to task buffer controller, what cache controller excessively produced to alleviate message establishingProcess performance pressure, temporarily stores message using memory storage medium, carries out duplicate removal processing to message, is also message teamRow controller provides buffering area;Cache controller is communicated to connect with message queue controller, message queue controller control messageArranged in the way of first in first out, cluster management controller distributed type assembliesization management message, message distribution controllerReminder message is sent to each Terminal Type sequentially in time, terminal sends alerting signal and reminds patient's medication.
Implement the system for being used to precisely remind slow disease patient to take medicine on time that the embodiment of the present invention is provided, according to doctorThe medication alert timed task that the prescription issued for slow disease patient, doctor's advice combination patient diet's rule are made, when time conditions are expiredFoot medication alert time, system send reminder message to terminal, and terminal sends alerting signal and reminds patient's medication, reminding functionTime is accurate, slow disease patient is taken medicine on time by doctor's advice, avoids forgetting to take medicine, missing phenomenon for patient, it is ensured that medical effect.
Second aspect, as shown in figure 3, show first embodiment of the invention provide be used for precisely remind slow disease patient byWhen the flow chart of method taken medicine, this method is suitable for the above-mentioned system for being used to precisely remind slow disease patient to take medicine on time, shouldMethod specifically includes following steps:S1. doctor's advice, prescription information and the dietetic life of the data acquisition unit collection slow disease patientHabits information is simultaneously transmitted to dosing regimens calculator;
S2. the dosing regimens calculator generates dosing regimens data according to the doctor's advice and prescription information of collection slow disease patientAnd by dosing regimens data sending to task engine unit;
S3. the task engine unit receives dosing regimens data, and creating timing according to dosing regimens data for patient touchesThe medication alert timed task of hair is simultaneously stored timed task, and timed task is triggered when meeting the trigger condition of setting,Carry out medication reminders distribution according to the timed task of triggering and perform to message push engine unit to send medication alert letterBreath;
S4. the message push engine unit receives the medication reminders and pushes medication reminders to terminal.
The method for the prompting slow disease patient medication time for implementing that the embodiment of the present invention provided, is slow sufferer according to doctorThe medication alert timed task that prescription that person issues, doctor's advice combination patient diet's rule are made, when time conditions meet medicationReminder time, system send reminder message to terminal, and terminal sends alerting signal and reminds patient's medication, and the reminding function time is accurateReally, slow disease patient is taken medicine on time by doctor's advice, avoid forgetting to take medicine, missing phenomenon for patient, it is ensured that medical effect.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extentPipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according toCan so modify to the technical solution described in foregoing embodiments, either to which part or all technical characteristic intoRow equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technologyThe scope of scheme, it should all cover among the claim of the present invention and the scope of specification.