Automatic inquiry document generation method

By taking screenshots of consultation pages in the medical consultation system and generating PDF documents, the problem of inefficiency in traditional systems is solved, automated document generation and storage is realized, and medical service efficiency is improved.

CN119833111AInactive Publication Date: 2025-04-15THE FOURTH HOSPITAL OF HEBEI MEDICAL UNIVERSITY (HEBEI CANCER HOSPITAL)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411888143.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional medical consultation systems are inefficient and cannot achieve dynamic interaction and automatic document generation, especially the function of automatically storing them to the server after consultation is not yet perfect.

Method used

By taking screenshots of the consultation page at multiple screenshot time points, screenshot images are generated, and sorting, dividing and filtering according to the content of the page, finally, PDF documents are generated and stored on the cloud server.

Benefits of technology

It realizes automated document generation and storage of the consultation process, improves medical service efficiency, and solves the problem of inefficiency of traditional systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119833111A_ABST
    Figure CN119833111A_ABST
Patent Text Reader

Abstract

The invention relates to an automatic inquiry document generation method, and belongs to the technical field of medical information, and the method comprises the steps: carrying out the screen capture of an inquiry page at a plurality of screen capture time points, and generating a plurality of screen capture images; identifying page contents in the plurality of screenshot images, and screening the plurality of screenshot images according to the page contents to obtain a screening result; and generating the PDF document according to the screening result. The method has the effect of automatically generating the inquiry document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical information technology, and in particular to a method for automatically generating medical consultation documents. Background Art

[0002] Traditional medical consultation systems mainly rely on doctors' manual recording and medical record organization, which has problems of low efficiency and insufficient data integrity. In the current context of digital medical development, the automatic generation and storage of medical record documents is crucial to improving the efficiency of medical services. Most existing consultation systems cannot achieve dynamic interaction and automatic document generation, especially the function of automatic storage to the server after the consultation is still not perfect. Summary of the invention

[0003] In order to solve the problem that documents cannot be automatically generated, the present application provides a method for automatically generating medical consultation documents.

[0004] An automated medical consultation document generation method provided in this application adopts the following technical solution.

[0005] An automated medical consultation document generation method, comprising: Screenshot the consultation page at multiple screenshot time points to generate multiple screenshot images; Identifying page contents in the plurality of screenshot images, and filtering the plurality of screenshot images according to the page contents to obtain filtering results; A PDF document is generated according to the screening results.

[0006] In a possible implementation manner: before taking screenshots of the consultation page at multiple screenshot time points to generate multiple screenshot images, the method includes: Obtain the identity information of the interviewer; Retrieving the historical consultation records of the consultation personnel according to the identity information; The duration of the screenshot interval of the consultation personnel is determined according to the historical consultation records.

[0007] In a possible implementation manner: determining the screenshot interval of the consultation personnel according to the historical consultation records includes: The historical consultation record includes the historical number of consultations by the medical staff and the historical duration of each consultation. The historical duration of each consultation is the time from when the medical staff answers a question to when the medical staff asks the next question. If the number of historical consultations is 0, the screenshot interval is the preset screenshot interval; If the number of historical consultations is not 0, the average question duration is calculated based on the historical number of consultations and the historical question duration, and the screenshot interval duration is retrieved from a preset comparison table based on the average question duration. The preset comparison table pre-stores the correspondence between the average question duration and the screenshot interval duration.

[0008] In a possible implementation, the screenshot of the consultation page is taken at multiple screenshot time points to generate multiple screenshot images, including: Obtaining the start time of the consultation page; Based on the screenshot interval duration, determining the screenshot time point according to the start time point; Determining whether a screenshot of the medical consultation page is taken at the screenshot time point; If yes, take a screenshot of the consultation page to obtain a screenshot image; If not, then the consultation page will not be screenshoted.

[0009] In a possible implementation manner: the determining whether the medical consultation page is screenshotted at the screenshot time point includes: Retrieving the dynamic content of the consultation page from the screenshot time point of the previous screenshot image to the current screenshot time point; If the dynamic content changes, the consultation page at the current screenshot time point is screenshotted; If the dynamic content does not change, the consultation page at the current screenshot time point will not be screenshotted.

[0010] In a possible implementation: further comprising: Retrieving the screenshot time point of the previously captured screenshot image; Get the current time point; Calculate the elapsed time based on the screenshot time of the previous screenshot image and the current time; Determine whether to close the consultation page according to the elapsed time and the screenshot interval; If the elapsed time exceeds the preset time, the consultation page is closed; If the elapsed time does not exceed the preset time, the consultation page will not be closed.

