CN115965447B - Medicine position management method and system for intelligent pharmacy - Google Patents

Medicine position management method and system for intelligent pharmacy Download PDF

Info

Publication number
CN115965447B
CN115965447B CN202310251235.7A CN202310251235A CN115965447B CN 115965447 B CN115965447 B CN 115965447B CN 202310251235 A CN202310251235 A CN 202310251235A CN 115965447 B CN115965447 B CN 115965447B
Authority
CN
China
Prior art keywords
medicine
main
medicines
determining
database
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.)
Active
Application number
CN202310251235.7A
Other languages
Chinese (zh)
Other versions
CN115965447A (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.)
Hangzhou Kangsheng Health Consulting Co Ltd
Original Assignee
Hangzhou Kangsheng Health Consulting 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 Hangzhou Kangsheng Health Consulting Co Ltd filed Critical Hangzhou Kangsheng Health Consulting Co Ltd
Priority to CN202310251235.7A priority Critical patent/CN115965447B/en
Publication of CN115965447A publication Critical patent/CN115965447A/en
Application granted granted Critical
Publication of CN115965447B publication Critical patent/CN115965447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The invention discloses a method and a system for managing the position of an intelligent pharmacy, wherein the method comprises the following steps: ordering the occurrence frequencies of medicines in the medicine order database, and determining N main medicines with highest occurrence frequencies; starting from the main medicine with highest occurrence frequency, determining whether the position of the main medicine is required to be adjusted according to the time information and the medicine information recorded in the medicine order database; the medicine orders corresponding to each main medicine are subjected to secondary sorting, and sorting is carried out according to the occurrence frequency of related medicines; determining whether a related drug is co-arranged with the master drug based on the drug correlation in the drug correlation database; and adjusting the medicine position and updating the medicine related database. The method of the invention enables the positions of the main medicines and the related medicines to be reasonably arranged in the intelligent pharmacy, reduces the working time of the medicine taking robot and improves the operation efficiency of the intelligent pharmacy.

Description

