Data processing method and device of inquiry system and electronic equipment

By using the drug cache space of distributed storage nodes in the online consultation system and employing a hash algorithm to map hash rings to store drug information, the problem of low drug information query efficiency in the online consultation system is solved, thus improving the user experience.

CN115101219BActive Publication Date: 2026-04-24KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD
Filing Date
2022-06-27
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

The existing online consultation system has low efficiency in querying drug information for prescriptions, which affects the user experience.

Method used

A drug cache space composed of distributed storage nodes is used to map to a preset hash ring through a hash algorithm to store drug attribute information. Drug attribute information can be read directly from the cache space, or read from the database if it is not cached, thereby improving query efficiency.

Benefits of technology

It improves the efficiency of drug search, enhances the user experience, and solves the problem of low efficiency in searching for drug information during consultations and prescriptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115101219B_ABST
    Figure CN115101219B_ABST
Patent Text Reader

Abstract

The application discloses a data processing method and device of a diagnosis system and electronic equipment. The method comprises the following steps: receiving a diagnosis consultation form sent by a client, wherein the diagnosis consultation form comprises prescription information and diagnosis person information; obtaining corresponding medicine order information according to the prescription information, wherein the medicine order information comprises a medicine set of one or more target medicines; if the medicine cache space stores the medicine attribute information of the current target medicine, reading the medicine attribute information of the current target medicine from the medicine cache space; wherein the medicine cache space is stored on a distributed storage node, and the distributed storage node is a storage node mapped to a preset hash ring through a hash algorithm; if not, reading the medicine attribute information of the current target medicine from a medicine information database; and returning the medicine attribute information of the current target medicine to the client. The application solves the technical problem that the query medicine information efficiency of diagnosis and medicine opening is low in the related art, which affects the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of business process data processing technology, and more specifically, to a data processing method, apparatus, and electronic device for a consultation system. Background Technology

[0002] With the booming development of the internet healthcare industry, the emergence of internet healthcare has broken the traditional medical treatment methods, providing patients with channels for quick drug purchase and consultation, while solving the problems of patients having difficulty purchasing medicines, long waiting times at offline hospitals, and short consultation times. Online drug purchases are also gaining popularity, making it more convenient for patients to see a doctor and obtain medicines. Therefore, improving the user's drug purchase experience and consultation experience can enhance the value of enterprises.

[0003] Currently, prescription drug consultations are made more efficient through form-based consultations. This method allows patients to submit and answer doctors' diagnostic questions through a consultation page. However, when different patients have similar diagnoses and require the same medication, it is necessary to continuously search the database for information on the same drug, which is not only time-consuming but also inefficient and affects the user experience. Summary of the Invention

[0004] This invention provides a data processing method, apparatus, and electronic device for a consultation system, which at least solves the technical problem of low efficiency in querying drug information during consultations and prescriptions, thus affecting user experience.

[0005] According to one aspect of the present invention, a data processing method for a consultation system is provided, comprising: receiving a consultation form sent by a client; wherein the consultation form includes prescription information and patient information; obtaining corresponding drug order information based on the prescription information, wherein the drug order information includes a drug set of one or more target drugs; if a drug cache space stores drug attribute information of the current target drug, reading the drug attribute information of the current target drug from the drug cache space; wherein the drug cache space is stored on a distributed storage node, the distributed storage node being a storage node mapped to a preset hash ring by a hash algorithm; otherwise, reading the drug attribute information of the current target drug from a drug information database; and returning the drug attribute information of the current target drug to the client.

[0006] According to another aspect of the present invention, a data processing apparatus for a consultation system is also provided, comprising: a receiving unit for receiving a consultation form sent by a client; wherein the consultation form includes prescription information and patient information; a first obtaining unit for obtaining corresponding drug order information based on the prescription information, wherein the drug order information includes a drug set of one or more target drugs; a first reading unit for reading the drug attribute information of the current target drug from the drug cache space if the drug cache space stores the drug attribute information of the current target drug; wherein the drug cache space is stored on a distributed storage node, and the distributed storage node is a storage node mapped to a preset hash ring by a hash algorithm; a second reading unit for reading the drug attribute information of the current target drug from a drug information database if not; and a returning unit for returning the drug attribute information of the current target drug to the client.

