A Web-based method for printing medical imaging films

CN122672728APending Publication Date: 2026-09-01安徽影联云享医疗科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610745177.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-27
Publication Date
2026-09-01

AI Technical Summary

Technical Problem

[0005]本申请提供一种基于WEB页面的医学影像胶片打印方法,旨在解决现有技术在医学影像胶片打印中,阅片显示结果与胶片输出结果一致性不足、不同打印设备及胶片参数的适配性较差以及重复打印配置效率较低的问题

Benefits of technology

本申请基于对现有技术问题的进一步分析和研究,认识到现有技术在医学影像胶片打印中,阅片显示结果与胶片输出结果一致性不足、不同打印设备及胶片参数的适配性较差以及重复打印配置效率较低的问题,通过获取包含待打印医学影像对应的阅片数据和图像显示参数的检查数据以及包含打印设备配置和胶片配置的打印配置数据,在WEB页面中生成用于承载待打印医学影像的打印排版页面,并将图像显示参数同步至打印视口以得到打印显示结果,使正式打印所依据的页面内容直接继承当前阅片状态下的图像显示方式;在此基础上,再根据打印排版页面和打印配置数据确定打印参数,并基于打印排版页面、打印显示结果和打印参数生成正式打印文件,说明正式打印文件并非脱离阅片结果单独形成,而是由浏览器端排版结果、图像显示状态和打印控制参数共同确定;之后再由服务器基于正式打印文件和打印参数构建符合医学数字成像和通信标准的胶片打印任务并发送至胶片打印设备进行打印,说明浏览器端形成的排版与显示结果能够进一步转换为设备可执行的标准打印任务,因此,本申请通过将WEB阅片显示、页面排版、打印参数确定、正式打印文件生成以及标准胶片打印任务输出贯通起来,能够使胶片打印结果与阅片显示结果保持对应,并能够适配不同打印设备和胶片配置,从而解决背景技术中阅片显示结果与胶片输出结果一致性不足以及不同打印设备及胶片参数适配性较差的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122672728A_ABST
    Figure CN122672728A_ABST
Patent Text Reader

Abstract

This application discloses a method for printing medical imaging films based on a web page. The method includes: acquiring examination data and printing configuration data; the examination data includes image reading data and image display parameters corresponding to the medical image to be printed; the printing configuration data includes printing device configuration and film configuration; generating a print layout page on the web page based on the examination data and printing configuration data, and synchronizing the image display parameters to the print viewport to obtain the print display result; determining printing parameters according to the print layout page and printing configuration data; generating a formal print file based on the print layout page, print display result, and printing parameters, and sending it to a server; the server then constructs a film printing task conforming to medical digital imaging and communication standards and sends it to the film printing device for printing. The method provided in this application enables the film printing result to correspond with the image reading display result and is adaptable to different printing devices and film configurations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of medical image processing technology, and in particular to a method for printing medical image films based on a web page. Background Technology

[0002] Medical imaging plays a vital role in clinical diagnosis, consultation analysis, and case management. With the development of medical imaging information systems, the browsing, retrieval, and output of medical images are gradually evolving from traditional dedicated workstations towards networked and platform-based approaches. Doctors can view, analyze, and process examination images through terminal devices. In clinical applications, in addition to screen viewing, there remains a need to output medical images and related information to film media to meet the requirements of scenarios such as consultation, archiving, delivery, and intra-hospital workflow.

[0003] In related technologies, medical imaging film output is typically achieved through independent printing programs, dedicated workstations, server-side image processing modules, or general image printing methods. While these methods can accomplish a certain level of film printing, they still have some shortcomings in practical applications: for example, there are often discrepancies between the image display status on different terminals and the final printed result, leading to insufficient consistency between the output and the reading results; the adaptation process between different printing devices, film specifications, and examination types is cumbersome, and the universality of parameter configuration is poor; furthermore, in scenarios involving repeated printing or historical printing, relevant parameters and records often need to be reselected or reset, affecting efficiency and operational continuity.

[0004] Therefore, in medical imaging film printing, the lack of consistency between the image reading results and the film output results, the poor compatibility with different printing equipment and film parameters, and the low efficiency of repeated printing configuration have become urgent problems to be solved. Summary of the Invention

