Method and device for distributing inquiry sheet

By collecting dispatch logs and automatically adjusting the dispatch of medical consultation forms using streaming computing, the problem of unreasonable dispatch caused by manual configuration by doctors is solved, the user experience of patients and doctors is improved, and the scientific dispatch of medical consultation forms is achieved.

CN120600249APending Publication Date: 2025-09-05BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410244797.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

The distribution of consultation orders in existing Internet hospitals relies on doctors manually configuring the number of concurrent requests, resulting in unreasonable dispatching of consultation orders, which affects patients' waiting time for medical treatment and the number of doctors' consultations, increases doctors' workload, and affects the user experience.

Method used

By collecting dispatch logs and automatically calculating dispatch results using streaming computing, the system adjusts the number of concurrent dispatches in real time based on preset logic and the ratio of consultation form types configured by doctors, thus achieving automatic and scientific dispatch of consultation forms.

Benefits of technology

It improves patients' medical experience and doctors' consultation experience, allowing doctors to focus more on diagnosis and treatment and ensure that the dispatch results meet current consultation needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120600249A_ABST
    Figure CN120600249A_ABST
Patent Text Reader

Abstract

The invention discloses an inquiry sheet distribution method and device, and relates to the technical field of internet medical treatment. A specific embodiment of the method comprises the following steps: in response to a received inquiry list distribution request, acquiring a list distribution log in a corresponding statistical time period, and analyzing the list distribution log to obtain a to-be-distributed inquiry list; according to the to-be-distributed inquiry sheet and a preset distribution logic, calculating a sheet distribution result by adopting a stream-oriented calculation mode; and distributing the to-be-distributed inquiry sheet to the corresponding doctor according to the sheet distribution result. According to the embodiment, the inquiry sheet is automatically and scientifically distributed, and the sheet distribution result is calculated in real time according to the collected sheet distribution log, so that the sheet distribution result meets the current inquiry requirement, the medical experience of a patient and the reception experience of a doctor are improved, and the doctor can concentrate on the diagnosis and treatment work.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet medical technology, and in particular to a method and device for distributing medical questionnaires. Background Art

[0002] With the rapid development of internet healthcare, online consultations have become a part of people's lives. Internet hospitals are committed not only to providing greater medical convenience for patients but also to providing doctors with a better online diagnosis and treatment experience. Doctors in existing internet hospitals are required to manually configure the number of concurrent consultation orders they can send over a certain period of time so that the system can dispatch them accordingly.

[0003] In the process of implementing the present invention, the inventors found that the prior art has the following problems:

[0004] The existing dispatch of medical consultation orders is based on the concurrent dispatch number manually configured by the doctor. On the one hand, the concurrent dispatch number is determined by the doctor based on personal experience. If the concurrent dispatch number is configured unreasonably, it will affect the patient's waiting time for medical consultation and the number of patients the doctor sees. On the other hand, the doctor needs to configure the concurrent dispatch number at regular intervals, which increases the doctor's workload and affects the doctor's user experience. Summary of the Invention

[0005] In view of this, an embodiment of the present invention provides a method and device for distributing medical questionnaires, which realizes the automatic and scientific distribution of medical questionnaires, and calculates the dispatch results in real time based on the collected dispatch logs, so that the dispatch results meet the current consultation needs, improves the patient's medical experience and the doctor's reception experience, and also allows doctors to focus more on diagnosis and treatment.

