Processing method and device for repurchasing chronic disease drugs
By dynamically monitoring the medication usage and expected demand of patients with chronic diseases, and notifying users in advance for supplementary drug procurement, the problem of the inability to monitor drug inventory in the existing technology has been solved, avoiding interruptions in drug supply, and improving user experience.
Patent Information
- Application Number
- CN202510204927.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-06-06
AI Technical Summary
The prior art cannot effectively monitor the drug inventory of patients with chronic diseases, resulting in interruption of drug supply and affecting the continuity of patient treatment.
By obtaining the user's identity information, retrieving historical drug orders, matching the drug name to determine the type of chronic disease, calculating the frequency of medication and the expected duration of medication, dynamically monitoring the medication usage, and notifying the user in advance for supplementary drug procurement.
It avoids interruption in drug supply, ensures continuity of patient treatment, improves user experience, and ensures that patients can obtain the required drugs on time and in full.
Smart Images

Figure CN120108634A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method and device for processing repeat purchases of chronic disease drugs. Background Art
[0002] In the current medical and health service system, individuals tend to seek professional help from medical institutions when they encounter health problems. Doctors will conduct a detailed examination of the patient's health status and develop a personalized drug treatment plan accordingly. It is worth noting that this group includes a considerable number of patients with chronic diseases. Chronic diseases, also known as chronic non-communicable diseases in medicine, refer to a category of diseases that have an insidious onset, a long course of disease, are usually difficult to completely cure, but can be effectively controlled through long-term comprehensive management. Such diseases are characterized by a long course of disease, slow progression, and often unclear initial symptoms. However, over time, they may cause progressive damage to multiple physiological systems of the body.
[0003] In the health management strategy for chronic diseases, ensuring that patients follow the doctor's orders and take medications on time and accurately is the key to maintaining the treatment effect. However, many chronic disease patients find it difficult to accurately track and record medication time due to memory loss or other cognitive dysfunctions, which undoubtedly has an adverse effect on the treatment effect. In order to alleviate this problem, with the help of applications on smartphone platforms, medication reminders are automatically sent to patients according to preset reminder strategies, aiming to improve patients' medication compliance and treatment efficiency. However, the application can only remind patients of medication time, but cannot monitor the patient's drug inventory. When the drug inventory drops below the safety threshold, it is impossible to immediately notify the patient or his family to restock the drug, which may lead to interruptions in drug supply and affect the continuity of patient treatment.
[0004] Therefore, there is an urgent need for a method and device for processing repurchase of chronic disease drugs that can solve the above-mentioned technical problems. Summary of the invention
[0005] The present application provides a method and device for processing repurchase of chronic disease drugs. The method can solve the problem that the current application can only remind patients of the time to take medicine but cannot monitor the inventory of medicines. It can also avoid interruptions in drug supply and affect the continuity of patient treatment.
[0006] In the first aspect, the present application provides a method for processing repurchases of chronic disease drugs, which is applied to a server, and the method includes: obtaining identity information corresponding to a first user, and retrieving historical drug orders based on the identity information; extracting a first drug name from the historical drug orders, and inputting the first drug name into a preset chronic disease drug database for matching to obtain a target chronic disease type, wherein the target chronic disease type includes any one of respiratory disease types, cardiovascular and cerebrovascular disease types, digestive system disease types, tumor disease types, and metabolic disease types; determining a medication frequency based on the target chronic disease type, and determining a first duration based on the medication frequency and a first quantity, wherein the first quantity is the total number of drugs in the first drug order, and the first drug order is a historical chronic disease type. The order time of the historical drug orders is the latest drug order; the first time point when the first user takes the first drug is obtained, and the first drug is the drug in the first drug order; the second time period is determined according to the first time point and the second time point, and the second time point is the current time point; it is judged whether the first time period is greater than the second time period, and whether the target difference is greater than the preset difference, the target difference is the difference between the first time period and the second time period; when the first time period is greater than the second time period, and the target difference is less than or equal to the preset difference, it is determined that the first user has a demand for repeat purchase of drugs; according to the demand for repeat purchase of drugs, repeat purchase drug order information is generated, and the repeat purchase drug order information is sent to the first user, so that the first user can purchase drugs according to the repeat purchase drug order information.
[0007] By adopting the above technical solution, the identity information of the first user is obtained, and the historical drug orders of the first user can be retrieved; the drug name is extracted from the historical order, and matched with the preset chronic disease drug database to determine the type of chronic disease that the user may suffer from. The frequency of medication is determined according to the target chronic disease type, and the estimated medication duration (first duration) is calculated in combination with the number of drugs in the last order. By obtaining the time point (first time point) when the first user starts taking the drugs in the last order, and comparing it with the current time point (second time point), the actual duration (second duration) that has been used is calculated, and the difference (target difference) between the expected medication duration (first duration) and the actual duration (second duration) that has been used is compared, and whether this difference exceeds the preset difference, it is determined whether the user needs to repurchase the drug. If the expected duration is greater than the actual duration, and the difference is within the preset range, it means that the user may be about to run out of drugs and have a repurchase demand. Once it is determined that the user has a repurchase demand, the repurchase drug order information can be automatically generated and sent to the user to remind the user to replenish the drug in time. By dynamically monitoring the first user's medication usage and expected demand, users can be notified in advance to restock their medications before their drug inventory drops below the safety threshold. This not only avoids interruptions in drug supply and affects the continuity of patient treatment, but also improves user experience, ensuring that patients can obtain the required drugs on time and in sufficient quantities, thereby managing chronic diseases more effectively.
[0008] Optionally, before determining the second duration based on the first time point and the second time point, the method also includes: extracting a third time point from the first drug order, the third time point being the time point when the second drug in the second drug order is finished taking, the second drug order being a drug order whose order time is before the first drug order in the historical drug order information; determining a third duration based on the third time point and the second time point, and outputting the third duration as the second duration.
[0009] By adopting the above technical solution, the actual medication cycle of the first user from the end of the last order to the current time point can be tracked more accurately according to the third time point. This helps to more accurately predict when the user may run out of the drug inventory of the current order, so as to issue a repurchase reminder in advance, thereby effectively avoiding the interruption of drug supply.
[0010] Optionally, repeat drug order information is generated based on repeat drug demand, specifically including: obtaining monitoring data and allergy information corresponding to the first user, the allergy information being information about the first user's allergies to types of drugs; determining whether the monitoring data is consistent with preset monitoring data; when the monitoring data is consistent with the preset monitoring data, generating a first repeat drug order based on the target chronic disease type and the first drug order; obtaining target drug information from the first repeat drug order; determining whether allergy information exists in the target drug information; when allergy information does not exist in the target drug information, outputting the first repeat drug order as repeat drug order information.
[0011] By adopting the above technical solution, the monitoring data of the first user is obtained and compared with the preset monitoring data. The system can determine whether the user's current health status is consistent with the preset standard. When the monitoring data is consistent with the preset data, the first repurchase drug order is generated according to the target chronic disease type and the first drug order, ensuring the pertinence and accuracy of the repurchase recommendation. It also takes into account the first user's allergic reaction to specific types of drugs, which is an important part of ensuring the safe use of drugs by patients. Before generating a repurchase order, check whether the target drug information contains the first user's allergy information, effectively avoiding health risks caused by drug allergies.
[0012] Optionally, after determining whether there is allergy information in the target drug information, the method also includes: when there is allergy information in the target drug information, generating a second repeat drug order based on the allergy information, monitoring data, target chronic disease type and the first drug order, and outputting the second repeat drug order as repeat drug order information.
[0013] By adopting the above technical solution, allergy information is checked in the target drug information, and drugs to which the first user is allergic can be identified and avoided for recommendation, thereby effectively preventing health risks caused by drug allergies. When generating the second repurchase drug order, not only the monitoring data and target chronic disease types of the first user are taken into consideration, but also allergy information is incorporated, making repurchase recommendations more personalized and accurate. By providing safe and allergy-avoiding drug repurchase recommendations, users' trust and satisfaction can be enhanced, further improving the user experience.
[0014] Optionally, before generating repeat drug order information based on repeat drug demand and sending the repeat drug order information to the first user so that the first user can purchase drugs based on the repeat drug order information, the method also includes: obtaining the target age corresponding to the first user, and determining the risk level based on the target age and the target chronic disease type; if the risk level is low risk, determining to send the repeat drug order information to the first user; if the risk level is high risk, searching for a second user who has an association with the first user, and sending the repeat drug order information to the second user, so that the second user can repurchase drugs based on the repeat drug order information.
[0015] By adopting the above technical solution, the target age and target chronic disease type of the first user are obtained, and a personalized risk level assessment can be performed. This assessment helps to more accurately understand the user's health status and potential risks, thereby providing users with more accurate health management services. According to different risk levels, the recipients of repeat drug order information can be flexibly adjusted. For low-risk users, repeat purchase reminders are sent directly to the first user to ensure that the corresponding user can replenish the required drugs in time. For high-risk users, repeat purchase reminders are sent to the second user (such as family members, guardians, etc.) who has an associated relationship with them, so as to provide additional support and help when necessary.
[0016] Optionally, after sending the repeat drug purchase order information to the first user, the method also includes: obtaining the first user's historical drug purchase preference information; determining the drug purchase method based on the historical drug purchase preference information; if the drug purchase method is online purchase, obtaining the first location corresponding to the first user, inputting the first location into a preset pharmacy database for matching, obtaining the target pharmacy, and recommending the target pharmacy to the first user so that the first user can view the target pharmacy; if the drug purchase method is offline purchase, obtaining the second location and historical purchase address corresponding to the first user, generating a target planning map based on the second location and historical purchase address, and sending the target planning map and the repeat drug purchase order to the first user.
[0017] By adopting the above technical solution, the historical drug purchase preference information of the first user is obtained, and the drug purchase habits of the first user can be understood, so as to provide more personalized drug purchase services. This helps to improve the user's drug purchase experience and enhance their satisfaction with medical services. For users who choose to purchase online, it is possible to match the preset pharmacy database according to the location information of the first user, and recommend the nearest or most convenient pharmacy. This not only saves users time in finding pharmacies, but also improves the convenience of buying medicines. For the first user who chooses to purchase offline, a target planning map is generated by combining the current location of the first user and the historical purchase address, providing the first user with a clear drug purchase route. This helps users go to the pharmacy more efficiently and reduces the inconvenience in the drug purchase process.
[0018] Optionally, before recommending the target pharmacy to the first user so that the first user can view the target pharmacy, the method also includes: extracting a second drug name and a second quantity from the repeat drug order information; determining whether the second drug name exists in the target pharmacy; when the second drug name exists in the target pharmacy, obtaining a target inventory quantity corresponding to the second drug name in the target pharmacy; determining whether the target inventory quantity is greater than or equal to the second quantity; when the target inventory quantity is greater than or equal to the second quantity, determining to recommend the target pharmacy to the first user.
[0019] By adopting the above technical solution, the second drug name and the second quantity are extracted from the repeat drug order information, ensuring the processing of specific drugs in subsequent steps. After determining the target pharmacy, check in real time whether the drug (second drug name) required by the first user exists in the pharmacy. This step ensures that the recommended pharmacy can actually meet the user's drug purchase needs and avoids disappointment and inconvenience caused by insufficient inventory. When the required drug exists in the target pharmacy, it is further verified whether the inventory quantity of the drug is sufficient (that is, greater than or equal to the second quantity required by the user), ensuring that the user can successfully purchase the required quantity of drugs in the recommended pharmacy. Through pharmacy recommendations, it helps to promote the circulation efficiency of drugs, that is, reduce the backlog time of drugs in warehouses and improve the turnover rate of drugs.
[0020] In a second aspect of the present application, a device for processing repurchases of chronic disease drugs is provided. The device is a server, and the server includes an acquisition unit, a processing unit, and a sending unit. The acquisition unit acquires identity information corresponding to a first user, and retrieves historical drug orders based on the identity information; the processing unit extracts a first drug name from the historical drug order, inputs the first drug name into a preset chronic disease drug database for matching, and obtains a target chronic disease type, the target chronic disease type includes any one of respiratory disease types, cardiovascular and cerebrovascular disease types, digestive system disease types, tumor disease types, and metabolic disease types; determines a medication frequency based on the target chronic disease type, and determines a first duration based on the medication frequency and a first quantity, the first quantity being the total number of drugs in the first drug order. The first drug order is the latest drug order in the historical drug orders; the first time point when the first user takes the first drug is obtained, and the first drug is the drug in the first drug order; the second time period is determined according to the first time point and the second time point, and the second time point is the current time point; it is judged whether the first time period is greater than the second time period, and whether the target difference is greater than the preset difference, the target difference is the difference between the first time period and the second time period; when the first time period is greater than the second time period, and the target difference is less than or equal to the preset difference, it is determined that the first user has a demand for repurchase of drugs; a sending unit generates repurchase drug order information according to the repurchase drug demand, and sends the repurchase drug order information to the first user, so that the first user can purchase drugs according to the repurchase drug order information.
[0021] Optionally, the processing unit is used to extract a third time point from the first drug order, the third time point being the time point at which the taking of the second drug in the second drug order is finished, and the second drug order is a drug order whose order time is before the first drug order in the historical drug order information; determine a third duration based on the third time point and the second time point, and output the third duration as the second duration.
[0022] Optionally, the acquisition unit is used to acquire monitoring data and allergy information corresponding to the first user, the allergy information being information about the first user's allergies to types of drugs; the processing unit is used to determine whether the monitoring data is consistent with preset monitoring data; when the monitoring data is consistent with the preset monitoring data, a first repeat drug order is generated based on the target chronic disease type and the first drug order; the acquisition unit is used to acquire target drug information from the first repeat drug order; the processing unit is used to determine whether there is allergy information in the target drug information; when there is no allergy information in the target drug information, the first repeat drug order is output as repeat drug order information.
[0023] Optionally, the processing unit is used to generate a second repeat drug order based on the allergy information, monitoring data, target chronic disease type and the first drug order when allergy information exists in the target drug information, and output the second repeat drug order as repeat drug order information.
[0024] Optionally, the acquisition unit is used to obtain the target age corresponding to the first user, and determine the risk level according to the target age and the target chronic disease type; the sending unit is used to determine to send the repeat drug order information to the first user if the risk level is low risk; if the risk level is high risk, find a second user who has an association with the first user, and send the repeat drug order information to the second user, so that the second user can repurchase the drugs according to the repeat drug order information.
[0025] Optionally, the acquisition unit is used to acquire historical drug purchasing preference information of the first user; the processing unit is used to determine the drug purchasing method based on the historical drug purchasing preference information; if the drug purchasing method is online purchase, the first location corresponding to the first user is acquired, the first location is input into a preset pharmacy database for matching, the target pharmacy is obtained, and the target pharmacy is recommended to the first user so that the first user can view the target pharmacy; the sending unit is used to acquire the second location and historical purchase address corresponding to the first user if the drug purchasing method is offline purchase, generate a target planning map based on the second location and historical purchase address, and send the target planning map and the repeat drug purchase order to the first user.
[0026] Optionally, the processing unit is used to extract the second drug name and the second quantity from the repeat drug order information; determine whether the second drug name exists in the target pharmacy; the acquisition unit is used to obtain the target inventory quantity corresponding to the second drug name in the target pharmacy when the second drug name exists in the target pharmacy; the processing unit is used to determine whether the target inventory quantity is greater than or equal to the second quantity; when the target inventory quantity is greater than or equal to the second quantity, determine to recommend the target pharmacy to the first user.
[0027] In a third aspect of the present application, an electronic device is provided, which includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory, so that an electronic device executes any one of the methods described above in the present application.
[0028] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any one of the above methods of the present application is executed.
[0029] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Obtain the identity information of the first user, and retrieve the historical drug orders of the first user; extract the drug name from the historical order, and match it with the preset chronic disease drug database to determine the type of chronic disease that the first user may suffer from. Determine the frequency of medication according to the target chronic disease type, and calculate the expected medication duration (first duration) in combination with the number of drugs in the last order. By obtaining the time point (first time point) when the first user starts taking the drugs in the last order, and comparing it with the current time point (second time point), calculate the actual duration (second duration), compare the difference (target difference) between the expected medication duration (first duration) and the actual duration (second duration), and whether this difference exceeds the preset difference, to determine whether the first user needs to repurchase drugs. If the expected duration is greater than the actual duration, and the difference is within the preset range, it means that the first user may be about to run out of drugs and have a repurchase demand. Once it is determined that the user has a repurchase demand, the repurchase drug order information can be automatically generated and sent to the user to remind the user to replenish the drugs in time. By dynamically monitoring the first user's medication usage and expected demand, users can be notified in advance to restock their medications before their drug inventory drops below the safety threshold. This not only avoids interruptions in drug supply and affects the continuity of patient treatment, but also improves user experience, ensuring that patients can obtain the required drugs on time and in sufficient quantities, thereby managing chronic diseases more effectively.
[0030] 2. Checking allergy information in the target drug information can identify and avoid recommending drugs that the first user is allergic to, thereby effectively preventing health risks caused by drug allergies. When generating the second repurchase drug order, not only the first user's monitoring data and target chronic disease types are considered, but also allergy information is incorporated, making repurchase recommendations more personalized and accurate. By providing safe, allergy-avoiding drug repurchase recommendations, it can enhance user trust and satisfaction and further improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flowchart of a method for processing repurchase of chronic disease drugs provided in an embodiment of the present application; Figure 2 It is a structural schematic diagram of a device for processing repurchase of chronic disease drugs provided in an embodiment of the present application; Figure 3 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.
[0032] Explanation of reference numerals: 201, acquisition unit; 202, processing unit; 203, sending unit; 300, electronic device; 301, processor; 302, memory; 303, user interface; 304, network interface; 305, communication bus. DETAILED DESCRIPTION
[0033] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0034] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0035] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0036] In the current medical and health service system, individuals tend to seek professional help from medical institutions when they encounter health problems. Doctors will conduct a detailed examination of the patient's health status and develop a personalized drug treatment plan accordingly. It is worth noting that this group includes a considerable number of patients with chronic diseases. Chronic diseases, also known as chronic non-communicable diseases in medicine, refer to a category of diseases that have an insidious onset, a long course of disease, are usually difficult to completely cure, but can be effectively controlled through long-term comprehensive management. Such diseases are characterized by a long course of disease, slow progression, and often unclear initial symptoms. However, over time, they may cause progressive damage to multiple physiological systems of the body.
[0037] In the health management strategy for chronic diseases, ensuring that patients follow the doctor's orders and take medications on time and accurately is the key to maintaining the treatment effect. However, many chronic disease patients find it difficult to accurately track and record medication time due to memory loss or other cognitive dysfunctions, which undoubtedly has an adverse effect on the treatment effect. In order to alleviate this problem, with the help of applications on smartphone platforms, medication reminders are automatically sent to patients according to preset reminder strategies, aiming to improve patients' medication compliance and treatment efficiency. However, the application can only remind patients of medication time, but cannot monitor the patient's drug inventory. When the drug inventory drops below the safety threshold, it is impossible to immediately notify the patient or his family to restock the drug, which may lead to interruptions in drug supply and affect the continuity of patient treatment.
[0038] Therefore, how to solve the problem that the current application can only remind patients to take medicine but cannot monitor the inventory of medicines? The embodiment of the present application provides a method for processing repurchase of chronic disease medicines, which is applied to a server. The server of the present application can be a platform that provides repurchase services for chronic disease patients. Figure 1 This is a flow chart of a method for processing repurchase of chronic disease drugs provided in an embodiment of the present application, with reference to Figure 1 The method includes the following steps S101-S108.
[0039] S101: Obtain identity information corresponding to the first user, and retrieve historical drug orders based on the identity information.
[0040] In the above S101, in order to better remind patients with chronic diseases to repurchase medicines, the medicine order information of all patients with chronic diseases can be obtained from various pharmacies, medical institutions and clinics, and the authorization of various pharmacies, medical institutions and clinics has been obtained before the acquisition. The server first identifies and obtains the identity information of the first user in the login request service. At this time, the first user is any patient with a medicine order. The identity information includes the user's unique identifier (such as user ID), name, age, gender and other basic information. The identity information can be obtained from the information filled in by the user when registering, or obtained through the authentication process when the user logs in. Then use the obtained first user identity information to access the database and retrieve all previous drug order records of the user. These order records should contain detailed information such as the name, quantity, and order date of the ordered medicine.
[0041] S102: extracting a first drug name from historical drug orders, inputting the first drug name into a preset chronic disease drug database for matching, and obtaining a target chronic disease category.
[0042] In the above S102, the first drug order is the drug order with the latest order time in the historical drug orders. Among all the historical drug orders, the order with the latest order time (i.e., the first drug order) is found, which can also be understood as the most recent purchase record in the historical drug orders, and the name of the purchased drug, i.e., the first drug name, is extracted from the first drug order. The server maintains a database containing various chronic disease-related drugs, i.e., a preset chronic disease drug database. The first drug name extracted from the first drug order is input into the preset chronic disease drug database for comparison to determine which chronic disease treatment the first drug name corresponds to. The matching result is the target chronic disease category, and the target chronic disease category includes any one of the respiratory disease category, cardiovascular and cerebrovascular disease category, digestive system disease category, tumor disease category, and metabolic disease category. Chronic diseases can be divided into the following categories based on different organisms. Respiratory disease categories include chronic bronchitis, tuberculosis, and asthma. Cardiovascular and cerebrovascular disease categories include hypertension, congenital heart disease, and sequelae of cerebral hemorrhage. Digestive system disease categories include chronic gastritis, chronic hepatitis, and peptic ulcer. Tumor diseases include gastric cancer, esophageal cancer, and rectal cancer. Metabolic diseases include diabetes, hyperlipidemia, and osteoporosis. Different chronic diseases require different medicines, so the chronic disease suffered by the first user is determined based on the name of the medicine, and then the type of the chronic disease is determined.
[0043] S103: Determine a medication frequency according to the target chronic disease type, and determine a first duration based on the medication frequency and the first quantity.
[0044] In the above S103, based on the target chronic disease type, the general medication frequency of the chronic disease (such as once a day, once a week, etc.) can be determined according to medical guidelines or expert advice. The first quantity is the total number of drugs in the first drug order, that is, the first quantity refers to the total number of drugs in the most recent order. The length of time that the drug can theoretically be used continuously is calculated based on the frequency of medication and the number of drugs, that is, the first duration. The first duration can also be understood as the total length of time that the drugs purchased in the first drug order can be taken by the corresponding user. For example, if the chronic disease type of the first user is diabetes, the frequency of diabetes medication is determined to be once a day based on medical guidelines, and then the first quantity of drugs in the first drug order is obtained. If the first quantity is 60, one drug corresponds to one use, so it is determined that the duration that the drugs in the first drug order can be used by the first user is 60 days.
[0045] S104: Obtain a first time point when the first user takes a first drug, where the first drug is a drug in a first drug order.
[0046] In the above S104, the specific time when the first user starts taking the first drug in the first drug order, ie, the first time point, can be obtained. At this time, the first drug refers to the drug purchased in the first drug order.
[0047] S105: Determine a second duration according to the first time point and the second time point, where the second time point is the current time point.
[0048] In the above S105, the current time point, ie, the second time point, is obtained, and the actual time length from the first time point to the current time point, ie, the second time length, is calculated. The second time length can also be understood as the time length that the first user has currently taken the first drug.
[0049] In addition, in addition to determining the second duration by the first time point and the current time point when the first user takes the first drug, when the first user does not record the first time point of taking the first drug, the time point when the first user finishes taking the drug in the second drug order before the first drug order can be obtained first, and then the third duration is calculated based on the end-of-taking time point and the current time point, and then the third duration is output as the second duration, which can accurately reflect the actual medication experience of the first user, specifically including: extracting the third time point from the first drug order, the third time point is the time point when the second drug in the second drug order is finished, and the second drug order is a drug order whose order time is before the first drug order in the historical drug order information; determining the third duration based on the third time point and the second time point, and outputting the third duration as the second duration.
[0050] Specifically, in the historical drug order, the second drug order needs to be queried from the historical drug order database first. The second drug order is the order immediately before the "first drug order" (i.e., the most recent order). After finding the second drug order, extract the drug information therein. Enter the drug information into the preset chronic disease drug database for matching to obtain the first chronic disease category, and then compare the first chronic disease category with the target chronic disease category. When the two are consistent, confirm that the second drug order is a drug order for the first user to treat chronic diseases. Then obtain the third time point from the second drug order. At this time, the third time point refers to the time point when the first user finishes taking the second drug in the second drug order. Since the order usually only records the purchase time, but not the end time of taking. Therefore, the third time point is to prompt the first user to enter the time to end taking. It can also be estimated based on the time when the first user first took the drug and the number of drugs in the current drug order, but the specific method can be selected based on the actual situation, and no excessive restrictions are made here. The second time point is still the current time point. The third time point (the time point when the drug of the previous order is finished) and the second time point (the current time point) are used to calculate the time length between the two time points, that is, the third time length. This third duration is now used as a substitute for the previously mentioned "second duration" because it more accurately reflects the time span from the last time the first user finished taking the medicine to the present. The calculated third duration is used as the new "second duration" value for subsequent judgments and calculations. To determine whether the first user needs to repurchase the medicine. For example, when the date of the first user's most recent drug purchase order is May 6, the drug order is defined as the first drug order. It is necessary to obtain a drug order before May 6 from the historical drug orders, and the drug name in the drug order is consistent with the drug name in the most recent drug order. If there is still a drug order on March 2 in the historical drug orders, the drug order is defined as the second drug order. Then obtain the first user's remarked end-of-taking time point in the second drug order. If the remarked time point is May 20, the end-of-taking time refers to the time when the drugs in the second drug order are just taken on that day. It is assumed that the drugs taken on that day are sufficient. The time point that is postponed by one day from the end of taking the medicine is defined as the third time point, that is, the third time point is May 21, and the third time point can be understood as the time point when the first user starts taking the first medicine in the first medicine order. Then the current time point is obtained, which is July 23, and the third time point and the current time point are calculated to get 63 days, which represents the third duration.
[0051] S106: Determine whether the first duration is greater than the second duration, and whether the target difference is greater than a preset difference.
[0052] In the above S106, after obtaining the first duration and the second duration, the first duration refers to the duration during which the quantity of drugs in the first drug order can be taken, and the second duration refers to the duration during which the first user starts to take the drugs in the first drug order. The first duration and the second duration are difference calculated to obtain the target difference. The first duration and the second duration are compared, and the difference (target difference) between them is calculated at the same time, and compared with the preset difference threshold. The preset difference threshold is used to determine whether the first user needs to repurchase drugs in advance or will soon need to repurchase drugs. The preset difference can be set according to the purchasing habits of different patients and the purchasing process of different chronic disease drugs.
[0053] S107: When the first duration is greater than the second duration, and the target difference is less than or equal to the preset difference, it is determined that the first user has a need to repurchase drugs.
[0054] In the above S107, if the first duration does exceed the second duration, and the difference between the two is within an acceptable range (i.e., not exceeding the preset difference), it is determined that the first user has a repurchase demand. For example, if the first duration is 90 days and the second duration is 80 days, the preset difference is set to 12 days according to the purchase process of chronic diseases, and the target difference is 10 days. At this time, the first duration is greater than the second duration, but the target difference is less than the preset difference. At this time, it is assumed that the quantity of drugs of the first user is in an alarm state. According to the alarm state, it is determined that the first user has a repurchase demand for drugs. The repurchase demand for drugs means that the first user has a need to purchase drugs again.
[0055] S108: Generate repeat drug order information according to the repeat drug purchase demand, and send the repeat drug order information to the first user so that the first user can purchase drugs according to the repeat drug order information.
[0056] In the above S108, the repurchase drug order information is generated according to the repurchase drug demand, specifically including: obtaining the monitoring data and allergy information corresponding to the first user, the allergy information is the information that the first user is allergic to the drug type; judging whether the monitoring data is consistent with the preset monitoring data; when the monitoring data is consistent with the preset monitoring data, generating the first repurchase drug order according to the target chronic disease type and the first drug order; obtaining the target drug information from the first repurchase drug order; judging whether there is allergy information in the target drug information; when there is no allergy information in the target drug information, outputting the first repurchase drug order as the repurchase drug order information. Specifically, it is necessary to retrieve the relevant monitoring data of the first user from the database. These data may include but are not limited to the user's physiological indicators (such as blood pressure, blood sugar level), medication records, health logs, etc. These data are usually collected through wearable devices worn by users, regular health checks, or manual input by users. It is also necessary to obtain the first user's allergy information to the drug type. This information may be stored in the user's health record, or obtained through the user's self-report when using the system. The allergy information should record in detail which specific drugs the user has allergic reactions to, as well as the severity and symptoms of the allergic reactions. The acquired monitoring data is compared with the preset monitoring data standards. The preset monitoring data standards may be formulated based on factors such as the user's health status, the type of chronic disease, and the doctor's advice. The content of the comparison may include whether various physiological indicators are within the normal range and whether the medication records comply with the doctor's advice. If the monitoring data is consistent with the preset data, it means that the user's health status is stable and the medication can continue to be taken according to the established treatment plan. When the monitoring data is consistent with the preset data, the first repurchase drug order will be generated based on the target chronic disease type and the information of the first drug order. When the monitoring data is consistent with the preset data, the first repurchase drug order will be generated based on the target chronic disease type and the information of the first drug order. The repurchase drug order is automatically generated based on this information, including the required drugs, quantity, purchase frequency, etc. The target drug information is extracted from the generated first repurchase drug order, which may include the drug name, specification, manufacturer, batch number, etc. The extracted target drug information is compared with the user's allergy information to check whether the drug contains the ingredients or types to which the user is allergic. This step is the key to ensuring the safe use of drugs by users and avoiding adverse reactions caused by misuse of allergy drugs. If it is determined that the user's allergy information does not exist in the target drug information, it means that the repeat drug order is safe and can be used by the user. The first repeat drug order is output to the first user as the final repeat drug order information, and the first user can purchase according to the order information. The above solution ensures the safety and effectiveness of the user's medication. Each step strictly follows key factors such as the user's health status, type of chronic disease, and allergy information, providing users with personalized repeat drug order services.
[0057] In addition, when allergy information exists in the target drug information, a second repurchase drug order is generated based on the allergy information, monitoring data, target chronic disease type and the first drug order, and the second repurchase drug order is output as repurchase drug order information. Specifically, specific drug ingredients or types are extracted from the target drug information, and these ingredients or types are associated with the user's known allergy information. The extracted allergens are compared with the user's known allergy information to confirm whether there is a match. If there is a match, it means that the target drug may cause an allergic reaction in the user. Carefully analyze the user's monitoring data, including physiological indicators (such as blood pressure, blood sugar), medication records, health logs, etc. These data help to understand the user's current health status and medication effects. Combined with the user's target chronic disease type, assess their health status and medication needs. Different chronic diseases may require different types of drugs for treatment, and the dosage and frequency of medication may also be different. According to the user's allergy information and target chronic disease type, screen out alternative drugs that do not contain allergens and are suitable for user treatment. This step may require reference to information such as drug instructions, doctor's advice or professional databases. Determine the specifications and quantity of alternative drugs based on the user's medication records and monitoring data. Ensure that alternative drugs can meet the user's treatment needs while avoiding overdose or underdose. Integrate the selected alternative drugs, specifications, quantities and other information into a second repeat drug purchase order. The order information should be clear and include key information such as drug name, specifications, quantity, and purchase frequency. Before outputting the repeat drug order information, the doctor can also be asked about the details of the second repeat drug purchase order and the first user through an online consultation so that the doctor can carefully check the drugs in the second repeat drug purchase order to ensure that the drugs in the repeat drug purchase order match the actual situation of the first user and can be purchased and taken normally. Then output the verified second repeat drug purchase order information to the first user.
[0058] Furthermore, after generating the repurchase drug order information, before sending the repurchase drug order to the first user, it is necessary to obtain the age of the chronic disease patient, and determine whether the patient has the ability to purchase drugs by themselves according to the age, that is, the elderly or students generally do not have the ability to purchase drugs by themselves. By evaluating the patient's ability to purchase drugs by themselves, the corresponding drug purchase personnel are determined, and then the repurchase drug order is sent to the corresponding contact personnel in a timely manner to ensure that the user replenishes the drugs in time and ensures the safety and effectiveness of the user's medication. Specifically, it includes: obtaining the target age corresponding to the first user, determining the risk level according to the target age and the target chronic disease type; if the risk level is low risk, determining to send the repurchase drug order information to the first user; if the risk level is high risk, finding a second user who has an association with the first user, and sending the repurchase drug order information to the second user, so that the second user can repurchase drugs according to the repurchase drug order information. Specifically, the basic information of the first user is first obtained, including the user's date of birth or age. If the date of birth is directly stored, it needs to be converted into the current age, that is, the target age. The target age and target chronic disease type of the first user are then input into a preset risk assessment model for analysis. The preset risk assessment model assesses the risk level of the user based on the target age and target chronic disease type. The risk assessment model may be a complex algorithm that takes into account factors such as the impact of age on the progression of chronic diseases, the risk of complications, and the effectiveness of treatment. The target age and target chronic disease type of the first user are passed as input data to the risk assessment model. The risk assessment model outputs a risk level, which is usually one of low risk or high risk. This level reflects the potential risk of the user's current health status and the degree of concern. If the risk level is low risk, it means that the health status of the first user is relatively stable and the user has the ability to purchase medicines on his own, so the repurchase medicine order information can be directly sent to the first user. Generate repurchase medicine order information and send it directly to the first user by email, SMS or application notification. The first user can repurchase medicines based on the received order information. If the risk level is high risk, it means that the health status of the first user may be at great risk and the user does not have the ability to purchase medicines on his own, that is, he needs help from others. First, find a second user who has an association with the first user. These associations may include relatives, emergency contacts, medical agents, etc. The server generates the repurchase drug order information and sends it to the second user instead of directly to the first user. After receiving the order information, the second user can repurchase the drug according to the situation. When sending the repurchase drug order information to the second user, the second user can be reminded in time to replenish the drug to avoid replenishing the drug after taking the drug, which will affect the continuity of treatment.
[0059] Furthermore, after sending the repeat drug order information to the user, in order to facilitate the user's purchase of drugs, the drug purchase method can be determined based on the user's historical drug purchase preference information, and then a personalized drug store recommendation or drug purchase planning map is provided, which specifically includes: obtaining the historical drug purchase preference information of the first user; determining the drug purchase method according to the historical drug purchase preference information; if the drug purchase method is online purchase, then obtaining the first location corresponding to the first user, inputting the first location into the preset drug store database for matching, obtaining the target drug store, and recommending the target drug store to the first user so that the first user can view the target drug store; if the drug purchase method is offline purchase, then obtaining the second location and historical purchase address corresponding to the first user, generating a target planning map according to the second location and historical purchase address, and sending the target planning map and the repeat drug purchase order to the first user. Specifically, first access the user database to retrieve the historical drug purchase records of the first user. These records may include information such as the name, specification, quantity, purchase time, and purchase channel (online or offline) of the purchased drug. Analyze the collected historical drug purchase records to identify the drug purchase preferences of the first user. This may include the preferred drug type, brand, price range, purchase frequency, etc. Based on the drug purchase preference information of the first user, it is determined whether the user prefers online or offline purchase, which may be based on the user's past purchase behavior, preference for online or offline channels, consideration of drug delivery speed and price, etc. Based on the judgment result, it is determined whether to use the online purchase method or the offline purchase method. If the drug purchase method is online purchase, the current location information of the first user, that is, the first location, is obtained through GPS positioning, user input or other methods. At this time, the first location can also be understood as the current residence address of the first user. The first location is input into a preset pharmacy database, which stores information such as the location, drug inventory, price, and evaluation of the pharmacy. Based on the location information, a pharmacy that is closer to the first user is matched in the database as the target pharmacy. The matched target pharmacy information is sent to the first user, which may be through email, SMS, application notification, etc. The user can view the detailed information of the target pharmacy, including location, drug inventory, price, etc., in order to make a purchase decision. If the drug purchase method is offline purchase, the second location of the first user is obtained. The second location is the user's current location information, which is obtained through GPS positioning. The historical purchase address is the address that the user often used to purchase medicines in the past, which may be stored in the user database. Based on the second location and the historical purchase address, a target planning map is generated using a map service or a path planning algorithm. The target planning map shows the best path from the second location to the historical purchase address (or other pharmacy locations specified by the user). The generated target planning map is sent to the first user together with the repeat purchase drug order. The user can view the planning map to understand the best path to the pharmacy and purchase drugs according to the order information. By collecting and analyzing the first user's historical drug purchase preference information, the drug purchase method is determined, and a personalized drugstore recommendation or drug purchase planning map is provided.This will help improve users' drug purchasing experience and meet their personalized drug purchasing needs.
[0060] At this time, when recommending the target pharmacy to the first user, it is also necessary to judge the inventory of drugs in the target pharmacy, and give priority to recommending the target pharmacy with sufficient inventory to the user, which helps to improve the user's drug purchase experience and ensure that the user can easily obtain the required drugs. Specifically, it includes: extracting the second drug name and the second quantity from the repeat drug order information; judging whether the second drug name exists in the target pharmacy; when the second drug name exists in the target pharmacy, obtaining the target inventory quantity corresponding to the second drug name in the target pharmacy; judging whether the target inventory quantity is greater than or equal to the second quantity; when the target inventory quantity is greater than or equal to the second quantity, determining to recommend the target pharmacy to the first user. Specifically, receive and parse the repeat drug order information, which usually contains purchase requests for multiple drugs. The parsing process involves identifying various fields in the order, such as drug name, quantity, specification, etc. In the parsed order information, identify and extract the second drug name (assuming that multiple drugs are listed in a certain order in the order, here take "second" as an example) and its corresponding purchase quantity, that is, the second quantity. Access the database or real-time inventory system of the target pharmacy to obtain the list of drugs currently available in the pharmacy. The database or inventory system should contain key information such as drug name, inventory quantity, price, etc. The extracted second drug name is matched with the drug list of the target pharmacy to check whether the drug is available in the target pharmacy. The matching process considers the accuracy and consistency of the drug name to avoid misjudgment due to name differences. When the second drug name exists in the target pharmacy, the inventory quantity of the drug in the target pharmacy is further queried, that is, the target inventory quantity. The query process ensures real-time and accuracy to reflect the current inventory status of the pharmacy. The target inventory quantity is compared with the second quantity to determine whether the inventory of the target pharmacy is sufficient to meet the purchase needs of the first user. When the target inventory quantity is greater than or equal to the second quantity, it is determined to recommend the target pharmacy to the first user. The decision-making process is based on the results of the above steps to ensure that the recommended pharmacy can meet the user's purchase needs. Generate recommendation information, including key information such as the name, location, contact information of the target pharmacy, and the inventory status of the second drug. The recommendation information is sent to the first user through email, SMS, application notification, etc., so that the user can make a purchase decision. When the target inventory is less than the second quantity, other pharmacies are obtained, and the drug names and inventory in other pharmacies are compared according to the above comparison process, and then the pharmacy that best matches the needs of the first user is selected and recommended to the first user.
[0061] In addition, when the first duration is greater than the second duration and the target difference is greater than the preset difference, it is determined that the first user currently has no need to repurchase drugs, and the drug taking time of the first user continues to be monitored so as to promptly remind the first user to repurchase drugs.
[0062] Through the above method, the identity information of the first user is obtained, and the historical drug orders of the first user can be retrieved; the drug name is extracted from the historical order, and matched with the preset chronic disease drug database to determine the type of chronic disease that the user may suffer from. The frequency of medication is determined according to the target chronic disease type, and the expected medication duration (first duration) is calculated in combination with the number of drugs in the last order. By obtaining the time point (first time point) when the first user starts taking the drugs in the last order, and comparing it with the current time point (second time point), the actual duration (second duration) that has been used is calculated, and the difference (target difference) between the expected medication duration (first duration) and the actual duration (second duration) that has been used is compared, and whether this difference exceeds the preset difference, it is determined whether the user needs to repurchase the drug. If the expected duration is greater than the actual duration, and the difference is within the preset range, it means that the user may be about to run out of drugs and have a repurchase demand. Once it is determined that the user has a repurchase demand, the repurchase drug order information can be automatically generated and sent to the user to remind the user to replenish the drug in time. By dynamically monitoring the first user's medication usage and expected demand, users can be notified in advance to restock their medications before their drug inventory drops below the safety threshold. This not only avoids interruptions in drug supply and affects the continuity of patient treatment, but also improves user experience, ensuring that patients can obtain the required drugs on time and in sufficient quantities, thereby managing chronic diseases more effectively.
[0063] The present application also provides a device for processing repurchase of chronic disease drugs. Figure 2 This is a schematic diagram of a device for processing repurchase of chronic disease drugs provided in an embodiment of the present application, with reference to Figure 2 The device is a server, and the server includes an acquisition unit 201, a processing unit 202 and a sending unit 203.
[0064] The acquisition unit 201 acquires the identity information corresponding to the first user, and retrieves the historical drug orders according to the identity information.
[0065] Processing unit 202 extracts the name of the first drug from the historical drug orders, inputs the name of the first drug into a preset chronic disease drug database for matching, and obtains a target chronic disease category, which includes any one of respiratory disease categories, cardiovascular and cerebrovascular disease categories, digestive system disease categories, tumor disease categories, and metabolic disease categories; determines the frequency of medication according to the target chronic disease category, and determines a first duration based on the frequency of medication and the first quantity, the first quantity being the total number of drugs in the first drug order, and the first drug order being the drug order with the latest order time in the historical drug orders; obtains a first time point when the first user takes the first drug, the first drug being the drug in the first drug order; determines a second duration based on the first time point and the second time point, the second time point being the current time point; determines whether the first duration is greater than the second duration, and whether the target difference is greater than the preset difference, the target difference being the difference between the first duration and the second duration; when the first duration is greater than the second duration, and the target difference is less than or equal to the preset difference, it is determined that the first user has a demand for repurchasing drugs.
[0066] The sending unit 203 generates repeat purchase drug order information according to the repeat purchase drug demand, and sends the repeat purchase drug order information to the first user so that the first user can purchase drugs according to the repeat purchase drug order information.
[0067] In a possible implementation, the processing unit 202 is used to extract a third time point from the first drug order, where the third time point is the time point when the second drug in the second drug order is finished taking, and the second drug order is a drug order whose order time is before the first drug order in the historical drug order information; determine a third duration based on the third time point and the second time point, and output the third duration as the second duration.
[0068] In a possible implementation, the acquisition unit 201 is used to acquire monitoring data and allergy information corresponding to the first user, where the allergy information is information about the first user's allergies to types of drugs; the processing unit 202 is used to determine whether the monitoring data is consistent with the preset monitoring data; when the monitoring data is consistent with the preset monitoring data, a first repeat drug order is generated based on the target chronic disease type and the first drug order; the acquisition unit 201 is used to acquire target drug information from the first repeat drug order; the processing unit 202 is used to determine whether there is allergy information in the target drug information; when there is no allergy information in the target drug information, the first repeat drug order is output as repeat drug order information.
[0069] In one possible implementation, the processing unit 202 is used to generate a second repeat drug order based on the allergy information, monitoring data, target chronic disease type and the first drug order when allergy information exists in the target drug information, and output the second repeat drug order as repeat drug order information.
[0070] In a possible implementation, the acquisition unit 201 is used to obtain the target age corresponding to the first user, and determine the risk level according to the target age and the target chronic disease type; the sending unit 203 is used to determine that the repurchase drug order information will be sent to the first user if the risk level is low risk; if the risk level is high risk, find a second user who has an association with the first user, and send the repurchase drug order information to the second user, so that the second user can repurchase the drug according to the repurchase drug order information.
[0071] In a possible implementation, the acquisition unit 201 is used to acquire the historical drug purchase preference information of the first user; the processing unit 202 is used to determine the drug purchase method based on the historical drug purchase preference information; if the drug purchase method is online purchase, the first location corresponding to the first user is acquired, the first location is input into a preset pharmacy database for matching, the target pharmacy is obtained, and the target pharmacy is recommended to the first user so that the first user can view the target pharmacy; the sending unit 203 is used to acquire the second location and historical purchase address corresponding to the first user if the drug purchase method is offline purchase, generate a target planning map based on the second location and historical purchase address, and send the target planning map and the repeat drug purchase order to the first user.
[0072] In one possible implementation, the processing unit 202 is used to extract the second drug name and the second quantity from the repeat drug order information; to determine whether the second drug name exists in the target pharmacy; the acquisition unit 201 is used to obtain the target inventory quantity corresponding to the second drug name in the target pharmacy when the second drug name exists in the target pharmacy; the processing unit 202 is used to determine whether the target inventory quantity is greater than or equal to the second quantity; when the target inventory quantity is greater than or equal to the second quantity, determine to recommend the target pharmacy to the first user.
[0073] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0074] The present application also discloses an electronic device. Figure 3 , Figure 3 The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 302 , and at least one communication bus 305 .
[0075] The communication bus 305 is used to realize the connection and communication between these components.
[0076] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0077] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0078] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 302, and calling data stored in the memory 302. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application requests; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.
[0079] Among them, the memory 302 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 302 includes a non-transitory computer-readable storage medium. The memory 302 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 302 may include a program storage area and a data storage area, wherein the program storage area. Instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. can be stored; the data storage area can store data involved in the above-mentioned various method embodiments, etc. The memory 302 can also be optionally at least one storage device located away from the aforementioned processor 301.
[0080] like Figure 3 As shown, the memory 302 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for processing repurchase of chronic disease drugs.
[0081] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 301 can be used to call the application program for processing repurchase of chronic disease drugs stored in the memory 302. When executed by one or more processors, the electronic device executes one or more methods described in the above embodiments.
[0082] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0083] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0084] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0085] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0086] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0087] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0088] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure.
Claims
1. A method for processing repurchase of chronic disease drugs, characterized in that: Applied in a server, the method comprises: Obtain identity information corresponding to the first user, and retrieve historical drug orders according to the identity information; Extracting a first drug name from the historical drug order, inputting the first drug name into a preset chronic disease drug database for matching, and obtaining a target chronic disease category, wherein the target chronic disease category includes any one of a respiratory disease category, a cardiovascular and cerebrovascular disease category, a digestive system disease category, a tumor disease category, and a metabolic disease category; Determine a medication frequency according to the target chronic disease type, and determine a first duration based on the medication frequency and a first quantity, where the first quantity is the total quantity of drugs in a first drug order, and the first drug order is the latest drug order in the historical drug orders; obtaining a first time point at which the first user takes a first drug, where the first drug is a drug in the first drug order; Determine a second duration according to the first time point and the second time point, where the second time point is the current time point; Determine whether the first duration is greater than the second duration, and whether a target difference is greater than a preset difference, the target difference being the difference between the first duration and the second duration; When the first duration is greater than the second duration, and the target difference is less than or equal to the preset difference, it is determined that the first user has a demand for repurchasing drugs; Generate repeat drug order information according to the repeat drug purchase demand, and send the repeat drug order information to the first user so that the first user can purchase drugs according to the repeat drug order information.
2. The method according to claim 1, characterized in that Before determining the second duration according to the first time point and the second time point, the method further includes: Extracting a third time point from the first drug order, the third time point being a time point at which the second drug in the second drug order is finished taking, the second drug order being a drug order whose order time is before the first drug order in the historical drug order information; A third duration is determined according to the third time point and the second time point, and the third duration is output as the second duration.
3. The method according to claim 1, characterized in that The generating of repeat drug order information according to the repeat drug demand specifically includes: Acquire monitoring data and allergy information corresponding to the first user, wherein the allergy information is information about the first user's allergies to types of drugs; Determining whether the monitoring data is consistent with preset monitoring data; When the monitoring data is consistent with the preset monitoring data, generating a first repeat drug order according to the target chronic disease type and the first drug order; Acquire target drug information from the first repeat drug purchase order; Determining whether the allergy information exists in the target drug information; When the allergy information does not exist in the target drug information, the first repeat drug purchase order is output as the repeat drug purchase order information.
4. The method according to claim 3, characterized in that: After determining whether the target drug information contains the allergy information, the method further includes: When the allergy information exists in the target drug information, a second repeat drug order is generated based on the allergy information, the monitoring data, the target chronic disease type and the first drug order, and the second repeat drug order is output as the repeat drug order information.
5. The method according to claim 1, characterized in that Before generating the repeat drug order information according to the repeat drug demand and sending the repeat drug order information to the first user so that the first user purchases drugs according to the repeat drug order information, the method further includes: Obtaining a target age corresponding to the first user, and determining a risk level according to the target age and the target chronic disease type; If the risk level is low risk, determining to send the repeat drug order information to the first user; If the risk level is high risk, a second user associated with the first user is searched, and the repurchase drug order information is sent to the second user so that the second user can repurchase drugs according to the repurchase drug order information.
6. The method according to claim 1, characterized in that After sending the repeat drug purchase order information to the first user, the method further includes: Acquire historical drug purchase preference information of the first user; determining a drug purchasing method according to the historical drug purchasing preference information; If the drug purchase method is online purchase, a first location corresponding to the first user is obtained, the first location is input into a preset drugstore database for matching, a target drugstore is obtained, and the target drugstore is recommended to the first user so that the first user can view the target drugstore; If the drug purchase method is offline purchase, the second location and historical purchase address corresponding to the first user are obtained, a target planning map is generated according to the second location and the historical purchase address, and the target planning map and the repeat drug purchase order are sent to the first user.
7. The method according to claim 6, characterized in that Before recommending the target pharmacy to the first user so that the first user can view the target pharmacy, the method further includes: Extracting a second drug name and a second quantity from the repeat drug order information; Determine whether the second drug name exists in the target pharmacy; When the second drug name exists in the target pharmacy, obtaining a target inventory quantity corresponding to the second drug name in the target pharmacy; Determining whether the target inventory quantity is greater than or equal to the second quantity; When the target inventory quantity is greater than or equal to the second quantity, it is determined to recommend the target pharmacy to the first user.
8. A device for processing repurchase of chronic disease drugs, characterized in that: The device is a server, and the server comprises an acquisition unit (201), a processing unit (202) and a sending unit (203). The acquisition unit (201) acquires identity information corresponding to the first user, and retrieves historical drug orders according to the identity information; The processing unit (202) extracts the name of the first drug from the historical drug order, inputs the first drug name into a preset chronic disease drug database for matching, and obtains a target chronic disease category, wherein the target chronic disease category includes any one of a respiratory disease category, a cardiovascular and cerebrovascular disease category, a digestive disease category, a tumor disease category, and a metabolic disease category; determines a medication frequency according to the target chronic disease category, and determines a first duration based on the medication frequency and a first quantity, wherein the first quantity is the total quantity of drugs in the first drug order, and the first drug order is the drug order with the latest order time in the historical drug orders; obtains a first time point when the first user takes the first drug, wherein the first drug is a drug in the first drug order; determines a second duration according to the first time point and the second time point, wherein the second time point is the current time point; determines whether the first duration is greater than the second duration, and whether the target difference is greater than a preset difference, wherein the target difference is the difference between the first duration and the second duration; When the first duration is greater than the second duration, and the target difference is less than or equal to the preset difference, it is determined that the first user has a demand for repurchasing drugs; The sending unit (203) generates repeat drug order information according to the repeat drug purchase demand, and sends the repeat drug order information to the first user so that the first user can purchase drugs according to the repeat drug order information.
9. An electronic device, characterized in that: The electronic device (300) comprises a processor (301), a memory (302), a user interface (303) and a network interface (304), wherein the memory (302) is used to store instructions, the user interface (303) and the network interface (304) are used to communicate with other devices, and the processor (301) is used to execute the instructions stored in the memory (302) so that the electronic device (300) executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is performed.
Citation Information
Patent Citations
Medicine taking management and medicine purchasing management system based on intelligent medicine box
CN111161828A
Medicine purchasing reminding method and device
CN112397175A
Face-scanning-based user authority verification method and device, and storage medium
CN112712871A
Medicine distribution method and device based on chronic diseases of residents and medium
CN114093457A
Medicine purchasing prediction method based on customer portrait
CN115064241A