[0007] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the data processing method of the above-described consultation system through the computer program.

[0008] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, wherein the computer program is configured to execute the data processing method of the above-described consultation system at runtime.

[0009] In this embodiment of the invention, a method is adopted to receive a consultation form sent by a client; wherein the consultation form includes prescription information and patient information; corresponding drug order information is obtained based on the prescription information, and the drug order information includes a set of one or more target drugs; if the drug cache space stores the drug attribute information of the current target drug, the drug attribute information of the current target drug is read from the drug cache space; wherein the drug cache space is stored on a distributed storage node, and the distributed storage node is a storage node mapped to a preset hash ring by a hash algorithm; otherwise, the drug attribute information of the current target drug is read from the drug information database; and the drug attribute information of the current target drug is returned to the client. In the above method, since the obtained drug information is stored in a drug cache composed of distributed storage nodes, when querying the same drug information again, there is no need to retrieve drug data from the drug database, which improves the efficiency of drug query and enhances the user experience, thereby solving the technical problem of low efficiency in querying drug information for consultation and prescription in related technologies, which affects the user experience. Attached Figure Description

[0010] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0011] Figure 1 This is a schematic diagram of the application environment of an optional data processing method for a consultation system according to an embodiment of the present invention;

[0012] Figure 2 This is a schematic diagram of the application environment of another optional data processing method for a consultation system according to an embodiment of the present invention;

[0013] Figure 3 This is a flowchart illustrating an optional data processing method for a consultation system according to an embodiment of the present invention.

[0014] Figure 4 This is a flowchart illustrating another optional data processing method for a consultation system according to an embodiment of the present invention;

[0015] Figure 5 This is a schematic diagram of the decorator pattern for a data processing method of an optional consultation system according to an embodiment of the present invention;

[0016] Figure 6 This is a schematic diagram of the structure of an optional data processing apparatus according to an embodiment of the present invention;

[0017] Figure 7 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. Detailed Implementation

[0018] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0019] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0020] According to one aspect of the present invention, a data processing method for a consultation system is provided. Optionally, as an alternative implementation, the data processing method for the consultation system may be applied to, but is not limited to, [examples of other methods]. Figure 1 The application environment shown includes: a terminal device 102 for human-computer interaction, a network 104, and a server 106. User 108 can interact with terminal device 102, which runs a data processing application for a medical consultation system. Terminal device 102 includes a human-computer interaction screen 1022, a processor 1024, and a memory 1026. The human-computer interaction screen 1022 displays medical information and prescription information; the processor 1024 retrieves form data from the medical consultation form. The memory 1026 stores the aforementioned medical information, prescription information, and medical consultation form data.

[0021] In addition, server 106 includes database 1062 and processing engine 1064. Database 1062 stores form data such as visit information, prescription information, and consultation forms. Processing engine 1064 receives consultation forms sent by the client; wherein the consultation form includes prescription information and patient information; obtains corresponding drug order information based on the prescription information, wherein the drug order information includes a set of one or more target drugs; if the drug cache space stores the drug attribute information of the current target drug, reads the drug attribute information of the current target drug from the drug cache space; wherein the drug cache space is stored on a distributed storage node, the distributed storage node being a storage node mapped to a preset hash ring by a hash algorithm; otherwise, reads the drug attribute information of the current target drug from the drug information database; and returns the drug attribute information of the current target drug to the client of the aforementioned terminal device 102.

[0022] In one or more embodiments, the data processing method of the consultation system described above in this application can be applied to... Figure 2The application environment shown. For example... Figure 2 As shown, user 202 and user device 204 can interact. User device 204 includes memory 206 and processor 208. In this embodiment, user device 204 can, but is not limited to, referencing the operations performed by terminal device 102 to obtain drug attribute information of the current target drug.

