Multi-node film printing control platform based on DCMTK
The multi-node film printing control platform using DCMTK addresses inefficiencies in film printing by enabling historical record management and distributed lock technology to ensure orderly task execution, enhancing user convenience and print efficiency in medical settings.
Patent Information
- Application Number
- CN202411624601.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-04-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Current medical film printing terminals lack effective management and tracking of printed films, leading to inefficiencies such as repeated configuration, task confusion, and low print efficiency when multiple users submit tasks simultaneously, and do not support continuous processing of multiple print jobs.
A multi-node film printing control platform utilizing DCMTK, incorporating file system monitoring and distributed lock technology, manages print tasks and ensures orderly execution through a Web front-end module, back-end API module, and distributed lock mechanism to handle multiple user requests.
Enhances user convenience by allowing historical print record management, reduces redundant configuration, and ensures efficient, reliable printing by preventing task conflicts, thereby improving overall print efficiency and accuracy, especially in large medical institutions.
Smart Images

Figure CN119883147A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of printing technology in the medical industry, and in particular to a multi-node film printing control platform based on DCMTK. Background Art
[0002] Medical imaging data generated by medical equipment such as X-ray machines, CT machines, and MRI devices after irradiating the human body for image collection is presented through medical film. Medical film is used as a recording medium for modern medical images, allowing patients to print corresponding medical imaging examination reports, and is also an auxiliary tool for medical staff to diagnose diseases;
[0003] However, the current film printing terminal cannot view and manage the printed films. Users need to reopen the image data and reset the printing configuration each time, lacking an effective management and traceability mechanism for the printed films. When multiple users submit printing tasks at the same time, the existing platform is difficult to effectively schedule tasks, which is prone to task confusion, printing conflicts, or task loss. In addition, the existing system usually only supports single printing and cannot process multiple printing tasks continuously, resulting in low printing efficiency. To this end, we provide a multi-node film printing control platform based on DCMTK. Summary of the invention
[0004] The purpose of the present invention is to provide a multi-node film printing control platform based on DCMTK, which combines file system monitoring and distributed lock technology to solve the shortcomings of traditional film printing control platforms in print task management and multi-user concurrent processing.
[0005] The present invention can be implemented by the following technical scheme: a multi-node film printing control platform based on DCMTK, including a Web front-end module and a back-end API module, the Web front-end module builds a front-end interface, and the user uses the front-end interface to configure printing parameters, submit printing tasks and display historical records;
[0006] The back-end API module processes user requests, manages printer configuration, and schedules print tasks, including a basic data processing module, a print task monitoring and processing module, and a print task scheduling module. The basic data processing module manages user information, image data, print tasks, and print configurations. The print task monitoring module is used to process print tasks and monitor print progress. The print task scheduling module is used to schedule multiple print tasks.
[0007] A further technical improvement of the present invention is that the Web front-end module sends the image data and printing configuration selected by the user to the back-end API module through an HTTP request and submits a printing request.
[0008] A further technical improvement of the present invention is that the basic data processing module receives a printing request, stores the image data and the printing configuration in a database, and identifies the printing task through a unique ID.
[0009] A further technical improvement of the present invention is that when the printing task scheduling module faces simultaneous task requests from multiple users, it adds all printing tasks to the Redis task queue and executes the tasks one by one in a first-in-first-out manner. After the current task is completed, the process releases the Redis distributed lock, allowing the next task in the task queue to be acquired and executed.
[0010] A further technical improvement of the present invention is that the print task monitoring module uses DCMTK to generate the corresponding DCM file based on the image data and print configuration. At the same time, the generation status of the file will be captured in real time through file system monitoring. When the generation of the corresponding DCM file is detected, the print task status is updated to "executing" and the printing device is controlled to perform actual printing operations.
[0011] A further technical improvement of the present invention is that the print task monitoring processing module monitors the progress of the print task, and when printing is completed, deletes the corresponding DCM file and updates the print task status to "completed".
[0012] A further technical improvement of the present invention is that the basic data processing module stores the final status and historical records of the printing task in a database, and the user can view the printing progress and historical records in real time through the Web front-end module.
[0013] A further technical improvement of the present invention is that the Web front-end module allows the user to select any image that has been printed in the history record for repeated printing without reconfiguring the printing parameters.
[0014] Compared with the prior art, the present invention has the following beneficial effects:
[0015] 1. The present invention adds a historical printing record management function, allowing users to view and trace all printed films and allowing users to easily repeat printing. By introducing this function, not only the convenience of operation is improved, but also the repeated work caused by reconfiguration is greatly reduced, thereby significantly improving work efficiency.
[0016] 2. The present invention saves and manages the user's printing configuration, avoiding the tedious operation of resetting the printing parameters each time printing. By saving the printing configuration, the user can quickly call the saved configuration in the history record, further reducing the configuration time and the probability of error. This configuration management function greatly simplifies the operation steps of multiple printings, optimizes the user experience, and improves the overall printing speed and accuracy, especially when there are a large number of printing tasks.
[0017] 3. The present invention introduces a distributed lock mechanism to ensure that when multiple users submit printing tasks at the same time, each task can be executed in sequence to avoid task conflicts and confusion. The scheduling system significantly improves the reliability and efficiency of multi-user printing, making the platform more stable and efficient when processing multiple tasks, thereby meeting the needs of multiple users using it at the same time, and is particularly suitable for practical application scenarios of large medical institutions or image processing centers. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0019] Figure 1 is a system block diagram of the present invention;
[0020] Figure 2 This is a flow chart of the printing task scheduling of the present invention. DETAILED DESCRIPTION
[0021] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0022] See also Figure 1-2 As shown in the figure, a multi-node film printing control platform based on DCMTK includes a Web front-end module and a back-end API module. The Web front-end is used for user interaction and data display, and the back-end API module is responsible for providing a RESTful interface to process user data, manage printer configuration, execute printing tasks and schedule them.
[0023] For the Web front-end module, we first build a front-end interface based on the Umi framework and Ant Design. The front-end interface mainly includes two parts: the print record list and the film printing module. The print record list is used to display the status, configuration and associated image data of historical printing tasks; the film printing module allows users to select image data, configure printing parameters and submit printing tasks;
[0024] The core of the Web front end is to provide an indirect and intuitive user operation interface, which allows users to view the progress and history of printing tasks in real time. The front end interface interacts with the back end through the API interface, passing the print request submitted by the user to the back end, and receiving and displaying the printing progress and task status.
[0025] For the backend API module, the backend API module implements REST API based on Django framework and DRF (Django RestFramework), mainly including basic data processing module, print task monitoring and processing module and print task scheduling module;
[0026] The basic data processing module is responsible for managing user information, image data, printing tasks and printing configurations, storing the corresponding data in the database and providing data support to the outside world;
[0027] The print task monitoring and processing module is used to process print tasks, monitor the processing progress of a certain print task, and store the progress status in the database;
[0028] The print task scheduling module is used to solve the problem of concurrent printing by multiple users. When multiple users submit print tasks at the same time, the print task scheduling module uses a distributed lock mechanism to ensure that the tasks are executed in sequence and only one task is executed, thereby avoiding task conflicts or losses. The print task scheduling module allocates print service resources to each print task and coordinates the execution order of print tasks.
[0029] The process steps of the entire printing control platform include:
[0030] (1) User submits a print request
[0031] The user selects the image data to be printed and the corresponding printing configuration through the Web front-end module, and then submits a print request. The user's print request, together with the image data and printing configuration information, is sent to the back-end API module through an HTTP request.
[0032] (2) The back-end API module receives and stores the print job
[0033] The basic data processing module receives the print request from the Web front end, stores the image data, print configuration and request information submitted by the user in the database, and generates a unique print task ID to identify the print task.
[0034] (3) Print task scheduling
[0035] The print task scheduling module manages the received print tasks; when multiple users submit print tasks at the same time, the print task scheduling module allocates print service resources to each print task and ensures that the tasks are executed in order by using the Redis distributed lock mechanism;
[0036] Specifically, all submitted printing tasks are placed in the Redis task queue, and the printing tasks are queued in a first-in-first-out manner; after completing the current task, the process releases the distributed lock, allowing the next task in the task queue to be acquired and executed.
[0037] (4) Print task processing
[0038] The print task monitoring and processing module executes the print task; when the user submits a print request, the background will use DCMTK to generate the corresponding DCM file (image file in DI COM format) based on the image data and configured printing parameters selected by the user. At the same time, the generation status of the file will be captured in real time through file system monitoring. When the generation of the corresponding DCM file is detected, the print task status will be updated to "executing" and the status information will be stored in the database. The user can monitor the printing progress in real time.
[0039] (5) Execute printing and update status
[0040] After the DCM file is generated, the system will send the file to the specified printing device through the DCMTK tool for actual printing. The print task monitoring processing module will continue to monitor the progress of the task. When it detects that the printer has successfully completed the printing operation, the system will delete the corresponding DCM file, marking the end of the print task. The deletion of the file also triggers the update of the print task status, which is recorded as "completed" and stored in the database for users to view and manage historical records later.
[0041] (6) Feedback task status to the Web front-end module
[0042] After the print task is completed, the basic data processing module will store the final status of the print task and the print history in the database. Subsequently, the Web front-end module will periodically obtain the print task status update through the API interface, and the user can view the print progress and history in real time. The final result will be displayed on the Web front end for the user to view, including the time of successful printing, configuration, and associated image data.
[0043] (7) Repeat printing and history record management
[0044] The user can view the historical printing records in the Web front-end module and select any printed image for reprinting. The Web front-end module submits the user's selection to the back-end API module via an HTTP request, and the back-end API module executes the printing task again, repeating the above steps.
[0045] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. A multi-node film printing control platform based on DCMTK, including a Web front-end module and a back-end API module, characterized in that: The Web front-end module builds a front-end interface, and users use the front-end interface to configure printing parameters, submit printing tasks and display historical records; The back-end API module processes user requests, manages printer configurations, and schedules the execution of print tasks, including a basic data processing module, a print task monitoring and processing module, and a print task scheduling module. The basic data processing module manages user information, image data, print tasks, and print configurations. The print task monitoring module is used to process print tasks and monitor printing progress. The print task scheduling module is used to schedule multiple print tasks.
2. According to the multi-node film printing control platform based on DCMTK in claim 1, it is characterized in that: The Web front-end module sends the image data and printing configuration selected by the user to the back-end API module via an HTTP request and submits a printing request.
3. According to claim 2, a multi-node film printing control platform based on DCMTK is characterized in that: The basic data processing module receives a print request, stores the image data and print configuration in a database, and identifies the print task through a unique ID.
4. According to the multi-node film printing control platform based on DCMTK in claim 1, it is characterized in that: When facing simultaneous task requests from multiple users, the printing task scheduling module adds all printing tasks to the Redis task queue and executes the tasks one by one in a first-in-first-out manner. After the current task is completed, the process releases the Redis distributed lock, allowing the next task in the task queue to be acquired and executed.
5. According to the multi-node film printing control platform based on DCMTK in claim 1, it is characterized in that: The print task monitoring module uses DCMTK to generate the corresponding DCM file based on the image data and print configuration. At the same time, the generation status of the file will be captured in real time through file system monitoring. When the generation of the corresponding DCM file is detected, the print task status is updated to "executing" and the printing device is controlled to perform actual printing operations.
6. The multi-node film printing control platform based on DCMTK according to claim 5, characterized in that: The print task monitoring processing module monitors the progress of the print task, deletes the corresponding DCM file when printing is completed, and updates the print task status to "completed".
7. The multi-node film printing control platform based on DCMTK according to claim 1, characterized in that: The basic data processing module stores the final status and historical records of the printing task in a database, and the user can view the printing progress and historical records in real time through the Web front-end module.
8. The multi-node film printing control platform based on DCMTK according to claim 7, characterized in that: The Web front-end module allows the user to select any image that has been printed in the history record for repeated printing without reconfiguring the printing parameters.
Citation Information
Patent Citations
Print media output control method and device for medical self-service terminal
CN105303715A
Distributed 3D printing task management method and device, electronic equipment and storage medium
CN117608503A
Printing control apparatus and method for processing job of printing control apparatus and memory medium with computer readable program stored
JP2000153656A
Digital image processing system
JP2000354123A
Print server, and method and program for print history management
JP2005173725A