[0005] This application provides a web-based method for printing medical imaging films, aiming to solve the problems in existing medical imaging film printing, such as insufficient consistency between the image reading display results and the film output results, poor adaptability to different printing devices and film parameters, and low efficiency of repeated printing configuration.

[0006] This application provides a method for printing medical image films based on a web page, the method comprising: Acquire examination data and print configuration data, wherein the examination data includes the image reading data and image display parameters corresponding to the medical image to be printed, and the print configuration data includes the print equipment configuration and film configuration; Based on the examination data and the print configuration data, a print layout page is generated on a web page, the print layout page including at least one print viewport for carrying the medical image to be printed; The image display parameters are synchronized to the print viewport to obtain the print display result; Based on the print layout page and the print configuration data, determine the print parameters; Based on the print layout page, the print display result, and the print parameters, generate the final print file; Send the final print file and the print parameters to the server; The server constructs a film printing task that conforms to medical digital imaging and communication standards based on the formal print file and the print parameters, and sends the film printing task to the film printing equipment for printing.

[0007] Optionally, in the above scheme, the image reading data includes examination number, image sequence, and patient information; The printing device configuration includes printer identifier, printer IP address, application entity title, and service port; The film configuration includes film size information.

[0008] Optionally, in the above scheme, the image display parameters include window width and window level parameters, scaling parameters, translation parameters, flipping parameters, and rotation parameters.

[0009] Optionally, in the above solution, generating a print layout page on a web page based on the inspection data and the print configuration data includes: Retrieve the default film layout configuration based on the inspection type; The printed layout page is generated based on the default film layout configuration; Specifically, when the examination type is CT or MR, the default film layout is configured as a multi-grid layout; when the examination type is CR, DR, or DX, the default film layout is configured as a single-grid layout.

[0010] Optionally, in the above solution, generating the print layout page based on the default film layout configuration includes: Construct a printable layout page in a web page that supports regular grid layout and special layout; wherein, the special layout includes a mixed layout of large and small images; Multiple print viewports are generated in the print layout page to each carry the medical image to be printed.

[0011] Optionally, in the above scheme, synchronizing the image display parameters to the print viewport to obtain the print display result includes: Annotation information is overlaid in the printed viewport; wherein, the annotation information includes examination number, institution information, image number, window width and window level, slice thickness, and patient name, gender, age, and date; The printed display result is obtained based on the synchronized image display parameters and the annotation information.

[0012] Optionally, in the above solution, generating the final print file based on the print layout page, the print display result, and the print parameters includes: Perform preview rendering based on the printed display results; Based on the print layout page and the print parameters, perform the actual print output to generate the final print file.

[0013] Optionally, in the above scheme, the step of performing formal print output based on the print layout page and the print parameters to generate the formal print file includes: The printed layout page is re-rendered based on a dedicated printing container; Determine the final print output size based on the physical dimensions of the film and the target resolution; Rotate the final printout according to the film orientation parameters; Generate the final print file page by page.

[0014] Optionally, in the above scheme, the method further includes: Search for the most recent print record based on the inspection number; Restore the printing device configuration, film configuration, and layout parameters corresponding to the most recent print record.

[0015] Optionally, in the above scheme, the step of the server constructing a film printing task conforming to medical digital imaging and communication standards based on the formal print file and the print parameters, and sending the film printing task to the film printing device for printing, includes: Receive the final print file and the print parameters; Delete the last saved film print record for the same inspection based on the inspection number; Save the official print file to the print film directory, and save the check number, file path, printer identifier, film size, and number of rows and columns in the print record table; Read the actual print file as a bitmap object; Construct film printing properties that conform to medical digital imaging and communication standards based on the bitmap object; Generate film printing parameters that conform to medical digital imaging and communication standards based on the aforementioned printing parameters; Establish an association connection with the film printing device, create a film session, create a film cassette, and obtain an image cassette reference; The image pixel data is written to the image box through a setting operation; The operation triggers the film printing device to perform printing; Delete the film cassette and the film session after printing is complete.