[0023] Optionally, the terminal device 102 and user device 204 mentioned above include, but are not limited to, mobile phones, set-top boxes, televisions, tablets, laptops, PCs, in-vehicle electronic devices, wearable devices, and other terminals. The network 104 mentioned above may include, but is not limited to, wireless networks or wired networks. The wireless network includes Wi-Fi and other networks that enable wireless communication. The wired network may include, but is not limited to, wide area networks (WANs), metropolitan area networks (MANs), and local area networks (LANs). The server 106 mentioned above may include, but is not limited to, any hardware device capable of computing. The server may be a single server, a server cluster consisting of multiple servers, or a cloud server. The above is merely an example, and no limitations are imposed in this embodiment.

[0024] As an alternative implementation method, such as Figure 3 As shown, this embodiment of the invention provides a data processing method for a consultation system, including the following steps:

[0025] S302, Receive a consultation form sent by the client; wherein the consultation form includes prescription information and patient information.

[0026] Specifically, users can fill in their medical records or related symptoms in the client of the consultation system. After the doctor makes a diagnosis, the prescription information is sent to the user's client for display.

[0027] S304, Obtain the corresponding drug order information based on the prescription information, wherein the drug order information includes a drug set of one or more target drugs.

[0028] Here, after the server obtains the prescription information from the consultation form, it obtains the corresponding drug order information and further retrieves the drug's attributes, including price, function, and contraindications, from the database or drug cache space and sends them to the user's client.

[0029] S306, if the drug cache space stores the drug attribute information of the current target drug, read the drug attribute information of the current target drug from the drug cache space; wherein, the drug cache space is stored on a distributed storage node, and the distributed storage node is a storage node mapped to a preset hash ring by a hash algorithm.

[0030] Specifically, the caching space for pharmaceuticals includes, but is not limited to, memory-based storage space across multiple distributed storage nodes. For example, the NoSQL distributed storage system Tair can be used as the pharmaceutical caching space. Tair is a key / value pair-based data storage system. Through Tair, multiple storage nodes (servers) use a consistent hashing algorithm to hash the keys in the key-value pairs and map the results to a predefined hash ring. In other words, the pharmaceutical caching space stores pharmaceutical attribute information across multiple storage nodes. When retrieving data from the cache, the data stored on the first server moving clockwise along the hash ring can be used as the target data. This not only improves the efficiency of pharmaceutical retrieval but also ensures data security when other storage nodes in the multiple storage nodes fail.

[0031] S308, If not, read the drug attribute information of the current target drug from the drug information database.

[0032] Here, when the drug cache space does not store the drug attribute information of the current target drug, it is necessary to obtain the drug attribute information of the current target drug from the drug database.

[0033] S310, return the drug attribute information of the current target drug to the client.

[0034] Here, the drug attribute information of the current target drug is returned to the client of the user seeking medical advice, so that the user can view the drug information and place an order based on the drug information.

[0035] In this embodiment of the invention, a method is adopted to receive a consultation form sent by a client; wherein the consultation form includes prescription information and patient information; corresponding drug order information is obtained based on the prescription information, and the drug order information includes a set of one or more target drugs; if the drug cache space stores the drug attribute information of the current target drug, the drug attribute information of the current target drug is read from the drug cache space; wherein the drug cache space is stored on a distributed storage node, and the distributed storage node is a storage node mapped to a preset hash ring by a hash algorithm; otherwise, the drug attribute information of the current target drug is read from the drug information database; and the drug attribute information of the current target drug is returned to the client. In the above method, since the obtained drug information is stored in a drug cache composed of distributed storage nodes, when querying the same drug information again, there is no need to retrieve drug data from the drug database, which improves the efficiency of drug query and enhances the user experience, thereby solving the technical problem of low efficiency in querying drug information for consultation and prescription in related technologies, which affects the user experience.

[0036] In one or more embodiments, after obtaining the corresponding drug order information based on the prescription information, the process includes:

[0037] Obtain the unique identifier SKUID for each target drug in the drug set;

[0038] Based on the SKUID of the current target drug, query the drug cache space to see if the drug attribute information of the current target drug is stored.

[0039] In this embodiment of the invention, the drug attribute information of the current target drug can be obtained more flexibly and accurately by querying the drug cache space through the unique identifier SKUID of the drug.

[0040] In one or more embodiments, the data processing method of the consultation system further includes:

[0041] The SKUID of the current target drug is encrypted, and the encryption result is used as the key in the key-value pair with the current target drug. The key value in the key-value pair includes the consultation form and the drug attribute information of the current target drug.

