Medicine taking method and device
By using servers in Internet hospitals to send electronic prescriptions to physical pharmacies to generate drug pickup codes, the problem of excessively long time for drug pickup in Internet hospitals is solved, the rapid and reliable delivery of drugs is achieved, and the impact of extreme weather on patients' condition is reduced. .
Patent Information
- Application Number
- CN202110608013.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-01
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2041-06-01
AI Technical Summary
The time for taking medicines in Internet hospitals is too long, especially in extreme weather conditions, express delivery time cannot be guaranteed, which may have an adverse impact on the patient's condition.
The server receives the electronic prescription instructions sent by the patient terminal, sends them to the physical pharmacy terminal to generate a drug collection code, and sends the drug collection code to the patient terminal. The user can directly go to the pharmacy to collect the medicine to avoid express delivery of drugs.
It reduces the time for drug pickup, improves the reliability and efficiency of drug delivery, and ensures that patients can obtain the required drugs in a timely manner.
Smart Images

Figure CN113160929B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a medicine taking method and device. Background Art
[0002] The development of Internet technology has opened up a second space for human life, promoting changes in production relations in various fields of society. Applications supported by the Internet have gradually penetrated into various fields of social life. Internet medical care is a new application of the Internet in the medical industry. Among them, Internet hospitals, as one of the carriers and platforms of Internet medical care, can use the Internet, artificial intelligence, big data and other technologies to build a new medical service model.
[0003] In related technologies, Internet medical care can provide convenient medical services through the Internet. Patients do not need to queue up to register for medical treatment at the hospital, reducing the risk of cross infection during medical treatment. Patients can consult in Internet hospitals. After the consultation, the doctor can issue an electronic prescription to the patient. At the same time, the Internet hospital will express the medicines from the online pharmacy to the patient according to the electronic prescription.
[0004] However, since the drugs take too long to be delivered by express, if there is extreme weather such as rain or snow, the delivery time cannot be guaranteed, which may have an adverse effect on the patient's condition. Therefore, the drug collection time of existing Internet hospitals is too long. Summary of the invention
[0005] The embodiments of the present application provide a method and device for obtaining medicines to solve the technical problem of long medicine obtaining time in Internet hospitals in the prior art.
[0006] In a first aspect, an embodiment of the present application provides a method for obtaining medicines, which is applied to a server, and the method includes:
[0007] Receiving first indication information sent by the first terminal, where the first indication information is used to indicate a first medication collection method for the electronic prescription;
[0008] sending the electronic prescription to a second terminal according to the first instruction information;
[0009] receiving a drug collection code of the electronic prescription sent by the second terminal, where the drug collection code of the electronic prescription is used to verify the drug collection behavior of the user;
[0010] The drug collection code of the electronic prescription is sent to the first terminal.
[0011] In an optional implementation manner, after sending the electronic prescription to the second terminal, the method further includes:
[0012] According to the quantity of the medicine in the electronic prescription, the medicine inventory of the pharmacy corresponding to the second terminal is reserved.
[0013] In an optional implementation, after sending the drug collection code of the electronic prescription to the first terminal, the method further includes:
[0014] receiving first feedback information sent by the second terminal, where the first feedback information is used to indicate that the electronic prescription has been completed;
[0015] The quantity of the medicine reserved by the electronic prescription is deducted from the medicine inventory of the pharmacy corresponding to the second terminal.
[0016] In an optional implementation manner, before sending the drug collection code of the electronic prescription to the first terminal, the method further includes:
[0017] Obtaining payment information of the electronic prescription;
[0018] The sending of the drug collection code of the electronic prescription to the first terminal includes:
[0019] If the electronic prescription is paid for, the drug collection code of the electronic prescription is sent to the first terminal.
[0020] In an optional implementation manner, after obtaining the payment information of the electronic prescription, the method further includes:
[0021] If the electronic prescription has not been paid for, a prompt message is sent to the first terminal, where the prompt message is used to prompt the user to pay for the electronic prescription.
[0022] In an optional implementation manner, the first indication information further includes an identifier of the second terminal, and sending the electronic prescription to the second terminal includes:
[0023] The electronic prescription is sent to the second terminal according to the first medication collection method and the identification of the second terminal.
[0024] In an optional implementation manner, before receiving the first indication information sent by the first terminal, the method further includes:
[0025] receiving a consultation request sent by the first terminal, wherein the consultation request includes an identifier of a target doctor;
[0026] Determining a third terminal corresponding to the target doctor according to the identifier of the target doctor;
[0027] A session connection between the first terminal and the third terminal is established.
[0028] In an optional implementation manner, after establishing the session connection between the first terminal and the third terminal, the method further includes:
[0029] receiving the electronic prescription sent by a third terminal;
[0030] The electronic prescription is sent to the first terminal.
[0031] In an optional embodiment, the first method of obtaining medicines is to obtain medicines offline.
[0032] In a second aspect, an embodiment of the present application provides a method for taking medicine, which is applied to a first terminal, and the method includes:
[0033] Sending first indication information to the server, where the first indication information is used to indicate a first medication collection method for the electronic prescription;
[0034] Receiving the drug collection code of the electronic prescription sent by the server, where the drug collection code of the electronic prescription is used to verify the user's drug collection behavior;
[0035] Display the drug collection code of the electronic prescription.
[0036] In a third aspect, an embodiment of the present application provides a method for taking medicine, which is applied to a second terminal, and the method includes:
[0037] Receiving electronic prescriptions sent by a server;
[0038] Generate a drug collection code for the electronic prescription, where the drug collection code is used to verify the user's drug collection behavior;
[0039] Sending the drug collection code of the electronic prescription to the server;
[0040] Obtaining a medicine collection code displayed on the first terminal;
[0041] The medicine collection code displayed on the first terminal is matched with the medicine collection code of the electronic prescription.
[0042] In a fourth aspect, an embodiment of the present application provides a medicine dispensing device, the device comprising:
[0043] A receiving module, used for receiving first indication information sent by a first terminal, wherein the first indication information is used for indicating a first medication collection method of an electronic prescription;
[0044] A sending module, configured to send the electronic prescription to a second terminal according to the first indication information;
[0045] The receiving module is further used to receive the drug collection code of the electronic prescription sent by the second terminal, and the drug collection code of the electronic prescription is used to verify the user's drug collection behavior;
[0046] The sending module is also used to send the drug collection code of the electronic prescription to the first terminal.
[0047] In an optional implementation, the device further includes:
[0048] The processing module is also used to pre-occupy the drug inventory of the pharmacy corresponding to the second terminal according to the quantity of the drugs in the electronic prescription.
[0049] In an optional implementation manner, the receiving module is further used to receive first feedback information sent by the second terminal, where the first feedback information is used to indicate that the electronic prescription has been completed;
[0050] The processing module is further used to deduct the quantity of the medicine reserved by the electronic prescription from the medicine inventory of the pharmacy corresponding to the second terminal.
[0051] In an optional implementation, the processing module is further used to obtain payment information of the electronic prescription;
[0052] The processing module is specifically configured to send the drug collection code of the electronic prescription to the first terminal if the electronic prescription has been paid for.
[0053] In an optional implementation, the sending module is further used to send a prompt message to the first terminal if the electronic prescription has not been paid for, and the prompt message is used to prompt the user to pay for the electronic prescription.
[0054] In an optional implementation, the first indication information also includes an identifier of the second terminal, and the sending module is specifically configured to send the electronic prescription to the second terminal according to the first medication collection method and the identifier of the second terminal.
[0055] In an optional implementation, before receiving the first indication information sent by the first terminal, the receiving module is further configured to receive a consultation request sent by the first terminal, wherein the consultation request includes an identifier of a target doctor;
[0056] The processing module is further used to determine a third terminal corresponding to the target doctor according to the identifier of the target doctor; and establish a session connection between the first terminal and the third terminal.
[0057] In an optional implementation manner, the receiving module is further used to receive the electronic prescription sent by a third terminal;
[0058] The sending module is further used to send the electronic prescription to the first terminal.
[0059] In an optional embodiment, the first method of obtaining medicines is to obtain medicines offline.
[0060] In a fifth aspect, an embodiment of the present application provides a medicine dispensing device, the device comprising:
[0061] A sending module, used for sending first indication information to a server, wherein the first indication information is used for indicating a first medication collection method of an electronic prescription;
[0062] A receiving module, used for receiving the drug collection code of the electronic prescription sent by the server, wherein the drug collection code of the electronic prescription is used for verifying the drug collection behavior of the user;
[0063] The display module is used to display the drug collection code of the electronic prescription.
[0064] In a sixth aspect, an embodiment of the present application provides a medicine dispensing device, the device comprising:
[0065] A receiving module, used for receiving an electronic prescription sent by a server;
[0066] A processing module, used to generate a drug collection code for the electronic prescription, wherein the drug collection code for the electronic prescription is used to verify the user's drug collection behavior;
[0067] A sending module, used for sending the drug collection code of the electronic prescription to the server;
[0068] The processing module is further used to obtain the medicine collection code displayed by the first terminal; and match the medicine collection code displayed by the first terminal with the medicine collection code of the electronic prescription.
[0069] In a seventh aspect, the present application further provides an electronic device, including:
[0070] Processor; and
[0071] a memory for storing a computer program for the processor;
[0072] The processor is configured to implement any possible method in the first aspect by executing the computer program.
[0073] In an eighth aspect, the present application further provides an electronic device, including:
[0074] Processor; and
[0075] a memory for storing a computer program for the processor;
[0076] The processor is configured to implement any possible method in the first aspect or the second aspect by executing the computer program.
[0077] In a ninth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements any one of the methods described in the first aspect.
[0078] In the tenth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in any one of the first aspect or the second aspect.
[0079] In an eleventh aspect, the present invention further provides a non-transitory computer-readable storage medium storing computer instructions, on which a computer program is stored, and when the computer program is executed by a processor, any possible method in the first aspect is implemented.
[0080] In a twelfth aspect, the present invention further provides a non-transitory computer-readable storage medium storing computer instructions, on which a computer program is stored, and when the computer program is executed by a processor, any possible method in the first aspect or the second aspect is implemented.
[0081] In the medication collection method and device provided in the embodiment of the present application, the server first receives the first indication information sent by the first terminal, and the first indication information is used to indicate the first medication collection method of the electronic prescription. Subsequently, the server sends the electronic prescription to the second terminal according to the first indication information. Finally, the server receives the medication collection code of the electronic prescription sent by the second terminal, and the medication collection code of the electronic prescription is used to verify the user's medication collection behavior, and sends the medication collection code of the electronic prescription to the first terminal. In this way, users can complete offline medication collection through the medication collection code of the electronic prescription, avoiding the express delivery of the medicine and reducing the time for medication collection. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0083] Figure 1 A schematic diagram of an application scenario of a method for taking medicine provided in an embodiment of the present application;
[0084] Figure 2 A signaling interaction diagram of a method for taking medicine provided in an embodiment of the present application;
[0085] Figure 3 A schematic diagram of the principle of a method for taking medicine provided in an embodiment of the present application;
[0086] Figure 4A signaling interaction diagram of another method for taking medicine provided in an embodiment of the present application;
[0087] Figure 5 A signaling interaction diagram of another method for taking medicine provided in an embodiment of the present application;
[0088] Figure 6 A schematic diagram of the structure of a medicine dispensing device provided in an embodiment of the present application;
[0089] Figure 7 A schematic diagram of the structure of another medicine dispensing device provided in an embodiment of the present application;
[0090] Figure 8 A schematic diagram of the structure of another medicine dispensing device provided in an embodiment of the present application;
[0091] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0092] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0093] The development of Internet technology has opened up a second space for human life, promoting changes in production relations in various fields of society. Applications supported by the Internet have gradually penetrated into various fields of social life. Internet medical care is a new application of the Internet in the medical industry. Among them, Internet hospitals, as one of the carriers and platforms of Internet medical care, can use the Internet, artificial intelligence, big data and other technologies to build a new medical service model.
[0094] In related technologies, Internet medical care can provide convenient medical services through the Internet. Patients do not need to queue up to register for medical treatment at the hospital, reducing the risk of cross infection during medical treatment. Patients can consult in Internet hospitals. After the consultation, the doctor can issue an electronic prescription to the patient. At the same time, the Internet hospital will express the medicines from the online pharmacy to the patient according to the electronic prescription.
[0095] However, since the drugs take too long to be delivered by express, if there is extreme weather such as rain or snow, the delivery time cannot be guaranteed, which may have an adverse effect on the patient's condition. Therefore, the drug collection time of existing Internet hospitals is too long.
[0096] To solve the above problems, the embodiment of the present application provides a method for picking up medicine, in which the server sends the electronic prescription to the terminal of the physical pharmacy, and then the terminal of the physical pharmacy generates a medicine picking code. After obtaining the medicine picking code, the server can send the medicine picking code to the patient terminal, so that the patient can directly go to the physical pharmacy to pick up the medicine according to the medicine picking code, thereby avoiding the express delivery of the medicine and reducing the time for picking up the medicine.
[0097] The following describes the application scenarios of the data processing method involved in this application.
[0098] Figure 1 This is a schematic diagram of an application scenario of a method for taking medicine provided in an embodiment of the present application. Figure 1 As shown, when a patient needs to consult, the first terminal 101 can be used to send a consultation request to the server 102. After receiving the consultation request, the server 102 can use the third terminal 103 of the target doctor for the patient's consultation, and establish a session connection between the first terminal 101 and the third terminal 103. Subsequently, when the consultation is over, the server 102 can receive the electronic prescription sent by the third terminal 103, and send the electronic prescription to the first terminal 101, and the first terminal 101 determines the way to pick up the medicine. If the server 102 receives the first indication information sent by the first terminal to indicate offline collection of medicine, the server 102 can send the electronic prescription to the second terminal 104 of the pharmacy selected by the patient, and the second terminal 104 generates the medicine collection code corresponding to the electronic prescription. Subsequently, the second terminal 104 sends the medicine collection code corresponding to the electronic prescription to the server 102, and the server 102 sends the medicine collection code corresponding to the electronic prescription to the first terminal 101, so that the user can use the medicine collection code on the first terminal 101 to go to the corresponding pharmacy to pick up the medicine.
[0099] Among them, the terminal device 101 can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in a smart home, etc. In the embodiment of the present application, the device for realizing the function of the terminal can be a terminal, or a device that can support the terminal to realize the function, such as a chip system, which can be installed in the terminal. In the embodiment of the present application, the chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0100] The server 102 may be, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of computers or network servers based on cloud computing. Cloud computing is a type of distributed computing, a super virtual computer consisting of a group of loosely coupled computers.
[0101] It should be understood that the application scenario of the technical solution of this application can be Figure 1 The present invention is applicable to the drug collection scenario in the present invention, but is not limited to this, and can also be applied to other scenarios where drug collection is required.
[0102] It can be understood that the above-mentioned medicine dispensing method can be implemented by the medicine dispensing device provided in the embodiment of the present application. The medicine dispensing device can be part or all of a certain device, such as a server or a chip of a server.
[0103] The following takes a server and a terminal device integrated or installed with relevant execution codes as an example to describe the technical solution of the embodiment of the present application in detail with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0104] Figure 2 A signaling interaction diagram of a drug collection method provided in an embodiment of the present application, Figure 3 This is a schematic diagram of the principle of a method for obtaining medicine provided in an embodiment of the present application. This embodiment relates to the specific process of how to complete the medicine obtaining process in an Internet hospital. Figure 2 and Figure 3 As shown, the method includes:
[0105] S201. A first terminal sends first indication information to a server, where the first indication information is used to indicate a first medication collection method of an electronic prescription.
[0106] Among them, the first way to get medicine is offline.
[0107] It should be understood that the first terminal involved in the embodiment of the present application may be a terminal used by the patient. After the patient obtains the electronic prescription for this consultation through the first terminal, the patient may send first indication information to the server to indicate that the electronic prescription is to be picked up offline.
[0108] In some optional implementations, the first terminal may also send a second indication message to the server to indicate that the drug pickup method of the electronic prescription is online express delivery. Accordingly, the server may push the electronic prescription to the corresponding online prescription so that the online prescription can be delivered to the patient through the logistics system according to the drugs in the electronic prescription.
[0109] In some optional implementations, before the first terminal sends the first indication information to the server, a consultation request may be sent to the first terminal, the consultation request including the identifier of the target doctor. Subsequently, the server determines the third terminal corresponding to the target doctor according to the identifier of the target doctor, thereby establishing a session connection between the first terminal and the third terminal.
[0110] It should be understood that the third terminal provided in the embodiment of the present application can be a terminal used by the target doctor, can belong to the public Internet hospital service system, or can belong to the public Internet hospital service, and the embodiment of the present application does not impose any restrictions on this.
[0111] Among them, for the public domain Internet hospital service system, when a patient chooses a doctor who has already settled in the public domain Internet hospital platform for consultation, the public domain Internet hospital service system will complete the operations of online consultation, prescription generation, review, payment, and prescription generation.
[0112] For the public Internet hospital service system, if the patient accesses the public account of a hospital or uses the consultation application, the Internet hospital backend service will request the third-party hospital's in-hospital service to complete the registration, consultation, prescription generation, and review operations, and return the review results to the Internet hospital backend service.
[0113] In some optional implementations, after the consultation is completed, the third terminal may send the electronic prescription of this consultation to the server, so that the server sends the electronic prescription to the first terminal, so that the patient can determine the medicines that need to be purchased for this consultation.
[0114] S202: The server sends the electronic prescription to the second terminal according to the first instruction information.
[0115] In this step, after receiving the first indication information sent by the first terminal, the server may send the electronic prescription to the second terminal according to the first indication information.
[0116] It should be noted that the embodiments of the present application do not limit how to determine the second terminal. In some embodiments, the first indication information may also include an identifier of the prescription, or an identifier of the second terminal corresponding to the pharmacy, so that the server can determine the pharmacy selected by the patient for offline medication collection, thereby sending the electronic prescription to the second terminal. In other embodiments, the server can obtain the location information of the first terminal, and assign the nearest pharmacy to the patient based on the location information of the first terminal, and then send the electronic prescription to the second terminal corresponding to the assigned pharmacy.
[0117] It should be understood that the embodiments of the present application do not limit the pharmacy corresponding to the second terminal. In some embodiments, it can be an offline entity pharmacy that has signed an agreement with the Internet hospital. The server can store relevant information about the pharmacy corresponding to the second terminal so that the appropriate pharmacy can be assigned when the patient chooses to pick up the medicine offline.
[0118] Optionally, the server may synchronize drug inventory data of the pharmacy corresponding to the second terminal to ensure that the drug in the electronic prescription is stored in the pharmacy to which the server sends the electronic prescription.
[0119] In some embodiments, after sending the electronic prescription to the second terminal, the server can also pre-occupy the drug inventory of the pharmacy corresponding to the second terminal according to the quantity of the drug in the electronic prescription. By pre-occupying the drug inventory of the pharmacy, it is avoided to sell drugs repeatedly when the inventory is insufficient.
[0120] For example, if the drug inventory of pharmacy 1 includes 3 pieces of drug A, 2 pieces of drug B, and 3 pieces of drug C, and the electronic prescription includes 1 piece of drug A and 2 pieces of drug B, after the server sends the electronic prescription to the second terminal corresponding to pharmacy 1, the drug inventory of pharmacy 1 can be pre-occupied, so that the available inventory of pharmacy 1 is changed to 2 pieces of drug A, 0 pieces of drug B, and 3 pieces of drug C. When the electronic prescription containing drug B appears again, the server can allocate it to other pharmacies instead of pharmacy 1.
[0121] S203. The second terminal generates a drug collection code for the electronic prescription. The drug collection code for the electronic prescription is used to verify the user's drug collection behavior.
[0122] In this step, after the second terminal receives the electronic prescription sent by the server, a drug collection code for the electronic prescription can be generated.
[0123] It should be understood that the embodiment of the present application does not limit how to generate the drug collection code of the electronic prescription, and a common two-dimensional code generation method can be used. In some embodiments, the drug collection code of the electronic prescription can include information of the electronic prescription, consultation information, verification information, etc.
[0124] S204: The second terminal sends the drug collection code of the electronic prescription to the server.
[0125] S205. The server sends the drug collection code of the electronic prescription to the first terminal.
[0126] In this step, after the server receives the drug pickup code of the electronic prescription sent by the second terminal, it can send the drug pickup code of the electronic prescription to the first terminal so that the patient can pick up the medicine offline at the corresponding pharmacy through the drug pickup code.
[0127] In some embodiments, after the patient arrives at the pharmacy corresponding to the second terminal, the patient can display the drug collection code of the electronic prescription on the first terminal so that the second terminal can obtain the drug collection code displayed by the first terminal by scanning. Subsequently, the second terminal verifies the drug collection code displayed by the first terminal and determines the electronic prescription corresponding to the drug collection code displayed by the first terminal. If the verification is correct, the pharmacy can provide the patient with the medicine in the electronic prescription.
[0128] In some embodiments, the server may also obtain payment information of the electronic prescription before sending the drug pickup code of the electronic prescription to the first terminal. If the electronic prescription has been paid, the drug pickup code of the electronic prescription is sent to the first terminal. If the electronic prescription has not been paid, a prompt message is sent to the first terminal, and the prompt message is used to prompt the user to pay the electronic prescription.
[0129] In other embodiments, the patient may also send a third instruction message to the server through the first terminal, and the third instruction message is used to instruct the patient to choose offline payment. Accordingly, after the patient arrives at the pharmacy corresponding to the second terminal and verifies that the drug collection code is correct, he or she may pay the cost of the drug in the electronic prescription offline.
[0130] In some embodiments, if the second terminal completes the matching of the drug collection code displayed by the first terminal and the drug collection code of the electronic prescription, the pharmacy can provide the patient with the drug prescribed by the electronic prescription. After providing the drug, the second terminal can send a first feedback message to the server, and the first feedback message is used to indicate that the electronic prescription has completed the drug collection. Subsequently, the server can deduct the amount of the drug reserved by the electronic prescription from the drug inventory of the pharmacy corresponding to the second terminal.
[0131] In the medication collection method provided in the embodiment of the present application, the server first receives the first indication information sent by the first terminal, and the first indication information is used to indicate the first medication collection method of the electronic prescription. Subsequently, the server sends the electronic prescription to the second terminal according to the first indication information. Finally, the server receives the medication collection code of the electronic prescription sent by the second terminal, and the medication collection code of the electronic prescription is used to verify the user's medication collection behavior, and sends the medication collection code of the electronic prescription to the first terminal. In this way, users can complete offline medication collection through the medication collection code of the electronic prescription, avoiding the express delivery of the medicine and reducing the medication collection time.
[0132] Based on the above embodiments, Figure 4 This is a signaling interaction diagram of another method for obtaining medicine provided in an embodiment of the present application. This embodiment relates to the specific process of how the server manages the medicine inventory during the medicine obtaining process. Figure 4 As shown, the method includes:
[0133] S301. A first terminal sends first indication information to a server, where the first indication information is used to indicate a first medication collection method of an electronic prescription.
[0134] S302: The server sends the electronic prescription to the second terminal according to the first instruction information.
[0135] S303: The second terminal generates a drug collection code for the electronic prescription, and the drug collection code for the electronic prescription is used to verify the user's drug collection behavior.
[0136] S304: The second terminal sends the drug collection code of the electronic prescription to the server.
[0137] S305. The server obtains payment information of the electronic prescription.
[0138] S306. The server determines whether payment is completed based on the payment information of the electronic prescription.
[0139] If yes, execute step S308, if no, execute step S307.
[0140] S307. The server sends a prompt message to the first terminal, where the prompt message is used to prompt the user to pay for the electronic prescription.
[0141] S308. The server sends the drug collection code of the electronic prescription to the first terminal.
[0142] S309: The server reserves the medicine inventory of the pharmacy corresponding to the second terminal according to the quantity of the medicine in the electronic prescription.
[0143] S310. The server receives first feedback information sent by the second terminal, where the first feedback information is used to indicate that the electronic prescription has been completed.
[0144] S311. The server deducts the quantity of the medicine reserved in the electronic prescription from the medicine inventory of the pharmacy corresponding to the second terminal.
[0145] The technical terms, technical effects, technical features, and optional implementation methods of S301-S311 can be referred to Figure 2 It is understood that S201-S205 shown in the figure will not be repeated here for the repeated contents.
[0146] Based on the above embodiments, Figure 5 This is a signaling interaction diagram of another method of taking medicine provided in the embodiment of the present application. This embodiment involves a complete consultation process. Figure 5 As shown, the method includes:
[0147] S401, the first terminal sends a consultation request to the server, where the consultation request includes an identifier of a target doctor;
[0148] S402: The server determines the third terminal corresponding to the target doctor according to the identifier of the target doctor.
[0149] S403: The server establishes a session connection between the first terminal and the third terminal.
[0150] S404: The third terminal sends an electronic prescription to the server.
[0151] S405: The server sends the electronic prescription to the first terminal.
[0152] S406. The first terminal sends first indication information to the server, where the first indication information is used to indicate a first medication collection method of the electronic prescription.
[0153] S407: The server sends the electronic prescription to the second terminal according to the first instruction information.
[0154] S408. The second terminal generates a drug collection code for the electronic prescription, and the drug collection code for the electronic prescription is used to verify the user's drug collection behavior.
[0155] S409: The second terminal sends the drug collection code of the electronic prescription to the server.
[0156] S410. The server sends the drug collection code of the electronic prescription to the first terminal.
[0157] The technical terms, technical effects, technical features, and optional implementation methods of S401-S410 can be found in Figure 2 It is understood that S201-S205 shown in the figure will not be repeated here for the repeated contents.
[0158] In the medication collection method provided in the embodiment of the present application, the server first receives the first indication information sent by the first terminal, and the first indication information is used to indicate the first medication collection method of the electronic prescription. Subsequently, the server sends the electronic prescription to the second terminal according to the first indication information. Finally, the server receives the medication collection code of the electronic prescription sent by the second terminal, and the medication collection code of the electronic prescription is used to verify the user's medication collection behavior, and sends the medication collection code of the electronic prescription to the first terminal. In this way, users can complete offline medication collection through the medication collection code of the electronic prescription, avoiding the express delivery of the medicine and reducing the medication collection time.
[0159] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.
[0160] Figure 6The schematic diagram of the structure of a drug dispensing device provided in an embodiment of the present application. The drug dispensing device can be implemented by software, hardware, or a combination of both, such as the server or server chip in the above embodiment, to execute the drug dispensing method in the above embodiment. Figure 6 As shown, the medicine dispensing device 500 includes:
[0161] A receiving module 501 is used to receive first indication information sent by a first terminal, where the first indication information is used to indicate a first medication collection method of an electronic prescription;
[0162] A sending module 502, configured to send the electronic prescription to the second terminal according to the first instruction information;
[0163] The receiving module 501 is further used to receive the drug collection code of the electronic prescription sent by the second terminal, and the drug collection code of the electronic prescription is used to verify the user's drug collection behavior;
[0164] The sending module 502 is also used to send the drug collection code of the electronic prescription to the first terminal.
[0165] In an optional implementation, the device further includes:
[0166] The processing module 503 is further used to pre-occupy the drug inventory of the pharmacy corresponding to the second terminal according to the quantity of the drugs in the electronic prescription.
[0167] In an optional implementation, the receiving module 501 is further used to receive first feedback information sent by the second terminal, where the first feedback information is used to indicate that the electronic prescription has been completed;
[0168] The processing module 503 is further used to deduct the quantity of the medicine reserved in the electronic prescription from the medicine inventory of the pharmacy corresponding to the second terminal.
[0169] In an optional implementation, the processing module 503 is further used to obtain payment information of the electronic prescription;
[0170] The processing module 503 is specifically configured to send the drug collection code of the electronic prescription to the first terminal if the electronic prescription payment is completed.
[0171] In an optional implementation, after obtaining the payment information of the electronic prescription, the sending module 502 is further used to send a prompt message to the first terminal if the electronic prescription has not been paid, and the prompt message is used to prompt the user to pay the electronic prescription.
[0172] In an optional implementation, the first indication information also includes an identifier of the second terminal, and the sending module 502 is specifically configured to send the electronic prescription to the second terminal according to the first medication collection method and the identifier of the second terminal.
[0173] In an optional implementation manner, the receiving module 501 is further configured to receive a consultation request sent by the first terminal, wherein the consultation request includes an identifier of a target doctor;
[0174] The processing module 503 is further used to determine the third terminal corresponding to the target doctor according to the identifier of the target doctor; and establish a session connection between the first terminal and the third terminal.
[0175] In an optional implementation, the receiving module 501 is further used to receive an electronic prescription sent by a third terminal;
[0176] The sending module 502 is further configured to send the electronic prescription to the first terminal.
[0177] In an optional implementation, the first method of picking up medicine is offline picking up medicine.
[0178] Need to explain, Figure 6 The medicine dispensing device provided in the illustrated embodiment can be used to execute the method provided in any of the above embodiments. The specific implementation method and technical effect are similar and will not be described in detail here.
[0179] Figure 7 This is a schematic diagram of the structure of another medicine dispensing device provided in an embodiment of the present application. The medicine dispensing device can be implemented by software, hardware, or a combination of both, such as the first terminal or the chip of the first terminal in the above embodiment to execute the medicine dispensing method in the above embodiment. Figure 7 As shown, the medicine dispensing device 600 includes:
[0180] A sending module 601 is used to send first indication information to a server, where the first indication information is used to indicate a first medication collection method of an electronic prescription;
[0181] The receiving module 602 is used to receive the drug collection code of the electronic prescription sent by the server, and the drug collection code of the electronic prescription is used to verify the drug collection behavior of the user;
[0182] The display module 603 is used to display the drug collection code of the electronic prescription.
[0183] Need to explain, Figure 7 The medicine dispensing device provided in the illustrated embodiment can be used to execute the method provided in any of the above embodiments. The specific implementation method and technical effect are similar and will not be described in detail here.
[0184] Figure 8 This is a schematic diagram of the structure of another medicine dispensing device provided in an embodiment of the present application. The medicine dispensing device can be implemented by software, hardware, or a combination of both, such as the second terminal or the chip of the second terminal in the above embodiment to execute the medicine dispensing method in the above embodiment. Figure 8 As shown, the medicine dispensing device 700 includes:
[0185] The receiving module 701 is used to receive the electronic prescription sent by the server;
[0186] Processing module 702, used to generate a drug collection code for an electronic prescription, where the drug collection code for the electronic prescription is used to verify the user's drug collection behavior;
[0187] The sending module 703 is used to send the drug collection code of the electronic prescription to the server;
[0188] The processing module 702 is further used to obtain the medicine collection code displayed on the first terminal; and match the medicine collection code displayed on the first terminal with the medicine collection code of the electronic prescription.
[0189] Need to explain, Figure 8 The medicine dispensing device provided in the illustrated embodiment can be used to execute the method provided in any of the above embodiments. The specific implementation method and technical effect are similar and will not be described in detail here.
[0190] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device may include: at least one processor 801 and a memory 802 . Fig. 9 An electronic device is shown using a processor as an example.
[0191] The memory 802 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions.
[0192] The memory 802 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0193] The processor 801 is used to execute the computer execution instructions stored in the memory 802 to implement the above-mentioned drug taking method;
[0194] The processor 801 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0195] Optionally, in a specific implementation, if the communication interface, the memory 802 and the processor 801 are implemented independently, the communication interface, the memory 802 and the processor 801 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
[0196] Optionally, in a specific implementation, if the communication interface, the memory 802 and the processor 801 are integrated on a chip, the communication interface, the memory 802 and the processor 801 can communicate through an internal interface.
[0197] The present application embodiment also provides a chip, including a processor and an interface. The interface is used to input and output data or instructions processed by the processor. The processor is used to execute the method provided in the above method embodiment. The chip can be used in a medicine dispensing device.
[0198] The present application also provides a computer-readable storage medium, which may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores program information, and the program information is used for the above-mentioned drug collection method.
[0199] The embodiment of the present application also provides a program, which, when executed by a processor, is used to execute the drug taking method provided in the above method embodiment.
[0200] The embodiment of the present application also provides a program product, such as a computer-readable storage medium, in which instructions are stored. When the program product is run on a computer, the computer executes the drug extraction method provided by the above method embodiment.
[0201] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0202] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for taking medicine, characterized in that: Applied to a server, the method comprises: Receiving first indication information sent by the first terminal, where the first indication information is used to indicate a first medication collection method for the electronic prescription; sending the electronic prescription to a second terminal according to the first instruction information; receiving a drug collection code of the electronic prescription sent by the second terminal, where the drug collection code of the electronic prescription is used to verify the drug collection behavior of the user, and the drug collection code is generated by the second terminal; Sending the drug collection code of the electronic prescription to the first terminal; After sending the electronic prescription to the second terminal, the method further includes: pre-occupying the drug inventory of the pharmacy corresponding to the second terminal according to the quantity of the drug in the electronic prescription; The first indication information also includes an identifier of the second terminal, and sending the electronic prescription to the second terminal includes: sending the electronic prescription to a second terminal according to the first medication collection method and the identifier of the second terminal; Before receiving the first indication information sent by the first terminal, the method further includes: receiving a consultation request sent by the first terminal, wherein the consultation request includes an identifier of a target doctor; Determining a third terminal corresponding to the target doctor according to the identifier of the target doctor; A session connection between the first terminal and the third terminal is established.
2. The method according to claim 1, characterized in that After sending the drug collection code of the electronic prescription to the first terminal, the method further includes: receiving first feedback information sent by the second terminal, where the first feedback information is used to indicate that the electronic prescription has been completed; The quantity of the medicine reserved by the electronic prescription is deducted from the medicine inventory of the pharmacy corresponding to the second terminal.
3. The method according to claim 1, characterized in that Before sending the drug collection code of the electronic prescription to the first terminal, the method further includes: Obtaining payment information of the electronic prescription; The sending of the drug collection code of the electronic prescription to the first terminal includes: If the electronic prescription is paid for, the drug collection code of the electronic prescription is sent to the first terminal.
4. The method according to claim 3, characterized in that: After obtaining the payment information of the electronic prescription, the method further includes: If the electronic prescription has not been paid for, a prompt message is sent to the first terminal, where the prompt message is used to prompt the user to pay for the electronic prescription.
5. The method according to claim 1, characterized in that After establishing the session connection between the first terminal and the third terminal, the method further includes: receiving the electronic prescription sent by a third terminal; The electronic prescription is sent to the first terminal.
6. The method according to claim 1, characterized in that The first method of picking up medicine is offline picking up medicine.
7. A method for taking medicine, characterized in that: Applied to a first terminal, the method includes: Sending first indication information to a server, so that the server sends the electronic prescription to a second terminal according to the first indication information, and the server pre-occupies the drug inventory of the pharmacy corresponding to the second terminal according to the quantity of the drugs in the electronic prescription, wherein the first indication information includes an identifier of the second terminal, and the first indication information is used to indicate a first drug collection method of the electronic prescription; receiving a drug collection code of the electronic prescription sent by the server, wherein the drug collection code of the electronic prescription is used to verify the drug collection behavior of the user, and the drug collection code is generated by the second terminal and sent to the server; Displaying the drug collection code of the electronic prescription; Before sending the first indication information to the server, the method further includes: A consultation request is sent to the server, wherein the consultation request includes an identifier of a target doctor, so that the server determines a third terminal corresponding to the target doctor according to the identifier of the target doctor and establishes a session connection between the first terminal and the third terminal.
8. A method for taking medicine, characterized in that: Applied to the second terminal, the method includes: Receive an electronic prescription sent by a server, wherein the electronic prescription is sent by the server according to first indication information after the server receives first indication information sent by a first terminal, wherein the first indication information also includes an identifier of the second terminal, and the first indication information is used to indicate a first method of taking medicine for the electronic prescription, wherein before the server receives the first indication information sent by the first terminal, the server receives a consultation request sent by the first terminal, wherein the consultation request includes an identifier of a target doctor, determines a third terminal corresponding to the target doctor according to the identifier of the target doctor, and establishes a session connection between the first terminal and the third terminal; Generate a drug collection code for the electronic prescription, where the drug collection code is used to verify the user's drug collection behavior; Sending the drug collection code of the electronic prescription to the server, so that the server sends the drug collection code to the first terminal, and pre-occupies the drug inventory of the pharmacy corresponding to the second terminal according to the quantity of the drugs in the electronic prescription; Obtaining a medicine collection code displayed on the first terminal; The medicine collection code displayed on the first terminal is matched with the medicine collection code of the electronic prescription.
9. A medicine dispensing device, characterized in that: include: A receiving module, used for receiving first indication information sent by a first terminal, wherein the first indication information is used for indicating a first medication collection method of an electronic prescription; a processing module, configured to send the electronic prescription to a second terminal according to the first indication information; The receiving module is further used to receive the drug collection code of the electronic prescription sent by the second terminal, the drug collection code of the electronic prescription is used to verify the user's drug collection behavior, and the drug collection code is generated by the second terminal; The sending module is further used to send the drug collection code of the electronic prescription to the first terminal; After sending the electronic prescription to the second terminal, the processing module is further used to pre-occupy the drug inventory of the pharmacy corresponding to the second terminal according to the quantity of the drugs in the electronic prescription; The first indication information also includes the identification of the second terminal, and the sending module is specifically used to send the electronic prescription to the second terminal according to the first medication collection method and the identification of the second terminal; Before receiving the first indication information sent by the first terminal, the receiving module is further used to receive a consultation request sent by the first terminal, wherein the consultation request includes an identifier of a target doctor; The processing module is further used to determine a third terminal corresponding to the target doctor according to the identifier of the target doctor; and establish a session connection between the first terminal and the third terminal.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
11. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 8.
12. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 8.