A pharmacy selection method, server and system
By analyzing the patient's prescription and pharmacy information, we recommend the most suitable pharmacy, which solves the problem of inefficiency in patients when looking for pharmacies and achieves rapid and convenient access to drugs.
Patent Information
- Application Number
- CN201811266293.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-10-27
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2038-10-27
AI Technical Summary
After the patient is in the hospital, he needs to go to multiple pharmacies to find a pharmacy that can purchase prescription Chinese medicines, which leads to wasting time and energy and inefficient.
Provide a pharmacy selection method and system, obtain patient identity information and geographical location through servers, analyze prescriptions, determine alternative pharmacies, and recommend target pharmacies based on drug lists and number of people queuing to improve user experience.
It greatly improves the efficiency of patients finding pharmacies that can purchase prescription drugs, reduces patients' time and energy investment, and improves user experience.
Smart Images

Figure CN109524081B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical technology and, in particular, to a method, server and system for selecting a pharmacy. Background Art
[0002] Currently, the number of patients admitted to major hospitals every day has increased dramatically, resulting in countless patients queuing up in hospital pharmacies to get their medicines every day.
[0003] After seeing the doctor, the patient needs to go to multiple pharmacies (drug stores or hospital pharmacies) according to the prescriptions written by the doctor before finding a pharmacy that can buy all the drugs listed in the drug list in the above prescription, which takes a lot of time and energy and is inefficient. Summary of the invention
[0004] The present application provides a pharmacy selection method, server and system, which can recommend pharmacies that provide the drugs listed in the prescription to patients, and provide a high user experience.
[0005] In a first aspect, the present application provides a pharmacy selection method, which involves analysis and processing of medical information, and the method comprises:
[0006] The server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requester terminal of the pharmacy requester;
[0007] The server determines a target prescription containing the identity information of the pharmacy requester from the multiple prescriptions according to the prescriptions of multiple patients collected in advance, and determines a drug list from the target prescription;
[0008] The server obtains information about idle medicines in each of the plurality of pharmacies, wherein the information about idle medicines in each pharmacy carries the geographical location of each pharmacy;
[0009] The server uses the geographical location of the pharmacy request terminal as the center of a circle and a preset distance as the radius of the circle, and determines from the plurality of pharmacies at least one candidate pharmacy whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the drugs listed in the drug list to the pharmacy requester;
[0010] The server determines a target pharmacy from the candidate pharmacies according to the number of patients waiting in line to pick up medicines in the candidate pharmacies;
[0011] The server sends the target information of the target pharmacy to the pharmacy request terminal; the target information is used by the pharmacy requester to go to the target pharmacy to complete the drug collection according to the target information; the target information includes: the geographical location of the target pharmacy.
[0012] In combination with the first aspect, in some possible embodiments,
[0013] The server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requester terminal of the pharmacy requester, including:
[0014] The server receives a first pharmacy request sent by a pharmacy request terminal of a pharmacy requester; the first pharmacy request carries the identity information and the geographical location of the pharmacy requester.
[0015] In combination with the first aspect, in some possible embodiments,
[0016] The server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requester terminal of the pharmacy requester, including:
[0017] The server receives a second pharmacy request sent by a pharmacy request terminal of a pharmacy requester;
[0018] The server sends a first request to the pharmacy request terminal, where the first request is used to request to obtain the identity information and geographical location of the pharmacy requester;
[0019] The server obtains the identity information and geographical location of the pharmacy requester input into the pharmacy request terminal from the pharmacy request terminal according to the pharmacy request terminal's response to the first request.
[0020] In combination with the first aspect, in some possible embodiments,
[0021] The server uses the geographical location of the pharmacy request terminal as the center of a circle and a preset distance as the radius of the circle, and determines from the plurality of pharmacies at least one candidate pharmacy whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the drugs listed in the drug list to the pharmacy requester, including:
[0022] The server uses the geographical location of the pharmacy requesting terminal as the center of a circle and a preset distance as the radius of the circle, and determines from the multiple pharmacies at least one candidate pharmacy whose geographical location is less than the preset distance from the geographical location of the pharmacy requesting party.
[0023] In combination with the first aspect, in some possible embodiments,
[0024] The server determines a target pharmacy from the candidate pharmacies according to the number of patients waiting in line to pick up medicines in the candidate pharmacies, including:
[0025] The server determines a target pharmacy from the candidate pharmacies according to the principle of minimizing the number of patients waiting in line to pick up medicines in the candidate pharmacies;
[0026] or,
[0027] If there are at least two pharmacies among the candidate pharmacies with the same number of patients queuing and the least number of patients, the server determines the pharmacy as the target pharmacy based on the pharmacy whose geographical location is shorter than the geographical location of the pharmacy requester.
[0028] In a second aspect, the present application provides a server, the server comprising:
[0029] A first acquisition unit is used to acquire the identity information and geographical location of the pharmacy requester from the pharmacy requesting terminal of the pharmacy requester;
[0030] A first determining unit is used to determine a target prescription containing the identity information of the pharmacy requester from the multiple prescriptions according to the prescriptions of multiple patients collected in advance, and determine a drug list from the target prescription;
[0031] A second acquisition unit is used to acquire information about idle drugs in each of the plurality of pharmacies, wherein the information about idle drugs in each pharmacy carries the geographical location of each pharmacy;
[0032] A second determining unit is configured to determine, with the geographical location of the pharmacy requesting terminal as the center of a circle and a preset distance as the radius of the circle, at least one candidate pharmacy from the plurality of pharmacies whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the drugs listed in the drug list to the pharmacy requesting party;
[0033] A third determining unit is used to determine a target pharmacy from the candidate pharmacies according to the number of patients waiting in line to pick up medicines in the candidate pharmacies;
[0034] The sending unit is used to send the target information of the target pharmacy to the pharmacy request terminal; the target information is used by the pharmacy requester to go to the target pharmacy to complete the drug collection according to the target information; the target information includes: the geographical location of the target pharmacy.
[0035] In conjunction with the second aspect, in some possible embodiments,
[0036] The second determining unit is specifically configured to:
[0037] Taking the geographical location of the pharmacy requesting terminal as the center of a circle and a preset distance as the radius of the circle, at least one candidate pharmacy is determined from the multiple pharmacies whose geographical location is less than the preset distance from the geographical location of the pharmacy requesting party.
[0038] In conjunction with the second aspect, in some possible embodiments,
[0039] The third determining unit is specifically configured to:
[0040] Determine a target pharmacy from the candidate pharmacies based on the principle of minimizing the number of patients waiting in line to pick up medicines in the candidate pharmacies;
[0041] or,
[0042] If there are at least two pharmacies among the candidate pharmacies with the same number of patients queuing and the least number of patients, the pharmacy with the shorter distance between its geographical location and the geographical location of the pharmacy requester is determined as the target pharmacy.
[0043] In a third aspect, the present application provides a server, comprising: a transceiver, a memory, and a processor coupled to the memory, the transceiver, the memory, and the processor coupled to the memory being interconnected, wherein the transceiver is used to perform a receiving or sending action, the memory is used to store an implementation code of a pharmacy selection method, and the processor is used to call the implementation code stored in the memory, that is, to execute the pharmacy selection method described in the first aspect.
[0044] In a fourth aspect, the present application provides a pharmacy selection system, comprising: a server, a pharmacy request terminal, a prescription providing terminal and a drug information providing terminal; wherein the server is used to select a pharmacy according to the pharmacy selection method described in the first aspect, the pharmacy request terminal is used to send a pharmacy request to the server, the prescription providing terminal is used to send a patient's prescription to the server, and the drug information providing terminal is used to send information about available drugs in the pharmacy to the server.
[0045] In a fifth aspect, the present application provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed by a processor, the processor executes the pharmacy selection method provided in the first aspect and any one of its various possible implementations.
[0046] In a sixth aspect, the present application provides a computer program product, which, when executed by a processor, enables the processor to execute the pharmacy selection method provided in the first aspect and any one of its various possible implementations.
[0047] The present application provides a pharmacy selection method, server and system. The server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requester's pharmacy requester terminal; the server determines a target prescription containing the identity information of the pharmacy requester from multiple prescriptions based on the prescriptions of multiple patients collected in advance, and determines a drug list from the target prescription; the server obtains information about the idle drugs in each of the multiple pharmacies, and the information about the idle drugs in each pharmacy carries the geographical location of each pharmacy; the server uses the geographical location of the pharmacy requester terminal as the center of a circle and a radius of a preset distance circle to determine from multiple pharmacies at least one candidate pharmacy whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the drugs listed in the drug list to the pharmacy requester; the server determines a target pharmacy from the candidate pharmacies based on the number of patients waiting in line to pick up drugs in the candidate pharmacies; the server sends the target information of the target pharmacy to the pharmacy requester terminal; the target information is used for the pharmacy requester to go to the target pharmacy to complete the drug collection according to the target information; the target information includes: the geographical location of the target pharmacy. By using this application, pharmacies that provide the drugs listed in the prescription can be recommended to patients, providing a high user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0049] Figure 1 is a schematic diagram of a pharmacy selection system provided by the present application;
[0050] Figure 2 is a schematic flow chart of a pharmacy selection method provided by the present application;
[0051] Figure 3 It is a schematic diagram of a drug list provided in this application;
[0052] Figure 4 It is a schematic diagram of the relationship between the geographical location of a pharmacy and the geographical location of a pharmacy requester provided by the present application;
[0053] Figure 5 is a schematic block diagram of a server provided by the present application;
[0054] Figure 6 It is a schematic block diagram of another server provided in this application. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0056] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0057] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0058] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0059] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0060] In a specific implementation, the terminal described in the present application includes, but is not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch screen displays and / or touch pads).
[0061] In the following discussion, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse and / or joystick.
[0062] The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disk burning application, a spreadsheet application, a game application, a telephone application, a video conferencing application, an email application, an instant messaging application, a workout support application, a photo management application, a digital camera application, a digital camcorder application, a web browsing application, a digital music player application, and / or a digital video player application.
[0063] Various applications that can be executed on the terminal can use at least one common physical user interface device such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and / or changed between applications and / or within corresponding applications. In this way, the common physical architecture of the terminal (e.g., the touch-sensitive surface) can support various applications with user interfaces that are intuitive and transparent to the user.
[0064] See also Figure 1 , is a schematic diagram of a pharmacy selection system provided by the present application, such as Figure 1 As shown, the pharmacy selection system may include: a server, a pharmacy request terminal, a prescription providing terminal and a drug information providing terminal.
[0065] Among them, the pharmacy request terminal, the prescription providing terminal and the drug information providing terminal may be terminals in the pharmacy request system, and the terminal may refer to an access terminal, a user equipment (UE), a user unit, a user station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile terminal, a user terminal, a terminal, a wireless communication device, a user agent or a user device. The access terminal may be a cellular phone, a cordless phone, a conference initiation protocol phone, a wireless local loop station, a personal digital processing, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a wearable device or a terminal device in a future evolved public land mobile network.
[0066] In the pharmacy selection system, it may include: a pharmacy requester, a prescription provider, a drug information provider, and a pharmacy selector. In the embodiment of the present application, the pharmacy request terminal is the terminal of the pharmacy requester, the prescription providing terminal is deployed at the prescription provider, the drug information providing terminal is deployed at the drug information provider, and the server is deployed at the pharmacy selector.
[0067] Doctors at medical institutions can log in to the prescription provision client and input the registration information into the prescription provision terminal deployed at the prescription provider (such as a medical institution). The prescription provision terminal sends the registration information to the server, and then the server obtains the private key set by the doctor of the medical institution for logging in to the prescription provision client and stores the private key.
[0068] Users of the drug information provider (such as pharmacy staff) can log in to the drug information provision client and input the registration information into the drug information provision terminal deployed at the drug information provider (such as a drugstore). The drug information provision terminal sends the registration information to the server deployed at the pharmacy selection party, and then the server obtains the private key set by the drug information provider (drug store staff) for logging in to the drug information provision client and stores the private key.
[0069] Furthermore, after different users have completed registration on the server through the pharmacy request terminal, prescription providing terminal and drug information providing terminal respectively, the drug acquisition requester can log in to the pharmacy request client and input the pharmacy request carrying the identity information of the pharmacy requester and the geographical location into the pharmacy request terminal; the doctor of each medical institution among multiple medical institutions can input the patient's prescription into the prescription providing terminal deployed at the prescription provider through the prescription providing client; the doctor of each pharmacy among multiple pharmacies can input the information of the idle drugs in each pharmacy into the drug information providing terminal deployed at the drug information provider through the drug information providing client.
[0070] It should be noted that medical institutions may include: hospitals, maternal and child health care centers, community health service centers, township health centers, sanatoriums, outpatient clinics (such as traditional Chinese medicine outpatient clinics, traditional Chinese and Western medicine combined outpatient clinics), village clinics, emergency centers, clinical testing centers, specialized disease prevention and treatment hospitals or nursing homes, etc.
[0071] Pharmacies may include: drug stores and pharmacies in medical institutions.
[0072] It should be noted that the client may include: locally running applications, functions running on a web browser (also known as Web App), applets embedded in emails, applets embedded in instant messaging client software (such as WeChat), and functions (such as WeChat public accounts) embedded in other applications (such as WeChat), etc. For the client, the server needs to run the corresponding server-side program to provide the corresponding services, such as database services, data calculation, decision execution, etc.
[0073] In an embodiment of the present application, the server may also be referred to as a background server, a component server, a pharmacy selection server, etc. The server may be communicatively connected with a drug acquisition request terminal that can send a drug acquisition request and a prescription provision terminal that sends a prescription via the Internet, and may respond to a received drug acquisition request.
[0074] It should be noted that the server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requester's pharmacy requester terminal; the server determines a target prescription containing the identity information of the pharmacy requester from multiple prescriptions based on the prescriptions of multiple patients collected in advance, and determines a list of medicines from the target prescription; the server obtains information on idle medicines in each of the multiple pharmacies, and the information on idle medicines in each pharmacy carries the geographical location of each pharmacy; the server uses the geographical location of the pharmacy request terminal as the center of a circle and a radius of a preset distance circle to determine from the multiple pharmacies at least one alternative pharmacy whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the medicines listed in the medicine list to the pharmacy requester; the server determines a target pharmacy from the alternative pharmacies based on the number of patients queuing to pick up medicines in the alternative pharmacies; the server sends the target information of the target pharmacy to the pharmacy request terminal; the target information is used for the pharmacy requester to go to the target pharmacy to complete the medicine collection according to the target information; the target information includes: the geographical location of the target pharmacy. By using the embodiments of the present application, pharmacies that provide the medicines listed in the prescription can be recommended to patients, providing a high user experience.
[0075] See also Figure 2 , Figure 2 It is a schematic flow chart of a pharmacy selection method provided in an embodiment of the present application.
[0076] like Figure 2 As shown, the pharmacy selection method provided by the pharmacy selection system is described in detail below. The method may at least include the following steps:
[0077] S201. The server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requesting terminal of the pharmacy requester.
[0078] In the embodiment of the present application, the patient's identity information may include but is not limited to: the patient's ID number, the patient's name, gender, age, contact information, etc. Among them, the patient may include but is not limited to: patients with diabetes or hypertension.
[0079] Pharmacy requesters may include: Patients waiting to pick up medications.
[0080] Pharmacies may include, but are not limited to: pharmacies in drug stores or medical institutions.
[0081] Specifically, the server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requesting terminal of the pharmacy requester, which may include but is not limited to the following two methods.
[0082] The first way: the server receives a first pharmacy request sent by a pharmacy request terminal of a pharmacy requester; the first pharmacy request carries the identity information and the geographical location of the pharmacy requester.
[0083] The second method: the server receives a second pharmacy request sent by a pharmacy request terminal of a pharmacy requester;
[0084] The server sends a first request to the pharmacy requesting terminal, where the first request is used to request to obtain the identity information and geographical location of the pharmacy requesting party;
[0085] The server obtains the identity information and geographical location of the pharmacy requester input into the pharmacy request terminal from the pharmacy request terminal according to the pharmacy request terminal's response to the first request.
[0086] S202: The server determines a target prescription containing the identity information of the pharmacy requester from the multiple prescriptions according to the prescriptions of multiple patients collected in advance, and determines a drug list from the target prescription.
[0087] In the embodiment of the present application, the server determines the target prescription containing the identity information of the pharmacy requester from the multiple prescriptions according to the prescriptions of multiple patients collected in advance, which may specifically include but is not limited to the following two methods:
[0088] Mode 1: The server determines a target prescription containing the identity information of the pharmacy requester from the multiple prescriptions according to the prescriptions of multiple patients respectively received from the prescription providing terminals of each of the multiple medical institutions.
[0089] Among them, medical institutions can be prescription providers.
[0090] Method 2: The server determines a target prescription containing the identity information of the pharmacy requester from the multiple prescriptions based on the prescriptions of multiple patients retrieved from the database of each of the multiple medical institutions.
[0091] Among them, the database of the medical institution includes the prescriptions of all patients seen by the medical institution.
[0092] It should be noted that the server can identify the patient's identity information contained in the above multiple prescriptions through OCR (Optical Character Recognition, OCR) text recognition technology (that is, the server uses optical technology and computer technology to read the patient's identity information in the prescription in the form of text), and then determine the target prescription containing the identity information of the pharmacy requester from the multiple prescriptions. Finally, the list of drugs contained in the target prescription can still be read from the target prescription through OCR technology.
[0093] Specifically, when the patient's identity information is the patient's ID number, the server may obtain prescriptions of multiple patients and determine a target prescription that includes the ID number of the pharmacy requester from the multiple prescriptions.
[0094] Take for example a patient who is diabetic.
[0095] Figure 3 A medicine list is shown as an example.
[0096] like Figure 3 As shown, the drug list in the figure is a list of drugs in the prescription of a diabetic patient.
[0097] Among them, the drug list includes three drugs: gliquidone, acarbose and losartan.
[0098] It should be noted that gliquidone can be used as an oral drug for the treatment of diabetes. Acarbose can be used to stimulate pancreatic islet cells to produce insulin, increase the level of insulin itself, and play a role in lowering blood sugar in the human body. Losartan can be used for hypertensive patients with diabetes and has a good effect on lowering blood pressure.
[0099] S203. The server obtains information about idle medicines in each of the multiple pharmacies. The information about idle medicines in each pharmacy carries the geographical location of each pharmacy.
[0100] Specifically, the server may obtain information about the idle medicines in each of the multiple pharmacies in the following two ways.
[0101] Method 1: Receive the information of idle drugs sent by the drug information providing terminal of each of the multiple pharmacies respectively
[0102] Method 2: Query the information of available medicines from the database of each of the multiple pharmacies.
[0103] In the embodiment of the present application, the information on the available medicines in each of the above-mentioned pharmacies may carry the geographical location of each corresponding pharmacy, and may also carry the star rating of each corresponding pharmacy.
[0104] Among them, the star rating of the pharmacy is the level assessed by the patients who pick up medicines and the pharmacy's superior management agency based on multiple measurement indicators such as the quality of the medicines provided by the pharmacy, the environment of the pharmacy, the service attitude and enthusiasm of the pharmacy staff, etc.
[0105] The star rating of a pharmacy may include: one star, two stars, three stars, four stars and five stars. The five-star rating is the highest level of a pharmacy, which means that a five-star pharmacy can provide excellent services to patients. Correspondingly, the one-star rating is the lowest level of a pharmacy, and a one-star pharmacy provides extremely poor services to patients.
[0106] S204. The server uses the geographical location of the pharmacy requesting terminal as the center of the circle and a preset distance as the radius of the circle, and determines from multiple pharmacies at least one candidate pharmacy whose geographical location is within the coverage area of the circle and which meets the requirements of providing all the drugs listed in the drug list to the pharmacy requesting party.
[0107] Specifically, the server can determine at least one candidate pharmacy from multiple pharmacies whose geographical location is less than a preset distance from the geographical location of the pharmacy requester by taking the geographical location of the pharmacy requesting terminal as the center of a circle and the preset distance as the radius of the circle.
[0108] Figure 4 A schematic diagram exemplarily shows the relationship between the geographical location of a pharmacy and the geographical location of a pharmacy requester.
[0109] like Figure 4 As shown, point A is the geographical location of the pharmacy requester, point B is the geographical location of pharmacy B, point C is the geographical location of pharmacy C, point D is the geographical location of pharmacy D; point A is the center of circle S, and R is the radius of circle S.
[0110] from Figure 4 It can be seen that the distance between the geographical location of pharmacy B and the geographical location of the pharmacy requester, and the distance between the geographical location of pharmacy C and the geographical location of the pharmacy requester are respectively less than the preset distance R (the radius of circle S). Therefore, the server can determine pharmacy B and pharmacy C as alternative pharmacies from pharmacy B, pharmacy C, pharmacy D and pharmacy E.
[0111] S205. The server determines a target pharmacy from the candidate pharmacies according to the number of patients waiting in line to pick up medicines in the candidate pharmacies.
[0112] In an embodiment of the present application, the server can extract and perform image recognition on surveillance videos related to patients queuing for medicine in each of the above-mentioned alternative pharmacies to identify the number of patients queuing for medicine in each of the alternative pharmacies.
[0113] The server determines a target pharmacy from the alternative pharmacies according to the number of patients waiting in line to pick up medicines in the alternative pharmacies, which may include the following two situations.
[0114] Scenario 1: The server determines the target pharmacy from the candidate pharmacies based on the principle of the smallest number of patients waiting in line to pick up medicines in the candidate pharmacies. The target pharmacy is the pharmacy with the smallest number of patients waiting in line among the candidate pharmacies.
[0115] Scenario 2: If there are at least two candidate pharmacies with the same number of patients queuing and the least number of patients, the server determines the target pharmacy based on the pharmacy with the shorter distance between its geographical location and the geographical location of the pharmacy requester. The target pharmacy is the pharmacy with the least number of patients queuing among the candidate pharmacies.
[0116] S206. The server sends the target information of the target pharmacy to the pharmacy request terminal; the target information is used by the pharmacy requester to go to the target pharmacy to complete the drug collection according to the target information; the target information includes: the geographical location of the target pharmacy.
[0117] In the embodiment of the present application, the target information can be used by the pharmacy requester to go to the target pharmacy to complete the medication collection according to the target information; the target information may include: the geographical location of the target pharmacy.
[0118] Specifically, the pharmacy requester can obtain the geographical location of the target pharmacy through the pharmacy request terminal and quickly complete the drug collection at the target pharmacy. The target pharmacy is a preferred pharmacy determined based on the geographical location of the pharmacy requester and the geographical location of the pharmacy.
[0119] The target information may include: the geographical location of the target pharmacy, and also include: the available quantity of drugs listed in the drug list of the target pharmacy.
[0120] Specifically, the pharmacy requester can also obtain the available quantity of drugs listed in the drug list in the target pharmacy through the pharmacy request terminal to finally determine whether to go to the target pharmacy to complete the drug collection. It should be noted that, on the one hand, if the target pharmacy can provide a very limited number of drugs listed in the drug list, the pharmacy requester may choose to give up collecting drugs at the target pharmacy; on the other hand, if the target pharmacy can provide a large number of drugs listed in the drug list, the pharmacy requester may choose to collect drugs at the target pharmacy.
[0121] The target information may include: the geographical location of the target pharmacy, and also the star rating of the target pharmacy.
[0122] Specifically, the pharmacy requester can also obtain the star rating of the target pharmacy through the pharmacy request terminal to finally determine whether to go to the target pharmacy to complete the drug collection. It should be noted that, on the one hand, if the star rating of the target pharmacy is low (such as one star), the pharmacy requester may choose to give up picking up the drug at the target pharmacy; on the other hand, if the star rating of the target pharmacy is high (such as five stars), the pharmacy requester is very likely to choose to pick up the drug at the target pharmacy.
[0123] In summary, the pharmacy requester can ultimately decide whether to pick up the medicine at the target pharmacy based on the geographical location of the target pharmacy obtained from the pharmacy request terminal, the available number of medicines listed in the medicine list of the target pharmacy, and the star rating of the target pharmacy.
[0124] Figure 3-4 It is only used to explain the embodiments of the present application and should not be used to limit the present application.
[0125] To summarize, the server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requesting terminal of the pharmacy requester; the server determines a target prescription containing the identity information of the pharmacy requester from multiple prescriptions based on the prescriptions of multiple patients collected in advance, and determines a list of medicines from the target prescription; the server obtains information on idle medicines in each of the multiple pharmacies, and the information on idle medicines in each pharmacy carries the geographical location of each pharmacy; the server uses the geographical location of the pharmacy requesting terminal as the center of a circle and a radius of a preset distance circle to determine from the multiple pharmacies at least one alternative pharmacy whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the medicines listed in the medicine list to the pharmacy requester; the server determines a target pharmacy from the alternative pharmacies based on the number of patients queuing to pick up medicines in the alternative pharmacies; the server sends the target information of the target pharmacy to the pharmacy requesting terminal; the target information is used for the pharmacy requester to go to the target pharmacy to complete the medicine collection according to the target information; the target information includes: the geographical location of the target pharmacy. By using this application, pharmacies that provide the drugs listed in the prescription can be recommended to patients, providing a high user experience.
[0126] See also Figure 5 , is a server provided by the present application, and the server 50 can be Figure 2 Servers in the Figure 5 As shown, the server 50 includes: a first acquisition unit 501, a first determination unit 502, a second acquisition unit 503, a second determination unit 504, a third determination unit 505 and a sending unit 506. Among them:
[0127] The first acquisition unit 501 is used to acquire the identity information and geographical location of the pharmacy requester from the pharmacy requester terminal of the pharmacy requester;
[0128] A first determining unit 502 is configured to determine a target prescription containing the identity information of the pharmacy requester from the multiple prescriptions according to the prescriptions of the multiple patients collected in advance, and determine a drug list from the target prescription;
[0129] The second acquisition unit 503 is used to acquire information about the idle drugs in each of the multiple pharmacies, wherein the information about the idle drugs in each pharmacy carries the geographical location of each pharmacy;
[0130] The second determining unit 504 is configured to determine, with the geographical location of the pharmacy requesting terminal as the center of a circle and a preset distance as the radius of the circle, at least one candidate pharmacy from the plurality of pharmacies whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the drugs listed in the drug list to the pharmacy requesting party;
[0131] The third determining unit 505 is used to determine a target pharmacy from the candidate pharmacies according to the number of patients waiting in line to pick up medicines in the candidate pharmacies;
[0132] The sending unit 506 is used to send the target information of the target pharmacy to the pharmacy request terminal; the target information is used by the pharmacy requester to go to the target pharmacy to complete the drug collection according to the target information; the target information includes: the geographical location of the target pharmacy.
[0133] The first acquisition unit 501 is specifically used for:
[0134] A first pharmacy request sent by a pharmacy request terminal of a pharmacy requester is received; the first pharmacy request carries the identity information and the geographical location of the pharmacy requester.
[0135] The first acquisition unit 501 is further configured to:
[0136] receiving a second pharmacy request sent by a pharmacy request terminal of a pharmacy requester;
[0137] Sending a first request to the pharmacy requesting terminal, the first request being used to request obtaining identity information and geographic location of the pharmacy requesting party;
[0138] The identity information and geographical location of the pharmacy requester input into the pharmacy request terminal are obtained from the pharmacy request terminal according to the pharmacy request terminal's response to the first request.
[0139] The second determining unit 504 is specifically configured to:
[0140] With the geographical location of the pharmacy requesting terminal as the center of the circle and the preset distance as the radius of the circle, at least one candidate pharmacy whose geographical location is less than the preset distance from the geographical location of the pharmacy requesting party is determined from multiple pharmacies.
[0141] The third determining unit 505 is specifically configured to:
[0142] According to the principle of minimizing the number of patients waiting in line to pick up medicines in the alternative pharmacies, a target pharmacy is determined from the alternative pharmacies;
[0143] or,
[0144] If there are at least two candidate pharmacies with the same number of patients queuing and the least number of patients, the pharmacy with the shorter distance between its geographical location and the geographical location of the pharmacy requester is determined as the target pharmacy.
[0145] It should be understood that the server 50 is only an example provided in the embodiment of the present application, and the server 50 may have more or fewer components than those shown, may combine two or more components, or may have different configurations of components.
[0146] Understandable, about Figure 5 For the specific implementation of the functional blocks included in the server 50, please refer to the aforementioned Figure 2 The method embodiments described will not be described in detail here.
[0147] This application provides another server, the server 60 can be Figure 2 Servers in the Figure 6 As shown, the server 60 may include: a processor 601 , a memory 602 (one or more computer-readable storage media), and a transceiver 603 . These components may communicate over one or more communication buses 604 .
[0148] The processor 601 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.
[0149] The processor 601 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0150] Understandably, the processor 601 can be used to: obtain the identity information and geographical location of the pharmacy requester from the pharmacy requesting terminal of the pharmacy requester; determine a target prescription containing the identity information of the pharmacy requester from multiple prescriptions based on the prescriptions of multiple patients collected in advance, and determine a drug list from the target prescription; obtain information on idle drugs in each of the multiple pharmacies, and the information on idle drugs in each pharmacy carries the geographical location of each pharmacy; using the geographical location of the pharmacy requesting terminal as the center of a circle and a preset distance as the radius of the circle, determine from the multiple pharmacies at least one alternative pharmacy whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the drugs listed in the drug list to the pharmacy requester; determine a target pharmacy from the alternative pharmacies based on the number of patients queuing to pick up drugs in the alternative pharmacies.
[0151] The memory 602 is coupled to the processor 601 and can be used to store various software programs and / or multiple sets of instructions. In a specific implementation, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 602 can store an operating system (hereinafter referred to as the system), such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX. The memory 602 can also store a network communication program, which can be used to communicate with one or more additional devices, one or more terminal devices, and one or more network devices. The memory 602 can also store a user interface program, which can display the content of the application program vividly through a graphical operation interface, and receive user control operations on the application program through input controls such as menus, dialog boxes, and buttons.
[0152] It is understandable that the memory 602 can also be used to store the identity information of the pharmacy requester obtained by the processor 601, the geographical location, the prescription sent by the prescription providing terminal, and the information of the medicine containing the geographical location of the pharmacy sent by the medicine information providing terminal.
[0153] The transceiver 603 may be used to receive a prescription sent by a prescription providing terminal and information about medicines containing the geographical location of a pharmacy sent by a medicine information providing terminal.
[0154] It should be understood that the server 60 is only an example provided in the embodiment of the present application, and the server 60 may have more or fewer components than those shown, may combine two or more components, or may have different configurations of components.
[0155] Understandable, about Figure 6 For the specific implementation of the functional blocks included in the server 60, please refer to the aforementioned Figure 2 The method embodiments described will not be described in detail here.
[0156] The present application provides a computer-readable storage medium, which stores a computer program, and the computer program is implemented when executed by a processor.
[0157] The computer-readable storage medium may be an internal storage unit of the terminal described in any of the foregoing embodiments, such as a hard disk or memory of the terminal. The computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the terminal. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0158] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the above method embodiment. The computer program product can be a software installation package, and the computer includes an electronic device.
[0159] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0160] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the terminals and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0161] In the several embodiments provided in this application, it should be understood that the disclosed terminal and method can be implemented in other ways. For example, the composition and steps of each example are described. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0162] The terminal embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. There may be other divisions in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, terminals or units, or may be an electrical, mechanical or other form of connection.
[0163] The units described as separate components may or may not be physically separated, and the components displayed 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 embodiments of the present application.
[0164] 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.
[0165] 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 storage medium. Based on this understanding, the technical solution of the present application is essentially 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, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0166] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for selecting a pharmacy, It is characterized in that include: The server receives registration information of a doctor of a medical institution sent by a prescription providing terminal deployed at a prescription provider, obtains a private key set by the doctor of the medical institution for logging into the prescription providing terminal, and stores the private key for the prescription providing terminal; The server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requesting terminal of the pharmacy requester; The server logs in to prescription providing terminals deployed in various medical institutions through private keys set by doctors of various medical institutions for logging in to prescription providing terminals, queries databases of various medical institutions through prescription providing terminals of various medical institutions to obtain prescriptions of multiple patients input by doctors of various medical institutions, determines a target prescription containing the identity information of the pharmacy requester from the multiple prescriptions, and determines a drug list from the target prescription; The server obtains information about idle medicines in each of the plurality of pharmacies, wherein the information about idle medicines in each pharmacy carries the geographical location of each pharmacy; The server uses the geographical location of the pharmacy request terminal as the center of a circle and a preset distance as the radius of the circle, and determines from the plurality of pharmacies at least one candidate pharmacy whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the drugs listed in the drug list to the pharmacy requester; The server determines a target pharmacy from the candidate pharmacies according to the principle that the number of patients queuing to pick up medicines in the candidate pharmacies is the smallest, and the target pharmacy is the pharmacy with the smallest number of patients queuing in the candidate pharmacies; Alternatively, if there are two pharmacies among the candidate pharmacies with the same number of patients waiting in line and the least number of patients, the server determines the pharmacy as the target pharmacy based on the pharmacy whose geographical location is shorter than the geographical location of the pharmacy requester; The server sends the target information of the target pharmacy to the pharmacy request terminal; The target information is used by the pharmacy requester to go to the target pharmacy to complete the drug collection according to the target information; The target information includes: the geographical location of the target pharmacy.
2. The method according to claim 1, It is characterized in that The server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requester terminal of the pharmacy requester, including: The server receives a first pharmacy request sent by a pharmacy request terminal of a pharmacy requester; the first pharmacy request carries the identity information and the geographical location of the pharmacy requester.
3. The method according to claim 1, It is characterized in that The server obtains the identity information and geographical location of the pharmacy requester from the pharmacy requester terminal of the pharmacy requester, including: The server receives a second pharmacy request sent by a pharmacy request terminal of a pharmacy requester; The server sends a first request to the pharmacy request terminal, where the first request is used to request to obtain the identity information and geographical location of the pharmacy requester; The server obtains the identity information and geographical location of the pharmacy requester input into the pharmacy request terminal from the pharmacy request terminal according to the pharmacy request terminal's response to the first request.
4. The method according to claim 1, It is characterized in that The server uses the geographical location of the pharmacy request terminal as the center of a circle and a preset distance as the radius of the circle, and determines from the plurality of pharmacies at least one candidate pharmacy whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the drugs listed in the drug list to the pharmacy requester, including: The server uses the geographical location of the pharmacy requesting terminal as the center of a circle and a preset distance as the radius of the circle, and determines from the multiple pharmacies at least one candidate pharmacy whose geographical location is less than the preset distance from the geographical location of the pharmacy requesting party.
5. A server, It is characterized in that include: A first acquisition unit is used to acquire the identity information and geographical location of the pharmacy requester from the pharmacy requester terminal of the pharmacy requester; A first determining unit is used to receive registration information of a doctor of a medical institution sent by a prescription providing terminal deployed at a prescription provider, obtain a private key set by the doctor of the medical institution for logging into the prescription providing terminal, and store the private key for the prescription providing terminal; The first determining unit is further configured to log in to prescription providing terminals deployed in various medical institutions through private keys set by doctors of the various medical institutions for logging in to prescription providing terminals, query the database of the various medical institutions through the prescription providing terminals of the various medical institutions to obtain prescriptions of multiple patients input by the doctors of the various medical institutions, determine a target prescription containing the identity information of the pharmacy requester from the multiple prescriptions, and determine a drug list from the target prescription; A second acquisition unit is used to acquire information about idle drugs in each of the multiple pharmacies, wherein the information about idle drugs in each pharmacy carries the geographical location of each pharmacy; A second determining unit is configured to determine, with the geographical location of the pharmacy requesting terminal as the center of a circle and a preset distance as the radius of the circle, at least one candidate pharmacy from the plurality of pharmacies whose geographical location is within the coverage area of the circle and satisfies the requirement of providing all the drugs listed in the drug list to the pharmacy requesting party; A third determining unit is used to determine a target pharmacy from the candidate pharmacies according to the principle that the number of patients queuing to pick up medicines in the candidate pharmacies is the smallest, and the target pharmacy is the pharmacy with the smallest number of patients queuing in the candidate pharmacies; Alternatively, if there are two pharmacies among the candidate pharmacies with the same number of patients waiting in line and the least number of patients, the pharmacy with the shorter distance between its geographical location and the geographical location of the pharmacy requester is determined as the target pharmacy; A sending unit, configured to send the target information of the target pharmacy to the pharmacy request terminal; The target information is used by the pharmacy requester to go to the target pharmacy to complete the drug collection according to the target information; The target information includes: the geographical location of the target pharmacy.
6. The server according to claim 5, It is characterized in that The second determining unit is specifically configured to: Taking the geographical location of the pharmacy requesting terminal as the center of a circle and a preset distance as the radius of the circle, at least one candidate pharmacy is determined from the multiple pharmacies whose geographical location is less than the preset distance from the geographical location of the pharmacy requesting party.
7. A server, It is characterized in that include: A transceiver, a memory, and a processor coupled to the memory, wherein the transceiver, the memory, and the processor coupled to the memory are interconnected, wherein the transceiver is used to perform a receiving or sending action, the memory is used to store an implementation code of a pharmacy selection method, and the processor is used to call the implementation code stored in the memory, that is, to execute the pharmacy selection method described in any one of claims 1 to 4.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the pharmacy selection method according to any one of claims 1 to 4.