[0042] Based on the key corresponding to the current target drug, query the drug cache space to see if the drug attribute information of the current target drug is stored.

[0043] In this embodiment of the invention, in order to ensure the data security of the consultation system, the SKUID of the current target drug can be encrypted. The encryption method is to encrypt the SKUID of the target drug using symmetric encryption algorithms (DES, 3DES, AES), or asymmetric algorithms (RSA, DSA), or hash algorithms (SHA-1, MD5), etc., to obtain the encrypted SKUID.

[0044] In one embodiment, the SKUID can be salted first and then encrypted.

[0045] In one or more embodiments, the step of querying the drug cache space to see if the drug attribute information of the current target drug is stored based on the key corresponding to the current target drug includes:

[0046] Decrypt the key corresponding to the current target drug to obtain the SKUID of the current target drug;

[0047] Based on the SKUID, query the drug cache space to see if the drug attribute information of the current target drug is stored.

[0048] Specifically, after the server obtains the information of the current drug, it finds the key corresponding to the current target drug, decrypts it to obtain the SKUID of the current target drug, and then queries the drug cache space based on the SKUID to see if the drug attribute information of the current target drug is stored.

[0049] In one or more embodiments, the data processing method of the consultation system further includes:

[0050] The drug attribute information of the current target drug, which is read from the drug information database, is stored in the drug cache space.

[0051] In this embodiment of the invention, if the drug attribute information of the current target drug is not found in the drug cache space, it means that the current drug is being queried for the first time. At this time, the drug attribute information of the current target drug needs to be read from the drug information database and then stored in the drug cache space, so that the current drug can be directly retrieved from the drug cache space when it is queried again, thereby improving the system query efficiency.

[0052] In one or more embodiments, the data processing method of the consultation system further includes:

[0053] The form creation function is obtained by encapsulating multiple consultation category attributes based on the decorator pattern;

[0054] Based on the personnel attributes in the patient information, a pre-created form creation function is called to obtain the target consultation category attribute that matches the personnel attributes;

[0055] The target consultation category attribute is sent to the client for display.

[0056] In related technologies, the consultation system does not support dynamic switching of form questions, making it unsuitable for various types of users. Users need to frequently switch patients and reload the form page, affecting the performance of the form consultation. Therefore, this invention supports the dynamic addition and deletion of form questions and answers through a structural pattern, namely the decorator pattern. The decorator pattern allows adding new functions to an existing object without changing its structure, reducing coupling between classes. The implementation first establishes an abstract form interface, which is implemented by form subclasses, generating an abstract decorator class. Users decorate form questions and assemble the decorator class according to their needs to generate different form templates.

[0057] like Figure 5As shown, multiple form subclasses, such as contraindications, allergies, liver and kidney function, and breastfeeding issues, are associated through an abstract decorator class, based on the personnel attributes in the patient's information. For example, if the current patient is breastfeeding, a pre-created form creation function is called to obtain the target consultation category attribute that matches the personnel attributes, thus adding the corresponding breastfeeding question to the form displayed on the patient's client. Therefore, it can be dynamically and flexibly applied to different application scenarios, improving the user experience.

[0058] In one or more embodiments, encrypting the SKUID of the current target drug includes: encrypting the SKUID of the current target drug using MD5 encryption.

[0059] In related technologies in China, frequent switching of patients in online consultation systems affects form performance. Because querying drug information is time-consuming, each time a patient is switched, the relevant drug information needs to be retrieved again in the system, which consumes significant computing resources. To solve the above technical problems, based on the aforementioned embodiments, such as... Figure 4 As shown in one application embodiment, the data processing method of the above-mentioned consultation system further includes the following steps:

[0060] S402, the user enters the form collection page.

[0061] S404: Determine whether a value corresponding to the drug SKUID exists in the cache. If yes, proceed to step S406; otherwise, proceed to step S412.

[0062] S406, based on the answer in the drug information query form.

[0063] S408, Assemble form information.

[0064] S410: Store form information in the cache based on the drug SKUID.

[0065] S412, retrieve the value of the key-value pair in the cache.

