CN109141594A - The drug metering method of intelligent medicine-chest, intelligent medicine-chest and storage medium - Google Patents

The drug metering method of intelligent medicine-chest, intelligent medicine-chest and storage medium Download PDF

Info

Publication number
CN109141594A
CN109141594A CN201810867680.5A CN201810867680A CN109141594A CN 109141594 A CN109141594 A CN 109141594A CN 201810867680 A CN201810867680 A CN 201810867680A CN 109141594 A CN109141594 A CN 109141594A
Authority
CN
China
Prior art keywords
drug
chest
drawer
value
difference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810867680.5A
Other languages
Chinese (zh)
Other versions
CN109141594B (en
Inventor
李明畔
温细仁
王攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lachesis Mobile Medical Technology Co Ltd
Original Assignee
Shenzhen Lachesis Mobile Medical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lachesis Mobile Medical Technology Co Ltd filed Critical Shenzhen Lachesis Mobile Medical Technology Co Ltd
Priority to CN201810867680.5A priority Critical patent/CN109141594B/en
Publication of CN109141594A publication Critical patent/CN109141594A/en
Application granted granted Critical
Publication of CN109141594B publication Critical patent/CN109141594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G19/00Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G23/00Auxiliary devices for weighing apparatus
    • G01G23/01Testing or calibrating of weighing apparatus

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Preparation Storing Or Oral Administration Devices (AREA)

Abstract

The invention discloses a kind of drug metering methods of intelligent medicine-chest, comprising the following steps: intelligent medicine-chest obtains total weight of the drawer of the intelligent medicine-chest of corresponding drug before not opening when receiving drug or tonic instructs;When the intelligent medicine-chest completes drug or tonic, the current total weight of the drawer is obtained;The current total weight of total weight, the drawer before not opened according to the drawer and the substance of the drug corresponding with the drawer, calculate the varied number that the drug decreases or increases.The invention also discloses a kind of intelligent medicine-chest and computer readable storage mediums.Drug metering precision of the intelligent medicine-chest in drug or tonic can be improved in the present invention.

Description

The drug metering method of intelligent medicine-chest, intelligent medicine-chest and storage medium
Technical field
The present invention relates to the field of medical instrument technology more particularly to a kind of drug metering methods of intelligent medicine-chest, intelligent medicine Cabinet and computer readable storage medium.
Background technique
Existing intelligence medicine-chest, due to being floated by the intrinsic creep of weighing sensor, temperature sensitivity drift and zero temperature The influence of factors such as move, the total weight of drug that (such as 30 minutes or more) are stored in drawer for a long time will appear bigger inclined It moves.When intelligent medicine-chest carries out drug or tonic, the drift weight of accumulation will affect drug total weight and be converted into the accurate of quantity Degree, if the substance of drug is smaller, will lead to drug metering and occur especially when the drug of drawer storage for a long time is more Mistake is more serious.
Summary of the invention
The main purpose of the present invention is to provide a kind of drug metering method of intelligent medicine-chest, intelligent medicine-chest and computers can Read storage medium, it is intended to improve drug of the intelligent medicine-chest in drug or tonic and measure precision.
To achieve the above object, the present invention provides a kind of drug metering method of intelligent medicine-chest, the medicine of the intelligence medicine-chest Product metering method the following steps are included:
Intelligent medicine-chest obtains the drawer of the intelligent medicine-chest of corresponding drug not when receiving drug or tonic instructs Total weight before opening;
When the intelligent medicine-chest completes drug or tonic, the current total weight of the drawer is obtained;
The current total weight of total weight, the drawer before not opened according to the drawer and institute corresponding with the drawer The substance for stating drug calculates the varied number that the drug decreases or increases.
Preferably, it is described do not opened according to the drawer before total weight, the current total weight of the drawer and with it is described The substance of the corresponding drug of drawer, the step of calculating the varied number that the drug decreases or increases include:
The current total weight of total weight and the drawer before not opened according to the drawer, calculate the current total weight with The drawer do not open before total weight between difference;
By the difference divided by the substance of the drug, the varied number that the drug decreases or increases is calculated.
Preferably, it is described by the difference divided by the substance of the drug, be calculated what the drug decreased or increased Before the step of varied number further include:
Judge whether the difference is less than preset difference value;
When the difference is less than the preset difference value, the difference is reacquired after preset time;
If the difference is respectively less than the preset difference value after the difference for reacquiring pre-determined number, then execute institute The step of difference is stated divided by the substance of the drug, the varied number that the drug decreases or increases is calculated.
Preferably, it is described judge the step of whether difference is less than preset difference value after, further includes:
If the difference is greater than or equal to the preset difference value, execute the difference divided by the substance of the drug, The step of varied number that the drug decreases or increases is calculated.
Preferably, the intelligent medicine-chest has weighing sensor, for the drug in the drawer and the drawer It weighs, the intelligence medicine-chest obtains the pumping of the intelligent medicine-chest of corresponding drug when receiving drug or tonic instructs Before drawer is the total weight before not opening the step of further include:
Acquire ADC value Y of the standard test weight of multiple and different weight X on the weighing sensor;
Described point is carried out in rectangular coordinate system according to the ADC value, obtains the linear equation of the X and Y.
Preferably, ADC value Y of the standard test weight of the multiple and different weight X of acquisition on the weighing sensor The step of after further include:
Using the way of median average filter of sliding window, the ADC value of acquisition is filtered;
Calibration processing is carried out according to standard test weight of the ADC value after filtering processing to predetermined quantity.
Preferably, the drug metering method of the intelligent medicine-chest further include:
According to the linear equation and/or calibrated linear equation, coefficient of reliability is found out;
When the coefficient of reliability levels off to preset value, then confirm that the linear equation is effective.
Preferably, the way of median average filter using sliding window carries out the ADC value of acquisition The step of filtering processing includes:
The period obtains dynamic continuously collected one group of ADC value at a predetermined interval;
Maximum value and minimum value therein are removed, and arithmetic mean of instantaneous value is taken to remaining ADC value.
Preferably, removal maximum value therein and minimum value, and arithmetic mean of instantaneous value is taken to remaining ADC value The step of after further include:
Obtain the first lowest-order values that previous cycle obtains and the after sliding window shifts that current period obtains Two lowest-order values;
Calculate the first absolute difference between second lowest-order values and the arithmetic mean of instantaneous value and described first The second absolute difference between lowest-order values and second lowest-order values;
If first absolute difference and second absolute difference are all larger than preset threshold, it is determined that the drawer Current total weight change.
To achieve the above object, the present invention also provides a kind of intelligent medicine-chest, including processor and it is stored in the processing In device and the drug metering method of intelligent medicine-chest that can run on the processor, wherein the drug meter of the intelligent medicine-chest The step of drug metering method of intelligent medicine-chest as described above is realized when amount method is executed by the processor.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages The drug accounting procedure of intelligent medicine-chest is stored on medium, the drug accounting procedure of the intelligence medicine-chest is executed by processor realization The step of drug metering method of intelligence medicine-chest as described above.
Drug metering method, intelligent medicine-chest and the computer readable storage medium of intelligence medicine-chest provided by the invention, pass through For intelligent medicine-chest when receiving drug or tonic instructs, the drawer for obtaining the intelligent medicine-chest of corresponding drug is total before not opening Weight obtains the current total weight of the drawer, further according to the pumping then when the intelligent medicine-chest completes drug or tonic Drawer do not open before total weight, the current total weight of the drawer and the drug corresponding with the drawer substance, calculate The varied number that the drug decreases or increases out.It, generally can be 30 since the time of each drug or tonic is usually shorter Minute within, during this period, weighing sensor by wriggle, temperature sensitivity drift and zero temperature drift influenced it is smaller, The present invention program is by calculating variation total weight, and the weight of weighing sensor accumulation for a long time can be drifted about removal, therefore, can Accurately to calculate very much the quantity of drug variation.
Detailed description of the invention
Fig. 1 is the functional block diagram for one embodiment of intelligent medicine-chest that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the drug metering method first embodiment of the intelligent medicine-chest of the present invention;
Fig. 3 is the refinement flow diagram of step S3 first embodiment in Fig. 2;
Fig. 4 is the refinement flow diagram of step S3 second embodiment in Fig. 2;
Fig. 5 is the flow diagram of the drug metering method second embodiment of the intelligent medicine-chest of the present invention;
Fig. 6 is the refinement flow diagram of mono- embodiment of step S6 in Fig. 5.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, intelligent medicine-chest of the invention includes: processor 1001, such as CPU, user interface 1002, memory 1003, communication bus 1004.Wherein, communication bus 1004 is for realizing the connection communication between these components.User interface 1002 may include input unit.Memory 1003 can be high speed RAM memory, be also possible to stable memory (non- Volatile memory), such as magnetic disk storage.Memory 1003 optionally can also be independently of aforementioned processor 1001 Storage device.
It will be understood by those skilled in the art that intelligence medicine-chest shown in Fig. 1 does not constitute the restriction to intelligent medicine-chest, it can To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As may include operating system, network communication module, use in a kind of memory 1003 of computer storage medium The drug metering method of family interface module and intelligent medicine-chest.
User interface 1002 is mainly used for reception user and passes through input unit input instruction triggers user instruction;Processor 1001 for calling the drug metering method of the intelligent medicine-chest stored in memory 1003, and executes following operation:
Intelligent medicine-chest obtains the drawer of the intelligent medicine-chest of corresponding drug not when receiving drug or tonic instructs Total weight before opening;
When the intelligent medicine-chest completes drug or tonic, the current total weight of the drawer is obtained;
The current total weight of total weight, the drawer before not opened according to the drawer and institute corresponding with the drawer The substance for stating drug calculates the varied number that the drug decreases or increases.
Further, processor 1001 can call the drug accounting procedure of the intelligent medicine-chest stored in memory 1003, Also execute following operation:
The current total weight of total weight and the drawer before not opened according to the drawer, calculate the current total weight with The drawer do not open before total weight between difference;
By the difference divided by the substance of the drug, the varied number that the drug decreases or increases is calculated.
Further, processor 1001 can call the drug accounting procedure of the intelligent medicine-chest stored in memory 1003, Also execute following operation:
Judge whether the difference is less than preset difference value;
When the difference is less than the preset difference value, the difference is reacquired after preset time;
If the difference is respectively less than the preset difference value after the difference for reacquiring pre-determined number, then execute institute The step of difference is stated divided by the substance of the drug, the varied number that the drug decreases or increases is calculated.
Further, processor 1001 can call the drug accounting procedure of the intelligent medicine-chest stored in memory 1003, Also execute following operation:
If the difference is greater than or equal to the preset difference value, execute the difference divided by the substance of the drug, The step of varied number that the drug decreases or increases is calculated.
Further, processor 1001 can call the drug accounting procedure of the intelligent medicine-chest stored in memory 1003, Also execute following operation:
Acquire ADC value Y of the standard test weight of multiple and different weight X on the weighing sensor;
Described point is carried out in rectangular coordinate system according to the ADC value, obtains the linear equation of the X and Y.
Further, processor 1001 can call the drug accounting procedure of the intelligent medicine-chest stored in memory 1003, Also execute following operation:
Using the way of median average filter of sliding window, the ADC value of acquisition is filtered;
Calibration processing is carried out according to standard test weight of the ADC value after filtering processing to predetermined quantity.
Further, processor 1001 can call the drug accounting procedure of the intelligent medicine-chest stored in memory 1003, Also execute following operation:
According to the linear equation and/or calibrated linear equation, coefficient of reliability is found out;
When the coefficient of reliability levels off to preset value, then confirm that the linear equation is effective.
Further, processor 1001 can call the drug accounting procedure of the intelligent medicine-chest stored in memory 1003, Also execute following operation:
The period obtains dynamic continuously collected one group of ADC value at a predetermined interval;
Maximum value and minimum value therein are removed, and arithmetic mean of instantaneous value is taken to remaining ADC value.
Further, processor 1001 can call the drug accounting procedure of the intelligent medicine-chest stored in memory 1003, Also execute following operation:
Obtain the first lowest-order values that previous cycle obtains and the after sliding window shifts that current period obtains Two lowest-order values;
Calculate the first absolute difference between second lowest-order values and the arithmetic mean of instantaneous value and described first The second absolute difference between lowest-order values and second lowest-order values;
If first absolute difference and second absolute difference are all larger than preset threshold, it is determined that the drawer Current total weight change.
Referring to Fig. 2, in the first embodiment, the present invention provides a kind of drug metering method of intelligent medicine-chest, including following Step:
Step S1, intelligent medicine-chest obtains the intelligent medicine-chest of corresponding drug when receiving drug or tonic instructs Total weight of the drawer before not opening;
In the present embodiment, the triggering of the tonic instruction can be drug control personnel by operating the intelligent medicine-chest The display interface of offer such as touch display screen and trigger, be also possible to drug control personnel by operate mobile client touch Hair, concrete mode do not limit.The triggering of the drug instruction can be user patient or drug control personnel and pass through operation institute It states the display interface such as touch display screen that intelligent medicine-chest provides and triggers.
The intelligence medicine-chest has multiple drawers, and different drawers is for storing different types of drug namely a pumping Drawer corresponds to a type of drug, and each drawer has a weighing sensor, for in the drawer and the drawer Drug weigh.
Total weight of the drawer of the intelligence medicine-chest before not opening is not limited to when receiving drug or tonic instruction and obtains Take, if the drawer when the total weight before not opening is to weigh for the first time, can the acquisition when the intelligent medicine-chest is installed;If The intelligence medicine-chest carried out drug or tonic, then can also obtain at the end of each drug or tonic.
Since weighing sensor will receive the shadow of the factors such as intrinsic creep, temperature sensitivity drift and zero temperature drift It rings, the total weight for the drug that (such as 30 minutes or more) are stored in drawer for a long time will appear bigger offset, therefore, in intelligence Energy medicine-chest obtains gross weight of the drawer of the intelligent medicine-chest of corresponding drug before not opening when receiving drug or tonic instructs Amount, can improve acquisition the drawer do not hold before total weight accuracy.
Step S2, when the intelligent medicine-chest completes drug or tonic, the current total weight of the drawer is obtained;
In the present embodiment, when the intelligent medicine-chest completes drug or tonic namely the drawer of the intelligent medicine-chest is closed When, obtain the current total weight of the drawer.
Wherein, the current total weight of the drawer includes the drug weight in the weight and the drawer of drawer.Certainly, In other embodiments, the weight of the weighing sensor detection can be the net weight of drug in the drawer, specifically can root It is determined according to the position and structure of the weighing sensor.
Preferably, the intelligent medicine-chest can at predetermined time intervals as described in 0.1s update drawer current total weight.
Step S3, the current total weight of total weight, the drawer before not opened according to the drawer and with the drawer The substance of the corresponding drug calculates the varied number that the drug decreases or increases.
In the present embodiment, referring to Fig. 3, the step S3 further comprises:
Step S31, the current total weight of total weight and the drawer before not opened according to the drawer calculates described current Total weight and the drawer do not open before total weight between difference;
Step S32, the variation that the drug decreases or increases is calculated divided by the substance of the drug in the difference Quantity.
The variation weight of the drug can be first calculated, namely the current total weight for taking the drawer and the drawer are not The difference between total weight before opening obtains the variation total weight of drug in the drawer, if the variation total weight is positive value, Then show that the drug weight increases;If the variation total weight is negative value, show that the drug weight reduces.Then By the variation total weight divided by the substance of the drug, then the varied number that the drug increases or decreases can be calculated, And the varied number of display drug and/or the current data of drug are carried out in the display screen of the intelligent medicine-chest.For example, A drug Reduce 10, the current quantity of A drug is 15;B drug increases 20 boxes, and the current data of B drug is 30 boxes etc..Such as This, can clearly show the stock position of drug to drug control personnel and user patient.
Certainly, in other embodiments, the total weight before the drawer is not opened can also first be calculated divided by corresponding drug Substance, obtain a;Then the current total weight of the drawer is calculated divided by the substance of corresponding drug, obtains b, then take a's and b Difference obtains the varied number of the drug.
The drug metering method of intelligence medicine-chest provided by the invention is receiving drug or tonic instruction by intelligent medicine-chest When, total weight of the drawer of the intelligent medicine-chest of corresponding drug before not opening is obtained, is then completed out in the intelligent medicine-chest When medicine or tonic, the current total weight of the drawer is obtained, the total weight, the drawer before not opening further according to the drawer are worked as The substance of preceding total weight and the drug corresponding with the drawer calculates the variation number that the drug decreases or increases Amount., generally can be within 30 minutes, during this period since the time of each drug or tonic is usually shorter, weighing sensor By wriggle, temperature sensitivity drift and zero temperature drift influenced it is smaller, the present invention program by calculate variation total weight, Therefore the removal that the weight of weighing sensor accumulation for a long time can be drifted about can accurately calculate drug variation very much Quantity.
Referring to Fig. 4, in a second embodiment, it is based on first embodiment, after the step S32 further include:
Step S33, judge whether the difference is less than preset difference value;
In the present embodiment, the preset difference value can be a certain fixed value such as 0.5g, can also be according to the tool of the drug Body type is respectively set, if the drug is oral solution class, then sets the preset difference value as M;If powdery type, then set described Preset difference value is N;If the drug is piece class, the preset difference value is set as P etc..Specific value can close according to the actual situation Reason setting, is not listed specific value herein.
Step S34, when the difference is less than the preset difference value, the difference is reacquired after preset time;
If the difference is respectively less than the preset difference value, then after the difference for step S35, reacquiring pre-determined number Execute step S32.
In the present embodiment, if the difference is less than the preset difference value such as 0.5g, show that the quantity of the drug may Do not change.To ensure accuracy, can be reacquired after preset time such as 10s as described in difference, if reacquiring pre- Determining number, such as 3 times differences are respectively less than the preset difference value, then show that the total weight of the drawer does not change, Quantity variation does not occur for i.e. presently described drug.
If step S36, the described difference is greater than or equal to the preset difference value, S32 is thened follow the steps.
In the present embodiment, if the difference is greater than or equal to the preset difference value such as 0.5g, show presently described drug Quantity has changed, and therefore, can directly execute step S32.So, it is ensured that the intelligence medicine-chest can be timely and flat Quietly read the weight change value of drawer.
Referring to Fig. 5, in the third embodiment, it is based on first embodiment, before the step S1 further include:
Step S4, ADC value Y of the standard test weight of multiple and different weight X on the weighing sensor is acquired;
Step S5, described point is carried out in rectangular coordinate system according to the ADC value, obtains the linear side of the X and Y Journey.
In the present embodiment, as times for needing to obtain (such as 15kg) in range in the drawer using weighing sensor design When the weight of meaning drug, need to find out the characteristic of weighing sensor, target is that a suitable side is found out using limited counterweight Formula goes out the actual weight value of any drug by this equation solution.
The present embodiment acquires ADC value Y of the standard test weight of more than ten of different weight X on weighing sensor, will count Described point is carried out in rectangular coordinate system according to member (X, Y), observes that these put the distribution that is in line, that is to say, that the two variables have directly Line relationship, it is possible to find a suitable straight line by way of solving unary linear regression equation, allow arbitrary mould Number conversion value (Y) can correspond to an actual weight value (X).
Assuming that this linear equation indicates are as follows: y=ax+b, then optimal linear equation should be such that square of difference With for minimum, i.e.,
It is as follows that two coefficients can be acquired respectively:
Wherein, a is known as slope, and b is known as intercept.
In order to which whether the degree of fitting for assessing the linear equation solved is reasonable, a coefficient of reliability r is increased herein, The solution of r is as follows:
Wherein,If the absolute value of r is closer to preset value such as 1, reliability is got over It is high;Similarly, if r is equal to or levels off to preset value such as zero, illustrate that two physical quantitys of x, y do not have linear relationship.
Step S6, using the way of median average filter of sliding window, the ADC value of acquisition is filtered Processing;
Further, in order to reduce ADC value acquisition in random white noise the interference (pulse feature accidentally occurred Interference), and most sensitive transient characteristic (weight change) is kept, using " median of sliding window is averagely filtered in the present embodiment Wave method " is filtered the ADC value of acquisition, obtains the arithmetic mean of instantaneous value of ADC value.
Step S7, it is carried out at calibration according to standard test weight of the ADC value after filtering processing to predetermined quantity Reason.
In the present embodiment, calibration processing is exactly to read this on weighing sensor with the standard test weight of one group of known weight (arithmetic calculated using " the way of median average filter of sliding window " above is flat for the corresponding ADC value of a little counterweights Mean value), these data are reused to solve two parameters a and b in linear equation y=ax+b.Specific demarcating steps are substantially It is as follows:
Step 1: counterweight is placed in drawer, if unloaded, it is believed that the weight of counterweight is 0.
Step 2: the drawer can put down the arithmetic of the ADC value of counterweight in preset time such as 9s in calibration Mean value is recorded.
Step 3: replacement counterweight, repeats the first and second steps, the calibration until completing the last one counterweight.
Step 4: calculating the parameter a and b of linear equation after confirming that all counterweights are all demarcated correctly, while providing reliable Property coefficient r, user can confirm whether calibration gets a desired effect by assessment reliability coefficient, if effect is bad (such as r coefficient with 1 difference farther out) can then repeat step 1 to step 4 until satisfaction.
Step 5: parameter a and b are saved after calculated result is met the requirements, for this group of parameter of later use into The conversion of row weight.
Since any two points can connect into the very high linear equation of coefficient of reliability, recommend when calibration to make With 3 counterweights, in order to simplify the accuracy demarcated and ensure to demarcate, the upper limit of the number of counterweight is 5 when calibration can be set.
Referring to Fig. 6, in the fourth embodiment, it is based on 3rd embodiment, the step S6 includes:
Step S61, the period obtains dynamic continuously collected one group of ADC value at a predetermined interval;
Step S62, maximum value and minimum value therein are removed, and arithmetic mean of instantaneous value is taken to remaining ADC value.
In the present embodiment, can period such as 100ms at a predetermined interval, as soon as dynamic continuously acquires a group ADC value, It is dynamically one group of limited data of continuous acquisition, and removes maximum value and minimum value in this group of data, then again to remaining Data take arithmetic mean of instantaneous value.It may be expressed as: with formula
Weighing sensor in the present embodiment, can configure its output speed is 10Hz, that is, just at interval of 100 milliseconds Collected ADC value is filtered, filtered ADC value is finally converted into weight.Wherein, M can be with Value is 7.
Step S63, what the first lowest-order values and current period for obtaining previous cycle acquisition obtained moves through sliding window The second lowest-order values behind position;
Step S64, the first absolute difference between second lowest-order values and the arithmetic mean of instantaneous value is calculated, and The second absolute difference between first lowest-order values and second lowest-order values;
If step S65, described first absolute difference and second absolute difference are all larger than preset threshold, it is determined that The current total weight of the drawer changes.
In the present embodiment, it is assumed that the data that previous cycle obtains are A6, A5 ... A0, wherein highest order A0;Current week Data of the phase after sliding window shifts are A7, A6 ... A1, wherein lowest order A7 calculates the second of the current period The first absolute difference between lowest-order values A7 and the arithmetic mean of instantaneous value of previous cycle, and calculate the current period The second lowest-order values A7 and the previous cycle the first lowest-order values A6 between the second absolute difference.
It is understood that " first " and " second " in first lowest-order values and second lowest-order values is not It indicates order, is only used for distinguishing the two being the lowest-order values obtained in the different periods.
If first absolute difference and second absolute difference are all larger than preset threshold such as 0.2g, it is determined that institute The current total weight for stating drawer changes;Conversely, first absolute difference or the second absolute difference is any is unsatisfactory for Above-mentioned condition then shows that current total weight does not change.
In a practical application scene: existing scheme is in the drawer designed using the weighing sensor that a range is 15kg When, more than half an hour maximum creep drift value is 3g, and at 10 DEG C of the every variation of temperature, the maximum temperature drift value of weight is 4.5g, therefore, being placed on drug in drawer only need to pass through the time in an evening, maximum offset may have 7.5g it It is more, for one 10 milliliters only 0.9 gram of drug, if when drug or tonic, by drift value be also contained in the inside and by Total weight calculates, and error may then have as many as 8.
And the solution of the present invention is used, the error amount of short time can be maintained at 0.4g hereinafter, not exceeding one namely 10 milliliters 0.9 gram of drug, if the weight change that will only differ 10% (such as 0.81~0.99g) when conversion with actual weight is just calculated It is to have drug to decrease or increase, then for the variation of 0.4g, few mistake calculated or more calculate one would not occurs.Therefore, this hair Bright method can accurately calculate the quantity situation of change of the drug of drawer drug or tonic very much.
The present invention also provides a kind of intelligent medicine-chest, the intelligence medicine-chest includes processor and is stored in the processor And the drug metering method for the intelligent medicine-chest that can be run on the processor, wherein the drug metering side of the intelligence medicine-chest The step of drug metering method of intelligent medicine-chest as described above is realized when method is executed by the processor.
The present invention also provides a kind of computer readable storage mediums, which is characterized in that the computer readable storage medium On be stored with the drug accounting procedure of intelligent medicine-chest, it is as above that the drug accounting procedure of the intelligence medicine-chest is executed by processor realization The step of drug metering method of the intelligent medicine-chest.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, controlled terminal or network equipment etc.) execute method described in each embodiment of the present invention.