[0011] In a possible implementation manner: the identifying the page contents in the plurality of screenshot images, filtering the plurality of screenshot images according to the page contents, and obtaining the filtering results includes: Sorting the plurality of screenshot images in the order of screenshot time points to obtain a sorting result; Divide the plurality of screenshot images into groups of three adjacent images according to the sorting result to obtain a division result; Identifying page contents of the plurality of groups of screenshot images in the division results; whether the page content in one of the screenshot images appears twice in the page content in a corresponding set of screenshot images; If yes, then selecting the other two screenshot images from the set of screenshot images; If not, the set of screenshot images is not filtered; The two screenshot images that are filtered out in one group each time and the other group of screenshot images that are not filtered are reordered, divided and filtered until none of the screenshot images in each group will be filtered, thereby obtaining the filtering result.

[0012] In a possible implementation manner: the plurality of screenshot images are divided into groups of three adjacent images according to the sorting result, to obtain a division result, including: If the number of remaining screenshot images is less than three in a group, they will be directly filtered out.

[0013] In summary, the present application includes at least one of the following beneficial technical effects: Screenshot images are obtained by taking screenshots of the consultation page at multiple screenshot time points, and then the multiple screenshot images are sorted, divided and filtered according to the page content. Finally, the filtered screenshot images are automatically generated into PDF documents and stored in the cloud server. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a flow chart of a method for automatically generating medical consultation documents according to an embodiment of the present application. DETAILED DESCRIPTION

[0015] The present application is further described in detail below with reference to the accompanying drawings.

[0016] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make modifications to the present embodiment without any creative contribution as needed. However, as long as it is within the scope of the claims of the present application, it shall be protected by the patent law.

[0017] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0018] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0019] Figure 1 A flow chart of an automated medical consultation document generation method according to an embodiment of the present application is shown, and the main process of the method is described as follows.

[0020] Step S100: Screenshot the medical consultation page at multiple screenshot time points to generate multiple screenshot images.

[0021] Specifically, before this, the patient inputs identity information on the client side, and the identity information includes name, gender, age and symptoms. After the medical staff's server receives the patient's identity information, it retrieves the patient's historical consultation records based on the identity information. The historical consultation records include the patient's historical consultation times and the historical question duration of each time. The historical consultation times include 0 and non-0 times. The historical question duration is the time from the medical staff answering a question to the patient asking the next question. Then, the screenshot interval of the patient is determined based on the historical consultation records. The screenshot interval exists to ensure that every question asked by the patient can be recorded in the screenshot image.

[0022] If the number of historical consultations is 0, it means that the consultant is communicating with the medical staff for the first time, and the screenshot interval is the preset screenshot interval; If the number of historical consultations is not 0, it means that the interviewer has consulted and communicated with the medical staff many times. The average time required for a single question of the interviewer can be estimated, that is, the average question time is calculated by the historical number of consultations and the historical question time, and then the screenshot interval time is retrieved from the preset comparison table according to the average question time. The preset comparison table stores the correspondence between the average question time and the screenshot interval time.

[0023] The screenshot interval should be shorter than the average question duration, and the difference between the screenshot interval and the average question duration should ensure that: At the next screenshot time point, the content of the communication between the interviewer and the medical staff will be equivalent to the update of the content of the communication between the interviewer and the medical staff at the previous screenshot time point, and the update will not occupy the entire screen; in other words, the screenshot interval should ensure that the content captured during the two screenshots at least overlaps to avoid missing communication content.

[0024] After the inquirer enters his / her identity information on the client, he / she can start asking relevant questions. The start time of the inquiry page is obtained, that is, the time when the inquirer and the medical staff enter the inquiry page. Based on the screenshot interval, multiple screenshot time points are determined according to the start time point. At the screenshot time point, it is determined whether the inquiry page is screenshotted; if so, the inquiry page is screenshotted to obtain a screenshot image; if not, the inquiry page is not screenshotted.

[0025] For example, the time point when the patient enters the consultation page is 12:00:00, and the screenshot interval is 20 seconds, then the subsequent multiple screenshot time points are 12:00:20, 12:00:40, 12:01:00, etc., that is, the computer screen of the medical staff's server is captured every 20 seconds through html2canvas to generate a screenshot image.

[0026] Judging whether the consultation page is screenshotted at the screenshot time point includes retrieving the dynamic content of the consultation page from the screenshot time point of the previous screenshot image to the current screenshot time point; if the dynamic content changes, that is, there are questions and answers between the client and the server, the consultation page at the current screenshot time point is screenshotted; if the dynamic content does not change, that is, there are no questions and answers between the client and the server, the consultation page at the current screenshot time point is not screenshotted. It should be noted that judging whether the consultation page is screenshotted at the screenshot time point is to avoid the situation where there are multiple screenshot images.

