Prescription data processing method and device based on online medical system and medium
By saving prescription data and multimedia data in different databases in online medical systems, and pushing prescription data using session identifiers, the problem of prolonged acquisition of prescription information is solved, and the efficiency of prescription is improved.
Patent Information
- Application Number
- CN202411450789.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-03-07
AI Technical Summary
In online medical systems, pharmacies take a long time to obtain prescription information, resulting in patients waiting for extended periods of time when prescribing medication.
The prescription data and multimedia data are stored in the second database and the first database respectively, and the prescription data is pushed to the user end through the session identifier. The pharmacy end obtains the prescription data from the second database based on the session identifier to avoid occupying bandwidth when downloading the multimedia data.
This improves the speed at which pharmacies obtain prescription data and reduces the time patients wait for prescriptions.
Smart Images

Figure CN119581044A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical databases, and in particular to a prescription data processing method, device and medium based on an online medical system. Background Art
[0002] With the development of the Internet and mobile technology, medical services have gradually begun to migrate to the Internet platform, forming a new model of "Internet + medical care", and sharing of medical resources has been achieved through the real-time transmission and processing of medical information. The characteristics of the online medical system are that patients and doctors can realize online consultation through network communication, and doctors can make remote diagnoses. However, with the popularization of telemedicine services, the number of users is increasing, and all aspects of the system have encountered performance bottlenecks. For example, when the patient finishes the diagnosis and treatment, the doctor will send the consultation data generated during the diagnosis and treatment process to the patient, and the patient can repeatedly confirm the doctor's orders and go to the pharmacy to get the medicine based on the consultation data. In order to prevent prescription drugs from being arbitrarily prescribed, the pharmacy cannot prescribe drugs for patients based solely on the consultation data provided by the patient. It is necessary to confirm the specific prescription content and the qualifications of the prescribing doctor through the online medical system. Therefore, after the patient makes a request to the pharmacy for prescription, the pharmacy needs to obtain the consultation data from the system first, and confirm whether the prescription in the consultation data is compliant before it can take the medicine from the warehouse. However, since the medical consultation data is relatively complex, it takes a certain amount of time for the pharmacy to obtain prescription information from the medical consultation data. This results in a delay between the time when the patient makes a request for prescription to the pharmacy and the time when the pharmacy starts to obtain the medicine, wasting the time of patients who urgently need the medicine. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes an online medical system and a prescription issuing method, device and medium based thereon, which can save the time for a pharmacy to confirm prescription information in consultation data.
[0004] In a first aspect, an embodiment of the present invention provides a prescription data processing method based on an online medical system, characterized in that the method is applied to a server of the online medical system, wherein the online medical system includes a doctor end, a user end, a plurality of candidate pharmacy ends, a first database and a second database, wherein the first database is respectively connected to the user end and the doctor end in communication, and the second database is connected to the candidate pharmacy end, the user end and the doctor end in communication; the prescription data processing method based on the online medical system includes:
[0005] When the online consultation session between the doctor and the user is finished, generating consultation data and a session identifier based on the online consultation session, wherein the consultation data includes prescription data and multimedia data;
[0006] adding the session identifier to the prescription data and the multimedia data respectively, saving the prescription data to the second database, and saving the multimedia data to the first database;
[0007] Pushing the prescription data to the user terminal, the user terminal initiating a dispensing instruction based on the prescription data, wherein the dispensing instruction carries the session identifier;
[0008] A target pharmacy is determined from the plurality of candidate pharmacies based on the dispensing instruction, and the dispensing instruction is forwarded to the target pharmacy, so that the candidate pharmacy obtains the prescription data from the second database based on the session identifier.
[0009] In some embodiments of the present invention, the step of saving the prescription data to the second database comprises:
[0010] Before storing the prescription data in the second database, determining whether the prescription data includes a limiting mark, wherein the limiting mark is used to characterize the prescription drug;
[0011] If the limiting mark exists in the prescription data, obtaining a signature table corresponding to the limiting mark and obtaining an electronic signature from the doctor, wherein the signature table includes a plurality of verification signatures;
[0012] The electronic signature and the verification signature are compared, and if the electronic signature is consistent with any of the verification signatures, the prescription data is stored in the second database.
[0013] In some embodiments of the present invention, the first database includes a plurality of data servers; and the step of storing the multimedia data in the first database includes:
[0014] Dividing the multimedia data into a plurality of data blocks, and obtaining the volume of each of the data blocks;
[0015] According to the volume of each data block and the storage capacity of each data server, each data block is stored in each data server respectively.
[0016] In some embodiments of the present invention, determining a target pharmacy from a plurality of candidate pharmacies based on the dispensing instruction, and forwarding the dispensing instruction to the target pharmacy includes:
[0017] Parsing the dispensing instruction to obtain user selection information in the dispensing instruction, wherein the user selection information includes a desired distance, a method of picking up medicine, and a desired type;
[0018] Selecting a plurality of candidate pharmacy terminals according to the user selection information, and obtaining inventory information of each candidate pharmacy terminal;
[0019] Determine whether the inventory information satisfies the user selection information, and push the candidate pharmacy terminal that satisfies the user selection information to the user terminal;
[0020] The candidate pharmacy is determined as the target pharmacy according to the selection of the user, and the dispensing instruction is forwarded to the target pharmacy.
[0021] In some embodiments of the present invention, the step of determining a target pharmacy from a plurality of candidate pharmacies based on the dispensing instruction and forwarding the dispensing instruction to the target pharmacy comprises:
[0022] The target pharmacy obtains the prescription data corresponding to the dispensing instruction from the first database, and reads the electronic signature in the prescription data;
[0023] Comparing the electronic signature with the verification signature, if the electronic signature is inconsistent with all the verification signatures, the target pharmacy deletes the prescription data and generates return information, and sends the return information to the doctor and the user;
[0024] If the electronic signature is consistent with any of the verification signatures, the target pharmacy adds a completion mark to the prescription data in the second database.
[0025] In some embodiments of the present invention, the online medical system further includes a supervisory terminal and a third database, wherein the supervisory terminal is respectively connected to the first database and the third database in communication; after forwarding the dispensing instruction to the target pharmacy terminal, the method includes:
[0026] The supervisory terminal periodically obtains the prescription data with the completion mark from the second database, and deletes the prescription data with the completion mark from the second database;
[0027] The supervisory terminal compresses the acquired prescription data, and stores the compressed prescription data in the third database.
[0028] In some embodiments of the present invention, the session identifier includes a first identifier and a second identifier. When the online consultation session between the doctor end and the user end ends, after the consultation data and the session identifier are generated based on the online consultation session, the method further includes:
[0029] After the prescription data is generated based on the online consultation session, if the prescription data includes the limiting mark, the first identifier is generated based on the authentication information of the doctor end and the authentication information of the user end;
[0030] If the prescription data does not include the limiting mark, the second identifier is generated based on the authentication information of the doctor.
[0031] In a second aspect, an embodiment of the present invention provides a control device, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the prescription data processing method based on the online medical system as described in the first aspect above.
[0032] In a third aspect, an embodiment of the present invention provides an online medical system, comprising the control device as described in the second aspect above.
[0033] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the prescription data processing method based on the online medical system as described in the first aspect above.
[0034] The Internet method according to the embodiment of the present invention has at least the following beneficial effects: the present invention stores the multimedia data and prescription data generated during the medical consultation process separately in two databases. Therefore, when obtaining the prescription data from the first database, its download bandwidth will not be occupied by the behavior of downloading the multimedia data, ensuring that the candidate pharmacy can quickly obtain the prescription data after obtaining the dispensing instruction, thereby avoiding patients who come to get or wait for prescriptions to wait too long. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a flow chart of a method for processing prescription data based on an online medical system provided by an embodiment of the present invention;
[0036] Figure 2 is a simplified structural diagram of an online medical system provided by an embodiment of the present invention;
[0037] Figure 3 It is a flow chart of reviewing the compliance of prescriptions issued by doctors according to an embodiment of the present invention;
[0038] Figure 4 is a structural diagram of an online medical system according to another embodiment of the present invention;
[0039] Figure 5 It is a structural diagram of a control device provided in another embodiment of the present invention. DETAILED DESCRIPTION
[0040] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0041] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0042] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0043] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0044] The embodiment of the present invention stores the multimedia data and prescription data generated during the medical consultation process separately in two databases. Therefore, when obtaining the prescription data from the first database, its download bandwidth will not be occupied by the behavior of downloading the multimedia data, ensuring that the candidate pharmacy can quickly obtain the prescription data after obtaining the dispensing instruction, thereby avoiding patients who come to get the medicine or wait for the medicine to be prescribed having to wait too long.
[0045] The concepts mentioned in the present invention are explained below:
[0046] Apache Kafka - an open source stream processing software platform that provides a high-throughput, low-latency platform for processing real-time data streams.
[0047] Apache Flink - a stream processing framework and distributed processing engine for stateful computation on finite and infinite data streams.
[0048] The control method of the embodiment of the present invention is further described below based on the accompanying drawings.
[0049] Figure 1 A prescription data processing method based on an online medical system is provided in an embodiment of the present invention. Figure 2 This is a simplified structural diagram of an online medical system provided by an embodiment of the present invention. The method includes but is not limited to the following steps:
[0050] Step S100, after the online consultation session between the doctor and the user is finished, generating consultation data and a session identifier based on the online consultation session, wherein the consultation data includes prescription data and multimedia data;
[0051] Step S200, adding session identifiers to the prescription data and the multimedia data respectively, saving the prescription data to the second database, and saving the multimedia data to the first database;
[0052] Step S300, pushing the prescription data to the user end, and obtaining the dispensing instruction initiated by the user end based on the prescription data, wherein the dispensing instruction carries a session identifier;
[0053] Step S400, determining a target pharmacy from multiple candidate pharmacies based on the dispensing instruction, and forwarding the dispensing instruction to the target pharmacy, so that the pharmacy obtains prescription data from the second database based on the session identifier.
[0054] First refer to Figure 1 , Figure 1 A flowchart of a prescription data processing method based on an online medical system is provided in an embodiment of the present invention. The method is applied to a server of an online medical system. The online medical system includes a doctor end, a user end, multiple candidate pharmacy ends, a first database and a second database. The first database is communicated with the user end and the doctor end respectively, and the second database is communicated with the candidate pharmacy end, the user end and the doctor end.
[0055] It should be noted that the online medical system can be a system composed of servers, personal terminals and databases. Among them, the server is the core of the system. The server not only executes the control logic, but also is responsible for processing user requests, data management and network security; the personal terminal can be divided into three roles: the doctor side, the user side and the candidate pharmacy side. Among them, the doctor side is an interface designed for medical professionals, allowing them to enter diagnostic information, write electronic prescriptions, view patient medical records and upload multimedia medical data; the user side provides patients with access to personal health records, make appointments with doctors, receive prescriptions and view educational materials; the pharmacy side is an interface used by pharmacy staff, enabling them to receive and process electronic prescriptions, manage drug inventory, and communicate with patients about drug collection or delivery. These three roles have different permissions in the system. The doctor side can write prescription data and multimedia data into the database, and the user side and pharmacy side can obtain prescription data from the database. Furthermore, the database includes a first database and a second database, and these two types of databases are used for different types of data, respectively. Among them, the first database is used in the embodiment of the present invention to store large files and multimedia content, such as magnetic resonance images, X-rays, video and audio recordings and other data; the second database is used in the embodiment of the present invention to store structured data, namely prescription data, such as prescription information, drug information and patient basic information, etc., which information has a fixed format, a small volume and is mainly composed of text.
[0056] In addition, doctors, users and candidate pharmacies can all access the online medical system through the corresponding system APP, or access the server through mini-programs to realize online conversations and the sending and receiving of various instructions; the online medical system can use real-time data processing frameworks such as Apache Kafka to process and analyze medical data in real time, improving the system's response speed and processing capabilities; at the same time, the online medical system can use big data analysis technology (such as Apache Flink) to conduct in-depth analysis of large amounts of medical data and provide data-driven decision support.
[0057] It should be noted that in the online medical system, patients can log in to the user end through a personal terminal with permission to use, and communicate with the doctor remotely online through voice, video, text and other media through online chat tools and other means. During the consultation process, the doctor will select the medicine that the patient needs to prescribe according to the patient's actual situation, and after the diagnosis and treatment, the generated multimedia data (video chat recording, medical video, etc.) and prescription data will be packaged and sent to the patient as consultation data, and the session identifier will be added to the consultation data. It can be understood that the session identifier is an identifier corresponding to a conversation record between a doctor end and a user end, which is used to characterize a complete conversation behavior; the information covered by the session identifier includes the conversation date, the duration of the conversation, the codes of the doctor end device and the user end device of the conversation, the conversation number, etc.
[0058] It should be noted that the difference between prescription data and multimedia data is that the storage format of prescription data is fixed, mainly composed of text and small in size, so the transmission speed of prescription data is faster; multimedia data includes complex medical images and medical videos, etc., which are large in size, not uniform in format, and have faster or slower transmission speeds. Furthermore, when patients are prescribed medicines, they only need prescription data, and similarly, when pharmacies pick up medicines, they only need prescription data. Therefore, in order to enable pharmacies to quickly obtain prescription data, in an embodiment of the present invention, prescription data is stored in a second database and multimedia data is stored in a first database. After the two types of data are stored separately, if the doctor or user needs to obtain multimedia data, it will be obtained from the first database, and the bandwidth occupied will not affect the speed at which the candidate pharmacy obtains prescription data from the second database, thereby avoiding patients waiting too long when prescribing medicines. It can be understood that there can be one or more first databases and one or more second databases in the online medical system, and the present invention does not limit the number of first databases and second databases.
[0059] It should be noted that the user side does not have the authority to access the second database and can only obtain prescription data based on the push from the doctor side. The doctor side has the authority to write data to the second database to upload or modify prescription data; the candidate pharmacy side has the authority to read data from the second database to prescribe medicine according to the prescription data.
[0060] It should be noted that the patient can go to the pharmacy to get the medicine with the prescription data sent by the doctor. In this process, the patient can select a candidate pharmacy at any location through the user end. After the selection is completed, the candidate pharmacy sends a dispensing instruction to the selected candidate pharmacy. After receiving it, the candidate pharmacy can obtain the prescription data from the first database according to the correspondence between the session identifier and the prescription data, and dispense the medicine according to the content of the prescription data, and wait for the patient to pick up the medicine. It is understandable that the patient can go to the candidate pharmacy to pick up the medicine by himself with the prescription, or choose to wait for the delivery of the candidate pharmacy.
[0061] It should be noted that the embodiment of the present invention stores the multimedia data and prescription data generated during the medical consultation process separately in two databases. Therefore, when obtaining the prescription data from the first database, its download bandwidth will not be occupied by the behavior of downloading the multimedia data, ensuring that the candidate pharmacy can quickly obtain the prescription data after obtaining the dispensing instruction, thereby avoiding patients who come to get or wait for prescriptions from waiting too long.
[0062] In addition, in one embodiment, referring to Figure 2 In step S200 of the above embodiment, the following steps are also included but not limited to:
[0063] Step S210, before storing the prescription data in the second database, determining whether the prescription data includes a limiting mark, wherein the limiting mark is used to characterize the prescription drug;
[0064] Step S220, if there is a limiting mark in the prescription data, obtain a signature table corresponding to the limiting mark and obtain an electronic signature from the doctor, wherein the signature table includes multiple verification signatures;
[0065] Step S230, comparing the electronic signature and the verification signature, if the electronic signature is consistent with any verification signature, storing the prescription data in a second database.
[0066] It should be noted that the limiting mark is used to indicate that the drug is a prescription drug. In an embodiment of the present invention, the limiting mark can be added by adding some special characters before and after the drug name of the prescription drug, such as adding "*", "Rx" and other marks after the drug name, or adding the limiting mark to the data storage format corresponding to the prescription data.
[0067] It should be noted that the actual operation process of the online medical system is: the doctor side checks the medical records of the user side in the database, conducts online consultation through the connection relationship between the doctor side and the user side, and gives the user side a diagnosis prescription. It is understandable that not all doctors have the authority to prescribe drugs, so before the prescription data is stored in the second database, it is necessary to determine whether the doctor side has the corresponding authority to prescribe drugs. The method for verifying authority provided by the embodiment of the present invention is: providing a signature table, the signature table is used to store the verification signature, and the verification signature is the electronic signature of the doctor who has the authority to prescribe drugs; when the doctor side prescribes a prescription, before the system transmits the prescription data to the second database, it first needs to compare whether the electronic signature provided by the doctor side is the same as the verification signature in the signature table, and only if they are the same, does it have the authority to prescribe drugs; if there is no authority, the doctor needs to add his own electronic signature to the signature table by uploading the certificate on the doctor side, otherwise the online medical system will prohibit the generation of the current prescription data. After the online medical system verifies the electronic signature of the doctor side, the system will push the prescription data to the patient. It is understandable that the correspondence between the signature table and the electronic signature can be set arbitrarily, for example, a signature table is set for each individual prescription drug; or the prescription drugs are classified, and then a separate signature table is set for each type according to the type of prescription drugs. These two methods can be used arbitrarily or mixed, and the present invention does not limit this. Furthermore, if the electronic signature provided by the doctor is inconsistent with the verification signature, the doctor can choose to upload the corresponding certification document and add the electronic signature corresponding to the certification document to the signature table, or modify the prescription content and remove the prescription drug from the prescription.
[0068] Exemplarily, the doctor prescribes through a prescription template that can be provided by the online medical system, wherein the prescription template has a fixed format, and the doctor only needs to fill in the corresponding position of the prescription template through the display interface on the doctor's end. For example, the medicine to be prescribed can be filled in the prescription template on the doctor's end by dragging, manual input, etc. After the doctor has completed the filling, the prescription data is uploaded to the server of the online medical system through the doctor's end. Before the server transmits the prescription data to the second database, it can be confirmed by traversal or other data query methods whether there is a limited identifier "*", "Rx" or other identifiers used to characterize prescription drugs in the name of the medicine on the prescription. If there is no corresponding identifier, the server can directly transmit the prescription with the session identifier added to the corresponding user end and the second database; if there is a corresponding identifier, the server can also feedback the identity authentication process to the doctor end, allowing the doctor end to upload a certificate or other relevant certification document with a corresponding verification signature in the signature table for the server to identify. After the server recognizes it correctly, the electronic signature is added to the signature table as a verification signature, and then the prescription data is transmitted to the second database.
[0069] For example, in order to ensure the security and authenticity of the electronic signature, asymmetric encryption technology can be used to configure a pair of keys for the doctor, one is a private key for signing, and the other is a public key for verifying the signature. The private key is kept confidential, while the public key is made public. The doctor uses the private key when signing, and others can use the public key to verify the authenticity of the signature.
[0070] In addition, in one embodiment, step S200 in the above embodiment also includes but is not limited to the following steps:
[0071] Step S240, dividing the multimedia data into a plurality of data blocks, and obtaining the volume of each data block;
[0072] Step S250: store each data block in each data server according to the volume of each data block and the storage capacity of each data server.
[0073] It should be noted that in step S240 to step S250, in the embodiment of the present invention, the online medical system can divide the multimedia data into multiple data blocks, and use distributed storage and data processing technology to manage each data block, so as to achieve efficient storage and processing of complex medical images and medical videos. It can be understood that the reason for dividing the multimedia data into data blocks is that the volume of multimedia data is usually large, and for efficient management and transmission, it needs to be divided into smaller data blocks. Further, the data block division can be achieved by a fixed-size-based segmentation method or a content-based segmentation method, wherein the fixed-size-based segmentation method is simple and easy, but may cause internal unevenness in each data block; and the content-based segmentation method (such as video frame segmentation) can improve storage efficiency, but the operation is more complicated; in the embodiment of the present invention, the above method can be arbitrarily selected according to actual needs, and there is no restriction on this. After the data block segmentation is completed, the server of the online medical system needs to calculate the size (volume) of each data block in bytes. In addition, metadata can be generated and assigned for each data block, wherein the metadata includes information such as the identifier, size, and source of the data block, so as to facilitate subsequent management and retrieval of the data block. Finally, in order to improve data reliability, in one embodiment of the present invention, it is also necessary to perform redundancy processing on the data blocks, such as copying to multiple servers or using erasure coding technology to process the data blocks.
[0074] It should be noted that after the multimedia data block is divided into multiple data blocks, the data blocks need to be classified based on factors such as storage capacity evaluation, load balancing, data transmission, storage strategy, data consistency, and security, and the multimedia data divided into data blocks are transmitted to the first database according to the classification results. For example, based on the size of the data block and the storage capacity of the server, a load balancing algorithm (such as polling, minimum number of connections, weighted allocation, etc.) is used to determine on which specific data server of the first database the data block is to be stored. Furthermore, data compression and encryption technology may need to be used during the transmission process to improve efficiency and security, such as encrypting each data block using the Advanced Encryption Standard (AES).
[0075] In addition, in one embodiment, step S400 in the above embodiment also includes but is not limited to the following steps:
[0076] Step S410, parsing the dispensing instruction, obtaining user selection information in the dispensing instruction, wherein the user selection information includes the expected distance, the method of taking medicine, and the expected type;
[0077] Step S420, selecting multiple candidate pharmacy terminals according to the user selection information, and obtaining the inventory information of each candidate pharmacy terminal;
[0078] Step S430, determining whether the inventory information satisfies the user selection information, and pushing the candidate pharmacy terminals that meet the user selection information to the user terminal;
[0079] Step S440: determine the candidate pharmacy as the target pharmacy according to the selection of the user, and forward the dispensing instruction to the target pharmacy.
[0080] It should be noted that the system generates a dispensing instruction based on the user's selection information, wherein the dispensing instruction includes identity information related to the identity of the user terminal, so as to facilitate the target pharmacy to match prescription data from the first database. It is understandable that the user can choose to prescribe medicine from any candidate pharmacy, and the prescription method includes door-to-door collection and offline delivery; the server of the online medical system can also select several candidate pharmacies based on the current location and the distance from the candidate pharmacy, and the method of picking up the medicine, and push them to the user terminal. After the user determines the candidate pharmacy, the server also needs to determine whether the candidate pharmacy can complete the drug delivery based on the inventory information of the candidate pharmacy, and after screening out several candidate pharmacies based on the inventory information, push the remaining candidate pharmacies to the user, and the user selects the target pharmacy from the remaining candidate pharmacy. It is understandable that although the target pharmacy has obtained the dispensing instruction and has learned the type of medicine required by the patient through the expected type in the user selection information, since the target pharmacy must authenticate the authority of the prescription drugs, the pharmacy corresponding to the target pharmacy cannot directly prescribe medicine according to the expected type of the user. It still needs to obtain the prescription data from the second database before executing the subsequent prescribing process.
[0081] It is understandable that in one embodiment of the present invention, the user terminal can use an interface that can call a corresponding map, such as the wx.chooseLocation interface in the WeChat applet, to allow the patient to select a target pharmacy on the map and obtain the name and detailed address of the target pharmacy. Furthermore, the server can also use an algorithm (such as weighted allocation, etc.) to recommend a specific target pharmacy to the user terminal based on the user terminal's current location and medication method, and taking into account factors such as the storage capacity, current load, user evaluation, and drug prices of the pharmacy, so as to help patients quickly obtain the most suitable target pharmacy.
[0082] In addition, in one embodiment, referring to Figure 2 ,exist Figure 1 Step S400 in the illustrated embodiment also includes but is not limited to the following steps:
[0083] Step S450, the target pharmacy obtains the prescription data corresponding to the dispensing instruction from the first database, and reads the electronic signature in the prescription data;
[0084] Step S460, comparing the electronic signature and the verification signature. If the electronic signature is inconsistent with all the verification signatures, the target pharmacy deletes the prescription data and generates a return message, and sends the return message to the doctor and the user.
[0085] Step S470: If the electronic signature is consistent with any verification signature, the target pharmacy adds a completion mark to the prescription data in the second database.
[0086] It should be noted that in steps S450 to S470, the pharmacy corresponding to the target pharmacy needs to confirm whether the prescription is compliant before prescribing the medicine to the patient, so as to form multiple supervision of the prescription data. Figure 2 The process of reviewing the compliance of prescriptions issued by doctors is similar. After obtaining the prescription data, the target pharmacy can use the corresponding recognition algorithm to compare the electronic signature on the prescription data with the signature table to review whether the doctor has the authority to prescribe. If the doctor has the authority to prescribe the prescription required by the patient, that is, the doctor's electronic signature has a corresponding verification signature in the signature table, the pharmacy can prescribe medicine for the patient according to the prescription data. At the same time, the device at the target pharmacy will add a completion mark to the corresponding prescription data in the second database, where the completion mark indicates that the patient has been prescribed medicine by the pharmacy according to this prescription data; if the electronic signature provided by the doctor is inconsistent with the verification signature, when it is confirmed that the doctor does not have the authority to prescribe, the candidate pharmacy will no longer retain the prescription data and send a return message to the doctor and the user. The doctor will modify the prescription or upload the corresponding certification documents according to the return information.
[0087] It is understandable that if the target pharmacy obtains the prescription data from the second database according to the dispensing instruction, if it detects that the prescription data already has a completion mark, the target pharmacy can also send a return message to the user end to avoid the patient from taking duplicate prescriptions with the same prescription.
[0088] For example, in one embodiment of the present invention, when the doctor uses asymmetric encryption technology to encrypt the electronic signature, the public key of the corresponding electronic signature will be added to the prescription data and stored in the second database along with the prescription data. The target pharmacy obtains the prescription data according to the dispensing instruction and verifies the public key to determine whether the authenticity of the electronic signature is consistent with the prescription data. If there is no problem with the electronic signature and the prescription data, the pharmacist will convey the return information to the patient and the doctor through the corresponding APP or applet.
[0089] In addition, in one embodiment, after step S400 of the above embodiment, the following steps are also included but not limited to:
[0090] Step S510, the supervisory end periodically obtains prescription data with a completion mark from the second database, and deletes the prescription data with the completion mark from the second database;
[0091] Step S520: The supervisory end compresses the acquired prescription data and stores the compressed prescription data in a third database.
[0092] It should be noted that, in addition to the three-party circulation among the doctor, user and target pharmacy, the prescription data of the online medical system in the embodiment of the present invention also needs to be uploaded to the supervision end for further supervision, review and record keeping. It is understandable that in order to save the storage space of the second database, after the supervision center regularly keeps a record of the prescription data, it is necessary to delete the prescription data that has been kept from the second database. The basis for deletion is whether there is a completion mark in the prescription data. When there is a completion mark in the prescription data, it indicates that the pharmacist has completed the prescription data, and the prescription data will not be read in the short term. At the same time, it is understandable that regularly deleting the prescription data that has been completed from the second database can also prevent patients from repeating the prescription in the short term with a prescription.
[0093] Exemplarily, the supervisory end can extract prescription data from the first database and compress and process the prescription data by creating an intermediate table, wherein the data collection method based on the intermediate table is usually used in the database and data integration process. The intermediate table, as a temporary or permanent way of storing data, can help simplify complex data processing processes and improve the efficiency of data integration. Specifically, the supervisory end creates an intermediate table to regularly obtain prescription data from several second databases of the online medical system, and sets judgment logic in the intermediate table so that the intermediate table only obtains prescription data containing a completion mark, and at the same time grants the supervisory end the authority to modify the second database, so that the intermediate table automatically deletes the prescription data containing the completion mark from the second database after obtaining it, and the prescription data without the completion mark is still retained in the second database. The time interval and time point of the scheduled extraction can be set arbitrarily. The intermediate table converts these completed prescription data into JSON documents and compresses and uploads them to the data center of the supervisory end, that is, the third database for backup.
[0094] It is understandable that, for the sake of security of the retained prescription data, only the supervisory end has the authority to interact with the third database, and the user end, the doctor end and the candidate pharmacy end cannot interact with the third database.
[0095] In addition, in one embodiment, after step S100 in the above embodiment, the following steps are also included but not limited to:
[0096] Step S110, after prescription data is generated based on the online consultation session, if the prescription data includes a limiting mark, a first identifier is generated based on the authentication information of the doctor side and the authentication information of the user side;
[0097] Step S120: If the prescription data does not include a limiting mark, a second mark is generated based on the authentication information of the doctor.
[0098] It should be noted that in steps S110 to S120, in the online medical system, the patient can also upload the corresponding identity authentication information through the user end. When the prescription data includes the limited identification of the prescription drug, the session identifier generated based on the online medical session needs to include the dual identity authentication information of the doctor end and the user end to ensure that the prescription drug is traceable. On the contrary, if the prescription data does not contain the prescription drug, only the identity authentication information of the doctor end is required.
[0099] For example, before a patient contacts a doctor through an online medical system, the patient needs to register a platform account through the user end and choose whether to perform real-name authentication. If the patient's currently registered account has not undergone real-name authentication, after the doctor adds prescription drugs to the prescription based on the conversation diagnosis process, the server of the online medical system will refuse to add a session identifier to the prescription data. Therefore, this prescription data cannot be stored in the second database, and the patient's user end will not be able to receive the push of the prescription data later.
[0100] like Figure 4 As shown, Figure 4 : is a structural diagram of a control device provided by an embodiment of the present invention. The present invention also provides a control device, including:
[0101] The processor 801 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0102] The memory 802 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 802, and the processor 801 calls and executes the prescription data processing method based on the online medical system in the embodiment of this application;
[0103] Input / output interface 803, used to implement information input and output;
[0104] The communication interface 804 is used to realize the communication interaction between the present apparatus and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WI FI, Bluetooth, etc.);
[0105] A bus 805 that transmits information between the various components of the device (e.g., the processor 801, the memory 802, the input / output interface 803, and the communication interface 804);
[0106] The processor 801 , the memory 802 , the input / output interface 803 and the communication interface 804 are connected to each other in communication within the device via a bus 805 .
[0107] Reference Figure 4 , an embodiment of the present application also provides an online medical system, including the control device as described above.
[0108] It should be noted that the system includes: front-end user devices, such as personal computers, smart phones and tablet computers, which are used to access the online system and can be used as access tools for doctors, users and candidate pharmacies; cloud server layer: including load balancers, which are used to distribute user requests to ensure high availability of the system; application servers, which are used to process all business logic and user requests; databases, which are used to store user data and operation logs, where the database is divided into a first database and a second database; cloud storage and processing layer: including distributed storage servers, which are used to store medical images, videos and other large-scale multimedia data; data processing modules, which are used to perform real-time processing and analysis of data; security modules: used to ensure system security and data privacy. Through the above technical solutions, the present invention can effectively solve the deficiencies of existing Internet hospital systems in terms of scalability, data processing capabilities, system maintenance and security, and realize efficient, safe and scalable medical services.
[0109] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned prescription data processing method based on the online medical system is implemented.
[0110] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0111] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0112] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A prescription data processing method based on an online medical system, characterized in that: A server applied to an online medical system, the online medical system comprising a doctor terminal, a user terminal, a plurality of candidate pharmacy terminals, a first database and a second database, the first database being communicatively connected to the user terminal and the doctor terminal respectively, and the second database being communicatively connected to the candidate pharmacy terminal, the user terminal and the doctor terminal; The prescription data processing method based on the online medical system includes: When the online consultation session between the doctor and the user is finished, generating consultation data and a session identifier based on the online consultation session, wherein the consultation data includes prescription data and multimedia data; adding the session identifier to the prescription data and the multimedia data respectively, saving the prescription data to the second database, and saving the multimedia data to the first database; Pushing the prescription data to the user terminal, the user terminal initiating a dispensing instruction based on the prescription data, wherein the dispensing instruction carries the session identifier; A target pharmacy is determined from the plurality of candidate pharmacies based on the dispensing instruction, and the dispensing instruction is forwarded to the target pharmacy, so that the candidate pharmacy obtains the prescription data from the second database based on the session identifier.
2. The prescription data processing method based on the online medical system according to claim 1, characterized in that: The step of saving the prescription data to the second database comprises: Before storing the prescription data in the second database, determining whether the prescription data includes a limiting mark, wherein the limiting mark is used to characterize the prescription drug; If the limiting mark exists in the prescription data, obtaining a signature table corresponding to the limiting mark and obtaining an electronic signature from the doctor, wherein the signature table includes a plurality of verification signatures; The electronic signature and the verification signature are compared, and if the electronic signature is consistent with any of the verification signatures, the prescription data is stored in the second database.
3. The prescription data processing method based on the online medical system according to claim 1, characterized in that: The first database includes a plurality of data servers; and the step of storing the multimedia data in the first database includes: Dividing the multimedia data into a plurality of data blocks, and obtaining the volume of each of the data blocks; According to the volume of each data block and the storage capacity of each data server, each data block is stored in each data server respectively.
4. The prescription data processing method based on the online medical system according to claim 1, characterized in that: The step of determining a target pharmacy terminal from a plurality of candidate pharmacy terminals based on the dispensing instruction and forwarding the dispensing instruction to the target pharmacy terminal comprises: Parsing the dispensing instruction to obtain user selection information in the dispensing instruction, wherein the user selection information includes a desired distance, a method of picking up medicine, and a desired type; Selecting a plurality of candidate pharmacy terminals according to the user selection information, and obtaining inventory information of each candidate pharmacy terminal; Determine whether the inventory information satisfies the user selection information, and push the candidate pharmacy terminal that satisfies the user selection information to the user terminal; The candidate pharmacy is determined as the target pharmacy according to the selection of the user, and the dispensing instruction is forwarded to the target pharmacy.
5. The prescription data processing method based on the online medical system according to claim 2, characterized in that: The method of determining a target pharmacy terminal from a plurality of candidate pharmacy terminals based on the dispensing instruction and forwarding the dispensing instruction to the target pharmacy terminal comprises: The target pharmacy obtains the prescription data corresponding to the dispensing instruction from the first database, and reads the electronic signature in the prescription data; Comparing the electronic signature with the verification signature, if the electronic signature is inconsistent with all the verification signatures, the target pharmacy deletes the prescription data and generates return information, and sends the return information to the doctor and the user; If the electronic signature is consistent with any of the verification signatures, the target pharmacy adds a completion mark to the prescription data in the second database.
6. The method for processing prescription data based on an online medical system according to claim 5, characterized in that: The online medical system further includes a supervisory terminal and a third database, wherein the supervisory terminal is respectively connected to the first database and the third database in communication; after forwarding the dispensing instruction to the target pharmacy terminal, the method includes: The supervisory terminal periodically obtains the prescription data with the completion mark from the second database, and deletes the prescription data with the completion mark from the second database; The supervisory terminal compresses the acquired prescription data, and stores the compressed prescription data in the third database.
7. The method for processing prescription data based on an online medical system according to claim 2, characterized in that: The session identifier includes a first identifier and a second identifier. When the online consultation session between the doctor end and the user end ends, after the consultation data and the session identifier are generated based on the online consultation session, the method further includes: After the prescription data is generated based on the online consultation session, if the prescription data includes the limiting mark, the first identifier is generated based on the authentication information of the doctor end and the authentication information of the user end; If the prescription data does not include the limiting mark, the second identifier is generated based on the authentication information of the doctor.
8. A control device, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to execute the prescription data processing method based on the online medical system as described in any one of claims 1 to 7.
9. An online medical system, characterized in that: Includes the control device as claimed in claim 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the prescription data processing method based on the online medical system as described in any one of claims 1 to 7.