Claims (11)

1. it is a kind of intelligence medicine-chest drug metering method, which is characterized in that it is described intelligence medicine-chest drug metering method include with Lower step:
Intelligent medicine-chest obtains the drawer of the intelligent medicine-chest of corresponding drug before not opening when receiving drug or tonic instructs Total weight;
When the intelligent medicine-chest completes drug or tonic, the current total weight of the drawer is obtained;
The current total weight of total weight, the drawer before not opened according to the drawer and the medicine corresponding with the drawer The substance of product calculates the varied number that the drug decreases or increases.
2. the drug metering method of intelligence medicine-chest as described in claim 1, which is characterized in that described not opened according to the drawer The current total weight of preceding total weight, the drawer and the substance of the drug corresponding with the drawer calculate described The step of varied number that drug decreases or increases includes:
The current total weight of total weight and the drawer before not opened according to the drawer, calculate the current total weight with it is described Drawer do not open before total weight between difference;
By the difference divided by the substance of the drug, the varied number that the drug decreases or increases is calculated.
3. the drug metering method of intelligence medicine-chest as claimed in claim 2, which is characterized in that it is described by the difference divided by institute The substance for stating drug, before the step of varied number that the drug decreases or increases is calculated further include:
Judge whether the difference is less than preset difference value;
When the difference is less than the preset difference value, the difference is reacquired after preset time;
If the difference is respectively less than the preset difference value after the difference for reacquiring pre-determined number, then execute the difference The step of being worth the substance divided by the drug, the varied number that the drug decreases or increases be calculated.
4. the drug metering method of intelligence medicine-chest as claimed in claim 3, which is characterized in that described whether to judge the difference After the step of less than preset difference value, further includes:
If the difference is greater than or equal to the preset difference value, executes the difference divided by the substance of the drug, calculate The step of obtaining the varied number that the drug decreases or increases.
5. the drug metering method of intelligence medicine-chest as described in claim 1, which is characterized in that the intelligence medicine-chest has weighing Sensor, for weighing to the drug in the drawer and the drawer, it is described intelligence medicine-chest receive drug or When tonic instructs, before obtaining the drawer of the intelligent medicine-chest of corresponding drug the total weight before not opening the step of further include:
Acquire ADC value Y of the standard test weight of multiple and different weight X on the weighing sensor;
Described point is carried out in rectangular coordinate system according to the ADC value, obtains the linear equation of the X and Y.
6. the drug metering method of intelligence medicine-chest as claimed in claim 5, which is characterized in that the multiple and different weight of acquisition After the standard test weight of X is the ADC value Y on the weighing sensor the step of further include:
Using the way of median average filter of sliding window, the ADC value of acquisition is filtered;
Calibration processing is carried out according to standard test weight of the ADC value after filtering processing to predetermined quantity.
7. such as the drug metering method of intelligent medicine-chest described in claim 5 or 6, which is characterized in that the medicine of the intelligence medicine-chest Product metering method further include:
According to the linear equation and/or calibrated linear equation, coefficient of reliability is found out;
When the coefficient of reliability levels off to preset value, then confirm that the linear equation is effective.
8. the drug metering method of intelligence medicine-chest as claimed in claim 6, which is characterized in that described using in sliding window Place value average filter method, the step of being filtered to the ADC value of acquisition include:
The period obtains dynamic continuously collected one group of ADC value at a predetermined interval;
Maximum value and minimum value therein are removed, and arithmetic mean of instantaneous value is taken to remaining ADC value.
9. the drug metering method of intelligence medicine-chest as claimed in claim 8, which is characterized in that the removal maximum value therein And minimum value, and after the step of taking arithmetic mean of instantaneous value to remaining ADC value further include:
Obtain the first lowest-order values that previous cycle obtains and second after sliding window shifts that current period obtains most Low-value;
Calculate the first absolute difference between second lowest-order values and the arithmetic mean of instantaneous value and described first minimum The second absolute difference between place value and second lowest-order values;
If first absolute difference and second absolute difference are all larger than preset threshold, it is determined that the drawer is worked as Preceding total weight changes.
10. a kind of intelligence medicine-chest, which is characterized in that the intelligence medicine-chest includes processor and is stored in the processor simultaneously The drug metering method for the intelligent medicine-chest that can be run on the processor, wherein the drug metering method of the intelligence medicine-chest The drug metering method of intelligent medicine-chest described in any one of claims 1 to 9 as above is realized when being executed by the processor Step.
11. a kind of computer readable storage medium, which is characterized in that be stored with intelligent medicine on the computer readable storage medium The drug accounting procedure of cabinet, the drug accounting procedure of the intelligence medicine-chest are executed by processor realization as appointed in claim 1 to 9 The step of drug metering method of intelligent medicine-chest described in one.
CN201810867680.5A 2018-08-01 2018-08-01 Medicine metering method of intelligent medicine cabinet, intelligent medicine cabinet and storage medium Active CN109141594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810867680.5A CN109141594B (en) 2018-08-01 2018-08-01 Medicine metering method of intelligent medicine cabinet, intelligent medicine cabinet and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810867680.5A CN109141594B (en) 2018-08-01 2018-08-01 Medicine metering method of intelligent medicine cabinet, intelligent medicine cabinet and storage medium