[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for distributing a medical questionnaire is provided, comprising:

[0007] In response to receiving a medical questionnaire dispatch request, collecting dispatch logs within a corresponding statistical time period, parsing the dispatch logs, and obtaining a medical questionnaire to be dispatched;

[0008] Calculate the dispatch result using streaming computing method according to the medical consultation form to be dispatched and the preset dispatch logic;

[0009] According to the dispatch result, the to-be-dispatched medical consultation form is dispatched to the corresponding doctor.

[0010] Optionally, the medical consultation form dispatch request contains a medical consultation form dispatch time point. Before collecting the dispatch log within the corresponding statistical time period, the method further includes: segmenting the entire day according to the preset medical consultation form dispatch time point to obtain the statistical time period corresponding to the medical consultation form dispatch time point, and determining the corresponding statistical time period according to the medical consultation form dispatch time point in the medical consultation form dispatch request.

[0011] Optionally, after collecting the dispatch logs within the corresponding statistical time period, the method further includes: pushing the dispatch logs to a message queue; parsing the dispatch logs, including: parsing the dispatch logs obtained by consuming the message queue.

[0012] Optionally, before parsing the dispatch log, the method further includes: using a distributed lock to lock the dispatch log; after calculating the dispatch result using a streaming computing method, the method further includes: releasing the lock operation of the distributed lock on the dispatch log.

[0013] Optionally, based on the medical questionnaire to be dispatched and the preset dispatching logic, a streaming computing method is used to calculate the dispatching result, including: obtaining the medical questionnaire type allocation weight corresponding to the doctor based on the medical questionnaire type ratio pre-configured by the doctor; and using a streaming computing framework to calculate the dispatching result corresponding to the doctor based on the type and quantity of the medical questionnaire to be dispatched and the medical questionnaire type allocation weight.

[0014] Optionally, after calculating the dispatch result using a streaming computing method, the method further includes: synchronously storing the dispatch result in a database.

[0015] Optionally, after the medical consultation form to be dispatched is dispatched to the corresponding doctor, the method further includes: verifying the dispatch result by monitoring the doctor's average processing time and consultation ratio for the received medical consultation form; if the verification fails, recalculating the dispatch result based on the consultation ratio, and using the recalculated dispatch result to dispatch the medical consultation form to the doctor.

[0016] According to a second aspect of an embodiment of the present invention, there is provided a device for distributing a medical questionnaire, comprising:

[0017] A medical questionnaire determination module is configured to, in response to receiving a medical questionnaire dispatch request, collect dispatch logs within a corresponding statistical time period, parse the dispatch logs, and obtain a medical questionnaire to be dispatched;

[0018] The dispatch result calculation module is used to calculate the dispatch result using a streaming computing method according to the medical consultation form to be dispatched and the preset dispatch logic;

[0019] The medical questionnaire dispatching module is used to dispatch the medical questionnaire to be dispatched to the corresponding doctor according to the dispatching result.

[0020] According to a third aspect of an embodiment of the present invention, there is provided a device for electronically distributing medical questionnaires, comprising:

[0021] one or more processors;

[0022] a storage device for storing one or more programs,

[0023] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.

[0024] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.

[0025] An embodiment of the invention has the following advantages or beneficial effects: by responding to a request for dispatching a medical consultation form, collecting the dispatch log within the corresponding statistical time period, parsing the dispatch log, and obtaining the medical consultation form to be dispatched; using a streaming computing method to calculate the dispatch result according to the medical consultation form to be dispatched and the preset dispatch logic; according to the dispatch result, the medical consultation form to be dispatched is dispatched to the corresponding doctor. This technical solution realizes an automatic and scientific method for dispatching medical consultation forms, calculates the dispatch result in real time based on the collected dispatch log, so that the dispatch result meets the current consultation needs, improves the patient's medical experience and the doctor's reception experience, and allows doctors to focus more on diagnosis and treatment. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are provided for a better understanding of the present invention and are not intended to limit the present invention.

[0027] Figure 1 is a schematic diagram of the main process of the method for distributing medical questionnaires according to an embodiment of the present invention;

[0028] Figure 2 This is a schematic diagram of the principle of stream computing order dispatch results according to an embodiment of the present invention;

[0029] Figure 3 This is a schematic diagram of the specific implementation principle of the method for distributing medical questionnaires according to an embodiment of the present invention;

[0030] Figure 4 This is a schematic diagram of the overall principle of the method for distributing medical questionnaires according to an embodiment of the present invention;

[0031] Figure 5 1 is a schematic diagram of main modules of a device for distributing medical questionnaires according to an embodiment of the present invention;

[0032] Figure 6 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;

[0033] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0034] It should be noted that the collection / aggregation, updating, analysis, use, transmission, and storage of user personal information involved in the technical solutions of the present invention all comply with relevant laws and regulations, are used for legitimate and reasonable purposes, are not shared, disclosed, or sold outside of these legitimate uses, and are subject to oversight and management by national regulatory authorities. Necessary measures should be taken with respect to user personal information to selectively block the use or access of personal information data to prevent unauthorized access to such personal information data, ensure that persons with access to personal information data comply with relevant laws and regulations, and ensure the security of user personal information. Furthermore, once such user personal information data is no longer needed, risks should be minimized by restricting or even prohibiting its collection and / or deleting it.

[0035] The following description of exemplary embodiments of the present invention is made in conjunction with the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding. These details should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0036] The existing dispatch of medical consultation orders is based on the concurrent dispatch number manually configured by the doctor. On the one hand, the concurrent dispatch number is determined by the doctor based on his personal experience. If the concurrent dispatch number is configured unreasonably, it will affect the patient's waiting time for medical consultation and the number of patients the doctor sees. On the other hand, the doctor needs to configure the concurrent dispatch number at regular intervals, which increases the doctor's workload, affects the doctor's user experience, and cannot meet the actual application requirements well.

[0037] In order to solve the above-mentioned problems existing in the prior art, the present invention proposes a method for distributing medical questionnaires. According to the medical questionnaire dispatch request, the dispatch log within the corresponding statistical time period is collected. Based on the medical questionnaires to be dispatched obtained by parsing the dispatch log, the dispatch result is calculated using a streaming computing method according to the preset dispatch logic to dispatch the medical questionnaire. This method realizes an automatic and scientific method for distributing medical questionnaires. The dispatch result is calculated in real time based on the collected dispatch log, so that the dispatch result meets the current medical consultation needs, improves the patient's medical experience and the doctor's reception experience, and allows doctors to focus more on diagnosis and treatment.

[0038] In the introduction to the embodiments of the present invention, the terms and their meanings are as follows:

[0039] Kafka: is a high-throughput distributed publish-subscribe messaging system that can handle all the action stream data of consumers in the website.

[0040] Zookeeper: A distributed lock, a distributed, open source distributed application coordination service.

[0041] Storm: is a free and open source distributed real-time computing system. Storm can easily and reliably process infinite data streams. Just like Hadoop processes big data in batches, Storm can process data in real time.

[0042] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for distributing medical questionnaires according to an embodiment of the present invention. Figure 1 As shown, the method for distributing medical questionnaires according to the embodiment of the present invention includes the following steps S101 to S103.

[0043] Step S101: In response to receiving a medical consultation form dispatching request, collecting dispatching logs within a corresponding statistical time period, parsing the dispatching logs, and obtaining medical consultation forms to be dispatched.

[0044] Specifically, the Internet hospital platform supports various types of consultation needs, such as consultation needs of platform members, consultation needs for interpretation of examination reports, and consultation needs of platform users. Existing consultation form dispatch requests are usually triggered by scheduled tasks. After the dispatch system receives the consultation form dispatch request, it collects various types of dispatch logs within a certain statistical time period corresponding to the consultation form dispatch request, and performs data segmentation, semantic recognition and format conversion on the collected various types of dispatch logs to obtain the type and quantity of consultation forms to be dispatched. It is understandable that the dispatch system will monitor the situation when the doctor logs in for the first time. When monitoring the doctor's first login, it will also trigger a consultation form dispatch request. At this time, it can be a consultation form dispatch request only for the doctor. The dispatch logs within the statistical time period corresponding to the consultation form dispatch request are collected and parsed for calculating the doctor's dispatch result.

[0045] According to one embodiment of the present invention, the medical consultation form dispatch request includes a medical consultation form dispatch time point. Before collecting the dispatch log within the corresponding statistical time period, the method further includes: segmenting the entire day according to the preset medical consultation form dispatch time point to obtain the statistical time period corresponding to the medical consultation form dispatch time point, and determining the corresponding statistical time period according to the medical consultation form dispatch time point in the medical consultation form dispatch request.

[0046] Specifically, considering that consultation needs are updated in real time, it is necessary to define multiple consultation order dispatch time points throughout the day to ensure the real-time and adaptability of consultation order dispatch. Before collecting the dispatch logs for the corresponding statistical time period, refer to the frequency of concurrent dispatches manually configured by doctors in the current Internet hospital to determine the consultation order dispatch time points, segment the entire day, and obtain the statistical time periods corresponding to the dispatch time points. For example, if consultation orders are dispatched every half hour, then the 24-hour day can be divided into 48 statistical time periods. Considering the time required to calculate the consultation order dispatch results, 0:31 is set as the first consultation order dispatch time point of the day, and the corresponding statistical time period is 00:01-0:30. 1:01 is set as the second consultation order dispatch time point of the day, and the corresponding statistical time period is 0:31-01:00. It is understandable that, according to the time characteristics of the consultation needs, they can also be unevenly divided. Between 00:00 and 06:00, there are relatively few consultation needs, so the dispatch time points can be reduced and the time interval of the statistical time period can be lengthened. During the daytime, the dispatch time points can be increased and the time interval of the statistical time period can be shortened. The embodiment of the present invention does not make specific limitations and can be set according to the scenario. In this way, when the dispatch system receives a consultation order dispatch request with a consultation order dispatch time point, it finds the corresponding statistical time period according to the time point and collects the dispatch log within the time period.

[0047] According to another embodiment of the present invention, after collecting the dispatch log within the corresponding statistical time period, the method also includes: pushing the dispatch log to a message queue; parsing the dispatch log, including: parsing the dispatch log obtained by consuming the message queue.

[0048] Specifically, in order to ensure that each consultation demand can be received by the dispatch system and incorporated into the calculation logic, an embodiment of the present invention, after collecting the dispatch logs within the corresponding statistical time period, introduces a message queue system (for example, kafka can be used, but not limited to this), pushes the collected dispatch logs to kafka, and uses kafka to ensure that the messages in the message queue can be consumed in order. In addition, the use of message queues can also alleviate the pressure of dispatch logs being generated faster than the consumption speed, play a buffering role, and ensure that dispatch log data is not lost in the case of sudden and high concurrency, and kafka has a good fit with the subsequent streaming computing system, which is more convenient for practical application. Further, consume kafka to obtain dispatch logs, and then parse the obtained dispatch logs.

[0049] According to another embodiment of the present invention, before parsing the dispatch log, the method further includes: using a distributed lock to lock the dispatch log; after calculating the dispatch result using a streaming computing method, the method further includes: releasing the lock operation of the distributed lock on the dispatch log.

[0050] Specifically, in high-concurrency scenarios, in order to ensure the consistency of data operations, embodiments of the present invention can use Zookeeper distributed locks, but are not limited to this. Before parsing the dispatch log, use Zookeeper to lock the dispatch log to be parsed. After the dispatch result is calculated using a streaming computing method, the lock is released to remove the lock operation on the dispatch log. In addition, the master-slave mode of Zookeeper can also provide support for fault recovery. During the parsing of the dispatch log and the calculation of the dispatch result, if an exception occurs, the data before the exception occurs can be quickly obtained through the replica to recover the fault, thereby improving the stability of the real-time dispatch calculation.

[0051] Step S102: Calculate the dispatch result using a streaming computing method according to the medical consultation form to be dispatched and the preset dispatch logic.

[0052] Specifically, based on the medical questionnaire to be dispatched obtained from the above analysis, according to the preset dispatch logic, combined with the number of online doctors and the corresponding departments, the Storm streaming computing method can be used to calculate the current dispatch result, but it is not limited to this. The specific dispatch logic can be a calculation rule in a pre-configured calculation rule set, for example, the calculation rule set includes an average distribution rule, a matching rule for the doctor's configured areas of expertise and the self-described symptoms in the medical questionnaire, etc. The embodiment of the present invention can directly select the default dispatch logic from the calculation rule set, directly calculate the dispatch result according to the default dispatch logic, or package the identifier of the required dispatch logic in the medical questionnaire dispatch request. If the required dispatch logic identifier is packaged in the medical questionnaire dispatch request, then when the medical questionnaire dispatch request is sent to the dispatch system in the form of an instruction, the dispatch system recognizes the instruction, performs data segmentation and dispatch logic identifier analysis on the instruction, and pushes the analyzed dispatch logic identifier to Storm's real-time computing unit. The real-time computing unit selects the corresponding dispatch logic from the calculation rule set based on the dispatch logic identifier, and performs distribution calculation on the medical questionnaire to be dispatched according to the dispatch logic, and clarifies the doctor ID corresponding to each medical questionnaire to be dispatched.

[0053] According to one embodiment of the present invention, based on the medical questionnaire to be dispatched and the preset dispatching logic, a streaming computing method is used to calculate the dispatching result, including: obtaining the medical questionnaire type allocation weight corresponding to the doctor according to the medical questionnaire type ratio pre-configured by the doctor; and using a streaming computing framework to calculate the dispatching result corresponding to the doctor according to the type and quantity of the medical questionnaire to be dispatched and the medical questionnaire type allocation weight.

[0054] Specifically, the distribution logic of the embodiment of the present invention selects a weight distribution rule. Before or during diagnosis and treatment, doctors can independently configure the ratio of medical consultation types according to existing medical consultation types. For example, there are 5 medical consultations for members, 10 medical consultations for ordinary users of the platform, and 5 medical consultations with pictures and texts for web page visitors. Then, the ratio of medical consultations for members: ordinary users: visitors can be obtained as 1:2:1. According to the ratio of medical consultation types, the allocation weight of the corresponding medical consultation type assigned to the doctor can be determined, and then according to the type and number of medical consultations to be distributed and the allocation weight, the doctor's dispatch result can be calculated in real time through the Storm streaming computing framework.

[0055] Figure 2This is a schematic diagram of the principle of the streaming computing dispatch result of an embodiment of the present invention. When the instruction of the medical consultation form dispatch request is received, the dispatch log within the corresponding statistical time period is collected, and the medical consultation form to be dispatched is obtained by data segmentation, semantic recognition and format conversion of the dispatch log; at the same time, the data of the instruction of the received and identified medical consultation form dispatch request is segmented, and the dispatch logic identifier therein is parsed, and the parsing result is pushed to the real-time stream computing unit of Storm for real-time calculation. The real-time calculation is mainly based on the parsing result of the received instruction, and the corresponding dispatch logic is automatically adapted. Then, the medical consultation form to be dispatched obtained by log parsing is combined and the corresponding dispatch result is calculated according to the medical consultation form dispatch request instruction.

[0056] According to another embodiment of the present invention, after calculating the dispatch result in a streaming computing manner, the method further includes: synchronously storing the dispatch result in a database.

[0057] Specifically, the dispatch results are calculated using streaming computing, and are typically stored in a cache (e.g., Redis, but not limited thereto). To ensure data consistency, after the dispatch results are calculated using streaming computing, they must also be synchronized and stored in the database system.

[0058] Step S103: Distribute the to-be-dispatched medical consultation form to the corresponding doctor according to the dispatch result.

[0059] Specifically, the dispatch system automatically configures the concurrent dispatch count based on the dispatch results it reads, so that the pending medical consultation forms can be dispatched to the corresponding doctors. It is understood that embodiments of the present invention can be based on the existing manual configuration system by doctors, returning the dispatch results to the front end, which automatically configures and displays the concurrent dispatch count based on the received dispatch results. This allows for dispatching medical consultation forms without having to modify the existing system architecture.

[0060] Figure 3 This is a schematic diagram of the specific implementation principle of the method for distributing medical consultation forms in an embodiment of the present invention. The dispatching system receives a medical consultation form dispatching request and collects dispatching logs within the corresponding statistical time period; pushes the dispatching logs to the Kafka message queue for message data management, consumes the message queue through the Storm streaming computing framework to obtain the dispatching logs, parses the dispatching logs, obtains the medical consultation form to be dispatched, and then calculates the dispatching results in real time according to the determined dispatching logic. At the same time, in the process of Kafka message management and Storm parsing calculation, Zookeeper distributed locks are used to coordinate management to ensure the consistency of data operations; finally, the dispatching concurrency number is automatically configured according to the calculated dispatching results to achieve the dispatching of the medical consultation form to be dispatched to the corresponding doctor.

[0061] According to one embodiment of the present invention, after the medical consultation form to be dispatched is dispatched to the corresponding doctor, the method further includes: verifying the dispatch result by monitoring the average processing time and consultation ratio of the doctor for the received medical consultation form; if the verification fails, recalculating the dispatch result based on the consultation ratio, and using the recalculated dispatch result to dispatch the medical consultation form to the doctor.

[0062] Specifically, in order to ensure the accuracy and rationality of the dispatch results, the embodiment of the present invention supports the verification and intelligent adjustment of the dispatch results. After the medical consultation form to be dispatched is dispatched to the corresponding doctor, the doctor's average processing time and consultation ratio for the received medical consultation forms are monitored and calculated. The specific average processing time can be calculated by the consultation time when the doctor processes the medical consultation form and the payment time of the medical consultation form. The consultation time of the medical consultation form = consultation time - payment time. The total consultation time of all medical consultation forms that have been processed in the recent period is calculated in real time to obtain the average consultation time. The average consultation time = the total consultation time of the medical consultation form / the number of consultation forms, and the consultation ratio, or exposure rate = (the number of doctor's consultation forms / the number of dispatched orders) * 100%. The dispatch result is verified by judging whether the current average consultation time and the doctor's consultation ratio are inversely proportional. That is, if the doctor's consultation ratio is high and the average consultation time is short, it means that the dispatch result meets the requirements. If it is not an inverse relationship, the dispatch result verification fails. At this time, the dispatch result is recalculated based on the consultation ratio, specifically: determine whether there are any remaining unreceived consultation forms. If there are any remaining unreceived consultation forms, readjust the dispatch result based on the current average consultation time, and dispatch an appropriate number of consultation forms to the doctor; if there are no remaining unreceived consultation forms, recollect the dispatch log, and obtain the consultation forms to be dispatched. Combined with the time interval between the current time point and the next statistical time period, recalculate the current dispatch result of the doctor, and dispatch consultation forms to the doctor based on the calculated current dispatch result.

[0063] It should be noted that the verification of the dispatch results and the adjustment of the dispatch when the verification fails are performed within the statistical time period corresponding to the medical consultation form dispatch request. If the next statistical time period is reached, the next round of dispatch result calculation will be started: the platform's dispatch log within the corresponding statistical time period is collected to obtain the medical consultation form to be dispatched. According to the medical consultation form to be dispatched and the preset dispatch logic, the dispatch result is calculated using streaming computing, and based on the dispatch result, the medical consultation form to be dispatched is dispatched to the corresponding doctor.

[0064] Figure 4It is a schematic diagram of the overall principle of the method for distributing medical consultation forms in an embodiment of the present invention. The dispatching system receives a medical consultation form dispatching request, collects the dispatching log within the corresponding statistical time period; pushes the dispatching log to the kafka message queue, and the Storm streaming computing framework consumes the kafka message queue to obtain the dispatching log. By parsing the dispatching log, the medical consultation form to be dispatched is obtained, and then the dispatching result is calculated in real time according to the medical consultation form to be dispatched and the preset dispatching logic. At the same time, the Zookeeper distributed lock is used to ensure the consistency of data operations from the kafka message queue to the Storm streaming computing process; finally, the dispatching result calculated by Storm is stored in the Redis cache, and the dispatching result is obtained from the Redis cache to automatically configure the doctor's dispatching concurrency number, so as to dispatch the doctor. In addition, in order to ensure data consistency, the dispatching result also needs to be synchronously stored in the database system DBS.

[0065] By collecting dispatch logs in real time, we can calculate dispatch results in real time, and automatically configure the calculated dispatch results to the doctor's dispatch concurrency number, realizing the automatic and intelligent dispatch of consultation forms. The Storm streaming computing framework is used to ensure computing efficiency. After dispatching to the doctor, the dispatch results are verified by real-time monitoring of the doctor's current consultation status, and the number of dispatches is adjusted in a timely manner to ensure that the dispatches meet current consultation needs, effectively improving the patient's medical experience and the doctor's consultation experience.

[0066] Figure 5 FIG. 1 is a schematic diagram of the main modules of the device for distributing medical questionnaires according to an embodiment of the present invention. Figure 5 As shown, the medical questionnaire distribution device 500 mainly includes a medical questionnaire determination module 501, a dispatch result calculation module 502 and a medical questionnaire distribution module 503.

[0067] The medical questionnaire determination module 501 is configured to, in response to receiving a medical questionnaire dispatch request, collect dispatch logs within a corresponding statistical time period, parse the dispatch logs, and obtain a medical questionnaire to be dispatched;

[0068] The dispatch result calculation module 502 is used to calculate the dispatch result using a streaming computing method based on the medical consultation form to be dispatched and the preset dispatch logic;

[0069] The medical questionnaire dispatching module 503 is used to dispatch the medical questionnaire to be dispatched to the corresponding doctor according to the dispatching result.

[0070] According to one embodiment of the present invention, the medical questionnaire dispatch request includes a medical questionnaire dispatch time point, and the medical questionnaire dispatch device 500 further includes a time period determination module (not shown in the figure), which is used to: before collecting the dispatch log within the corresponding statistical time period, segment the entire day according to the preset medical questionnaire dispatch time point to obtain a statistical time period corresponding to the medical questionnaire dispatch time point, and determine the corresponding statistical time period according to the medical questionnaire dispatch time point in the medical questionnaire dispatch request.

[0071] According to another embodiment of the present invention, the medical consultation form dispatching device 500 also includes a message queue module (not shown in the figure), which is used to: after collecting the dispatch log within the corresponding statistical time period, push the dispatch log to the message queue; the medical consultation form determination module 501 is also used to: parse the dispatch log obtained by consuming the message queue.

[0072] According to another embodiment of the present invention, the medical consultation form dispatching device 500 also includes a distributed lock module (not shown in the figure), which is used to: before parsing the dispatch log, use a distributed lock to lock the dispatch log; after calculating the dispatch result using a streaming computing method, release the lock operation of the distributed lock on the dispatch log.

[0073] According to another embodiment of the present invention, the dispatch result calculation module 502 is also used to: obtain the medical questionnaire type allocation weight corresponding to the doctor based on the medical questionnaire type ratio pre-configured by the doctor; and use the streaming computing framework to calculate the dispatch result corresponding to the doctor based on the type and quantity of the medical questionnaire to be dispatched and the medical questionnaire type allocation weight.

[0074] According to another embodiment of the present invention, the medical consultation form dispatching device 500 further includes a storage module (not shown in the figure) for synchronously storing the dispatching result in a database after calculating the dispatching result by using a streaming computing method.

[0075] According to another embodiment of the present invention, the medical questionnaire distribution device 500 also includes a verification module (not shown in the figure), which is used to: after distributing the medical questionnaire to be distributed to the corresponding doctor, verify the dispatch result by monitoring the doctor's average processing time and consultation ratio for the received medical questionnaire; if the verification fails, recalculate the dispatch result based on the consultation ratio, and use the recalculated dispatch result to distribute the medical questionnaire to the doctor.

[0076] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention can be applied.

[0077] like Figure 6As shown, system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0078] Users can use terminal devices 601, 602, 603 to interact with server 605 via network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, 603, such as a medical consultation form distribution application, etc. (only as an example).

[0079] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0080] Server 605 can be a server that provides various services, such as a background management server (for example only) that provides support for medical consultations performed by users using terminal devices 601, 602, and 603. In response to receiving a medical consultation dispatch request, the background management server can collect dispatch logs within the corresponding statistical time period, parse the dispatch logs, and obtain a medical consultation to be dispatched; calculate the dispatch result using a streaming computing method based on the medical consultation to be dispatched and a preset dispatch logic; and dispatch the medical consultation to be dispatched to the corresponding doctor for processing based on the dispatch result.

[0081] It should be noted that the method for distributing the medical questionnaire provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the device for distributing the medical questionnaire is generally set in the server 605 .

[0082] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0083] Reference below Figure 7 , which shows a schematic structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present invention. Figure 7 The terminal device or server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0084] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage unit 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the system 700 are also stored in the RAM 703. The CPU 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0085] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 708 including a hard disk; and a communication section 709 including a network interface card such as a LAN card or a modem. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 710 as needed, so that computer programs read therefrom can be installed into the storage section 708 as needed.

[0086] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709, and / or installed from a removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0087] It should be noted that the computer-readable medium described in the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, or any suitable combination thereof.

[0088] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0089] The units involved in the embodiments of the present invention may be implemented in software or hardware. The units described may also be provided in a processor. For example, the processor may include: a medical consultation form determination module, a medical consultation form result calculation module, and a medical consultation form dispatching module.

[0090] Among them, the names of these modules do not constitute a limitation of the module itself in some cases. For example, the medical consultation form distribution module can also be described as "a module for distributing the medical consultation form to be distributed to the corresponding doctor based on the distribution result."

[0091] On the other hand, the present invention also provides a computer-readable medium, which may be included in the device described in the embodiment; or it may exist independently and not be assembled into the device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by the device, the device includes: in response to receiving a medical consultation form dispatch request, collecting dispatch logs within the corresponding statistical time period, parsing the dispatch logs, and obtaining a medical consultation form to be dispatched; calculating the dispatch result using a streaming computing method based on the medical consultation form to be dispatched and the preset dispatch logic; and dispatching the medical consultation form to be dispatched to the corresponding doctor based on the dispatch result.

[0092] The technical solution according to the embodiment of the present invention has the following advantages or beneficial effects: by responding to the receipt of a medical consultation form dispatching request, collecting the dispatching log within the corresponding statistical time period, parsing the dispatching log, and obtaining the medical consultation form to be dispatched; according to the medical consultation form to be dispatched and the preset dispatching logic, the streaming computing method is used to calculate the dispatching result; according to the dispatching result, the medical consultation form to be dispatched is dispatched to the corresponding doctor. This technical solution realizes an automatic and scientific medical consultation form dispatching method, calculates the dispatching result in real time based on the collected dispatching log, so that the dispatching result meets the current consultation needs, improves the patient's medical experience and the doctor's reception experience, and also allows doctors to focus more on diagnosis and treatment.

[0093] The specific embodiments described herein do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for distributing medical questionnaires, characterized in that: include: In response to receiving a medical questionnaire dispatch request, collecting dispatch logs within a corresponding statistical time period, parsing the dispatch logs, and obtaining a medical questionnaire to be dispatched; Calculate the dispatch result using streaming computing method according to the medical consultation form to be dispatched and the preset dispatch logic; According to the dispatch result, the to-be-dispatched medical consultation form is dispatched to the corresponding doctor.

2. The method according to claim 1, characterized in that The medical consultation form dispatch request includes a medical consultation form dispatch time point. Before collecting dispatch logs within the corresponding statistical time period, the method further includes: According to the preset medical consultation form dispatching time point, the whole day is segmented to obtain the statistical time period corresponding to the medical consultation form dispatching time point, and the corresponding statistical time period is determined according to the medical consultation form dispatching time point in the medical consultation form dispatching request.

3. The method according to claim 1, characterized in that After collecting the dispatch logs within the corresponding statistical time period, the method further includes: pushing the dispatch logs to a message queue; Parsing the dispatch log includes parsing the dispatch log obtained by consuming the message queue.

4. The method according to claim 1, wherein Before parsing the dispatch log, the method further includes: Use a distributed lock to lock the dispatch log; After calculating the dispatch result by using a streaming computing method, the method further includes: releasing the lock operation of the distributed lock on the dispatch log.

5. The method according to claim 1, wherein According to the medical consultation form to be dispatched and the preset dispatch logic, the dispatch result is calculated using a streaming computing method, including: According to the pre-configured proportion of the medical questionnaire types, the weight of the medical questionnaire type corresponding to the doctor is obtained; According to the type and quantity of the medical consultation forms to be issued, and the weight assigned to the medical consultation form type, a streaming computing framework is used to calculate the corresponding dispatch result of the doctor.

6. The method according to claim 1, wherein After calculating the order dispatch result using the streaming computing method, the method further includes: The dispatch result is synchronously stored in the database.

7. The method according to claim 5, characterized in that After the to-be-dispatched medical questionnaire is dispatched to the corresponding doctor, the method further includes: Verify the dispatch result by monitoring the average processing time and consultation ratio of the doctor for the received medical consultation form; If the verification fails, the dispatch result is recalculated based on the consultation ratio, and the recalculated dispatch result is used to issue a consultation form to the doctor.

8. A device for distributing medical questionnaires, characterized in that: include: A medical questionnaire determination module is configured to, in response to receiving a medical questionnaire dispatch request, collect dispatch logs within a corresponding statistical time period, parse the dispatch logs, and obtain a medical questionnaire to be dispatched; The dispatch result calculation module is used to calculate the dispatch result using a streaming computing method according to the medical consultation form to be dispatched and the preset dispatch logic; The medical questionnaire dispatching module is used to dispatch the medical questionnaire to be dispatched to the corresponding doctor according to the dispatching result.

9. A mobile electronic device terminal, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.