[0066] S414, returns form problem information.

[0067] In this embodiment of the invention, the drugs are first sorted in ascending order by their SKUIDs. Then, the sorted SKUIDs are encrypted using MD5. MD5 is a hash function widely used in computer security; it can encrypt strings of any length to obtain a fixed-length encrypted string. The encrypted result is used as the key, and the form question and answer information are used as the value, stored in a cache. If the same product is used for a consultation again, the form information can be retrieved directly from the cache without calling the API, greatly improving access and query performance, increasing API response speed, and enhancing user experience.

[0068] The embodiments of the present invention are applied to online O2O drug purchase projects and CSO projects. Through the technical solutions of the embodiments of the present invention, the performance and flexibility of forms can be greatly improved, thereby improving consultation efficiency and user experience.

[0069] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0070] According to another aspect of the present invention, a data processing apparatus for a consultation system for implementing the data processing method of the above-described consultation system is also provided. For example... Figure 6 As shown, the device includes:

[0071] The receiving unit 602 is used to receive a consultation form sent by the client; wherein the consultation form includes prescription information and patient information;

[0072] The first acquisition unit 604 is used to acquire corresponding drug order information based on the prescription information, wherein the drug order information includes a drug set of one or more target drugs;

[0073] The first reading unit 606 is used to read the drug attribute information of the current target drug from the drug cache space if the drug cache space stores the drug attribute information of the current target drug; wherein the drug cache space is stored on a distributed storage node, and the distributed storage node is a storage node mapped to a preset hash ring by a hash algorithm;

[0074] The second reading unit 608 is used to read the drug attribute information of the current target drug from the drug information database;

[0075] The return unit 610 is used to return the drug attribute information of the current target drug to the client.

[0076] In this embodiment of the invention, a method is adopted to receive a consultation form sent by a client; wherein the consultation form includes prescription information and patient information; corresponding drug order information is obtained according to the prescription information, and the drug order information includes a drug set of one or more target drugs; if the drug cache space stores the drug attribute information of the current target drug, the drug attribute information of the current target drug is read from the drug cache space; wherein the drug cache space is stored on a distributed storage node, and the distributed storage node is a storage node mapped to a preset hash ring by a hash algorithm; otherwise, the drug attribute information of the current target drug is read from the drug information database; and the drug attribute information of the current target drug is returned to the client. In the above method, since the obtained drug information is stored in a drug cache composed of distributed storage nodes, when querying the same drug information again, there is no need to retrieve drug data from the drug database, which improves the efficiency of drug query and enhances the user experience, thereby solving the technical problem of low efficiency in querying drug information for consultation and prescription in related technologies, which affects the user experience.

[0077] In one or more embodiments, the data processing device of the consultation system further includes:

[0078] The second acquisition unit is used to acquire the unique identifier SKUID of each target drug in the drug set;

[0079] The first query unit is used to query the drug cache space to see if the drug attribute information of the current target drug is stored, based on the SKUID of the current target drug.

[0080] In one or more embodiments, the data processing device of the consultation system further includes:

[0081] An encryption unit is used to encrypt the SKUID of the current target drug and use the encryption result as the key in a key-value pair with the current target drug. The key value in the key-value pair includes the consultation form and the drug attribute information of the current target drug.

[0082] The second query unit is used to query the drug cache space to see if the drug attribute information of the current target drug is stored, based on the key corresponding to the current target drug.

[0083] In one or more embodiments, the second query unit includes:

[0084] The decryption module is used to decrypt the key corresponding to the current target drug to obtain the SKUID of the current target drug;

[0085] The query module is used to query the drug cache space based on the SKUID to see if the drug attribute information of the current target drug is stored.

[0086] In one or more embodiments, the data processing device of the consultation system further includes:

[0087] The storage unit is used to store the drug attribute information of the current target drug read from the drug information database into the drug cache space.

[0088] In one or more embodiments, the data processing device of the consultation system further includes:

[0089] The encapsulation unit is used to encapsulate multiple consultation category attributes based on the decorator pattern to obtain the form creation function;

[0090] The calling unit is used to call a pre-created form creation function to obtain the target consultation category attribute that matches the personnel attribute based on the personnel attribute in the consultation information;