Publications (2)

Publication Number Publication Date
CN109141594A true CN109141594A (en) 2019-01-04
CN109141594B CN109141594B (en) 2020-12-22

Family

ID=64798757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810867680.5A Active CN109141594B (en) 2018-08-01 2018-08-01 Medicine metering method of intelligent medicine cabinet, intelligent medicine cabinet and storage medium

Country Status (1)

Country Link
CN (1) CN109141594B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109870227A (en) * 2019-04-04 2019-06-11 杭州点微科技有限公司 A kind of automatic peeling method that kinds of goods access weighing counts
CN111109947A (en) * 2019-11-28 2020-05-08 上海追月科技有限公司 Goods shelf, goods identification method and electronic equipment
CN112179471A (en) * 2020-08-27 2021-01-05 四川素问天码科技有限公司 Dynamic gravity calibration method for intelligent cabinet
CN114184268A (en) * 2021-11-09 2022-03-15 深圳诺博医疗科技有限公司 Weighing and counting method for medical cabinet and medical cabinet

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003307314A (en) * 2002-04-16 2003-10-31 Sharp Corp Weight measuring method and weight measuring device of heating cooker
CN2852077Y (en) * 2005-11-18 2006-12-27 济南金钟电子衡器股份有限公司 Digital explosion-proof electronic weighing apparatus system
CN104778574A (en) * 2015-04-27 2015-07-15 苏州航瑞成自动化科技有限公司 Intelligent management system and intelligent management cabinet thereof
CN204872436U (en) * 2014-12-26 2015-12-16 昆山市工业技术研究院有限责任公司 Bottled injection intelligence drug cabinet
CN105329600A (en) * 2015-11-20 2016-02-17 江苏人先医疗科技有限公司 Intelligent counting medicine storage device as well as intelligent counting method and device
CN106803315A (en) * 2017-04-05 2017-06-06 长春市宝成伟业汽车零部件有限公司 Instrument intelligent management library system
US20170205274A1 (en) * 2013-02-12 2017-07-20 Ebay Inc. Smart cabinet
CN107544352A (en) * 2017-10-12 2018-01-05 江苏科技大学 A kind of intelligent medicine-chest monitoring system and its monitoring method based on Internet of Things
CN107798377A (en) * 2017-09-26 2018-03-13 杭州亨百信息科技有限公司 A kind of high-precision weighing counts the control system of drawer
CN207293225U (en) * 2017-08-31 2018-05-01 西安永固铁路器材有限公司 A kind of weighing unit of intelligent material allocation cabinet
CN107978352A (en) * 2016-10-21 2018-05-01 北京华兴长泰物联网技术研究院有限责任公司 The medicine or consumable smart media management system of a kind of intelligent weighing
CN207302224U (en) * 2017-08-31 2018-05-01 西安铁路局西安机车检修段 A kind of intelligent material allocation cabinet
CN207580527U (en) * 2017-12-13 2018-07-06 重庆第二师范学院 A kind of Chinese medicine cabinet for showing weight
CN108334006A (en) * 2018-04-10 2018-07-27 南京溯源信息技术有限公司 A kind of autocontrol method of intelligence medicine-chest
CN108346221A (en) * 2018-02-26 2018-07-31 合肥美的智能科技有限公司 Self-service equipment and its good selling method and self-service system

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003307314A (en) * 2002-04-16 2003-10-31 Sharp Corp Weight measuring method and weight measuring device of heating cooker
CN2852077Y (en) * 2005-11-18 2006-12-27 济南金钟电子衡器股份有限公司 Digital explosion-proof electronic weighing apparatus system
US20170205274A1 (en) * 2013-02-12 2017-07-20 Ebay Inc. Smart cabinet
CN204872436U (en) * 2014-12-26 2015-12-16 昆山市工业技术研究院有限责任公司 Bottled injection intelligence drug cabinet
CN104778574A (en) * 2015-04-27 2015-07-15 苏州航瑞成自动化科技有限公司 Intelligent management system and intelligent management cabinet thereof
CN105329600A (en) * 2015-11-20 2016-02-17 江苏人先医疗科技有限公司 Intelligent counting medicine storage device as well as intelligent counting method and device
CN107978352A (en) * 2016-10-21 2018-05-01 北京华兴长泰物联网技术研究院有限责任公司 The medicine or consumable smart media management system of a kind of intelligent weighing
CN106803315A (en) * 2017-04-05 2017-06-06 长春市宝成伟业汽车零部件有限公司 Instrument intelligent management library system
CN207293225U (en) * 2017-08-31 2018-05-01 西安永固铁路器材有限公司 A kind of weighing unit of intelligent material allocation cabinet
CN207302224U (en) * 2017-08-31 2018-05-01 西安铁路局西安机车检修段 A kind of intelligent material allocation cabinet
CN107798377A (en) * 2017-09-26 2018-03-13 杭州亨百信息科技有限公司 A kind of high-precision weighing counts the control system of drawer
CN107544352A (en) * 2017-10-12 2018-01-05 江苏科技大学 A kind of intelligent medicine-chest monitoring system and its monitoring method based on Internet of Things
CN207580527U (en) * 2017-12-13 2018-07-06 重庆第二师范学院 A kind of Chinese medicine cabinet for showing weight
CN108346221A (en) * 2018-02-26 2018-07-31 合肥美的智能科技有限公司 Self-service equipment and its good selling method and self-service system
CN108334006A (en) * 2018-04-10 2018-07-27 南京溯源信息技术有限公司 A kind of autocontrol method of intelligence medicine-chest

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张俊: "《匠人手记:一个单片机工作者的实践与思考》", 30 April 2008 *
杨晓丹: "中药颗粒电子配药柜的称重装置研究", 《CNKI》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109870227A (en) * 2019-04-04 2019-06-11 杭州点微科技有限公司 A kind of automatic peeling method that kinds of goods access weighing counts
CN111109947A (en) * 2019-11-28 2020-05-08 上海追月科技有限公司 Goods shelf, goods identification method and electronic equipment
CN112179471A (en) * 2020-08-27 2021-01-05 四川素问天码科技有限公司 Dynamic gravity calibration method for intelligent cabinet
CN114184268A (en) * 2021-11-09 2022-03-15 深圳诺博医疗科技有限公司 Weighing and counting method for medical cabinet and medical cabinet