Medicine position management method and system for intelligent pharmacy
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a method and a system for managing positions of intelligent pharmacy.
Background
The intelligent pharmacy is to accelerate the upgrade of the pharmaceutical industry and the retail terminal from the traditional business mode to the innovative industry mode through innovative technologies such as Internet, big data, artificial intelligence and the like, and the intelligent pharmacy can realize service upgrading capability through intelligent armed pharmacy and enter an intelligent stage. The medical institution promotes the construction of an intelligent pharmacy, realizes the seamless joint between the prescription system and the pharmacy dispensing system, and is convenient for people or the takers to take medicines in time. The use of a drug delivery robot to deliver drugs is one solution in a smart pharmacy, and the time required for the drug delivery robot to complete an order is one of the important performance indicators in the smart pharmacy. The order taking robot completes the order, which comprises order receiving, dividing the task points of taking and delivering medicine and completing the order. How to reasonably arrange the positions of medicines in an intelligent pharmacy and improve the operation efficiency of a medicine taking robot is a problem to be solved urgently.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a medicine position management method of an intelligent pharmacy, which comprises the following steps:
step S1, ordering the occurrence frequencies of medicines in a medicine order database, and determining N medicines with highest occurrence frequencies, wherein the N medicines are main medicines;
step S2, starting from the main medicine with highest occurrence frequency, determining whether position adjustment is needed for the main medicine according to time information and medicine information recorded in a medicine order database;
step S2, starting from the main medicine with the highest occurrence frequency, performing secondary sorting on the medicine orders corresponding to each main medicine, and sorting according to the occurrence frequency of the related medicines;
step S4, determining whether related medicines are arranged in combination with the main medicines or not based on the medicine correlation in the medicine related database, if so, judging whether the related medicines are in the N medicines, and if so, deleting the related medicines in the N medicines;
s5, adjusting the medicine position and updating a medicine related database;
the determining whether the position of the main medicine needs to be adjusted according to the time information and the medicine information recorded in the medicine order database comprises the following steps:
order frequency based on the main medicine
Figure SMS_1
Total order frequency of said N main drugs +.>
Figure SMS_2
The delivery duration of the main drug +.>
Figure SMS_3
Total dispensing time length of the N main medicines +.>
Figure SMS_4
Determining whether a position adjustment of the main drug is to be performed, when +.>
Figure SMS_5
The position adjustment of the main medicine is needed when in use, wherein +.>
Figure SMS_6
For a preset adjustment threshold, +.>
Figure SMS_7
Wherein determining the delivery duration of the primary drug includes:
acquiring all orders of the main medicines, and determining the distribution duration of the main medicines in each order:
segmenting the order to generate a task point list which comprises a starting point, at least one intermediate task point and an end point according to time sequence, wherein the starting point, the intermediate task point and the end point are all task points;
the delivery duration of the main medicine in the order
Figure SMS_8
Wherein->
Figure SMS_9
For the number of medicines in the order, +.>
Figure SMS_10
For the time length between the middle task point and the last task point corresponding to the main medicine, < >>
Figure SMS_11
Is the length of time between the endpoint and the last task point;
determining the sum of the delivery time lengths of the main medicines in all orders as the delivery time length of the main medicines
Figure SMS_12
Wherein determining whether the related medicine is co-arranged with the main medicine based on the medicine correlation in the medicine correlation database in the step S4 includes:
if the related relation between the related medicine and the main medicine exists in the medicine related database, determining a related coefficient in the related relation
Figure SMS_13
Wherein->
Figure SMS_14
Indicating that A is a main medicine and B is a correlation coefficient corresponding to the correlation medicine;
determining frequency of occurrence of A as main medicine and B as related medicine in order of the main medicine
Figure SMS_15
Determining update coefficient->
Figure SMS_16
Then determine +.>
Figure SMS_17
The main drug A and the related drug B are then co-arranged, wherein +.>
Figure SMS_18
,/>
Figure SMS_19
A threshold value is arranged for a preset joint;
if the main medicine A and the related medicine B are determined to be arranged in a combined way, the related coefficients of the main medicine A and the related medicine B are updated in the related medicine database
Figure SMS_20
If the medicine related database does not include the related relation between the related medicines and the main medicines, determining that A is the main medicine and B is the frequency of the related medicines in the order of the main medicine
Figure SMS_21
Determining update coefficient->
Figure SMS_22
Confirm->
Figure SMS_23
The main medicine A and the related medicine B are arranged in a combined way when in use, wherein
Figure SMS_24
,/>
Figure SMS_25
A threshold value is arranged for a preset joint;
if the main medicine A and the related medicine B are determined to be arranged in a combined way, the related relation between the main medicine A and the related medicine B is newly increased in the related medicine database, and the related coefficient in the related relation is caused to be the same as that of the related medicine B
Figure SMS_26
Wherein according to
Figure SMS_27
And determining the ascending area grade of the main medicine in the numerical value interval, and if the main medicine is in the highest area grade, moving the medicine to a more preferential position in the area grade, wherein the more preferential position refers to a position closer to the medicine taking port.
The intelligent pharmacy is divided into a plurality of areas, different areas correspond to different grades, wherein the grade of the area which is closer to the medicine taking opening is higher, and the grade of the area which is farther from the medicine taking opening is lower.
And if the residual positions of the current shelf are insufficient to place the main medicines and the related medicines which need to be arranged in a combined mode, selecting other residual positions in the area can place the shelf which needs to be arranged in a combined mode for medicine arrangement.
And adjusting the medicine position based on a historical position database, wherein the historical position database stores medicine position information in intelligent medicine stores of each month in the historical years.
Wherein the location of the primary drug and the predictor are based on corresponding time periods in the historical location database, and according to
Figure SMS_28
And determining the ascending area grade of the main medicine in the numerical value interval, and determining the area of the main medicine.
The invention also provides a smart pharmacy location management system which is characterized by comprising a processor and a memory, wherein the processor realizes the method by executing computer instructions in the memory.
Compared with the prior art, the method of the invention enables the positions of the main medicines and the related medicines to be reasonably arranged in the intelligent pharmacy, reduces the working time of the medicine taking robot and improves the operation efficiency of the intelligent pharmacy.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar or corresponding parts and in which:
FIG. 1 is a flow chart illustrating a method of smart pharmacy location management according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a smart pharmacy area division according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two.
It should be understood that although the terms first, second, third, etc. may be used to describe … … in embodiments of the present invention, these … … should not be limited to these terms. These terms are only used to distinguish … …. For example, the first … … may also be referred to as the second … …, and similarly the second … … may also be referred to as the first … …, without departing from the scope of embodiments of the present invention.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or device comprising such element.
Alternative embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Example 1
As shown in fig. 1, the invention discloses a medicine position management method for an intelligent pharmacy, which comprises the following steps:
step S1, ordering the occurrence frequencies of medicines in a medicine order database, and determining N medicines with highest occurrence frequencies, wherein the N medicines are main medicines;
step S2, starting from the main medicine with highest occurrence frequency, determining whether position adjustment is needed for the main medicine according to time information and medicine information recorded in a medicine order database;
step S2, starting from the main medicine with the highest occurrence frequency, performing secondary sorting on the medicine orders corresponding to each main medicine, and sorting according to the occurrence frequency of the related medicines;
step S4, determining whether related medicines are arranged in combination with the main medicines or not based on the medicine correlation in the medicine related database, if so, judging whether the related medicines are in the N medicines, and if so, deleting the related medicines in the N medicines;
s5, adjusting the medicine position and updating a medicine related database;
the determining whether the position of the main medicine needs to be adjusted according to the time information and the medicine information recorded in the medicine order database comprises the following steps:
order frequency based on the main medicine
Figure SMS_29
Total order frequency of said N main drugs +.>
Figure SMS_30
The delivery duration of the main drug +.>
Figure SMS_31
And to the describedTotal delivery duration of N main drugs>
Figure SMS_32
Determining whether a position adjustment of the main drug is to be performed, when +.>
Figure SMS_33
The position adjustment of the main medicine is needed when in use, wherein +.>
Figure SMS_34
For a preset adjustment threshold, +.>
Figure SMS_35
In one embodiment, determining the dispensing duration of the primary drug includes:
acquiring all orders of the main medicines, and determining the distribution duration of the main medicines in each order:
segmenting the order to generate a task point list which comprises a starting point, at least one intermediate task point and an end point according to time sequence, wherein the starting point, the intermediate task point and the end point are all task points;
the delivery duration of the main medicine in the order
Figure SMS_36
Wherein->
Figure SMS_37
For the number of medicines in the order, +.>
Figure SMS_38
For the time length between the middle task point and the last task point corresponding to the main medicine, < >>
Figure SMS_39
Is the length of time between the endpoint and the last task point;
determining the sum of the delivery time lengths of the main medicines in all orders as the delivery time length of the main medicines
Figure SMS_40
In an embodiment, the determining in step S4 whether the related drug is co-arranged with the master drug based on the drug correlation in the drug correlation database comprises:
if the related relation between the related medicine and the main medicine exists in the medicine related database, determining a related coefficient in the related relation
Figure SMS_41
Wherein->
Figure SMS_42
Indicating that A is a main medicine and B is a correlation coefficient corresponding to the correlation medicine;
determining frequency of occurrence of A as main medicine and B as related medicine in order of the main medicine
Figure SMS_43
Determining update coefficient->
Figure SMS_44
Then determine +.>
Figure SMS_45
The main drug A and the related drug B are then co-arranged, wherein +.>
Figure SMS_46
,/>
Figure SMS_47
A threshold value is arranged for a preset joint;
if the main medicine A and the related medicine B are determined to be arranged in a combined way, the related coefficients of the main medicine A and the related medicine B are updated in the related medicine database
Figure SMS_48
In one embodiment, if the drug-related database does not include the related drugs and drugsThe correlation of the main medicines determines the frequency of occurrence of A as the main medicine and B as the related medicine in the order of the main medicine
Figure SMS_49
Determining update coefficient->
Figure SMS_50
Confirm->
Figure SMS_51
The main drug A and the related drug B are then co-arranged, wherein +.>
Figure SMS_52
,/>
Figure SMS_53
A threshold value is arranged for a preset joint;
if the main medicine A and the related medicine B are determined to be arranged in a combined way, the related relation between the main medicine A and the related medicine B is newly increased in the related medicine database, and the related coefficient in the related relation is caused to be the same as that of the related medicine B
Figure SMS_54
The medicine correlation database records correlation relations among different medicines and two corresponding correlation coefficients, for example, the correlation coefficients comprise A, B and B, wherein A is a main medicine, A is a correlation medicine, and B is a correlation coefficient of the main medicine, and the corresponding correlation coefficients are obtained according to the corresponding relations between the main medicine and the correlation medicines.
In one embodiment, according to
Figure SMS_55
And determining the ascending area grade of the main medicine in the numerical value interval, and if the main medicine is in the highest area grade, moving the medicine to a more preferential position in the area grade, wherein the more preferential position refers to a position closer to the medicine taking port.
Wherein,,
Figure SMS_56
the values of (2) correspond to different value intervals, < + >>
Figure SMS_57
The above indicates that a position adjustment is required, e.g. +.>
Figure SMS_58
May be 0.1. For another example, a +>
Figure SMS_59
Between 0.1 and 0.3, the main medicine needs to be raised by one stage and is added with ∈10>
Figure SMS_60
Between 0.3 and 0.6, the main medicine requires a second level of ascending area, +.>
Figure SMS_61
Above 0.6, the primary drug requires three stages of lifting zones.
In one embodiment, the smart pharmacy is divided into a plurality of areas, and the different areas correspond to different grades, wherein the grade of the area which is closer to the medicine taking port is higher, and the grade of the area which is farther from the medicine taking port is lower.
As shown in fig. 2, an exemplary smart pharmacy area partitioning scheme is shown. Wherein, the area level of the 1 area is highest, and the area level of the 5 area is lowest. The ranking of the regional classes is in turn:
Figure SMS_62
. In the area 1, the direction indicated by the arrow indicates that the position in the area where the direction of the arrow changes is higher and higher in priority. Wherein each area is internally provided with a robot charging point, the idle time of the robot can be charged at the charging points at ordinary times, the robot returns to the charging point after the task is completed after waiting for the task to be released, the relation between the robot and the charging point is preconfigured, the robot returns to the fixed charging point after the task is completed, the quantity of the robots in different areas is different, and generally, the area configuration machines with high area grade are generally usedThe number of people is greater, and the tasks are preferentially issued to robots in the area where the ordered medicine is located. Or a robot corresponding to the region where the medicine is most concentrated in the region of the order.
In one embodiment, the main medicines and the related medicines which are required to be arranged in a combined mode are arranged on one shelf, and if the residual positions of the current shelf are insufficient to place the main medicines and the related medicines which are required to be arranged in a combined mode, other residual positions are selected in the area, so that the shelf which is required to be arranged in the combined mode can be placed for medicine arrangement.
The robot picking time is not only moving time, but also needs to be positioned in front of the goods shelves and stopped at an accurate position for picking, and the positioning and the position calibration are time-consuming, so that if the main medicines and the related medicines are placed on different goods shelves, even if the goods shelves are very close, the effect of reducing the picking time by combined arrangement is greatly reduced. Thus, there is a need for placing co-located medications on shelves that can simultaneously place the co-located medications in the same area.
In one embodiment, the medication location is also adjusted based on a historical location database having stored therein medication location information within the smart pharmacy for each of the historic years.
For example, the intelligent pharmacy has longer operation time, can record the medicine position of each month in the past year, and adjusts the medicine position with higher medicine requirement possibly occurring in the present year according to the medicine position in the past year in the next time period. For example, in spring belonging to season of high influenza, it is necessary to place medicines such as influenza in a region with a high region level, and such factors can be predicted and considered in advance from the history data.
In one embodiment, the location of the primary drug and the predictor are based on corresponding time periods in the historical location database, and according to
Figure SMS_63
And determining the ascending area grade of the main medicine in the numerical value interval, and determining the area of the main medicine.
For example, currently 2 monthsThe predictive factor is 0.3, the area grade of the current position of the main medicine is 4, and the current position of the main medicine is based on the following conditions
Figure SMS_64
And determining that the ascending area level of the main medicine is 1 in the numerical value interval, and determining that the area level of the position of the main medicine in the historical position database is 1. Then, an exemplary method of determining the regional level of the primary drug is:
Figure SMS_65
indicating that the ascending rank after the predictor adjustment of the history location database is 1.9, rounding 1.9 to determine that the ascending rank of the master drug is 2, and moving the master drug into an area where the location area rank is 2.
Compared with the prior art, the method of the invention enables the positions of the main medicines and the related medicines to be reasonably arranged in the intelligent pharmacy, reduces the working time of the medicine taking robot and improves the operation efficiency of the intelligent pharmacy.
Example two
The present disclosure is illustrated below in conjunction with specific scenarios.
As shown in FIG. 2, the regional division scheme in the XX community smart pharmacy store is shown. Wherein, the area level of the 1 area is highest, and the area level of the 5 area is lowest. The ranking of the regional classes is in turn:
Figure SMS_66
. In the area 1, the direction indicated by the arrow indicates that the position in the area where the direction of the arrow changes is higher and higher in priority. Wherein, each area is internally provided with a robot charging point, the idle time of the robot can be charged at the charging points at ordinary times, the robot waits for the task to be released, the robot returns to the charging point after the task is completed, the relation between the robot and the charging point is preconfigured, the robot returns to the fixed charging point after the task is completed, the number of the robots in different areas is different, generally, the number of the robots in the area configuration with high area level is more, the task is preferentially released to the robots in the area where the ordered medicine is located, or the area where the medicine is located in the orderRobots corresponding to the regions where the domains are most concentrated.
For each region, there is a corresponding medicine-taking robot, so that medicines with strong correlation need to be arranged in the same region, and medicines with the largest quantity are arranged in the region with the highest grade.
For a XX community smart pharmacy, the drug location management method comprises:
ordering the occurrence frequency of medicines in a medicine order database of the XX community smart pharmacy, and determining 100 medicines with highest occurrence frequency, wherein the 100 medicines are main medicines; starting from the main medicine with the highest occurrence frequency (if the cold medicine C is the main medicine with the highest occurrence frequency), determining whether the medicine A needs to be subjected to position adjustment according to the time information and the medicine information recorded in the medicine order database; determining whether the position adjustment of the main medicine is required according to the time information and the medicine information recorded in the medicine order database comprises the following steps:
for an order submitted by a user X for purchasing medicines from an XX community smart pharmacy, if the order comprises a plurality of medicines containing cold medicine C, reasonably distributing all times for completing the order to each medicine according to a certain mode, acquiring all orders of the cold medicine C for statistics, and determining the distribution duration of the cold medicine C in the order for each order, wherein the method comprises the following steps of:
segmenting the order to generate a task point list which comprises a starting point, at least one intermediate task point and an end point according to time sequence, wherein the starting point, the intermediate task point and the end point are all task points;
the delivery duration of the cold medicine C in the order
Figure SMS_67
Wherein->
Figure SMS_68
For the number of medicines in the order, +.>
Figure SMS_69
Is the middle warmer corresponding to the cold drug CThe length of time between the task point and the last task point, +.>
Figure SMS_70
For the length of time between the end of the order and the last task point; determining the sum of the delivery time periods of all orders of the XX community smart pharmacy including the cold medicine C as the delivery time period of the cold medicine C>
Figure SMS_71
Order frequency based on cold medicine C
Figure SMS_75
Total order frequency of said 100 main drugs +.>
Figure SMS_79
Delivery duration of Cold drug C>
Figure SMS_84
Total dispensing duration of 100 main drugs +.>
Figure SMS_74
Determining whether to perform position adjustment on cold medicine C, when +.>
Figure SMS_77
The position adjustment of the main medicine is needed when in use, wherein +.>
Figure SMS_81
For a preset adjustment threshold, +.>
Figure SMS_85
. E.g. set threshold +.>
Figure SMS_72
0.2, indicating that when the dispensing duration is more than 20% of the frequency of ordering 100 main medicines, according to +.>
Figure SMS_76
Determining the ascending area grade of the main medicine in the numerical value interval, if the main medicineThe drug is already at the highest zone level and is moved within that zone level to a more preferential location, which refers to a location closer to the drug access. />
Figure SMS_80
The values of (2) correspond to different value intervals, < + >>
Figure SMS_83
The above indicates that a position adjustment is required, e.g. +.>
Figure SMS_73
May be 0.1. For another example, a +>
Figure SMS_78
Between 0.1-0.3, the primary drug needs to be upgraded by one step (e.g. from zone 3 to zone 2),>
Figure SMS_82
between 0.3-0.6, the primary drug requires a lift secondary (e.g. upgrade from zone 3 to zone 1),>
Figure SMS_86
above 0.6, the primary drug requires three stages of lifting (e.g., upgrading from zone 5 to zone 2). The need to adjust the ascending area indicates that the location of the cold medicine C may not be reasonable enough, the level of the area of the cold medicine C may be too low, and the ascending area adjustment needs to be performed, and in this step, the location of the main medicine is not actually adjusted, but it is determined whether the location of the main medicine needs to be adjusted.
After determining whether 100 main medicines need to be adjusted in position, starting from the main medicine (cold medicine C) with highest occurrence frequency, performing secondary sorting on medicine orders corresponding to each main medicine, and sorting according to occurrence frequency of related medicines;
taking cold medicine C as an example, determining whether related medicines are combined with the cold medicine C based on the medicine correlation in the medicine related database, if so, judging whether the related medicines are in the 100 medicines, and if so, deleting the related medicines in the 100 medicines;
the method of determining whether a pharmaceutical product associated with the combining step is required includes:
determining that the related relation between the related medicine and the main medicine exists in the medicine related database, and determining the related coefficient in the related relation
Figure SMS_87
Wherein->
Figure SMS_88
Indicating that A is a main medicine and B is a correlation coefficient corresponding to the correlation medicine;
determining frequency of occurrence of A as main medicine and B as related medicine in order of the main medicine
Figure SMS_89
Determining update coefficient->
Figure SMS_90
Then determine +.>
Figure SMS_91
The main drug A and the related drug B are then co-arranged, wherein an update coefficient is defined as +.>
Figure SMS_92
,/>
Figure SMS_93
For a preset joint arrangement threshold, the correlation relation between different medicines and two corresponding correlation coefficients are recorded in the medicine correlation database, for example, the correlation coefficients comprise a correlation coefficient with A as a main medicine B as a correlation medicine and a correlation coefficient with B as a main medicine A as a correlation medicine, and the corresponding correlation coefficients are obtained according to the corresponding relation between the main medicine and the correlation medicines. According to the invention, the joint arrangement relation is determined after the existing correlation coefficient is adjusted according to the latest data information according to the correlation coefficient reflecting the existing correlation relation. If it is determined to combine the main medicine A and the related medicine BUpdating the correlation coefficients of the main medicine A and the related medicine B in the related medicine database
Figure SMS_94
Preset joint placement threshold in XX community smart pharmacy
Figure SMS_95
2000, indicating that the XX community smart pharmacy determines that two medicines are related when the related ordering frequency subjected to weight adjustment exceeds 2000, and in addition, the joint arrangement threshold value can be reasonably adjusted according to the population size and the order quantity number of the community>
Figure SMS_96
Is of a size of (a) and (b). If the medicine related database does not include the related relation between the related medicine and the main medicine, determining that A is the main medicine and B is the frequency of the related medicine in the order of the main medicine +.>
Figure SMS_97
Determining update coefficient->
Figure SMS_98
Confirm->
Figure SMS_99
The main drug A and the related drug B are then co-arranged, wherein +.>
Figure SMS_100
,/>
Figure SMS_101
A threshold value is arranged for a preset joint;
if the main medicine A and the related medicine B are determined to be arranged in a combined way, the related relation between the main medicine A and the related medicine B is newly increased in the related medicine database, and the related coefficient in the related relation is caused to be the same as that of the related medicine B
Figure SMS_102
. The inventionIn the invention, if the combination arrangement of the main medicine A and the related medicine B is more favorable for improving the distribution efficiency according to the latest data information, the related coefficients of the related relations in the medicine related database need to be updated in time, and the medicine related database is updated so that the iteration trend of the medicine related database is more accurate, and the medicine related database can be updated after the medicine position is adjusted.
In the medicine position determination in the XX community smart pharmacy, if the master medicine K appearing in addition to the position 1 is also determined in the foregoing step as a master medicine L related to the position to be adjusted but is determined as the preceding position, the master medicine K is deleted from 100 master medicines as the master medicine L related medicine determination position adjustment. If medicine K (fever reducing function medicine) is also in the main medicine list and is determined as a medicine to be adjusted in position, but it is determined as a medicine related to cold medicine C, medicine K is deleted from 100 main medicines and is arranged in association with cold medicine C which is ordered more frequently.
Drug position adjustment is carried out to drugs in a main drug list of an XX community smart drug store and drugs which need to be arranged in combination with the main drugs, and the method comprises the following steps:
wherein the position adjustment for the main medicine comprises the following steps of
Figure SMS_103
And determining the ascending area grade of the main medicine in the numerical value interval, and if the main medicine is in the highest area grade, moving the medicine to a more preferential position in the area grade, wherein the more preferential position refers to a position closer to the medicine taking port.
Figure SMS_104
The values of (2) correspond to different value intervals, < + >>
Figure SMS_105
When the temperature is between 0.1 and 0.3, the main medicine needs to rise for one stage,
Figure SMS_106
between 0.3 and 0.6,the main medicine needs to be raised for two stages and is added with ∈>
Figure SMS_107
Above 0.6, the primary drug requires three stages of lifting zones.
Because of the large correlation between the purchasing of medicines and the purchasing peaks of different medicines and seasons, the invention also adjusts the medicine positions based on a historical position database, wherein the historical position database stores medicine position information in intelligent medicine stores of each month in the historical years.
For example, the intelligent pharmacy has longer operation time, can record the medicine position of each month in the past year, and adjusts the medicine position with higher medicine requirement possibly occurring in the present year according to the medicine position in the past year in the next time period. For example, in spring belonging to season of high influenza, it is necessary to place medicines such as influenza in a region with a high region level, and such factors can be predicted and considered in advance from the history data.
Based on the position of the main medicine and the predictive factor of the corresponding time period in the historical position database, and according to
Figure SMS_108
And determining the ascending area grade of the main medicine in the numerical value interval, and determining the area of the main medicine.
For example, currently 2 months, the predictor is 0.3, the current location area level of cold drug C is 4, according to
Figure SMS_109
And determining that the ascending area level of the main medicine is 1 in the numerical value interval, and determining that the area level of the position of the main medicine in the historical position database is 1. One exemplary method of determining the regional grade of cold medication C is then:
Figure SMS_110
indicating that the ascending area grade after the predictor of the history location database was adjusted is 1.9, rounding 1.9 to determine that the ascending area grade of the primary drug is 2, and moving cold drug C into the area with the location area grade of 2.
Because the robot gets goods time is not only the time of moving, still need to carry out the location before the goods shelves, stop and get goods in accurate position, location and position calibration all need time, consequently if place main medicine and relevant medicine on different goods shelves, even though the goods shelves are very near, also greatly reduced the effect that jointly arrange the reduction get goods time, need can place simultaneously in same district jointly and arrange the medicine of jointly arranging on the goods shelves of medicine. The arrangement and adjustment method for the relevant pharmaceutical products thus comprises: and arranging the main medicines and the related medicines which are arranged in a combined way on one shelf, and if the residual positions of the current shelf are insufficient to place the main medicines and the related medicines which are required to be arranged in a combined way, selecting other residual positions in the area to place the shelf which is required to be arranged in a combined way for carrying out medicine arrangement.
Compared with the prior art, the method of the invention enables the positions of the main medicines and the related medicines to be reasonably arranged in the intelligent pharmacy, reduces the working time of the medicine taking robot and improves the operation efficiency of the intelligent pharmacy.
Example III
The embodiment of the disclosure provides a smart pharmacy location management system, which is characterized by comprising a processor and a memory, wherein the processor realizes the method by executing computer instructions in the memory.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The foregoing description of the preferred embodiments of the present invention has been presented for purposes of clarity and understanding, and is not intended to limit the invention to the particular embodiments disclosed, but is intended to cover all modifications, alternatives, and improvements within the spirit and scope of the invention as outlined by the appended claims.