[0091] The target consultation category attribute is sent to the client for display.

[0092] In one or more embodiments, the encryption unit includes:

[0093] The encryption module is used to encrypt the SKUID of the current target drug using the MD5 encryption method.

[0094] According to another aspect of the embodiments of this application, an electronic device for implementing the data processing method of the above-described consultation system is also provided. This electronic device may be... Figure 1 The terminal device or server shown. This embodiment uses the electronic device as a server as an example for illustration. Figure 7 As shown, the electronic device includes a memory 702 and a processor 704. The memory 702 stores a computer program, and the processor 704 is configured to execute the steps in any of the above method embodiments via the computer program.

[0095] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0096] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0097] S1, receiving a consultation form sent by the client; wherein the consultation form includes prescription information and patient information;

[0098] S2, obtain the corresponding drug order information based on the prescription information, wherein the drug order information includes a drug set of one or more target drugs;

[0099] S3, if the drug cache space stores the drug attribute information of the current target drug, read the drug attribute information of the current target drug from the drug cache space; wherein, the drug cache space is stored on a distributed storage node, and the distributed storage node is a storage node mapped to a preset hash ring by a hash algorithm;

[0100] S4. If not, read the drug attribute information of the current target drug from the drug information database;

[0101] S5, return the drug attribute information of the current target drug to the client.

[0102] Alternatively, as those skilled in the art will understand, Figure 7 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 7 This does not limit the structure of the aforementioned electronic devices or electronic equipment. For example, electronic devices or electronic equipment may also include components that are more... Figure 7 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 7 The different configurations shown.

[0103] The memory 702 can be used to store software programs and modules, such as the program instructions / modules corresponding to the data processing method and apparatus of the consultation system in this embodiment. The processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, thereby realizing the data processing method of the consultation system described above. The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 702 may further include memory remotely located relative to the processor 704, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 702 may be used, but is not limited to, to store the attribute information of pharmaceuticals. As an example, such as Figure 7As shown, the memory 702 may include, but is not limited to, the receiving unit 602, the first acquisition unit 604, the first reading unit 606, the second reading unit 608, and the return unit 610 from the data processing device described above. Furthermore, it may include, but is not limited to, other module units from the data processing device described above, which will not be elaborated upon in this example.

[0104] Optionally, the transmission device 706 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 706 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 706 is a radio frequency (RF) module, used for wireless communication with the Internet.

[0105] In addition, the aforementioned electronic device also includes: a display 708 for displaying the property information of the drug; and a connection bus 710 for connecting the various module components in the aforementioned electronic device.

[0106] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.

[0107] In one or more embodiments, this application also provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the data processing method of the aforementioned consultation system. The computer program is configured to execute the steps of any of the above method embodiments during runtime.

[0108] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the following steps:

[0109] S1, receiving a consultation form sent by the client; wherein the consultation form includes prescription information and patient information;

[0110] S2, obtain the corresponding drug order information based on the prescription information, wherein the drug order information includes a drug set of one or more target drugs;

[0111] S3, if the drug cache space stores the drug attribute information of the current target drug, read the drug attribute information of the current target drug from the drug cache space; wherein, the drug cache space is stored on a distributed storage node, and the distributed storage node is a storage node mapped to a preset hash ring by a hash algorithm;

[0112] S4. If not, read the drug attribute information of the current target drug from the drug information database;

[0113] S5, return the drug attribute information of the current target drug to the client.

[0114] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0115] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0116] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention.

[0117] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0118] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or the indirect coupling or communication connection of units or modules may be electrical or other forms.