[0016] Compared with the prior art, this application has at least the following beneficial effects: Based on further analysis and research of existing technical problems, this application recognizes that existing technologies in medical image film printing suffer from insufficient consistency between the image viewing display results and the film output results, poor adaptability to different printing equipment and film parameters, and low efficiency of repeated printing configurations. This application addresses these issues by acquiring examination data containing the image viewing data and image display parameters corresponding to the medical image to be printed, as well as print configuration data containing the printing equipment configuration and film configuration. A print layout page for carrying the medical image to be printed is generated on a web page, and the image display parameters are synchronized to the print viewport to obtain the print display result. This ensures that the page content used for the actual printing directly inherits the image display method under the current image viewing state. Based on this, print parameters are determined according to the print layout page and print configuration data, and the actual print is generated based on the print layout page, print display result, and print parameters. The document explains that the official print file is not formed independently of the image reading results, but is determined jointly by the browser's layout, image display status, and print control parameters. Then, the server constructs a film printing task conforming to medical digital imaging and communication standards based on the official print file and print parameters, and sends it to the film printing device for printing. This demonstrates that the layout and display results generated on the browser can be further converted into a standard print task executable by the device. Therefore, by connecting web image reading display, page layout, print parameter determination, official print file generation, and standard film printing task output, this application enables the film printing results to correspond with the image reading display results and adapt to different printing devices and film configurations, thereby solving the problems of insufficient consistency between image reading display results and film output results, and poor adaptability to different printing devices and film parameters in the background art. Attached Figure Description

[0017] Figure 1 A schematic flowchart of a web-based medical imaging film printing method provided in one embodiment of this application; Figure 2 This is a diagram illustrating the architecture of a web page transparency printing system according to one embodiment of this application. Figure 3 A flowchart illustrating the front-end layout and parameter synchronization process provided in one embodiment of this application; Figure 4A two-stage output flowchart for preview and formal printing is provided for one embodiment of this application; Figure 5 This is a flowchart of a server-side DICOM Print output provided in one embodiment of this application. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0019] In one embodiment, such as Figure 1 As shown, a method for printing medical image films based on a web page is provided, including the following steps: Acquire examination data and print configuration data, wherein the examination data includes the image reading data and image display parameters corresponding to the medical image to be printed, and the print configuration data includes the print equipment configuration and film configuration; Based on the examination data and the print configuration data, a print layout page is generated on a web page, the print layout page including at least one print viewport for carrying the medical image to be printed; The image display parameters are synchronized to the print viewport to obtain the print display result; Based on the print layout page and the print configuration data, determine the print parameters; Based on the print layout page, the print display result, and the print parameters, generate the final print file; Send the final print file and the print parameters to the server; The server constructs a film printing task that conforms to medical digital imaging and communication standards based on the formal print file and the print parameters, and sends the film printing task to the film printing equipment for printing.

[0020] In some implementations, examination data and print configuration data are first acquired. The examination data can be extracted directly from the current context of the image viewing page after a specific examination instance is opened in the browser, or obtained through a business interface call. The image viewing data corresponding to the medical image to be printed is used to determine the examination object corresponding to this print job, and the image display parameters are used to reflect the actual display status during the current image viewing. The print configuration data can be obtained by the user selecting the target printing device on the web page, or it can be automatically matched by the system based on the user's department, device availability, or a preset print template. The print configuration data includes at least print device configuration and film configuration. The print device configuration indicates the information required to establish a connection with the target film printing device, and the film configuration indicates the film specifications used for the final print output.

[0021] After acquiring the aforementioned data, the browser generates a print layout page on the web page based on the examination data and the print configuration data. This print layout page is not a simple copy of a regular image viewing page, but rather a layout page specifically designed for film output. This print layout page includes at least one print viewport, each used to hold one or a group of medical images to be printed. If the print job is for a single image, only one print viewport needs to be generated; if the print job is for a combination of multiple images, multiple print viewports can be generated according to the page layout, and the medical images to be printed can be arranged sequentially within the corresponding print viewports.

[0022] Subsequently, the image display parameters are synchronized to the print viewport to obtain the print display result. Here, "synchronization" can be understood as: transferring the image display control quantities already determined during the current image viewing process to the print viewport, ensuring that the image display format in the print viewport is consistent with the image display format on the image viewing page. After synchronization, the image in the print viewport has the grayscale, scaling, position, and orientation states corresponding to the diagnostic display, constituting the print display result for subsequent preview and formal printing.