Claims (7)

1. A method for managing medicine locations in a smart pharmacy, comprising the steps of:
step S1, ordering the occurrence frequencies of medicines in a medicine order database, and determining N medicines with highest occurrence frequencies, wherein the N medicines are main medicines;
step S2, starting from the main medicine with highest occurrence frequency, determining whether position adjustment is needed for the main medicine according to time information and medicine information recorded in a medicine order database;
step S3, starting from the main medicine with the highest appearance frequency, performing secondary sorting on the medicine orders corresponding to each main medicine, and sorting according to the appearance frequency of the related medicines;
step S4, determining whether related medicines are jointly arranged with the main medicines or not based on the medicine correlation in the medicine related database, if so, judging whether the related medicines are in the N medicines or not, and if so, deleting the related medicines in the N medicines;
s5, adjusting the medicine position and updating a medicine related database;
the determining whether the position of the main medicine needs to be adjusted according to the time information and the medicine information recorded in the medicine order database comprises the following steps:
order frequency based on the main medicine
Figure QLYQS_1
Total order frequency of said N main drugs +.>
Figure QLYQS_2
The delivery duration of the main drug +.>
Figure QLYQS_3
Total dispensing time length of the N main medicines +.>
Figure QLYQS_4
Determining whether a position adjustment of the main drug is to be performed, when +.>
Figure QLYQS_5
The position adjustment of the main medicine is needed when in use, wherein +.>
Figure QLYQS_6
For a preset adjustment threshold, +.>
Figure QLYQS_7
Wherein determining the delivery duration of the primary drug includes:
acquiring all orders of the main medicines, and determining the distribution duration of the main medicines in each order:
segmenting the order to generate a task point list which comprises a starting point, at least one intermediate task point and an end point according to time sequence, wherein the starting point, the intermediate task point and the end point are all task points;
the delivery duration of the main medicine in the order
Figure QLYQS_8
Wherein->
Figure QLYQS_9
For the number of medicines in the order, +.>
Figure QLYQS_10
For the time length between the middle task point and the last task point corresponding to the main medicine, < >>
Figure QLYQS_11
Is the length of time between the endpoint and the last task point;
determining the sum of the delivery time lengths of the main medicines in all orders as the delivery time length of the main medicines
Figure QLYQS_12
Wherein determining whether the related medicine is co-arranged with the main medicine based on the medicine correlation in the medicine correlation database in the step S4 includes:
if the related relation between the related medicine and the main medicine exists in the medicine related database, determining a related coefficient in the related relation
Figure QLYQS_13
Wherein->
Figure QLYQS_14
Indicating that A is a main medicine and B is a correlation coefficient corresponding to the correlation medicine;
determining frequency of occurrence of A as main medicine and B as related medicine in order of the main medicine
Figure QLYQS_15
Determining update coefficient->
Figure QLYQS_16
Then determine +.>
Figure QLYQS_17
The main drug A and the related drug B are then co-arranged, wherein +.>
Figure QLYQS_18
,/>
Figure QLYQS_19
A threshold value is arranged for a preset joint;
if the main medicine A and the related medicine B are determined to be arranged in a combined way, the related coefficients of the main medicine A and the related medicine B are updated in the related medicine database
Figure QLYQS_20
If the medicine related database does not include the related relation between the related medicines and the main medicines, determining that A is the main medicine and B is the frequency of the related medicines in the order of the main medicine
Figure QLYQS_21
Determining update coefficient->
Figure QLYQS_22
Determining
Figure QLYQS_23
The main medicine A and the related medicine B are arranged in a combined way when in use, wherein
Figure QLYQS_24
,/>
Figure QLYQS_25
A threshold value is arranged for a preset joint;
if the main medicine A and the related medicine B are determined to be arranged in a combined way, the related relation between the main medicine A and the related medicine B is newly increased in the related medicine database, and the related coefficient in the related relation is caused to be the same as that of the related medicine B
Figure QLYQS_26
2. The method for managing the medicine location of a smart pharmacy according to claim 1, wherein,
according to
Figure QLYQS_27
And determining the ascending area grade of the main medicine in the numerical value interval, and if the main medicine is in the highest area grade, moving the main medicine to a more preferential position in the area grade, wherein the more preferential position refers to a position closer to the medicine taking port.
3. The method for managing the medicine location of a smart pharmacy according to claim 2, wherein,
dividing the intelligent pharmacy into a plurality of areas, wherein different areas correspond to different grades, and the grade of the area which is closer to the medicine taking port is higher, and the grade of the area which is farther from the medicine taking port is lower.
4. The method for managing the medicine location of a smart pharmacy according to claim 2, wherein,
and arranging the main medicines and the related medicines which are arranged in a combined way on one shelf, and if the residual positions of the current shelf are insufficient to place the main medicines and the related medicines which are required to be arranged in a combined way, selecting other residual positions in the area to place the shelf which is required to be arranged in a combined way for carrying out medicine arrangement.
5. The method of claim 1, further comprising adjusting the drug location based on a historical location database, wherein the historical location database stores drug location information within the smart pharmacy for each month of the historical year.
6. The medicine location management method of a smart pharmacy according to claim 5, wherein the location of the main medicine and the predictor are based on corresponding time periods in the historic location database, and according to
Figure QLYQS_28
And determining the ascending area grade of the main medicine in the numerical value interval, and determining the area of the main medicine.
7. A system for managing the location of a pharmaceutical product in a smart pharmacy, said system comprising a processor, a memory, said processor implementing the method of any one of claims 1-6 by executing computer instructions in the memory.
CN202310251235.7A 2023-03-16 2023-03-16 Medicine position management method and system for intelligent pharmacy Active CN115965447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310251235.7A CN115965447B (en) 2023-03-16 2023-03-16 Medicine position management method and system for intelligent pharmacy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310251235.7A CN115965447B (en) 2023-03-16 2023-03-16 Medicine position management method and system for intelligent pharmacy