[0119] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0120] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0121] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A data processing method for a medical consultation system, characterized in that, include: Receive a consultation form sent by the client; wherein the consultation form includes prescription information and patient information; Obtain the corresponding drug order information based on the prescription information, wherein the drug order information includes a drug set of one or more target drugs; If the drug cache space stores the drug attribute information of the current target drug, the drug attribute information of the current target drug is read from the drug cache space; wherein, the drug cache space is stored on distributed storage nodes, and the distributed storage nodes are storage nodes mapped to a preset hash ring by a consistent hash algorithm, and the drug attribute information includes price, function and contraindications; the drug cache space stores drug attribute information through multiple storage nodes, and when retrieved from the cache, the data stored on the first server in the clockwise direction along the hash ring is the target data; If not, read the drug attribute information of the current target drug from the drug information database; The drug attribute information of the current target drug is returned to the client. The method further includes: Based on the key corresponding to the current target drug, query the drug cache space to see if the drug attribute information of the current target drug is stored; The step of querying the drug cache space to see if the drug attribute information of the current target drug is stored based on the key corresponding to the current target drug includes: Decrypt the key corresponding to the current target drug to obtain the SKUID of the current target drug; Based on the SKUID, query the drug cache space to see if the drug attribute information of the current target drug is stored; The method further includes: The form creation function is obtained by encapsulating multiple consultation category attributes based on the decorator pattern. The decorator pattern supports the dynamic addition and deletion of form questions and answers. Based on the personnel attributes in the patient information, a pre-created form creation function is called to obtain the target consultation category attribute that matches the personnel attributes; The target consultation category attribute is sent to the client for display. The method further includes: An abstract form interface is established for form subclasses to implement, generating an abstract decorator class. Users can assemble the decorator class according to their needs to decorate forms, generating different form templates, including associating multiple form subclasses through the abstract decorator class.

2. The method according to claim 1, characterized in that, After obtaining the corresponding drug order information based on the prescription information, the process includes: Obtain the unique identifier SKUID for each target drug in the drug set; Based on the SKUID of the current target drug, query the drug cache space to see if the drug attribute information of the current target drug is stored.

3. The method according to claim 2, characterized in that, The method further includes: The SKUID of the current target drug is encrypted, and the encryption result is used as the key in a key-value pair with the current target drug. The key value in the key-value pair includes the consultation form and the drug attribute information of the current target drug.

4. The method according to claim 1, characterized in that, The method further includes: The drug attribute information of the current target drug, which is read from the drug information database, is stored in the drug cache space.

5. The method according to claim 3, characterized in that, The encryption of the SKUID of the current target drug includes: The SKUID of the current target drug is encrypted using MD5 encryption.

6. A data processing device for a medical consultation system, characterized in that, include: A receiving unit is used to receive a consultation form sent by a client; wherein the consultation form includes prescription information and patient information; The first acquisition unit is used to acquire corresponding drug order information based on the prescription information, wherein the drug order information includes a drug set of one or more target drugs; The first reading unit is used to read the drug attribute information of the current target drug from the drug cache space if the drug cache space stores the drug attribute information of the current target drug; wherein, the drug cache space is stored on distributed storage nodes, and the distributed storage nodes are storage nodes mapped to a preset hash ring by a consistent hash algorithm; the drug attribute information includes price, function, and contraindications; the drug cache space stores drug attribute information through multiple storage nodes, and when retrieved from the cache, the data stored in the first server along the clockwise direction of the hash ring is the target data; The second reading unit is used to read the drug attribute information of the current target drug from the drug information database if no. The return unit is used to return the drug attribute information of the current target drug to the client; The data processing device of the consultation system also includes: The second query unit is used to query the drug cache space to see if the drug attribute information of the current target drug is stored, based on the key corresponding to the current target drug. The second query unit includes: The decryption module is used to decrypt the key corresponding to the current target drug to obtain the SKUID of the current target drug; The query module is used to query the drug cache space based on the SKUID to see if the drug attribute information of the current target drug is stored. The device is also used for: The form creation function is obtained by encapsulating multiple consultation category attributes based on the decorator pattern. The decorator pattern supports the dynamic addition and deletion of form questions and answers. Based on the personnel attributes in the patient information, a pre-created form creation function is called to obtain the target consultation category attribute that matches the personnel attributes; The target consultation category attribute is sent to the client for display. The device is also used for: An abstract form interface is established for form subclasses to implement, generating an abstract decorator class. Users can assemble the decorator class according to their needs to decorate forms, generating different form templates, including associating multiple form subclasses through the abstract decorator class.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 5.

8. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 5 through the computer program.

Citation Information

Patent Citations

  • Drug dispensing method, block chain node device and system

    CN109509527A