[0027] For example, at the capture time of the previous screenshot image, 12:00:20, there were 10 sentences of communication between the medical staff and the interviewer on the computer screen of the server. At the current capture time, 12:00:40, if there are still 10 sentences of communication between the medical staff and the interviewer on the computer screen of the server, it means that the dynamic content has not changed, and the previous screenshot image has already included all the communication content. In this case, there is no need to capture the computer screen at the current capture time. If there are 12 sentences of communication between the medical staff and the interviewer on the computer screen of the server, it means that the dynamic content has changed, and the previous screenshot image does not include all the communication content, then the computer screen needs to be captured at the current capture time.

[0028] After the interviewer finishes the interview, there is no specific ending words, and the medical staff cannot determine when to stop taking screenshots. Therefore, the screenshot time point of the previous screenshot image that has been captured is retrieved; the current time point is obtained; the elapsed time is calculated based on the screenshot time point of the previous screenshot image and the current time point; based on the elapsed time and the screenshot interval, it is determined whether to close the consultation page; if the elapsed time exceeds the preset time, the consultation page is closed; if the elapsed time does not exceed the preset time, the consultation page is not closed. It should be noted that the preset time is set according to the actual situation.

[0029] For example, the capture time of the previous screenshot is 12:05:00, and the current time is 12:10:00, so the elapsed time is 5 minutes, and the preset time is 4 minutes. At this time, the elapsed time exceeds the preset time, indicating that the interviewer's inquiry has ended, and the consultation page is closed.

[0030] Step S200: identifying page contents in a plurality of screenshot images, and filtering the plurality of screenshot images according to the page contents to obtain filtering results.

[0031] Specifically, multiple screenshot images are sorted in the order of screenshot time points to obtain a sorting result; multiple screenshot images are divided into groups of three adjacent images according to the sorting result to obtain a division result; the page content of multiple groups of screenshot images in the division result is identified; whether the page content in a screenshot image appears twice in the page content in a group of screenshot images, if so, the other two screenshot images in the group of screenshot images are filtered out, if not, the group of screenshot images is not filtered, and the two screenshot images filtered out of each group and the group of screenshot images that have not been filtered are re-sorted, divided and filtered until no screenshot images in each group are filtered, and the filtering result is obtained. It should be noted that in the process of dividing the screenshot images, if the last screenshot image is less than a group of three, it is directly filtered out.

[0032] For example, the screenshot time point of screenshot image 1 is 13:00:20, the screenshot time point of screenshot image 2 is 13:00:40, the screenshot time point of screenshot image 3 is 13:01:00, the screenshot time point of screenshot image 4 is 13:01:20, the screenshot time point of screenshot image 5 is 13:01:40, the screenshot time point of screenshot image 6 is 13:02:00, and the screenshot time point of screenshot image 7 is 13:02:20. Screenshot images 1-7 are sorted in the order of the screenshot time points, and the sorting result is screenshot image 1-screenshot image 2-screenshot image 3-screenshot image 4-screenshot image 5-screenshot image 6-screenshot image 7. Then, screenshot images 1-7 are divided into three adjacent groups. The division result is that screenshot images 1-3 are one group, screenshot images 4-6 are another group, and screenshot images 1-3 are one group. Screenshot 7 is directly filtered out. The page content in screenshot 1 includes communication sentences 1-5, the page content in screenshot 2 includes communication sentences 3-7, the page content in screenshot 3 includes communication sentences 5-9, the page content in screenshot 4 includes communication sentences 7-11, the page content in screenshot 5 includes communication sentences 9-13, the page content in screenshot 6 includes communication sentences 11-15, and the page content in screenshot 7 includes communication sentences 13-17. Among them, the communication sentences in the page content of screenshot 2 appear at least twice in all the page contents of screenshots 1-3, and the communication sentences in the page content of screenshot 5 appear twice in all the page contents of screenshots 4-6. Screenshot 1, screenshot 3, screenshot 4 and screenshot 6 are filtered out.

[0033] Then, screenshot 1, screenshot 3 and screenshot 4 are filtered as a group, and screenshot 6 and screenshot 7 are directly filtered out. The communication sentences of the page content in any screenshot do not appear twice, and the filtering results are screenshot 1, screenshot 3, screenshot 4, screenshot 6 and screenshot 7.