Publications (2)

Publication Number Publication Date
CN115965447A CN115965447A (en) 2023-04-14
CN115965447B true CN115965447B (en) 2023-06-06

Family

ID=85888206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310251235.7A Active CN115965447B (en) 2023-03-16 2023-03-16 Medicine position management method and system for intelligent pharmacy

Country Status (1)

Country Link
CN (1) CN115965447B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110705940A (en) * 2019-10-09 2020-01-17 重庆华医康道科技有限公司 Medicine logistics tracing and checking method based on block chain
CN114937484A (en) * 2022-04-25 2022-08-23 广州方舟信息科技有限公司 Medicine combination pushing method and device, server and computer readable storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005216239A (en) * 2004-02-02 2005-08-11 Santo:Kk Medicine procurement support system and its method
CN105809397A (en) * 2016-03-04 2016-07-27 南京理工大学 Intelligent storeroom management system for TCM pharmacy
CN109598584A (en) * 2018-11-28 2019-04-09 孝感诚志维康医药科技有限公司 A kind of medicine state information query system and method for commerce
CN111382974B (en) * 2020-03-09 2024-01-19 北京旷视机器人技术有限公司 Method and device for determining goods shelf position, warehousing system and computer equipment
CN112149904A (en) * 2020-09-24 2020-12-29 南京中爱人工智能与生命科学研究院有限公司 Big data-based medicine sorting system, method, terminal and storage medium
CN112700838B (en) * 2020-12-30 2024-03-01 平安科技(深圳)有限公司 Big data-based medication scheme recommendation method and device and related equipment
CN112883958B (en) * 2021-01-11 2023-12-05 壹药网科技(上海)股份有限公司 Medicine goods space checking method
CN114348510A (en) * 2021-12-10 2022-04-15 壹药网科技(上海)股份有限公司 Dynamic adjustment method for drug library
CN114548858A (en) * 2022-01-26 2022-05-27 厦门市要悟医疗科技有限公司 Closed robot pharmacy remote medicine purchasing and delivery method and system
CN114565334A (en) * 2022-02-22 2022-05-31 国连科技(浙江)有限公司 Commodity association warehousing method and device based on big data
CN115171839B (en) * 2022-05-27 2024-05-10 四川大学 Drug management system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110705940A (en) * 2019-10-09 2020-01-17 重庆华医康道科技有限公司 Medicine logistics tracing and checking method based on block chain
CN114937484A (en) * 2022-04-25 2022-08-23 广州方舟信息科技有限公司 Medicine combination pushing method and device, server and computer readable storage medium

