Document printing method and device, electronic device and storage medium
By deploying dual-identity front-end equipment in the hospital, the problem of the server being unable to directly connect to the hospital's intranet printing equipment is solved, enabling secure printing of server-side business data and improving user experience.
Patent Information
- Application Number
- CN202110384992.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-04-09
AI Technical Summary
The medical service cluster deployed in the IDC cannot be directly connected to the printing equipment on the hospital intranet, resulting in poor user experience and inability to effectively print business data on the server side.
By deploying a front-end device with dual identities in the hospital, the device can access both the hospital's internal network and the server's external network, trigger the server device to create files to be printed, and transfer the files to the printing device for printing processing, ensuring that the data Safety.
On the premise of ensuring data security, it enriches the processing methods of server-side business data, improves user experience, and realizes effective printing of server-side medical data.
Smart Images

Figure CN113110808B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a file printing method and device, an electronic device, and a storage medium. Background Art
[0002] With the development of science and technology, it is possible to provide software services to users through the Internet by deploying services in the cloud or IDC (Internet Data Center) and in the form of SaaS (Software-as-a-Service).
[0003] For example, a medical service cluster is deployed in the cloud or IDC, and multiple hospitals can be connected to the medical service cluster, that is, the medical service cluster can provide relevant medical services to multiple connected hospitals. Summary of the invention
[0004] The present disclosure proposes a technical solution for printing documents.
[0005] According to one aspect of the present disclosure, a file printing method is provided, which is applied to a front-end device, wherein the front-end device is configured with a first network port for accessing a first network and a second network port for accessing a second network, and the method comprises:
[0006] Receive a print task through the first network port; send the print task to a server device through the second network port, so that the server device creates a corresponding file to be printed according to the print task; obtain the file to be printed from the server device through the second network port; and send the file to be printed to a printing device through the first network port, so that the printing device prints the file to be printed.
[0007] The file printing method provided by the embodiment of the present disclosure can trigger the printing task of the server device in the second network for the business data deployed on the server by deploying a front-end device that can access the first network and the second network, so as to realize the printing of the business data on the server. Under the premise of ensuring data security, it can enrich the processing method for the business data deployed on the server and improve the user experience.
[0008] In a possible implementation, the printing task at least includes identification information of the data to be printed and a printing protocol.
[0009] In a possible implementation, obtaining the to-be-printed file from the server device through the second network port includes:
[0010] The file to be printed sent by the server device is received through the second network port. The file to be printed is a file pushed by the server device to the front-end device according to the print task corresponding to the file to be printed.
[0011] The file printing method provided by the embodiment of the present disclosure can obtain the to-be-printed file corresponding to the print task from the server device through the front-end device to perform print processing of the to-be-printed file. Under the premise of ensuring data security, it can enrich the processing method for business data deployed on the server and improve the user experience.
[0012] In a possible implementation, obtaining the to-be-printed file from the server device through the second network port includes:
[0013] A print task query instruction is sent to the server device through the second network port, and the print task query instruction is used to query whether the server device has created a file to be printed corresponding to the print task; a query response to the print task query instruction from the server device is received through the second network port; when the query response indicates that the server device has completed the creation of the file to be printed, a download instruction for the file to be printed is sent to the server device through the second network port; and the file to be printed sent by the server device is received through the second network port, and the file to be printed is a file sent by the server device to the front-end device in response to the download instruction.
[0014] The file printing method provided by the embodiment of the present disclosure can obtain the to-be-printed file corresponding to the print task from the server device through the front-end device to perform print processing of the to-be-printed file. Under the premise of ensuring data security, it can enrich the processing method for business data deployed on the server and improve the user experience.
[0015] In a possible implementation, sending the to-be-printed file to a printing device through the first network port includes:
[0016] Performing data verification on the file to be printed; and sending the file to be printed to the printing device through the first network port when the file to be printed passes the data verification.
[0017] The file printing method provided by the embodiment of the present disclosure can prevent the to-be-printed file from being tampered with, stolen, or lost during transmission through a data verification process, thereby improving the data security of the to-be-printed file during data transmission.
[0018] In a possible implementation, the method further includes:
[0019] Receiving print receipt information for the file to be printed sent by the printing device through the first network port, the print receipt information including print success information or print failure information; and sending print receipt information for the print task to the server device through the second network port based on the print receipt information of the file to be printed.
[0020] The file printing method provided by the embodiment of the present disclosure can manage the printed files and the files to be printed through the printing receipt information.
[0021] In a possible implementation, the first network is an internal network of a target location, the second network is an external network, the printing task includes a medical data printing task, and the file to be printed includes a medical data file.
[0022] According to one aspect of the present disclosure, a file printing method is provided, which is applied to a server device, and the method includes:
[0023] Receive a printing task sent by a front-end device; create a file to be printed according to the printing task; and send the file to be printed to the front-end device, so that the front-end device sends the file to be printed to the printing device for printing processing.
[0024] The file printing method provided by the embodiment of the present disclosure can trigger the printing task of the server device in the second network for the business data deployed on the server by deploying a front-end device that can access the first network and the second network, so as to realize the printing of the business data on the server. Under the premise of ensuring data security, it can enrich the processing method for the business data deployed on the server and improve the user experience.
[0025] In a possible implementation, the print task includes at least identification information of data to be printed and a print protocol, and the step of creating a file to be printed according to the print task includes:
[0026] According to the identification information of the data to be printed, the data to be printed is acquired; according to the printing protocol and the data to be printed, the file to be printed is created; and the file to be printed is stored in a data file storage area.
[0027] The file printing method provided by the embodiment of the present disclosure can realize printing of business data of the server by deploying a front-end device that can access the first network and the second network. On the premise of ensuring data security, it can enrich the processing method for business data deployed on the server and improve the user experience.
[0028] In a possible implementation manner, sending the to-be-printed file to the front-end device includes:
[0029] According to the printing task corresponding to the file to be printed, the file to be printed is pushed to the front-end device.
[0030] The file printing method provided by the embodiment of the present disclosure can obtain the to-be-printed file corresponding to the print task from the server device through the front-end device to perform print processing of the to-be-printed file. Under the premise of ensuring data security, it can enrich the processing method for business data deployed on the server and improve the user experience.
[0031] In a possible implementation manner, sending the to-be-printed file to the front-end device includes:
[0032] Receive a task query instruction sent by the front-end device, wherein the task query instruction is used to query whether the server-side device has created the file to be printed corresponding to the print task; send a query response to the task query instruction to the front-end device according to the creation status of the file to be printed corresponding to the print task; receive a download instruction sent by the front-end device, wherein the download instruction includes identification information of the file to be printed; and after acquiring the file to be printed according to the identification information of the file to be printed, send the file to be printed to the front-end device.
[0033] The file printing method provided by the embodiment of the present disclosure can obtain the to-be-printed file corresponding to the print task from the server device through the front-end device to perform print processing of the to-be-printed file. Under the premise of ensuring data security, it can enrich the processing method for business data deployed on the server and improve the user experience.
[0034] In a possible implementation, the method further includes:
[0035] Receiving print receipt information for the print task sent by the front-end device; and performing corresponding processing on the to-be-printed file corresponding to the print task according to the print receipt information of the print task.
[0036] According to one aspect of the present disclosure, a file printing device is provided, which is applied to a front-end device, wherein the front-end device is configured with a first network port for accessing a first network and a second network port for accessing a second network, and the device comprises:
[0037] A first receiving module is used to receive a print task through the first network port; a first sending module is used to send the print task to a server device through the second network port, so that the server device creates a corresponding file to be printed according to the print task; an acquisition module is used to acquire the file to be printed from the server device through the second network port; and a second sending module is used to send the file to be printed to a printing device through the first network port, so that the printing device prints the file to be printed.
[0038] In a possible implementation, the printing task at least includes identification information of the data to be printed and a printing protocol.
[0039] In a possible implementation, the acquisition module is further used to:
[0040] The file to be printed sent by the server device is received through the second network port. The file to be printed is a file pushed by the server device to the front-end device according to the print task corresponding to the file to be printed.
[0041] In a possible implementation, the acquisition module is further used to:
[0042] A print task query instruction is sent to the server device through the second network port, and the print task query instruction is used to query whether the server device has created a file to be printed corresponding to the print task; a query response to the print task query instruction from the server device is received through the second network port; when the query response indicates that the server device has completed the creation of the file to be printed, a download instruction for the file to be printed is sent to the server device through the second network port; and the file to be printed sent by the server device is received through the second network port, and the file to be printed is a file sent by the server device to the front-end device in response to the download instruction.
[0043] In a possible implementation manner, the second sending module is further configured to:
[0044] Performing data verification on the file to be printed; and sending the file to be printed to the printing device through the first network port when the file to be printed passes the data verification.
[0045] In a possible implementation manner, the device further includes:
[0046] A second receiving module is used to receive print receipt information for the file to be printed sent by the printing device through the first network port, and the print receipt information includes print success information or print failure information; and a third sending module is used to send print receipt information for the print task to the server device through the second network port based on the print receipt information of the file to be printed.
[0047] In a possible implementation, the first network is an internal network of a target location, the second network is an external network, the printing task includes a medical data printing task, and the file to be printed includes a medical data file.
[0048] According to one aspect of the present disclosure, there is provided a file printing device, which is applied to a server device, and the device comprises:
[0049] The first receiving module is used to receive the printing task sent by the front-end device; the creating module is used to create the file to be printed according to the printing task; and the sending module is used to send the file to be printed to the front-end device, so that the front-end device sends the file to be printed to the printing device for printing processing.
[0050] In a possible implementation, the printing task includes at least identification information of the data to be printed and a printing protocol, and the creation module is further used to:
[0051] According to the identification information of the data to be printed, the data to be printed is acquired; according to the printing protocol and the data to be printed, the file to be printed is created; and the file to be printed is stored in a data file storage area.
[0052] In a possible implementation, the sending module is further configured to:
[0053] According to the printing task corresponding to the file to be printed, the file to be printed is pushed to the front-end device.
[0054] In a possible implementation, the sending module is further configured to:
[0055] Receive a task query instruction sent by the front-end device, wherein the task query instruction is used to query whether the server-side device has created the file to be printed corresponding to the print task; send a query response to the task query instruction to the front-end device according to the creation status of the file to be printed corresponding to the print task; receive a download instruction sent by the front-end device, wherein the download instruction includes identification information of the file to be printed; and after acquiring the file to be printed according to the identification information of the file to be printed, send the file to be printed to the front-end device.
[0056] In a possible implementation manner, the device further includes:
[0057] A second receiving module is used to receive the print receipt information for the print task sent by the front-end device; and a processing module is used to perform corresponding processing on the to-be-printed file corresponding to the print task according to the print receipt information of the print task.
[0058] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0059] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.
[0060] In the embodiment of the present disclosure, a front-end device can be deployed at the target location where the first network is deployed. The front-end device is configured with a first network port for accessing the first network and a second network port for accessing the second network. Then, when the front-end device receives a print task through the first network port, it can send the print task to the server device through the second network port, so that the server device creates a corresponding file to be printed according to the print task. The front-end device can obtain the file to be printed from the server device through the second network port, and send the file to be printed to the printing device through the first network port, so that the printing device prints the file to be printed. According to the file printing method and device, electronic device and storage medium provided by the embodiment of the present disclosure, by deploying a front-end device that can access the first network and the second network, the server device in the second network can trigger the print task for the business data deployed on the server, so as to realize the printing of the business data on the server. Under the premise of ensuring data security, the processing method for the business data deployed on the server can be enriched to improve the user experience.
[0061] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and do not limit the present disclosure. Other features and aspects of the present disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0063] Figure 1A schematic diagram showing a file printing method according to an embodiment of the present disclosure;
[0064] Figure 2 A flowchart showing a method for printing a file according to an embodiment of the present disclosure is shown;
[0065] Figure 3 A flowchart showing a method for printing a file according to an embodiment of the present disclosure is shown;
[0066] Figure 4 A schematic diagram showing a file printing method according to an embodiment of the present disclosure;
[0067] Figure 5 A schematic diagram showing a file printing method according to an embodiment of the present disclosure;
[0068] Figure 6 A block diagram showing a document printing device according to an embodiment of the present disclosure;
[0069] Figure 7 A block diagram showing a document printing device according to an embodiment of the present disclosure;
[0070] Figure 8 A block diagram of an electronic device 800 according to an embodiment of the present disclosure is shown;
[0071] Fig. 9 A block diagram of an electronic device 1900 according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0072] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0073] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0074] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0075] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0076] For medical services in the medical service cluster deployed on the server side (cloud or IDC), the core business components are all deployed on the server side. For example, for medical imaging services, the core business components (including film reading, diagnosis, surgery planning, etc.) are all deployed on the server side. Since the hospital's network environment is an intranet and the server side is an external network, the hospital's information system and printing system are deployed in the intranet. Therefore, the business services deployed on the server side cannot actively connect to the printing system to perform printing tasks, that is, it is impossible to print the business data on the server side, which is not convenient for users to operate and the user experience is not good.
[0077] The disclosed embodiment provides a file printing method, which can deploy a front-end device with dual identities in the hospital, that is, the front-end device can access the internal network of the hospital and the external network of the server. When a printing task for business data deployed in the server is generated within the hospital, the printing task can be sent to the server device through the front-end device, and after the server device creates the file to be printed corresponding to the printing task, the front-end device sends the file to be printed to the printing device to perform the printing operation.
[0078] For example, refer to Figure 1 , the target place (for example, a hospital or other place) is deployed with a first network, which can be the internal network of the target place, and the server is deployed with a second network, which is an external network for the target place. The terminal device, the front-end device and the printing device are devices deployed in the target place, wherein the terminal device and the printing device are devices for user operation, which can only access the first network, and the front-end device is configured with a first network port for accessing the first network and a second network port for accessing the second network, that is, the front-end device can access both the first network and the second network. The server device is a device that accesses the second network.
[0079] When a user needs to print business data deployed on the server (for example, a doctor needs to print images such as CT (Computed Tomography) films of patients), the user can send the corresponding printing task to the front-end device through the terminal device. The front-end device can receive the printing task from the first network through the first network port, and send the printing task to the server device in the second network through the second network port. After receiving the printing task, the server device can obtain the business data to be printed according to the printing task, create a corresponding file to be printed according to the business data to be printed, and send the file to be printed to the front-end device. The front-end device can receive the task to be printed through the second network port, and send the task to be printed to the printing device through the first network port for printing.
[0080] In this way, by deploying a front-end device that can access the first network and the second network, the server device in the second network can be triggered to perform a printing task for the business data deployed on the server, so as to realize the printing of the business data on the server. On the premise of ensuring the network security of the target location, the processing method for the business data deployed on the server can be enriched to improve the user experience.
[0081] Figure 2 A flowchart of a file printing method according to an embodiment of the present disclosure is shown, and the file printing method can be executed by a front-end device, which is an electronic device such as a terminal device or a server deployed in a target location, and the terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The method can be implemented by a processor calling a computer-readable instruction stored in a memory. Alternatively, the method can be executed by a server.
[0082] like Figure 2 As shown, the file printing method may include:
[0083] In step S21, receiving a print task through the first network port;
[0084] In step S22, the print task is sent to the server device through the second network port, so that the server device creates a corresponding file to be printed according to the print task.
[0085] In the disclosed embodiment, the front-end device is configured with a first network port for accessing the first network and a second network port for accessing the second network. Since the terminal device operable by the user in the target location can only access the first network and cannot access the second network, and the front-end device can access both the first network and the second network, when the user wants to print the business data deployed in the server, the terminal device can send a print task for the data to be printed to the front-end device.
[0086] When the front-end device receives the print task through the first network port, it can send the print task to the server device through the second network port. After receiving the print task, the server device can obtain the data to be printed according to the print task and create a corresponding file to be printed according to the data to be printed.
[0087] In a possible implementation, the first network is an internal network of a target location, the second network is an external network, the printing task may include a medical data printing task, and the file to be printed may include a medical data file.
[0088] In a possible implementation, the printing task may include at least identification information of the data to be printed and a printing protocol.
[0089] For example, the identification information of the data to be printed can be used to identify the data to be printed, that is, the identification information of the data to be printed can include the name, code and other identification information of the data to be printed; the printing protocol can include printing-related setting information for the data to be printed, for example, the printing protocol can include setting information for double-sided printing or single-sided printing, setting information for the layout of the data to be printed on the printing page, setting information for whether the data to be printed is horizontally or vertically laid out, etc. In a possible implementation, the printing task can also include: identity identification information, which can include the first identity identification information of the user (target place) sending the printing task, for example, the first identity identification information can include the name, code and other identification information of the target place; or, the above-mentioned identity identification information can also include the second identity identification information of the user to whom the data to be printed belongs, for example, the second identity identification information can include the name, ID number, social security number and other identification information of the user to whom the data to be printed belongs.
[0090] Exemplarily, taking the target location as Hospital A, the above-mentioned front-end device is deployed in Hospital A. If a doctor wants to print the CT film of Patient A, the doctor can select the CT film of Patient A to be printed by operating the corresponding terminal device, and set the printing protocol of the CT film (exemplarily, assuming that Patient A has 5 CT films to be printed, the 5 films of Patient A can be set to be typeset into one page, single-sided printing, and vertical typesetting), and trigger the control for generating and issuing a print task to send the print task to the front-end device. In this example, the print task may include: identification information of Hospital A, identification information of Patient A, identification information of the CT film, and printing protocol; or, the print task may only include: identification information of the CT film, and printing protocol.
[0091] The front-end device receives the above-mentioned printing task through the first network port, and sends the above-mentioned printing task to the server device through the second network port. After the server device receives the printing task, when the printing task may include: identification information of Hospital A, identification information of Patient A, identification information of CT film, and printing protocol, etc., the data information of Patient A retained in Hospital A can be obtained through the identification information of Hospital A and identification information of Patient A in the printing task, and the above-mentioned 5 film information can be obtained from the retained data information according to the identification information of CT film, and then the 5 film information is typeset through the printing protocol to create a file to be printed. Exemplarily, the file to be printed can also include identification information of Hospital A, identification information of Patient A, identification information of CT film, etc. Alternatively, when the printing task only includes identification information of CT film and printing protocol, the above-mentioned 5 film information can be directly obtained according to the identification information of CT film, and then the 5 film information is typeset through the printing protocol to create a file to be printed.
[0092] In step S23, the file to be printed is obtained from the server device through the second network port.
[0093] In step S24, the file to be printed is sent to a printing device through the first network port, so that the printing device prints the file to be printed.
[0094] For example, after the server device creates a to-be-printed file corresponding to a print task, the front-end device can obtain the to-be-printed file from the server device through the second network port, and can send the to-be-printed file to the printing device through the first network port. After receiving the to-be-printed file, the printing device can perform printing processing on the to-be-printed file, for example: when the printing device is currently idle, the to-be-printed file can be directly printed; or, when the printer is currently occupied, the to-be-printed file can be cached in the print queue until all files before the to-be-printed file in the print queue are printed, and then the to-be-printed file is printed.
[0095] In this way, a front-end device can be deployed at the target location where the first network is deployed. The front-end device is configured with a first network port for accessing the first network and a second network port for accessing the second network. Then, when the front-end device receives a print task through the first network port, it can send the print task to the server device through the second network port, so that the server device creates a corresponding file to be printed according to the print task. The front-end device can obtain the file to be printed from the server device through the second network port, and send the file to be printed to the printing device through the first network port, so that the printing device prints the file to be printed. According to the file printing method provided by the embodiment of the present disclosure, by deploying a front-end device that can access the first network and the second network, the server device in the second network can be triggered to print the business data deployed on the server, so as to realize the printing of the business data on the server. Under the premise of ensuring data security, the processing method for the business data deployed on the server can be enriched to improve the user experience.
[0096] In a possible implementation, obtaining the to-be-printed file from the server device through the second network port may include:
[0097] The file to be printed sent by the server device is received through the second network port. The file to be printed is a file pushed by the server device to the front-end device according to the print task corresponding to the file to be printed.
[0098] For example, after creating a to-be-printed file corresponding to a print task, the server device can directly push the to-be-printed file corresponding to the print task to the front-end device, so that the front-end device sends the to-be-printed file to the print file for printing. Exemplarily, the print task may include the IP address of the front-end device that sends the print task, so the server device can push the to-be-printed file to the front-end device according to the IP address of the front-end device.
[0099] In a possible implementation, obtaining the to-be-printed file from the server device through the second network port may include:
[0100] Sending a print task query instruction to the server device through the second network port, wherein the print task query instruction is used to query whether the server device has created a to-be-printed file corresponding to the print task;
[0101] receiving a query response from the server device to the task query instruction through the second network port;
[0102] When the query response indicates that the server device has completed the creation of the file to be printed, sending a download instruction for the file to be printed to the server device through the second network port;
[0103] The file to be printed sent by the server device is received through the second network port, and the file to be printed is a file sent by the server device to the front-end device in response to the download instruction.
[0104] For example, after creating the to-be-printed file corresponding to the print task, the server device can store the to-be-printed file in the file storage area. When the front-end device receives the print task, it can cache the print task in the task list, and periodically send a task query instruction to the server device according to the print task in the task list. The task query instruction can include the identification information of the print task, so that after receiving the task query instruction, the server device can search for the to-be-printed file corresponding to the print task in the file storage area according to the identification information of the print task, so as to determine the creation status of the to-be-printed file corresponding to each print task.
[0105] Exemplarily, when the server device finds the file to be printed corresponding to the print task, it can be determined that the server device has completed the creation of the file to be printed, or when the server device does not find the file to be printed corresponding to the print task, it can be determined that the server device has not completed the creation of the file to be printed. The server device can generate a query response to the task query instruction according to the creation of the file to be printed corresponding to the print task, and send the query response to the front-end device.
[0106] After the front-end device receives the query response through the second network port, it can determine the creation status of the to-be-printed file corresponding to the print task from the query response. If the query response indicates that the server device has completed the creation of the to-be-printed file, a download instruction for the to-be-printed file corresponding to the print task can be sent to the server device through the second network port. After receiving the download instruction, the server device can obtain the to-be-printed file from the file storage area and send the to-be-printed file to the front-end device.
[0107] In this way, the front-end device can obtain the to-be-printed files corresponding to the print task from the server device to perform printing processing on the to-be-printed files. Under the premise of ensuring data security, it can enrich the processing methods for business data deployed on the server and improve the user experience.
[0108] In a possible implementation, sending the to-be-printed file to the printing device through the first network port may include:
[0109] Performing data verification on the file to be printed;
[0110] When the file to be printed passes the data verification, the file to be printed is sent to the printing device through the first network port.
[0111] For example, after the front-end device receives the file to be printed through the second network port, in order to ensure the security and reliability of the received data, the file to be printed can be verified. Exemplarily, the server device can generate an md5 (Message Digest Algorithm MD5) value based on the file to be printed, and send the file to be printed and the md5 value of the file to be printed to the front-end device. After the front-end device receives the file to be printed, it can calculate the md5 value of the file to be printed. When the calculated md5 value is consistent with the md5 value sent by the server device, it can be determined that the file to be printed has passed the integrity and security verification, that is, the file to be printed has passed the data verification, and the file to be printed can be sent to the printing device through the first network port for printing.
[0112] Exemplarily, when the file to be printed is actively pushed from the server device to the front-end device, in addition to data verification of the file to be printed, it is also necessary to determine the corresponding print task according to the identification information of the file to be printed.
[0113] It should be noted that the above-mentioned use of the md5 information digest algorithm for data verification is only a way to implement data verification in the embodiment of the present disclosure. In fact, any data authentication method can be applicable to the embodiment of the present disclosure. For example, public keys and private keys can be used for data verification. Before the server device sends the file to be printed corresponding to the print task to the front-end device, it can use the public key of the electronic front-end device to encrypt the file to be printed, and send the encrypted file to be printed to the front-end device. After the front-end device receives the encrypted file to be printed, it uses the private key to decrypt the encrypted file to be printed to obtain the file to be printed. After successful decryption, it can be determined that the key authentication is passed, and the file to be printed is sent to the printing device through the first network port for printing. The embodiment of the present disclosure does not specifically limit the data verification method.
[0114] In this way, the data verification process can prevent the files to be printed from being tampered with, stolen, or lost during transmission, thereby improving the data security of the files to be printed during data transmission.
[0115] In a possible implementation, the method may further include:
[0116] Receiving, through the first network port, print receipt information for the file to be printed, sent by the printing device, wherein the print receipt information includes print success information or print failure information;
[0117] According to the print receipt information of the file to be printed, the print receipt information for the print task is sent to the server device through the second network port.
[0118] For example, after the printing device performs the printing process of the file to be printed, it can send the printing receipt information to the front-end device according to the printing situation. Exemplarily, after the file to be printed is successfully printed, the printing receipt information sent to the front-end device can include printing success information, or when the printing fails due to printer failure or other reasons (insufficient paper and ink, etc.), the printing receipt information sent to the front-end device can include printing failure information.
[0119] After receiving the print receipt information corresponding to the file to be printed through the first network port, the front-end device can send the print receipt information for the print task corresponding to the file to be printed to the server device through the second network port. Exemplarily, when the print receipt information includes print success information, the print receipt information for the print task corresponding to the file to be printed can be directly sent to the server device through the second network port; or, when the print receipt information includes print failure information, the action of sending the file to be printed to the printing device for printing can be repeated within a preset time period until printing is successful or the preset time period ends. When printing is still not successful after the preset time period ends (print receipt information including print failure information sent by the printing device is received), the print receipt information for the print task corresponding to the file to be printed can be sent to the server device through the second network port.
[0120] After receiving the print receipt information of the print task, the server device can perform corresponding processing on the to-be-printed file corresponding to the print task according to the print receipt information. Exemplarily, when the print receipt information includes print success information, the to-be-printed file can be deleted from the file storage area, or when the print receipt information includes print failure information, the to-be-printed file can be retained in the file storage area.
[0121] In one possible implementation, after receiving the print receipt information corresponding to the file to be printed, the front-end device can send the print receipt information to the terminal device that sent the above-mentioned print task, so that the electronic device can display the print receipt information, and then the user can know the execution status of the print task based on the print receipt information.
[0122] Figure 3 A flowchart of a file printing method according to an embodiment of the present disclosure is shown. The file printing method can be executed by a server-side device, wherein the server-side device may include a cloud server and an IDC device. Figure 3 As shown, the file printing method may include:
[0123] In step S31, a print task sent by a front-end device is received.
[0124] In step S32, a file to be printed is created according to the print task.
[0125] For example, as described in the above-mentioned embodiment, the front-end device is an electronic device deployed in the target location that can access both the first network and the second network. The first network is the internal network of the target location, and the second network is the network deployed by the server. For the electronic device accessing the first network, the second network is an external network.
[0126] The terminal device in the target location can send a print task to the server device through the front-end device (the specific process can refer to the aforementioned embodiment, and the embodiments of the present disclosure will not be repeated here). After the server device receives the print task sent by the front-end device, it can create a corresponding file to be printed according to the print task. Exemplarily, the print task can include identification information of the data to be printed, and the server device can obtain the data to be printed according to the identification information of the data to be printed, and create a corresponding file to be printed according to the data to be printed.
[0127] In step S33, the file to be printed is sent to the front-end device, so that the front-end device sends the file to be printed to the printing device for printing processing.
[0128] For example, after creating the file to be printed, the server device can actively send the file to be printed to the front-end device, or the server device can send the file to be printed to the front-end device in response to the front-end device's download instruction for the file to be printed, so that the front-end device can send the file to be printed to the printing device in the first network through the first network port, and then print the file to be printed through the printing device.
[0129] In this way, the server device can receive the print task sent by the front-end device, and create a file to be printed according to the print task. After the file to be printed is created, the file to be printed can be sent to the front-end device, so that the front-end device sends the file to be printed to the printing device for printing processing. According to the file printing method provided by the embodiment of the present disclosure, by deploying a front-end device that can access the first network and the second network, the server device in the second network can trigger the print task for the business data deployed on the server, so as to realize the printing of the business data of the server. Under the premise of ensuring data security, the processing method for the business data deployed on the server can be enriched to improve the user experience.
[0130] In a possible implementation, the print task may include at least identification information of the data to be printed and a print protocol, and creating the file to be printed according to the print task may include:
[0131] Acquire the data to be printed according to the identification information of the data to be printed;
[0132] Creating the file to be printed according to the printing protocol and the data to be printed;
[0133] The file to be printed is stored in a data file storage area.
[0134] For example, the identification information of the data to be printed can be used to identify the data to be printed, and may include the name, code, and other identification information of the data to be printed; the printing protocol may include printing-related setting information for the data to be printed, for example: the printing protocol may include setting information for double-sided printing or single-sided printing, typesetting setting information for the data to be printed on the print page, setting information for horizontal or vertical typesetting of the data to be printed, etc. Exemplarily, the server device may directly obtain the data to be printed from the stored data according to the identification information of the data to be printed, and then typeset the print data according to the printing protocol to obtain the file to be printed.
[0135] Alternatively, the server may store data with different target locations in different data storage areas. In this scenario, the print task may also include identity information, and the identity information may include first identity information of the user (target location) sending the print task, for example: the first identity information may include the name, code and other identification information of the target location; or, the identity information may also include second identity information of the user to whom the data to be printed belongs, for example: the second identity information may include the name, ID number, social security number and other identification information of the user to whom the data to be printed belongs.
[0136] After the server device receives the printing task, it can determine the data storage area corresponding to the data to be printed according to the identity information, and obtain the corresponding data to be printed from the data storage area according to the identification information of the data to be printed. Then, the server device can typeset the data to be printed according to the printing protocol to obtain the file to be printed, which can improve the efficiency of obtaining the data to be printed and thus improve the efficiency of creating the file to be printed.
[0137] For example: the printing task includes the identification information of Hospital A, the identification information of Patient A, the identification information of the CT film, and the printing protocol (assuming that Patient A has 5 CT films to be printed, then the 5 films of Patient A can be set to be typeset on one page, single-sided printing, and vertical typeset). After receiving the printing task, the server device can obtain the data information retained by Patient A in Hospital A through the identification information of Hospital A and the identification information of Patient A in the printing task, and obtain the above-mentioned 5 film information from the retained data information according to the identification information of the CT film, and then create the file information to be printed after typeset the 5 film information through the printing protocol. Exemplarily, the file information to be printed can also include the identification information of Hospital A, the identification information of Patient A, the identification information of the CT film, etc.
[0138] After the server device creates the file to be printed corresponding to the print task, it can store the file to be printed in a file storage area. The file storage area can also store identification information of the print task corresponding to the file to be printed. Then, the server device can search for the file to be printed corresponding to the print task in the file storage area according to the identification information of the print task.
[0139] In a possible implementation, sending the to-be-printed file to the front-end device may include:
[0140] According to the printing task corresponding to the file to be printed, the file to be printed is pushed to the front-end device.
[0141] For example, after creating a to-be-printed file corresponding to a print task, the server device can directly push the to-be-printed file corresponding to the print task to the front-end device, so that the front-end device sends the to-be-printed file to the print file for printing. Exemplarily, the print task may include the IP address of the front-end device that sends the print task, so the server device can push the to-be-printed file to the front-end device according to the IP address of the front-end device.
[0142] In a possible implementation manner, sending the to-be-printed file to the electronic device may further include:
[0143] Receiving a task query instruction sent by the front-end device, wherein the task query instruction is used to query whether the server has created a to-be-printed file corresponding to the print task;
[0144] Sending a query response to the task query instruction to the electronic device according to the creation status of the to-be-printed file corresponding to the print task;
[0145] Receiving a download instruction sent by the front-end device, wherein the download instruction includes identification information of the file to be printed;
[0146] After acquiring the file to be printed from the data file storage area according to the identification information of the file to be printed, the file to be printed is sent to the front-end device.
[0147] For example, when the front-end device receives a print task, it can cache the print task in a task list and periodically send a task query instruction to the server device based on the print task in the task list. The task query instruction can include identification information of the print task.
[0148] When the server device receives the task query instruction, it can search the to-be-printed file corresponding to the print task from the file storage area according to the identification information of the print task, and obtain the creation status of the to-be-printed file. For example, when the to-be-printed file corresponding to the print task is found in the file storage area, it can be determined that the to-be-printed file corresponding to the print task has been created, or when the to-be-printed file corresponding to the print task is not found in the file storage area, it can be determined that the to-be-printed file corresponding to the print task has not been created.
[0149] The server device can generate a query response to the task query instruction according to the creation status of the file to be printed. For example, when the file to be printed has been created, a first query response can be generated and sent to the front-end device. The first query response can be used to indicate that the server device has completed the creation of the file to be printed corresponding to the print task. The first query response information can also include the identification of the print task and the identification information of the file to be printed. Alternatively, when the file to be printed has not been created, a second query response can be generated and sent to the front-end device. The second query response can be used to indicate that the server device has not created the file to be printed. The second query response can include the identification information corresponding to the print task.
[0150] When the front-end device receives the first query response indicating that the server device has completed the creation of the file to be printed, the front-end device may send a download instruction for the file to be printed to the server device, and the download instruction may include identification information of the file to be printed, wherein the identification information of the file to be printed may uniquely identify the file to be printed, and may include information such as the name and code of the file to be printed, or the identification information of the file to be printed may include identification information of the print task corresponding to the file to be printed. After receiving the download instruction sent by the front-end device, the file to be printed may be obtained from the file storage area according to the identification information of the file to be printed in the download instruction, and sent to the front-end device.
[0151] In a possible implementation, the method may further include:
[0152] Receiving print receipt information for the print task sent by the front-end device;
[0153] According to the print receipt information of the print task, corresponding processing is performed on the to-be-printed file corresponding to the print task.
[0154] For example, the server device may receive the print receipt information for the print task sent by the front-end device (the specific process may refer to the aforementioned embodiment, which will not be described in detail in the embodiment of the present disclosure), and perform corresponding processing on the to-be-printed file corresponding to the print task according to the print receipt information. Exemplarily, when the print receipt information includes print success information, the to-be-printed file may be deleted from the file storage area, or, when the print receipt information includes print failure information, the to-be-printed file may be retained in the file storage area.
[0155] In order to enable those skilled in the art to better understand the embodiments of the present disclosure, the embodiments of the present disclosure are described below through specific examples.
[0156] Combination Figure 4 and Figure 5 , still taking the target location as Hospital A, Hospital A can deploy front-end devices that can access both the hospital intranet and the extranet. Users can forward print tasks to the server device through the front-end device ( Figure 4 (This process is not shown in the figure), after the server-side device receives the printing task about the medical treatment service sent by the front-end device, it can create a file to be printed corresponding to the printing task and store the task to be printed in the file storage area.
[0157] After creating the file to be printed, the server device can directly push the file to be printed to the front-end device. Alternatively, the front-end device can query the creation status of the file to be printed corresponding to the task to be printed by sending a task query instruction to the server device. The server device can query the creation status of the task to be printed corresponding to the print task according to the task query instruction, and send a query response to the front-end device according to the creation status of the file to be printed. If the front-end device determines that the server has created the file to be printed corresponding to the print task according to the query response, it can send a download instruction for the file to be printed to the server device to download the file to be printed from the server device.
[0158] After the front-end device obtains the file to be printed, it can send the file to be printed to the printing device for printing. The printing device can send print receipt information to the front-end device according to the printing result. After the front-end device receives the print receipt information, it can send the corresponding print receipt information to the server device.
[0159] For example, the specific process can refer to Figure 5 In step A1, the terminal device deployed in the intranet can create a print task for the data to be printed, and can send the print task to the front-end device. The print task can include hospital identification information, patient identification information, print data identification information, print protocol and other information.
[0160] In step A2, after receiving the print task, the front-end device forwards the print task to the server device deployed on the external network.
[0161] In step A3, after receiving the print task, the server device may obtain the data to be printed according to the print task, and generate a file to be printed according to the data to be printed and the print protocol.
[0162] In step A4, after generating the file to be printed, the server device may store the file to be printed in a file storage area.
[0163] In step A5, the front-end device can obtain the file to be printed from the server device. For example: in step A51, after generating the file to be printed, the server device can actively push the file to be printed to the front-end device, and the front-end device can receive the file to be printed pushed by the server device. Alternatively, in step A52, the front-end device can periodically send a task query instruction to the server device. In step A53, the server device can determine the creation status of the file to be printed corresponding to the print task according to the task query instruction, and send a query response to the front-end device according to the creation status. In step A54, the front-end device can send a download instruction to the server device according to the received query response. In step A55, the server device can send the file to be printed to the front-end device according to the received download instruction.
[0164] In step A6, the front-end device may send the file to be printed to the printing device deployed in the intranet.
[0165] In step A7, after receiving the file to be printed, the printing device may print the file to be printed.
[0166] In step A8, the printing device sends print receipt information to the front-end device according to the printing result. The print receipt information may include print success information or print failure information.
[0167] In step A9, the front-end device may send corresponding print receipt information to the server device according to the print receipt information.
[0168] In step A10, after receiving the print receipt information, the server device may process the file to be printed according to the print receipt information, for example, deleting the file to be printed or retaining the file to be printed.
[0169] In this way, the disclosed embodiment adopts the method of deploying front-end equipment in the hospital to solve the problem that the medical business services deployed on the IDC external network cannot be connected to the printing equipment deployed on the hospital intranet to print relevant medical data. Under the premise of ensuring the security of medical data, it can enrich the processing methods for medical data deployed on the server side, realize the printing processing of medical data, and improve the user experience.
[0170] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.
[0171] In addition, the present disclosure also provides a file printing device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any file printing method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to in the corresponding records of the method part and will not be repeated here.
[0172] Figure 6 A block diagram of a file printing device according to an embodiment of the present disclosure is shown. Figure 6 As shown, the device comprises:
[0173] A first receiving module 61, which can be used to receive a print task through the first network port;
[0174] A first sending module 62 may be used to send the print task to the server device through the second network port, so that the server device creates a corresponding file to be printed according to the print task;
[0175] An acquisition module 63 may be configured to acquire the file to be printed from the server device through the second network port; and
[0176] The second sending module 64 may be configured to send the file to be printed to the printing device through the first network port, so that the printing device prints the file to be printed.
[0177] In this way, a front-end device can be deployed at the target location where the first network is deployed. The front-end device is configured with a first network port for accessing the first network and a second network port for accessing the second network. Then, when the front-end device receives a print task through the first network port, it can send the print task to the server device through the second network port, so that the server device creates a corresponding file to be printed according to the print task. The front-end device can obtain the file to be printed from the server device through the second network port, and send the file to be printed to the printing device through the first network port, so that the printing device prints the file to be printed. According to the file printing device provided by the embodiment of the present disclosure, by deploying a front-end device that can access the first network and the second network, the server device in the second network can trigger the print task for the business data deployed on the server, so as to realize the printing of the business data on the server. Under the premise of ensuring data security, the processing method for the business data deployed on the server can be enriched to improve the user experience.
[0178] In a possible implementation, the printing task at least includes identification information of the data to be printed and a printing protocol.
[0179] In a possible implementation, the acquisition module 63 may also be used to:
[0180] The file to be printed sent by the server device is received through the second network port. The file to be printed is a file pushed by the server device to the front-end device according to the print task corresponding to the file to be printed.
[0181] In a possible implementation, the acquisition module 63 may also be used to:
[0182] Sending a print task query instruction to the server device through the second network port, wherein the print task query instruction is used to query whether the server device has created a to-be-printed file corresponding to the print task;
[0183] receiving a query response from the server device to the print task query instruction through the second network port;
[0184] When the query response indicates that the server device has completed the creation of the file to be printed, sending a download instruction for the file to be printed to the server device through the second network port; and
[0185] The file to be printed sent by the server device is received through the second network port, and the file to be printed is a file sent by the server device to the front-end device in response to the download instruction.
[0186] In a possible implementation, the second sending module 64 may also be used to:
[0187] Performing data verification on the file to be printed; and
[0188] When the file to be printed passes the data verification, the file to be printed is sent to the printing device through the first network port.
[0189] In a possible implementation, the device may further include:
[0190] A second receiving module may be configured to receive, through the first network port, print receipt information for the file to be printed, sent by the printing device, wherein the print receipt information includes print success information or print failure information; and
[0191] The third sending module can be used to send the print receipt information for the print task to the server device through the second network port according to the print receipt information of the file to be printed.
[0192] In a possible implementation, the first network is an internal network of a target location, the second network is an external network, the printing task includes a medical data printing task, and the file to be printed includes a medical data file.
[0193] Figure 7 A block diagram of a file printing device according to an embodiment of the present disclosure is shown. Figure 7 As shown, the device comprises:
[0194] The first receiving module 71 can be used to receive a printing task sent by a front-end device;
[0195] A creation module 72, which can be used to create a file to be printed according to the printing task; and
[0196] The sending module 73 may be used to send the file to be printed to the front-end device, so that the front-end device sends the file to be printed to the printing device for printing processing.
[0197] In this way, the server device can receive the print task sent by the front-end device, and create a file to be printed according to the print task. After the file to be printed is created, the file to be printed can be sent to the front-end device so that the front-end device sends the file to be printed to the printing device for printing. According to the file printing device provided by the embodiment of the present disclosure, by deploying a front-end device that can access the first network and the second network, the server device in the second network can trigger the print task for the business data deployed on the server, so as to realize the printing of the business data on the server. Under the premise of ensuring data security, the processing method for the business data deployed on the server can be enriched to improve the user experience.
[0198] In a possible implementation, the printing task at least includes identification information of the data to be printed and a printing protocol, and the creation module 72 may also be used to:
[0199] Acquire the data to be printed according to the identification information of the data to be printed;
[0200] Creating the file to be printed according to the printing protocol and the data to be printed; and
[0201] The file to be printed is stored in a data file storage area.
[0202] In a possible implementation, the sending module 73 may also be used to:
[0203] According to the printing task corresponding to the file to be printed, the file to be printed is pushed to the front-end device.
[0204] In a possible implementation, the sending module 73 may also be used to:
[0205] Receiving a task query instruction sent by the front-end device, wherein the task query instruction is used to query whether the server-side device has created the to-be-printed file corresponding to the print task;
[0206] Sending a query response to the task query instruction to the front-end device according to the creation status of the to-be-printed file corresponding to the print task;
[0207] receiving a download instruction sent by the front-end device, wherein the download instruction includes identification information of the file to be printed; and
[0208] After acquiring the file to be printed according to the identification information of the file to be printed, the file to be printed is sent to the front-end device.
[0209] In a possible implementation, the device may further include:
[0210] A second receiving module may be used to receive print receipt information for the print task sent by the front-end device; and
[0211] The processing module can be used to perform corresponding processing on the to-be-printed file corresponding to the printing task according to the printing receipt information of the printing task.
[0212] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0213] The embodiment of the present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
[0214] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0215] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code. When the computer-readable code is executed on a device, a processor in the device executes instructions for implementing the file printing method provided in any of the above embodiments.
[0216] The disclosed embodiment also provides another computer program product for storing computer-readable instructions, which, when executed, enables a computer to perform the operations of the file printing method provided in any of the above embodiments.
[0217] The electronic device may be provided as a terminal, a server, or a device in other forms.
[0218] Figure 8 A block diagram of an electronic device 800 according to an embodiment of the present disclosure is shown. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
[0219] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0220] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0221] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0222] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0223] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0224] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0225] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0226] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a complementary metal oxide semiconductor (CMOS) or a charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0227] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0228] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0229] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above method.
[0230] Fig. 9 1 is a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. Fig. 9 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0231] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as a Microsoft Server operating system (Windows Server 2003). TM ), a graphical user interface operating system launched by Apple (Mac OSX TM ), a multi-user, multi-process computer operating system (Unix TM ), a free and open source Unix-like operating system (Linux TM ), an open source Unix-like operating system (FreeBSD TM ) or similar.
[0232] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.
[0233] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0234] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0235] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0236] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0237] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0238] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0239] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0240] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0241] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK) and the like.
[0242] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A file printing method, characterized in that: Applied to a front-end device, the front-end device is configured with a first network port for accessing a first network and a second network port for accessing a second network, the method comprising: receiving a print task via the first network port; Sending the print task to the server device through the second network port, so that the server device creates a corresponding file to be printed according to the print task; Acquire the file to be printed from the server device through the second network port; and Sending the file to be printed to a printing device through the first network port, so that the printing device prints the file to be printed; Among them, the printing task includes a first identity identifier corresponding to a target location where the front-end device is deployed, a second identity identifier corresponding to a user to which the data to be printed belongs, a data identifier to be printed corresponding to the data to be printed, and a printing protocol. The data to be printed is deployed in the server device, and the file to be printed is determined by the server device according to the first identity identifier information and the second identity identifier information, and after obtaining the data to be printed based on the data storage area and the data identifier information, the server device determines the file based on the printing protocol and the data to be printed.
2. The method according to claim 1, characterized in that The obtaining the to-be-printed file from the server device through the second network port includes: The file to be printed sent by the server device is received through the second network port. The file to be printed is a file pushed by the server device to the front-end device according to the print task corresponding to the file to be printed.
3. The method according to claim 1, characterized in that The obtaining the to-be-printed file from the server device through the second network port includes: Sending a print task query instruction to the server device through the second network port, wherein the print task query instruction is used to query whether the server device has created a to-be-printed file corresponding to the print task; receiving a query response from the server device to the print task query instruction through the second network port; When the query response indicates that the server device has completed the creation of the file to be printed, sending a download instruction for the file to be printed to the server device through the second network port; and The file to be printed sent by the server device is received through the second network port, and the file to be printed is a file sent by the server device to the front-end device in response to the download instruction.
4. The method according to any one of claims 1 to 3, characterized in that The sending the to-be-printed file to the printing device through the first network port includes: Performing data verification on the file to be printed; and When the file to be printed passes the data verification, the file to be printed is sent to the printing device through the first network port.
5. The method according to any one of claims 1 to 3, characterized in that The method further comprises: receiving, through the first network port, print receipt information for the file to be printed, sent by the printing device, wherein the print receipt information includes print success information or print failure information; and According to the print receipt information of the file to be printed, the print receipt information for the print task is sent to the server device through the second network port.
6. The method according to any one of claims 1 to 3, characterized in that The first network is an internal network of a target location, the second network is an external network, the printing task includes a medical data printing task, and the file to be printed includes a medical data file.
7. A file printing method, characterized in that: Applied to a server device, the method comprises: Receive printing tasks sent by front-end devices; Creating a file to be printed according to the printing task; and Sending the file to be printed to the front-end device, so that the front-end device sends the file to be printed to the printing device for printing processing; The printing task includes a first identity corresponding to a target location where the front-end device is deployed, a second identity corresponding to a user to which the data to be printed belongs, a data identifier to be printed corresponding to the data to be printed, and a printing protocol, and the data to be printed is deployed in the server device; The step of creating a file to be printed according to the printing task comprises: Determine a data storage area corresponding to the to-be-printed data according to the first identity identification information and the second identity identification information; acquiring the data to be printed according to the data storage area and the identification information of the data to be printed; The file to be printed is created according to the printing protocol and the data to be printed.
8. The method according to claim 7, characterized in that The step of creating a file to be printed according to the printing task further includes: The file to be printed is stored in a data file storage area.
9. The method according to claim 7 or 8, characterized in that: The sending the to-be-printed file to the front-end device comprises: According to the printing task corresponding to the file to be printed, the file to be printed is pushed to the front-end device.
10. The method according to claim 7 or 8, characterized in that: The sending the to-be-printed file to the front-end device comprises: Receiving a task query instruction sent by the front-end device, wherein the task query instruction is used to query whether the server-side device has created the to-be-printed file corresponding to the print task; Sending a query response to the task query instruction to the front-end device according to the creation status of the to-be-printed file corresponding to the print task; receiving a download instruction sent by the front-end device, wherein the download instruction includes identification information of the file to be printed; and After acquiring the file to be printed according to the identification information of the file to be printed, the file to be printed is sent to the front-end device.
11. The method according to claim 7 or 8, characterized in that: The method further comprises: receiving print receipt information for the print task sent by the front-end device; and According to the print receipt information of the print task, corresponding processing is performed on the to-be-printed file corresponding to the print task.
12. A document printing device, characterized in that: Applied to a front-end device, the front-end device is configured with a first network port for accessing a first network and a second network port for accessing a second network, the device comprises: A first receiving module, used for receiving a print task through the first network port; A first sending module, configured to send the print task to the server device through the second network port, so that the server device creates a corresponding file to be printed according to the print task; an acquisition module, configured to acquire the file to be printed from the server device through the second network port; and A second sending module, used for sending the file to be printed to a printing device through the first network port, so that the printing device prints the file to be printed; Among them, the printing task includes a first identity identifier corresponding to a target location where the front-end device is deployed, a second identity identifier corresponding to a user to which the data to be printed belongs, a data identifier to be printed corresponding to the data to be printed, and a printing protocol. The data to be printed is deployed in the server device, and the file to be printed is determined by the server device according to the first identity identifier information and the second identity identifier information, and after obtaining the data to be printed based on the data storage area and the data identifier information, the server device determines the file based on the printing protocol and the data to be printed.
13. A document printing device, characterized in that: Applied to a server device, the device comprises: A first receiving module, used for receiving a printing task sent by a front-end device; A creation module, used for creating a file to be printed according to the printing task; and A sending module, used for sending the file to be printed to the front-end device, so that the front-end device sends the file to be printed to the printing device for printing processing; The printing task includes a first identity corresponding to a target location where the front-end device is deployed, a second identity corresponding to a user to which the data to be printed belongs, a data identifier to be printed corresponding to the data to be printed, and a printing protocol, and the data to be printed is deployed in the server device; The creation module is specifically used for: Determine a data storage area corresponding to the to-be-printed data according to the first identity identification information and the second identity identification information; acquiring the data to be printed according to the data storage area and the identification information of the data to be printed; The file to be printed is created according to the printing protocol and the data to be printed.
14. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 11.
15. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 11 is implemented.