[0034] Step S300: Generate a PDF document according to the screening results.

[0035] Specifically, the screenshot images in the screening results are used to generate PDS documents through jsPDF, and sent to the backend Java server for storage through Axios. It should be noted that the purpose of filtering the screenshot images is to reduce the existence of screenshot images, prevent the repetition of communication sentences, and improve the experience of subsequent personnel when downloading PDF documents for viewing.

[0036] To summarize, the consultation page is captured at multiple capture time points using html2canvas to obtain screenshot images, and then the multiple screenshot images are sorted, divided and filtered according to the page content. Finally, the filtered screenshot images are automatically generated into PDF documents and stored in the cloud server for subsequent download and viewing.

[0037] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present application (but not limited to) by each other to form a technical solution.

Claims

1. A method for generating an automated medical consultation document, characterized in that: include; Screenshot the consultation page at multiple screenshot time points to generate multiple screenshot images; Identifying page contents in the plurality of screenshot images, and filtering the plurality of screenshot images according to the page contents to obtain filtering results; A PDF document is generated according to the screening results.

2. The method for generating an automated medical consultation document according to claim 1, characterized in that: Before taking screenshots of the consultation page at multiple screenshot time points to generate multiple screenshot images, the method includes: Obtain the identity information of the interviewer; Retrieving the historical consultation records of the consultation personnel according to the identity information; The duration of the screenshot interval of the consultation personnel is determined according to the historical consultation records.

3. The method for generating an automated medical consultation document according to claim 2, characterized in that: The determining of the screenshot interval of the consultation personnel according to the historical consultation records includes: The historical consultation record includes the historical number of consultations by the medical staff and the historical duration of each consultation. The historical duration of each consultation is the time from when the medical staff answers a question to when the medical staff asks the next question. If the number of historical consultations is 0, the screenshot interval is the preset screenshot interval; If the number of historical consultations is not 0, the average question duration is calculated based on the historical number of consultations and the historical question duration, and the screenshot interval duration is retrieved from a preset comparison table based on the average question duration. The preset comparison table pre-stores the correspondence between the average question duration and the screenshot interval duration.

4. The method for generating an automated medical consultation document according to claim 2, characterized in that: The method of taking screenshots of the consultation page at multiple screenshot time points to generate multiple screenshot images includes: Obtaining the start time of the consultation page; Based on the screenshot interval duration, determining the screenshot time point according to the start time point; Determining whether a screenshot of the medical consultation page is taken at the screenshot time point; If yes, take a screenshot of the consultation page to obtain a screenshot image; If not, then the consultation page will not be screenshoted.

5. The method for generating an automated medical consultation document according to claim 4, characterized in that: The determining whether the medical consultation page is screenshotted at the screenshot time point includes: Retrieving the dynamic content of the consultation page from the screenshot time point of the previous screenshot image to the current screenshot time point; If the dynamic content changes, the consultation page at the current screenshot time point is screenshotted; If the dynamic content does not change, the consultation page at the current screenshot time point will not be screenshotted.

6. The method for generating an automated medical consultation document according to claim 5, characterized in that: Also includes; Retrieving the screenshot time point of the previously captured screenshot image; Get the current time point; Calculate the elapsed time based on the screenshot time of the previous screenshot image and the current time; Determine whether to close the consultation page according to the elapsed time and the screenshot interval; If the elapsed time exceeds the preset time, the consultation page is closed; If the elapsed time does not exceed the preset time, the consultation page will not be closed.

7. The method for generating an automated medical consultation document according to claim 6, characterized in that: The identifying of the page contents in the plurality of screenshot images, and filtering the plurality of screenshot images according to the page contents to obtain filtering results, includes: Sorting the plurality of screenshot images in the order of screenshot time points to obtain a sorting result; Divide the plurality of screenshot images into groups of three adjacent images according to the sorting result to obtain a division result; Identifying page contents of the plurality of groups of screenshot images in the division results; whether the page content in one of the screenshot images appears twice in the page content in a corresponding set of screenshot images; If yes, then selecting the other two screenshot images from the set of screenshot images; If not, the set of screenshot images is not filtered; The two screenshot images that are filtered out in one group each time and the other group of screenshot images that are not filtered are reordered, divided and filtered until none of the screenshot images in each group will be filtered, thereby obtaining the filtering result.

8. The method for generating an automated medical consultation document according to claim 7, characterized in that: The step of dividing the plurality of screenshot images into groups of three adjacent images according to the sorting result to obtain a division result includes: If the number of remaining screenshot images is less than three in a group, they will be directly filtered out.