Also Published As

Publication number Publication date
CN115965447A (en) 2023-04-14

Similar Documents

Publication Publication Date Title
US9298678B2 (en) System and method for news events detection and visualization
US6226561B1 (en) Production planning system
US20150193731A1 (en) Providing optimized delivery locations for an order
US20120191639A1 (en) Statistics forecast for range partitioned tables
CN111028074B (en) Method, system, server and storage medium for updating and inquiring overdue bill
US9135656B2 (en) Method and system for auction information management
US20100185484A1 (en) Allocation of internet advertising inventory
US20100205038A1 (en) Travel market analysis tools
KR20210018621A (en) Method for managing in and out of goods in vending machine system
CN114493726A (en) Order monitoring method and monitoring platform
CN110650170B (en) Method and device for pushing information
US8560407B2 (en) Inventory management
CN113780611A (en) Inventory management method and device
CN109978421A (en) Information output method and device
CN115965447B (en) Medicine position management method and system for intelligent pharmacy
CN112364021B (en) Service data processing method, device and storage medium
CN117132207A (en) Warehouse management system
JP2017194746A (en) Production plan adjustment device and production plan adjustment method
JP2005322094A (en) Business support method and business support system
CN113393171B (en) Inventory compensation-based taxi dispatching method, system, equipment and storage medium
JPH09136704A (en) Physical distribution management system
US20070100789A1 (en) Bulk keyword import/export system and method
CN115222206A (en) Task data processing method and device, electronic equipment and storage medium
CN113120498B (en) Roadway goods picking management method and device
CN110704488B (en) Method for managing data and corresponding system, computer device and medium

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Drug Location Management Method and System for Smart Pharmacy

Granted publication date: 20230606

Pledgee: Hangzhou High-tech Financing Guarantee Co.,Ltd.

Pledgor: HANGZHOU KANGSHENG HEALTH MANAGEMENT CONSULTING Co.,Ltd.

Registration number: Y2024980003978