[0023] Next, based on the print layout page and the print configuration data, the print parameters are determined. The print parameters can be understood as a set of control parameters used in the actual print output stage. Part of their source is the print layout page itself, such as the arrangement of print viewports and the page's row and column structure; another part comes from the print configuration data, such as parameters related to film specifications, equipment connections, and page orientation. After determining the print parameters, the final print file is generated based on the print layout page, the print display result, and the print parameters. The print layout page provides the page organization structure, the print display result provides the specific image content displayed on the page, and the print parameters provide the control basis for the size, orientation, number of pages, etc., during the actual print output.

[0024] After generating the final print file, the final print file and the printing parameters are sent to the server. Upon receiving this information, the server constructs a film printing task conforming to medical digital imaging and communication standards based on the final print file and printing parameters, and sends the film printing task to the film printing equipment for printing. Here, the browser primarily handles layout, display parameter inheritance, and final print file generation, while the server primarily handles saving the final print file, encapsulating the standard print task, and establishing a printing session with the film printing equipment. Together, they form a complete link from web page layout to film printing equipment output.

[0025] This embodiment achieves connectivity between the browser-side image layout results and the output of the film printing device by generating a print layout page in a web page, synchronizing image display parameters to the print viewport, generating a formal print file, and having the server construct a film printing task that conforms to medical digital imaging and communication standards, thus enabling the web-side image layout results to be converted into film printing results.

[0026] In this embodiment, the image reading data includes examination number, image sequence, and patient information; The printing device configuration includes printer identifier, printer IP address, application entity title, and service port; The film configuration includes film size information.

[0027] In some implementations, the specific composition of various input data is further defined. The image reading data includes examination number, image sequence, and patient information. The examination number uniquely identifies the examination instance to which this printout belongs; the image sequence indicates the sequence set to which the medical image to be printed belongs, thus providing data location for the browser to load the corresponding image; and the patient information is used to generate auxiliary display content related to the patient's identity on the print page. By incorporating these three parts into the image reading data, the browser can already possess examination identification, image source, and patient-related information when constructing the print layout page.

[0028] The printing device configuration includes a printer identifier, printer IP address, application entity title, and service port. The printer identifier uniquely identifies the target film printing device, while the printer IP address, application entity title, and service port are used by the server to establish a device connection with the target device that conforms to medical digital imaging and communication standards. The film configuration includes film size information, which indicates the physical specifications of the film corresponding to this actual print output and further participates in determining the actual print output size and generating film printing parameters on the server side.

[0029] This embodiment defines the specific content of the film viewing data, printing equipment configuration, and film configuration, so that inspection information, equipment connection information, and film specification information can be uniformly used in the printing process, providing a data foundation for the generation of print layout pages, the output of formal print documents, and the construction of server-side film printing tasks.

[0030] In this embodiment, the image display parameters include window width and window level parameters, scaling parameters, translation parameters, flipping parameters, and rotation parameters.

[0031] In some implementations, the composition of the image display parameters is specifically defined. These image display parameters include window width and window level parameters, scaling parameters, translation parameters, flip parameters, and rotation parameters. The window width and window level parameters characterize the grayscale display range of the current image; the scaling parameters characterize the magnification or reduction of the current image relative to the original display ratio; the translation parameters characterize the positional offset of the current image within the display area; the flip parameters characterize whether the current image has been flipped horizontally or vertically; and the rotation parameters characterize the angle adjustment state of the current image.

[0032] In practice, these image display parameters can be read from the state object of the diagnostic master view by the browser and written into the printing process context using a unified data structure. When synchronizing to the print viewport, the corresponding parameters can be directly mapped to the image rendering component of the print viewport, allowing the print viewport to display the medical images to be printed in the same way as the diagnostic master view. Thus, the image content presented by the print viewport is no longer a reinterpreted result, but rather an inheritance of the current image viewing state.

[0033] In this embodiment, generating a print layout page on a web page based on the inspection data and the print configuration data includes: Retrieve the default film layout configuration based on the inspection type; The printed layout page is generated based on the default film layout configuration; Specifically, when the examination type is CT or MR, the default film layout is configured as a multi-grid layout; when the examination type is CR, DR, or DX, the default film layout is configured as a single-grid layout.

[0034] In some implementations, the method of "generating a print layout page in a web page based on the examination data and the print configuration data" is further defined. Specifically, the browser first obtains the default film layout configuration according to the examination type, and then generates the print layout page according to the default film layout configuration. Here, "examination type" is used to distinguish different categories of medical examinations. Different examination types usually correspond to different image quantity characteristics and common film layout habits. Therefore, the system can preset the correspondence between examination types and film layouts.

[0035] For example, when the examination type is CT or MR, the default film layout is a multi-grid layout. In this case, the browser can arrange multiple print viewports on the print layout page to display slice images from multiple layers. When the examination type is CR, DR, or DX, the default film layout is a single-grid layout. In this case, the browser can generate a print layout page with a single main print viewport as the primary focus. Thus, when generating the print layout page, the user does not need to select a layout from scratch each time; instead, a default scheme is automatically provided based on the examination type, and the user can then further confirm or adjust it.

[0036] This embodiment obtains the default film layout configuration based on the inspection type and generates the print layout page based on the default film layout configuration, so that different inspection types can correspond to different initial layout methods, thereby reducing the manual operation of setting the layout item by item.

[0037] In this embodiment, generating the print layout page according to the default film layout configuration includes: Construct a printable layout page in a web page that supports regular grid layout and special layout; wherein, the special layout includes a mixed layout of large and small images; Multiple print viewports are generated in the print layout page to each carry the medical image to be printed.

[0038] Specifically, web pages can be used to build print layout pages that support both regular grid layouts and special layouts. Regular grid layouts are suitable for scenarios where multiple medical images are arranged in a regular row and column pattern, such as a regular 2x2, 3x4, or other fixed grid arrangement. Special layouts are suitable for scenarios where there is a main image to highlight, supplementary images to assist in display, or different areas of the page display at different sizes. The special layouts include mixed-size image layouts, where a larger print viewport and a smaller print viewport are simultaneously set on the same print layout page to meet the need for mixed display of key and auxiliary images.

[0039] After determining the page layout type, multiple print viewports are generated within the print layout page to each display the medical image to be printed. These multiple print viewports can occupy different positions and sizes on the page according to layout rules. For a regular grid layout, the print viewports can be arranged with uniform size and spacing; for a mixed layout of large and small images, different print viewports can have their display areas set according to a preset ratio to allow certain key images to receive a larger display area. In this way, the print layout page possesses both regular and irregular layout capabilities.

[0040] This embodiment enables the printed layout page to support both regular grid layouts and special layouts simultaneously, and generates multiple print viewports in the printed layout page, allowing the printed layout page to adapt to different scenarios such as regular layouts and mixed layouts of large and small images, thereby improving the adaptability of the film layout method.

[0041] In this embodiment, synchronizing the image display parameters to the print viewport to obtain the print display result includes: Annotation information is overlaid in the printed viewport; wherein, the annotation information includes examination number, institution information, image number, window width and window level, slice thickness, and patient name, gender, age, and date; The printed display result is obtained based on the synchronized image display parameters and the annotation information.

[0042] Specifically, after synchronizing the image display parameters, annotation information is also overlaid in the printed viewport. This annotation information includes the examination number, institution information, image number, window width and level, slice thickness, and the patient's name, gender, age, and date. This information can be derived from image reading data, image display parameters, and the system's preset institution information configuration.

[0043] In practice, annotation information can be overlaid on the edge of the print viewport according to a preset template, or it can be distributed at the top, bottom, or corners of the viewport depending on the layout of the print page. For example, the examination number and image number can be displayed in the corner of the viewport, the window width, window level, and slice thickness can be displayed in positions related to the image display parameters, and the patient's name, gender, age, and date can be displayed outside the viewport or in a unified information area on the page. After overlay, the synchronized image display parameters and annotation information together constitute the print display result. In other words, the print display result includes not only the image itself, which has inherited the viewing state, but also the text descriptions associated with that image.

[0044] In this embodiment, generating the final print file based on the print layout page, the print display result, and the print parameters includes: Perform preview rendering based on the printed display results; Based on the print layout page and the print parameters, perform the actual print output to generate the final print file.

[0045] Specifically, this process does not directly generate the final print file from the print layout page in one step. Instead, it first performs a preview rendering based on the print display result, and then performs the final print output based on the print layout page and the print parameters to generate the final print file. In this way, the preview rendering and the final print output are clearly distinguished as two different stages.

[0046] The preview rendering stage primarily allows users to confirm whether the current page layout, image selection, annotation placement, and overall display effect meet expectations. The goal of this stage is to address the question of "is the current layout correct?", therefore its output focuses on visual confirmation of the page. The formal print output stage, on the other hand, focuses on generating the final print file. Its focus shifts from simple page display to generating a formal file that can be saved by the server and further converted into a standard transparency print job. In other words, preview rendering serves as a confirmation function, while formal print output serves as the final output function; the two are sequentially linked in the workflow.

[0047] This embodiment divides the process of generating the final print file into two stages: preview rendering and final print output. This allows users to confirm the print display result before generating the final print file, thus separating the preview confirmation from the final print output.

[0048] In this embodiment, the step of performing formal print output based on the print layout page and the print parameters to generate the formal print file includes: The printed layout page is re-rendered based on a dedicated printing container; Determine the final print output size based on the physical dimensions of the film and the target resolution; Rotate the final printout according to the film orientation parameters; Generate the final print file page by page.

[0049] Specifically, the final print output includes: re-rendering the printed layout page based on a dedicated printing container; determining the output size of the final print output according to the physical size of the film and the target resolution; rotating the final print output according to the film orientation parameters; and generating the final print file page by page.

[0050] The dedicated printing container handles the page rendering process during the actual printing stage. Its function is to separate the generation of the final print file from the normal preview display environment, allowing for separate page rendering tailored to the film output requirements during the actual printing stage. Determining the output size of the final print based on the physical dimensions of the film and the target resolution means the system does not use screen pixel dimensions as the basis for the final output, but rather the actual specifications and output precision requirements of the target film. Rotating the final print output according to the film orientation parameters is used to adapt to different orientation requirements, such as landscape and portrait film. Generating the final print file page by page is suitable for scenarios involving checking multiple pages of film output.

[0051] In this embodiment, the method further includes: Search for the most recent print record based on the inspection number; Restore the printing device configuration, film configuration, and layout parameters corresponding to the most recent print record.

[0052] Specifically, the system can query the most recent print record based on the inspection number and restore the corresponding print device configuration, film configuration, and layout parameters. This "most recent print record" can be provided by a server-side print record table, which stores the configuration related to the most recent official print for the same inspection number.

[0053] In practice, when a user initiates another film print for the same inspection, the browser or server can first retrieve the most recent print record based on the inspection number, and then fill in the saved print device configuration, film configuration, and layout parameters into the current print process. This way, the user doesn't need to reselect the target print device, film size, and page layout item by item; they can continue the print process based on the previous plan. The restored configuration can also be adjusted by the user before the actual print job is executed.

[0054] In this embodiment, the step of the server constructing a film printing task conforming to medical digital imaging and communication standards based on the formal print file and the print parameters, and sending the film printing task to the film printing device for printing, includes: Receive the final print file and the print parameters; Delete the last saved film print record for the same inspection based on the inspection number; Save the official print file to the print film directory, and save the check number, file path, printer identifier, film size, and number of rows and columns in the print record table; Read the actual print file as a bitmap object; Construct film printing properties that conform to medical digital imaging and communication standards based on the bitmap object; Generate film printing parameters that conform to medical digital imaging and communication standards based on the aforementioned printing parameters; Establish an association connection with the film printing device, create a film session, create a film cassette, and obtain an image cassette reference; The image pixel data is written to the image box through a setting operation; The operation triggers the film printing device to perform printing; Delete the film cassette and the film session after printing is complete.

[0055] Specifically, the server first receives the official print file and the print parameters. After receiving them, it deletes the previously saved film print record for the same check based on the check number, preventing old files and parameters from interfering with the current print. Then, the official print file is saved to the film directory, and the check number, file path, printer identifier, film size, and number of rows and columns are stored in the print record table. In this way, the server retains both the official print file and the corresponding management record for this print job.

[0056] After saving, the server reads the final print file as a bitmap object. Then, based on the bitmap object, it constructs film printing attributes conforming to medical digital imaging and communication standards. These film printing attributes may include fields such as Rows, Columns, Photometric Interpretation, Samples Per Pixel, Bits Allocated, BitsStored, and Pixel Data, used to characterize the image data structure and pixel data content to be sent to the film printing equipment. Simultaneously, the server generates film printing parameters conforming to medical digital imaging and communication standards based on the printing parameters. These film printing parameters can be used to characterize task parameters related to film size, printing priority, etc.

[0057] After generating attributes and parameters, the server establishes a connection with the film printing device, creates a film session, creates a film cassette, and obtains an image cassette reference. Subsequently, image pixel data is written to the image cassette through setting operations, and then the film printing device is triggered to perform printing through execution operations. After printing is complete, the film cassette and the film session are deleted, thus ending a complete standard film printing session. In this way, the formal print file is converted on the server side into a device-executable printing task conforming to medical digital imaging and communication standards.

[0058] This embodiment enables the formal print file to be converted into a film printing task that conforms to medical digital imaging and communication standards and sent to the film printing device for printing by saving, recording, bitmap reading, constructing film printing attributes, generating film printing parameters, and interacting with the film printing device through a standard printing session.

[0059] In one embodiment, this technical solution is implemented through collaboration between the browser and the server, and the overall architecture is as follows: Figure 2 As shown, the system mainly includes a browser-based layout and preview module, a business server, a print record storage module, and a DICOM film printing device. The browser is responsible for generating the print layout, synchronizing diagnostic parameters, previewing and rendering, and generating the final print file. The business server is responsible for receiving the final print file, saving print records, encapsulating DICOM Print properties, and establishing a print session with the film printing device.

[0060] Browser-side layout and parameter synchronization process: Browser-side process as follows Figure 3 As shown, the main steps include: S101: Load examination data, including examination number, image sequence, patient information, and current image reading status; S102: Obtain printer information and film size configuration, mainly including printer identifier, printer IP, AETitle, service port and supported film sizes; S103: Obtain the default film layout configuration based on the examination modality. For example, CT and MR can use a multi-grid layout by default, while CR, DR, and DX can use a single-grid layout by default. S104: Build print layout pages in the browser, supporting regular grid layout and special layout; S105: Generate multiple print viewports in the print layout page to hold the medical images to be printed; S106: Synchronize interactive parameters such as window width and level, scaling, panning, flipping, and rotation in the diagnostic main view to the print viewport; S107: Overlay examination number, institution information, image number, window width and level, slice thickness, and annotation information such as patient name, gender, age, and date into the printed viewport; S108: The final print page is generated.

[0061] The two-stage output process of previewing and printing is as follows: Figure 4 As shown, this solution divides the preview output and the final print output into two stages.

[0062] The preview stage is used by users to confirm whether the layout is correct, mainly addressing the question of "whether the layout looks right"; the formal printing stage re-renders the formal print file based on a dedicated printing container, and its output size is determined according to the physical size of the film and the target resolution, and can be rotated according to the film orientation parameters.

[0063] During the actual printing stage, the system generates the final print file page by page, and disables smoothing to maintain image boundaries as clearly as possible. Once generated, the system uploads the final print file and printing parameters to the server.

[0064] The printing parameters include at least the check number, printer IP address, printer AE title, service port, film size identifier, and the number of rows and columns in the layout.

[0065] Server-side saving and DICOM Print output process The server-side process is as follows: Figure 5 As shown, the main steps include: S201: Receive the official print file and print parameters uploaded by the browser; S202: Delete the last saved film print record for the same inspection based on the inspection number to avoid old files and old parameters interfering with the current print; S203: Save the official print file to the print film directory, and save the check number, file path, printer identifier, film size, and row and column parameters in the print record table; S204: Read the actual print file as a bitmap object; S205: Construct the properties required for DICOM Print based on the bitmap object, including Rows, Columns, Photometric Interpretation, Samples Per Pixel, Bits Allocated, Bits Stored, and Pixel Data; S206: Generate corresponding DICOM print parameters based on the film size configuration, such as Film Size ID, PrintPriority, etc. S207: Establish an association with the target film printing device and create a Film Session; S208: Create a Film Box and obtain a reference to the Image Box; S209: Write image pixel data to the Image Box via N-SET; S210: Trigger the device to print via N-ACTION; S211: After printing is complete, delete the Film Box and Film Session to finish the current DICOM Print session.

[0066] This embodiment uses a dedicated print layout view in a web page as the unified printing medium, rather than relying on a separate thick client or a fixed backend template for layout. It can inherit the doctor's interactive states during the diagnosis process, such as window width and level, zooming, panning, flipping, and rotating, so that the film results are as consistent as possible with the diagnostic view. It separates preview rendering from formal print rendering, and outputs high-quality print files according to the physical size of the film and the target resolution during the formal printing stage. On the server side, the formal print files generated by the web page are converted into DICOM Print tasks, realizing the connection from browser layout to medical film device output. It also supports the restoration of historical print records, modal default layout, and combination of regular / special layouts, improving the efficiency of repeated printing and scene adaptability. It can save film print files and also directly initiate printing to the device, which has good scalability.

[0067] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

Claims

1. A method for printing medical imaging films based on a web page, characterized in that, The method includes: Acquire examination data and print configuration data, wherein the examination data includes the image reading data and image display parameters corresponding to the medical image to be printed, and the print configuration data includes the print equipment configuration and film configuration; Based on the examination data and the print configuration data, a print layout page is generated on a web page, the print layout page including at least one print viewport for carrying the medical image to be printed; The image display parameters are synchronized to the print viewport to obtain the print display result; Based on the print layout page and the print configuration data, determine the print parameters; Based on the print layout page, the print display result, and the print parameters, generate the final print file; Send the final print file and the print parameters to the server; The server constructs a film printing task that conforms to medical digital imaging and communication standards based on the formal print file and the print parameters, and sends the film printing task to the film printing equipment for printing.

2. The method according to claim 1, characterized in that, The image reading data includes examination number, image sequence, and patient information; The printing device configuration includes printer identifier, printer IP address, application entity title, and service port; The film configuration includes film size information.

3. The method according to claim 1, characterized in that, The image display parameters include window width and window level parameters, scaling parameters, translation parameters, flip parameters, and rotation parameters.

4. The method according to claim 1, characterized in that, The step of generating a print layout page on a web page based on the inspection data and the print configuration data includes: Retrieve the default film layout configuration based on the inspection type; The printed layout page is generated based on the default film layout configuration; Specifically, when the examination type is CT or MR, the default film layout is configured as a multi-grid layout; when the examination type is CR, DR, or DX, the default film layout is configured as a single-grid layout.

5. The method according to claim 4, characterized in that, The step of generating the print layout page according to the default film layout configuration includes: Construct a printable layout page in a web page that supports regular grid layout and special layout; wherein, the special layout includes a mixed layout of large and small images; Multiple print viewports are generated in the print layout page to each carry the medical image to be printed.

6. The method according to claim 1, characterized in that, The step of synchronizing the image display parameters to the print viewport to obtain the print display result includes: Annotation information is overlaid in the printed viewport; wherein, the annotation information includes examination number, institution information, image number, window width and window level, slice thickness, and patient name, gender, age, and date; The printed display result is obtained based on the synchronized image display parameters and the annotation information.

7. The method according to claim 1, characterized in that, The process of generating a final print file based on the print layout page, the print display result, and the print parameters includes: Perform preview rendering based on the printed display results; Based on the print layout page and the print parameters, perform the actual print output to generate the final print file.

8. The method according to claim 7, characterized in that, The step of performing the formal print output based on the print layout page and the print parameters to generate the formal print file includes: The printed layout page is re-rendered based on a dedicated printing container; Determine the final print output size based on the physical dimensions of the film and the target resolution; Rotate the final printout according to the film orientation parameters; Generate the final print file page by page.

9. The method according to claim 1, characterized in that, The method further includes: Search for the most recent print record based on the inspection number; Restore the printing device configuration, film configuration, and layout parameters corresponding to the most recent print record.

10. The method according to claim 1, characterized in that, The process of the server constructing a film printing task conforming to medical digital imaging and communication standards based on the formal print file and the print parameters, and sending the film printing task to the film printing equipment for printing, includes: Receive the final print file and the print parameters; Delete the last saved film print record for the same inspection based on the inspection number; Save the official print file to the print film directory, and save the check number, file path, printer identifier, film size, and number of rows and columns in the print record table; Read the actual print file as a bitmap object; Construct film printing properties that conform to medical digital imaging and communication standards based on the bitmap object; Generate film printing parameters that conform to medical digital imaging and communication standards based on the aforementioned printing parameters; Establish an association connection with the film printing device, create a film session, create a film cassette, and obtain an image cassette reference; The image pixel data is written to the image box through a setting operation; The operation triggers the film printing device to perform printing; Delete the film cassette and the film session after printing is complete.