Also Published As

Publication number Publication date
CN109141594B (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN109141594A (en) The drug metering method of intelligent medicine-chest, intelligent medicine-chest and storage medium
AU2017203366B2 (en) Advanced calibration for analyte sensors
CA3076075C (en) System and method for assessing risk associated with a glucose state
CN109283967B (en) MCU clock calibration method and related equipment
EP3026463A1 (en) Radiation measurement device
CN105899127A (en) Glucose rate increase detector: a meal detection module for the health monitoring system
CN105844530A (en) Actuarial studying method and actuarial studying system based on health management
CN108294737B (en) Heart rate measuring method and device and intelligent wearable equipment
KR20130103592A (en) Analog input unit and programmable controller
CN104089625A (en) Step counting method with self-learning capability
CN108802628B (en) Method, device and equipment for measuring battery electric quantity
KR101665903B1 (en) Signal processing apparatus
Behrens et al. Comparisons of accelerometer and pedometer determined steps in free living samples
CN109870172A (en) Step counting detection method, device, equipment and storage medium
EP3330674A1 (en) Method and apparatus for realizing step counting
WO2003032007A2 (en) Dosimeter having charge-measuring device with wide dynamic range
EP3370074A1 (en) Method for detecting background noise of sensor, and device thereof
CN109282888A (en) A kind of temperature drift antidote based on ARM of gravity sensor
CN110243486A (en) Full temperature high-precision temperature sensor-based system, method and medium
CN109737940A (en) A kind of electronic compass real-time, freedom calibration method and device
CN106474717B (en) Data processing method based on user movement state
CN113609648B (en) Dynamic load-based electric energy error metering method and device and electronic equipment
Schäfer et al. Construction of group sequential designs in clinical trials on the basis of detectable treatment differences
CN116206724A (en) Patient self-management system based on compliance
US20180010956A1 (en) Method and system to quickly determine a weight

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant