A prescription generating method and device
By detecting and generating prescription generation methods on electronic devices, the problem of low efficiency of doctor interviews in smart medical systems is solved, rapid generation of electronic prescriptions and automated medical record filling are achieved, improving hospital service efficiency.
Patent Information
- Application Number
- CN202111081482.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-15
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-09-15
AI Technical Summary
The existing smart medical system has deficiencies in improving the efficiency of doctor interviews and electronic prescription entry, resulting in low efficiency of traditional outpatient clinics and long waiting times for patients.
By implementing the prescription generation method on the electronic device, it is detected whether the script file of the target disease is stored in the database. If not, the drug and dosage icon are generated and saved, the doctor's order information is obtained, the script file is generated and stored, and the prescription is generated based on this information to improve Recipe generation efficiency.
Quickly generate electronic prescriptions, automatically fill in medical record scripts, reduce doctor consultation time, reduce patient queuing time, and improve hospital service efficiency.
Smart Images

Figure CN113903418B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical diagnosis auxiliary technology, and in particular to a prescription generation method and device. Background Art
[0002] Medical issues are one of the three major livelihood issues that people are most concerned about in today's society. From the perspective of patients, they expect to get better quality and more efficient medical services during the medical treatment process. From the perspective of medical institutions, they also expect to provide patients with faster and more convenient medical services, improve economic livelihood and create their own benefits. At present, with the advent of the "Internet +" era, the concept of smart medical care is constantly being innovated. In the process of building smart hospitals, smart services have become an important content. At present, smart medical care only stays at the level of "patient-oriented" and ignores the perspective of "doctor-oriented". Due to the low efficiency of doctor's face-to-face consultation, the phenomenon of "three longs and one short" in traditional outpatient clinics has been formed. Although various hospitals have actively taken various measures to improve the efficiency of medical treatment, the most important measure is to use electronic medical records instead of paper medical records. However, the use of electronic medical record systems has not significantly improved patients' waiting time, nor has it significantly improved the efficiency of doctor's face-to-face consultation. The efficiency of electronic medical record (i.e. prescription) entry needs to be improved. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present invention discloses a prescription generating method and device.
[0004] According to a first aspect of an embodiment disclosed in the present invention, a prescription generation method is provided, which is applied to an electronic device, and the method includes:
[0005] In the process of the doctor diagnosing a disease for a patient, when the doctor obtains the patient's registration information and diagnoses a target disease, it is detected whether a target script file corresponding to the target disease is stored in the database;
[0006] If the target script file is not stored in the database, in the process of the doctor determining at least one target drug by triggering the drug icon on the display device and determining the target dosage corresponding to each target drug by triggering the dosage icon, the drug icon and dosage icon corresponding to each target drug are saved to generate a picture file, wherein each target dosage of the target drug is used to treat the target disease;
[0007] Obtaining medical advice information filled out by a doctor for the target disease;
[0008] generating a target script file corresponding to the target disease according to the image file and the doctor's advice information and storing the target script file in the database;
[0009] A target prescription is generated based on at least one target drug determined by a doctor, the target dosage corresponding to each target drug, medical order information and registration information.
[0010] Optionally, the method further includes:
[0011] If the target script file is already stored in the database, obtaining the medical advice information and the picture file corresponding to the target script file;
[0012] Determine at least one target drug corresponding to the target disease and a target dosage corresponding to each target drug according to the image file through a preset image recognition strategy;
[0013] A target prescription is generated based on at least one target drug selected by the doctor, the target dosage corresponding to each target drug, the doctor's order information and the registration information.
[0014] Optionally, in the process of the doctor determining at least one target drug by triggering the drug icon on the display device and determining the target dosage corresponding to each target drug by triggering the dosage icon, saving the drug icon and dosage icon corresponding to each target drug to generate a picture file includes:
[0015] When it is detected that the doctor triggers the drug icon or the dosage icon on the display device, a screenshot of the drug icon or the dosage icon is taken to obtain a screenshot file of the drug icon or the dosage icon;
[0016] After the doctor starts to trigger the drug icon or the dosage icon, if it is detected that the doctor stops triggering the drug icon and the dosage icon, it is determined that the doctor has completed the determination of each target drug and the corresponding target dosage;
[0017] The image file is generated according to the screenshot file of the target drug and the screenshot file of the corresponding target dosage.
[0018] Optionally, generating a target prescription according to at least one target drug determined by a doctor, a target dosage corresponding to each target drug, doctor's order information, and registration information includes:
[0019] Obtain the drug name of each target drug;
[0020] The drug name of the target drug, the target dosage corresponding to each target drug, the doctor's order information and the registration information are input through a preset text input method to generate the target prescription.
[0021] Optionally, if the target script file is not stored in the database, before the doctor determines at least one target drug by triggering a drug icon on a display device and determines a target dosage corresponding to each target drug by triggering a dosage icon, the process includes:
[0022] Prompt information is output to the doctor via the display device, where the prompt information is used to prompt the doctor to trigger the drug icons and dosage icons corresponding to each drug icon on the display device.
[0023] According to a second aspect of the disclosed embodiment of the present invention, there is provided a prescription generating device, which is applied to an electronic device, and the device includes:
[0024] A script detection module, when a doctor diagnoses a disease for a patient, when obtaining the patient's registration information and diagnosing a target disease, detects whether a target script file corresponding to the target disease is stored in the database;
[0025] A picture file generating module connected to the script detecting module, if the target script file is not stored in the database, in the process of the doctor determining at least one target drug by triggering the drug icon on the display device and determining the target dosage corresponding to each target drug by triggering the dosage icon, saving the drug icon and dosage icon corresponding to each target drug to generate a picture file, wherein each target dosage of the target drug is used to treat the target disease;
[0026] A doctor's advice information acquisition module, connected to the image file generation module, to acquire the doctor's advice information for the target disease;
[0027] A storage module, connected to the medical advice information acquisition module, generates a target script file corresponding to the target disease according to the image file and the medical advice information and stores the target script file in the database;
[0028] The prescription generation module is connected to the storage module and generates a target prescription according to at least one target drug determined by the doctor, the target dosage corresponding to each target drug, the doctor's order information and the registration information.
[0029] Optionally, the device further comprises:
[0030] An information acquisition module, connected to the script detection module, acquires the medical advice information and image file corresponding to the target script file if the target script file has been stored in the database;
[0031] The image recognition module is connected to the prescription generation module and the information acquisition module respectively, and determines at least one target drug corresponding to the target disease and the target dosage corresponding to each target drug according to the image file through a preset image recognition strategy.
[0032] Optionally, it is characterized in that the picture file generation module includes:
[0033] A screenshot file acquisition unit, when detecting that the doctor triggers the drug icon or the dosage icon on the display device, takes a screenshot of the drug icon or the dosage icon, and acquires a screenshot file of the drug icon or the dosage icon;
[0034] a completion determination unit connected to the screenshot file acquisition unit, and determining that the doctor has completed determination of each target drug and the corresponding target dosage if it is detected that the doctor stops triggering the drug icon and the dosage icon after the doctor starts triggering the drug icon or the dosage icon;
[0035] The picture file generating unit is connected to the completion determining unit, and generates the picture file according to the screenshot file of the target drug and the screenshot file of the corresponding target dosage.
[0036] Optionally, it is characterized in that the prescription generation module includes:
[0037] A name acquisition unit, which acquires the drug name of each target drug;
[0038] The text input unit is connected to the name acquisition unit, and inputs the drug name of the target drug, the target dosage corresponding to each target drug, the doctor's order information and the registration information through a preset text input method to generate the target prescription.
[0039] Optionally, the device is characterized in that it further comprises:
[0040] A prompt information output module outputs prompt information to the doctor through the display device, wherein the prompt information is used to prompt the doctor to trigger the drug icons and the dosage icons corresponding to each drug icon on the display device.
[0041] The technical solution of the present invention can bring the following beneficial effects:
[0042] The present invention can quickly generate automated scripts for issuing electronic prescriptions and filling in electronic medical records. It can run the automated scripts without affecting the hospital's outpatient system and generate prescriptions for patients based on the scripts, thereby helping each outpatient doctor save face-to-face consultation time, greatly improving the doctor's face-to-face consultation efficiency, helping to reduce patients' waiting time, and improving the hospital's service efficiency.
[0043] Other features and advantages disclosed in the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0045] Figure 1 is a flow chart of a prescription generation method according to an exemplary embodiment;
[0046] Figure 2 is based on Figure 1 A flowchart of another prescription generation method is shown;
[0047] Figure 3 is based on Figure 1 A flowchart of a method for generating a picture file is shown;
[0048] Figure 4 is based on Figure 1 A flowchart of a method for inputting prescription text is shown;
[0049] Figure 5 is a structural block diagram of a prescription generating device according to an exemplary embodiment;
[0050] Figure 6 is based on Figure 5 A structural block diagram of another prescription generating device is shown;
[0051] Figure 7 is based on Figure 5 A structural block diagram of a picture file generation module is shown;
[0052] Figure 8 is based on Figure 5 A structural schematic diagram of a prescription generation module is shown. DETAILED DESCRIPTION
[0053] The specific embodiments disclosed in the present invention are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure, and are not used to limit the present disclosure.
[0054] Figure 1 is a flowchart of a prescription generation method according to an exemplary embodiment, which is applied to an electronic device, such as Figure 1 As shown, the method includes:
[0055] In step 101, when the doctor diagnoses a disease for a patient, when obtaining the patient's registration information and diagnosing a target disease, it is detected whether a target script file corresponding to the target disease is stored in the database.
[0056] For example, the prescription generation method in the disclosed embodiment of the present invention is applied to electronic devices including personal computers, workstations, laptops, smart phones, tablet computers, etc., which are connected to an external outpatient system and can send and receive information to the external outpatient system. After the doctor views the patient's registration information (the registration information is sent to the electronic device by the external outpatient system) through the display interface of the electronic device and diagnoses the target disease suffered by the patient, before prescribing an electronic medical record (target prescription) for the target disease for the patient, first detect whether a target script file corresponding to the target disease is stored in the database. The target script file can retrieve relevant information for prescribing a target prescription, such as the patient's registration information, the doctor's medical order information, the target drug used to treat the target disease, the target dosage of each target drug, etc.
[0057] In addition, the prescription generation method in the disclosed embodiment of the present invention includes two program connection modes with the external outpatient system: built-in and external. The built-in method refers to embedding the external outpatient system into the operation system of the prescription generation method for operation, with a high degree of integration, which is convenient for running the script; the external method refers to the independent operation of the operation system of the prescription generation method and the external outpatient system, which greatly reduces the degree of coupling. Since the adoption of the built-in method may change the resolution of the external outpatient system and affect the operation of the external outpatient system, the external method is finally selected. All windows are traversed through the EnumWindows method in the win32gui library to obtain the window title and handle, and display them on the subwindow of the client UI interface (i.e., on the display interface of the display device) for the user to select.
[0058] The prescription generation method operation system involved in the disclosed embodiment of the present invention can adopt the Pyqt5 architecture, conveniently design the UI interface through Qt Designer, and then convert the generated UI file into python code. At the same time, the generated python code can also be directly modified to achieve fine-tuning of the UI interface. The design idea of Qt Designer conforms to the MVC architecture, realizes the separation of interface and logic, and thus can be conveniently developed. Its operation mode is relatively flexible, and you can select the controls to be placed, drag them directly to the main interface, and view the design effect. The main window file operation module and the script running module can be implemented by the menu control; the program connection module, the screenshot click module, and the text input module are implemented by three button controls; the script editing window and the running status window can be implemented by the TextEdit control and the TextBrowser control respectively. The program selection subwindow is mainly implemented by the TableView control and the ButtonBox control. The text input subwindow is mainly implemented by the TextEdit control and the ButtonBox control. The screenshot subwindow does not use controls, and the corresponding UI is displayed by a custom function.
[0059] In step 102, if the target script file is not stored in the database, in the process of the doctor determining at least one target drug by triggering the drug icon on the display device and determining the target dosage corresponding to each target drug by triggering the dosage icon, the drug icon and dosage icon corresponding to each target drug are saved to generate a picture file.
[0060] Among them, each target dosage of the target drug is used to treat the target disease.
[0061] For example, when it is determined that there is no target script file in the database, the doctor manually prescribes a target prescription for the patient. In the disclosed embodiment of the present invention, the doctor automatically fills in the target drug and target dosage column information on the target prescription by triggering (for example, clicking a mouse, touching a touch screen, etc.) the drug icon and dosage icon on the display interface of the electronic device. In order to obtain the target script file during the doctor's process of prescribing the target prescription, when the doctor triggers the corresponding drug icon and dosage icon, each triggered drug icon and dosage icon is saved according to the doctor's triggering order to obtain a picture file.
[0062] In addition, if the target script file is not stored in the database, before the doctor determines at least one target drug by triggering the drug icon on the display device and determines the target dosage corresponding to each target drug by triggering the dosage icon, a prompt message is output to the doctor through the display device to prompt the doctor to start the triggering action on the display device.
[0063] In step 103, the medical advice information for the target disease filled in by the doctor is obtained.
[0064] Specifically, after completing the filling of the target drug and the target dosage through the above step 102, the medical advice information for the target disease filled in by the doctor is obtained to improve the target prescription.
[0065] In step 104, a target script file corresponding to the target disease is generated according to the image file and the medical advice information, and the target script file is stored in the database.
[0066] For example, the target script file includes: a picture file consisting of a drug icon of the target drug and a dosage icon of the target dosage corresponding to each target drug, the doctor's prescription information and the patient's registration information. The target script file containing the above information is saved in the database, and the next time the doctor consults and diagnoses the same target disease, the target script file can be directly run to generate the corresponding target prescription. This saves the doctor's time in manually issuing target prescriptions and improves the efficiency of face-to-face consultations.
[0067] In addition, to store the target script file, you need to use the getSaveFileName method under the QFileDialog class in the QtWidgets library to obtain the file path to be saved, and then use the fwrite method that comes with Python to write it. If the target script file is currently stored in the database, the path of the target script file in the file system must have been obtained, and you only need to use the fwrite method directly; but if the target script file is opened through the "New Script" function, the file path is not obtained, and you need to use the "Save Script As" method to save it.
[0068] In step 105, a target prescription is generated based on at least one target drug determined by the doctor, the target dosage corresponding to each target drug, the doctor's order information, and the registration information.
[0069] For example, after the corresponding target script file is saved in step 104, a target prescription is generated according to the target drug, target dosage, doctor's order information and registration information, so that the patient can purchase the target drug specified by the doctor according to the target prescription and target dosage. In addition, it can be understood that the order of saving the target script file and generating the target prescription can be interchanged according to the actual situation of the doctor's consultation, and no specific requirements are made in the embodiments disclosed in the present invention.
[0070] Figure 2 is based on Figure 1 A flowchart of another prescription generation method is shown in FIG. Figure 2 As shown, the method also includes:
[0071] In step 106, if the target script file has been stored in the database, the medical order information and image file corresponding to the target script file are obtained.
[0072] In step 107, at least one target drug corresponding to the target disease and a target dosage corresponding to each target drug are determined according to the image file through a preset image recognition strategy.
[0073] For example, if the target script file corresponding to the target disease has been stored in the database, it means that the doctor encountered a patient with the same target disease during the previous consultation and saved the script file generated during the process of prescribing the target prescription. In this way, the target script file is run to generate the target prescription based on the image file and medical advice information in the target script file. The "open script" (i.e. run the target script file) function requires the use of QFileDial in the QtWidgets library o The getOpenFileName method under the g class obtains the file path to be opened, and then uses Python o n comes with f o pen method to open it.
[0074] It should be noted that in the process of determining the target drug and target dosage based on the image file, it is necessary to identify the image file through a preset image recognition strategy (by calling the open source Airtest image recognition algorithm in the disclosed embodiment of the present invention). After the corresponding target drug and target dosage are identified, the information in the target drug and target dosage column on the target prescription can be automatically filled in by simulating the action of a doctor triggering the corresponding drug icon and dosage icon on the display screen.
[0075] The above steps 101 to 107 can be implemented as a whole using the Pyqt5 framework: use Qt Designer to generate the client UI file and convert it into a python file, and use the python language to write the logic function. In addition, during the running of the target script file, automatic error reporting can be performed and corresponding log information can be output to help doctors locate and correct errors. The running of the target script mainly involves pyth on script to achieve automated operation. In essence, it is to open a new subprocess in the main process to run the corresponding script. Python3 provides the Popen method under the subprocess class to open a new subprocess and run the shell command separately. However, it is difficult for processes to communicate conveniently. In order to obtain the results generated during the script running process, it is necessary to create a new pipe in the Popen method for communication between the parent process and the child process. In this way, the function of obtaining command line logs in real time during the script running process can be realized, and the kill method can also be used to easily terminate the script running. In order to produce an operation report, after the script runs, the results of the command line output must be saved in a txt file.
[0076] Figure 3 is based on Figure 1 A flowchart of a method for generating a picture file is shown in FIG. Figure 3 As shown, step 102 includes:
[0077] In step 1021, when it is detected that the doctor triggers the drug icon or the dosage icon on the display device, a screenshot of the drug icon or the dosage icon is taken to obtain a screenshot file of the drug icon or the dosage icon.
[0078] For example, after the doctor triggers the action, a screenshot is taken of each drug icon and the corresponding dosage icon triggered by the doctor, and each screenshot and the corresponding timestamp are saved in a screenshot file. In the disclosed embodiment of the present invention, the setMouseTracking method is used for mouse tracking, the screenshot area is manually selected, and then a series of methods in the painter library are used to redraw and obtain a screenshot.
[0079] In step 1022, after the doctor starts to trigger the drug icon or the dosage icon, if it is detected that the doctor stops triggering the drug icon and the dosage icon, it is determined that the doctor has completed the determination of each target drug and the corresponding target dosage.
[0080] In step 1023, the image file is generated based on the screenshot file of the target drug and the screenshot file of the corresponding target dosage.
[0081] For example, if the doctor is not detected to continue the triggering action after the preset time period, it means that the doctor has completed the process of determining the target drug and the target dosage. Alternatively, if the doctor is detected to have triggered the icon indicating "stop" on the display interface, it can also be said that the doctor has completed the determination of the target drug and the target dosage. At this time, a screenshot of all drug icons and dosage icons triggered by the doctor is saved to obtain an image file.
[0082] Figure 4 is based on Figure 1 A flowchart of a prescription text input method is shown in FIG. Figure 4 As shown, step 105 includes:
[0083] In step 1051, the drug name of each target drug is obtained.
[0084] In step 1052, the drug name of the target drug, the target dosage corresponding to each target drug, the doctor's order information, and the registration information are input through a preset text input method to generate the target prescription.
[0085] For example, after obtaining the drug name of the target drug, the drug name, target dosage, doctor's order information and registration information are respectively input into the information input box corresponding to the target prescription by simulating text input (preset text input method) to generate the target prescription.
[0086] Figure 5 is a structural block diagram of a prescription generating device according to an exemplary embodiment. Figure 5 As shown, the device 500 is applied to an electronic device and includes:
[0087] The script detection module 510 detects whether a target script file corresponding to the target disease is stored in the database when the doctor obtains the patient's registration information and diagnoses the target disease during the process of diagnosing the disease for the patient;
[0088] The picture file generating module 520 is connected to the script detecting module 510. If the target script file is not stored in the database, in the process of the doctor determining at least one target drug by triggering the drug icon on the display device and determining the target dosage corresponding to each target drug by triggering the dosage icon, the drug icon and dosage icon corresponding to each target drug are saved to generate a picture file, wherein each target dosage of the target drug is used to treat the target disease;
[0089] The doctor's advice information acquisition module 530 is connected to the image file generation module 520 to acquire the doctor's advice information for the target disease;
[0090] A storage module 540, connected to the medical advice information acquisition module 530, generates a target script file corresponding to the target disease according to the image file and the medical advice information and stores the target script file in the database;
[0091] The prescription generation module 550 is connected to the storage module 540 and generates a target prescription according to at least one target drug determined by the doctor, the target dosage corresponding to each target drug, the doctor's order information and the registration information.
[0092] Figure 6 is based on Figure 5 The structural block diagram of another prescription generating device is shown in FIG. Figure 6 As shown, the device 500 also includes:
[0093] The information acquisition module 560 is connected to the script detection module 510, and if the target script file is already stored in the database, acquires the medical advice information and the image file corresponding to the target script file;
[0094] The image recognition module 570 is connected to the prescription generation module 550 and the information acquisition module 560 respectively, and determines at least one target drug corresponding to the target disease and the target dosage corresponding to each target drug according to the image file through a preset image recognition strategy.
[0095] Figure 7 is based on Figure 5 A structural block diagram of a picture file generation module is shown in FIG. Figure 7 As shown, the picture file generation module 520 includes:
[0096] The screenshot file acquisition unit 521, when detecting that the doctor triggers the drug icon or the dosage icon on the display device, takes a screenshot of the drug icon or the dosage icon, and acquires a screenshot file of the drug icon or the dosage icon;
[0097] The completion determination unit 522 is connected to the screenshot file acquisition unit 521. After the doctor starts to trigger the drug icon or the dosage icon, if it is detected that the doctor stops triggering the drug icon and the dosage icon, it is determined that the doctor has completed the determination of each target drug and the corresponding target dosage;
[0098] The picture file generating unit 523 is connected to the completion determining unit 522, and generates the picture file according to the screenshot file of the target drug and the screenshot file of the corresponding target dosage.
[0099] Figure 8 is based on Figure 5 A schematic diagram of the structure of a prescription generation module is shown in FIG. Figure 8 As shown, the prescription generation module 550 includes:
[0100] A name acquisition unit 551 acquires the drug name of each target drug;
[0101] The text input unit 552 is connected to the name acquisition unit 551, and inputs the drug name of the target drug, the target dosage corresponding to each target drug, the doctor's order information and the registration information through a preset text input method to generate the target prescription.
[0102] Optionally, the device further comprises:
[0103] The prompt information output module outputs prompt information to the doctor through the display device, and the prompt information is used to prompt the doctor to trigger the drug icon and the dosage icon corresponding to each drug icon on the display device.
[0104] In summary, the present invention discloses a prescription generation method and device, which is applied to electronic devices. The method includes: in the process of a doctor diagnosing a disease for a patient, when the patient's registration information is obtained and the target disease is diagnosed, whether a target script file corresponding to the target disease is stored in the database; if the target script file is not stored in the database, the drug icon and dosage icon corresponding to each target drug are saved to generate a picture file; the doctor's prescription information for the target disease is obtained; the target script file corresponding to the target disease is generated according to the picture file and the doctor's prescription information and the target script file is stored in the database; the target prescription is generated according to at least one target drug determined by the doctor, the target dosage corresponding to each target drug, the doctor's prescription information and the registration information. It is possible to save the patient information and the drug information prescribed by the doctor into a script so that the doctor can directly run the script to generate targeted prescription information when encountering the same patient situation, thereby improving the doctor's consultation efficiency and the accuracy of prescription. In addition, a script log function can also be implemented to record script errors.
[0105] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0106] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0107] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A prescription generating device, characterized in that: Applied to electronic equipment, the device comprises: A script detection module, when a doctor diagnoses a disease for a patient, when obtaining the patient's registration information and diagnosing a target disease, detects whether a target script file corresponding to the target disease is stored in the database; A picture file generating module connected to the script detecting module, if the target script file is not stored in the database, in the process of the doctor determining at least one target drug by triggering the drug icon on the display device and determining the target dosage corresponding to each target drug by triggering the dosage icon, saving the drug icon and dosage icon corresponding to each target drug to generate a picture file, wherein each target dosage of the target drug is used to treat the target disease; A doctor's advice information acquisition module, connected to the image file generation module, to acquire the doctor's advice information for the target disease; A storage module, connected to the medical advice information acquisition module, generates a target script file corresponding to the target disease according to the image file and the medical advice information and stores the target script file in the database; A prescription generating module is connected to the storage module and generates a target prescription according to at least one target drug determined by the doctor, the target dosage corresponding to each target drug, the doctor's order information and the registration information; the device also includes: An information acquisition module, connected to the script detection module, acquires the medical advice information and image file corresponding to the target script file if the target script file has been stored in the database; The image recognition module is connected to the prescription generation module and the information acquisition module respectively, and determines at least one target drug corresponding to the target disease and the target dosage corresponding to each target drug according to the image file through a preset image recognition strategy.
2. The prescription generating device according to claim 1, characterized in that: The picture file generation module includes: A screenshot file acquisition unit, when detecting that the doctor triggers the drug icon or the dosage icon on the display device, takes a screenshot of the drug icon or the dosage icon, and acquires a screenshot file of the drug icon or the dosage icon; a completion determination unit connected to the screenshot file acquisition unit, and determining that the doctor has completed determination of each target drug and the corresponding target dosage if it is detected that the doctor stops triggering the drug icon and the dosage icon after the doctor starts triggering the drug icon or the dosage icon; The picture file generating unit is connected to the completion determining unit, and generates the picture file according to the screenshot file of the target drug and the screenshot file of the corresponding target dosage.
3. The prescription generating device according to claim 1, characterized in that: The prescription generation module comprises: A name acquisition unit, which acquires the drug name of each target drug; The text input unit is connected to the name acquisition unit, and inputs the drug name of the target drug, the target dosage corresponding to each target drug, the doctor's order information and the registration information through a preset text input method to generate the target prescription.
4. The prescription generating device according to claim 3, characterized in that: The device also includes: A prompt information output module outputs prompt information to the doctor through the display device, wherein the prompt information is used to prompt the doctor to trigger the drug icons and the dosage icons corresponding to each drug icon on the display device.
