A method, device and system for generating prescription images

By matching the layout structure configuration information and prescription information, compiling and rendering prescription picture templates, the problem of low efficiency in generating prescription pictures by the Java Graphics2D component is solved, reducing resource consumption and improving generation efficiency.

CN114582460BActive Publication Date: 2024-10-18BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210208904.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-03
Publication Date
2024-10-18
Estimated Expiration
2042-03-03

AI Technical Summary

Technical Problem

The existing method of generating prescription images that relies on Java Graphics2D components requires calculation of coordinate positions, resulting in high resource consumption and low generation efficiency, and cannot effectively improve the efficiency of prescription image generation.

Method used

By receiving image generation requests from business scenarios and business types, it searches for matching arrangement structure configuration information, compiles and renders preset prescription image templates, and generates prescription images that meet the needs of the supervision platform, reducing resource consumption and improving generation efficiency.

Benefits of technology

It effectively reduces the resource consumption in the prescription picture generation process, improves the generation efficiency, and meets the needs of the prescription supervision platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114582460B_ABST
    Figure CN114582460B_ABST
Patent Text Reader

Abstract

The present invention discloses a prescription image generation method, device and system, and relates to the field of Internet medical technology. A specific implementation of the method includes: receiving an image generation request sent by a first client, wherein the image generation request indicates the business scenario to which the prescription belongs, the business type to which the prescription belongs, and prescription information; searching for target arrangement structure configuration information that matches the business scenario and business type from the arrangement structure configuration information of multiple types of prescription images; compiling and rendering a preset prescription image template according to the target arrangement structure configuration information and prescription information, and generating a prescription image based on the compilation and rendering results, so that the prescription image meets the requirements of the prescription supervision platform, and uploading the prescription image to the prescription supervision platform. This implementation effectively improves the efficiency of prescription image generation and reduces resource consumption in the prescription image generation process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet medical technology, and in particular to a prescription image generation method, device and system. Background Art

[0002] With the development of Internet medical care, patients can purchase prescription drugs online with electronic prescriptions. Currently, electronic prescriptions generally need to be uploaded to the regulatory platform in the form of prescription pictures to facilitate the regulatory platform to supervise the online sales of prescription drugs.

[0003] At present, the prescription image generation method is mainly implemented by using the Java language drawing tool - Graphics2D component. This Graphics2D component inevitably needs to test the coordinates of the content according to the position of the display content in the prescription image, and then draw the display content in sequence based on the coordinates. The existing method of generating prescription images by relying on the Java Graphics2D component consumes more resources and takes a long time to generate prescription images because of the need to calculate the coordinate position, resulting in low efficiency in generating prescription images and high resource consumption. Summary of the invention

[0004] In view of this, embodiments of the present invention provide a method, device and system for generating a prescription image, which can effectively improve the efficiency of generating a prescription image and reduce the resource consumption in the process of generating a prescription image.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for generating a prescription image is provided, comprising:

[0006] Receiving a picture generation request sent by the first client, wherein the picture generation request indicates a business scenario to which the prescription belongs, a business type to which the prescription belongs, and prescription information;

[0007] Searching for target arrangement structure configuration information matching the business scenario and the business type from arrangement structure configuration information of multiple types of prescription images;

[0008] According to the target arrangement structure configuration information and the prescription information, a preset prescription picture template is compiled and rendered, and based on the compilation and rendering results, a prescription picture is generated so that the prescription picture meets the requirements of the prescription supervision platform, and the prescription picture is uploaded to the prescription supervision platform.

[0009] Optionally, the above prescription image generation method further includes:

[0010] Get the prescription image prototype;

[0011] The prescription picture prototype is converted into an XML string of the prescription picture, and the XML string is templated to generate the prescription picture template.

[0012] Optionally, the above prescription image generation method further includes:

[0013] Receive and store the arrangement structure configuration information for one or more business scenarios and one or more business types sent by the second client, wherein the arrangement structure configuration information includes: any multiple of prescription picture frame arrangement, drug information arrangement, prescription title arrangement, doctor's seal arrangement, prescription unit seal arrangement and prescription unit name arrangement.

[0014] Optionally, the above prescription image generation method further includes:

[0015] receiving an adjustment request for the orchestration structure configuration information sent by the second client;

[0016] The orchestration structure configuration information is updated according to the orchestration structure adjustment information included in the adjustment request.

[0017] Optionally, converting the prescription picture prototype into an XML string of the prescription picture includes:

[0018] The prescription image prototype is converted into an SVG format image, and an XML string of the SVG format image is extracted.

[0019] Optionally, the templating the XML string comprises:

[0020] The variable content included in the XML string is replaced with a placeholder or a variable, and the immutable content included in the XML string is fixed.

[0021] Optionally, obtaining the prescription image prototype includes:

[0022] Providing a picture structure drawing interface to the second client, wherein the picture structure drawing interface includes a plurality of drawing components, the drawing components being used to draw specific objects on the picture structure drawing interface, so that the user can use the plurality of drawing components to draw a plurality of specific objects on the picture structure drawing interface, and combine the drawn plurality of specific objects into a prescription picture prototype;

[0023] Receive a prescription image prototype composed of a plurality of the specific objects sent by the second client.

[0024] Optionally, generating a prescription image includes:

[0025] generating an initial prescription picture matching the format of the prescription picture template;

[0026] The initial prescription image is converted into a prescription image that meets the format required by the prescription supervision platform.

[0027] Optionally, the above prescription image generation method further includes:

[0028] For each type of arrangement structure configuration information of the prescription image, determine the business scenario and business type of the arrangement structure configuration information;

[0029] Establishing a correspondence between the information of units with authority to issue prescriptions and the plurality of business scenarios and the plurality of business types;

[0030] In response to receiving the prescription processing request sent by the first client, searching for one or more business scenarios and one or more business types corresponding to the unit information included in the prescription processing request according to the corresponding relationship;

[0031] One or more business scenarios and one or more business types corresponding to the unit information included in the prescription processing request are sent to the first client, so that the first client selects the corresponding business scenarios and business types for the prescription information configured for it, and enables the first client to generate an image generation request based on the prescription information, the selected business scenarios and business types.

[0032] In a second aspect, an embodiment of the present invention provides a prescription picture generating device, comprising: a receiving module and a processing module, wherein:

[0033] The receiving module is used to receive a picture generation request sent by the first client, wherein the picture generation request indicates the business scenario to which the prescription belongs, the business type to which the prescription belongs, and prescription information;

[0034] The processing module is used to search for target orchestration structure configuration information that matches the business scenario and the business type from the orchestration structure configuration information of multiple prescription images; compile and render a preset prescription image template according to the target orchestration structure configuration information and the prescription information, and generate a prescription image based on the compilation and rendering results so that the prescription image meets the requirements of the prescription supervision platform, and upload the prescription image to the prescription supervision platform.

[0035] In a third aspect, an embodiment of the present invention provides a prescription image generation system, comprising: a first client, a prescription supervision platform, and a prescription image generation device provided in the above-mentioned second aspect embodiment.

[0036] An embodiment of the above invention has the following advantages or beneficial effects: by compiling and rendering a preset prescription image template through target orchestration structure configuration information and prescription information that match the business scenario and business type in the image generation request, and generating a prescription image based on the compilation and rendering results, that is, in the process of generating the prescription image, the orchestration of the information in the prescription image can be achieved through the orchestration structure configuration information that matches the business scenario and business type of the prescription indicated by the image generation request, thereby effectively reducing resource consumption and effectively improving the efficiency of prescription image generation.

[0037] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0039] Figure 1 is a schematic diagram of the main process of the method for generating a prescription image according to an embodiment of the present invention;

[0040] Figure 2 is a schematic diagram of the main process of generating a prescription picture template according to an embodiment of the present invention;

[0041] Figure 3 is a schematic diagram of the main process of the prescription image prototype according to an embodiment of the present invention;

[0042] Figure 4 is a schematic diagram of a main process of updating arrangement structure configuration information according to an embodiment of the present invention;

[0043] Figure 5 is a schematic diagram of the main process of generating a prescription image according to an embodiment of the present invention;

[0044] Figure 6 is a schematic diagram of the main process of a method for generating a prescription image according to another embodiment of the present invention;

[0045] Figure 7 is a schematic diagram of main modules of a prescription picture generating device according to an embodiment of the present invention;

[0046] Figure 8 is a schematic diagram of the structure of a prescription image generation system according to an embodiment of the present invention;

[0047] Fig. 9 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0048] Fig.10It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0050] Figure 1 FIG. 1 is a schematic diagram of the main flow of a method for generating a prescription image according to an embodiment of the present invention. Figure 1 As shown, the prescription image generation method may include the following steps:

[0051] Step S101: receiving a picture generation request sent by a first client, wherein the picture generation request indicates a business scenario to which a prescription belongs, a business type to which the prescription belongs, and prescription information;

[0052] Among them, the first client generally refers to a terminal device used by a user to issue electronic prescriptions for patients or input prescription information.

[0053] According to regulatory requirements, different types of consultations have different compliance requirements for generating prescription images. Business scenarios are generally based on the structure of prescription images with different compliance requirements managed by the regulatory platform. The business corresponding to a prescription image with compliance requirements is the business scenario. For example, there are obvious differences in prescription images of third-party tenants, prescription images of public hospital online clinics, prescription images of private hospitals, and prescription images of drug stores managed by the regulatory platform. The prescription images of third-party tenants, prescription images of public hospital online clinics, prescription images of private hospitals, and prescription images of drug stores are each in the style of prescription images with different compliance requirements. Accordingly, the business scenario of prescription images of third-party tenants is the business scenario of third-party tenants, the business scenario of prescription images of public hospital online clinics is the business scenario of public hospital online clinics, the business scenario of prescription images of private hospitals is the business scenario of private hospitals, and the business scenario of prescription images of drug stores is the business scenario of drug stores, etc.

[0054] The business type of the prescription can be Chinese medicine type, injection type, Western medicine type, external application type, etc. A prescription image in a business scenario can include one or more business types.

[0055] Generally speaking, the business scenario will affect the frame structure of the prescription image, such as the location of the unit name, the location of the hospital seal, and the location of the doctor's signature, while the business type will affect the arrangement of the drugs included in the prescription in the prescription image, such as the display content, font, font size, and location.

[0056] In addition, third-party tenants and private hospitals have their own image style generation requirements for prescription images.

[0057] Step S102: searching for target arrangement structure configuration information matching the business scenario and business type from arrangement structure configuration information of multiple prescription images;

[0058] The arrangement structure configuration information of the multiple prescription images is pre-configured, and defines the arrangement structure of the content included in the prescription images, such as the location of the doctor's signature, the location of the signature of the unit that issues the prescription, the location of the unit name, the font, the font size, the content included in the prescription drugs, the location of the prescription drug information in the prescription image, etc., wherein, in this step, the arrangement structure configuration information of the multiple prescription images may include the arrangement structure configuration information corresponding to each of the multiple business scenarios and the arrangement structure configuration information corresponding to each of the multiple business types.

[0059] The target orchestration structure configuration information may be a combination of orchestration structure configuration information matching the business scenario to which the image generation request indicates the prescription and one or more orchestration structure configuration information matching the business type to which the image generation request indicates the prescription.

[0060] Step S103: compile and render a preset prescription image template according to the target arrangement structure configuration information and prescription information, and generate a prescription image based on the compilation and rendering results so that the prescription image meets the requirements of the prescription supervision platform, and upload the prescription image to the prescription supervision platform.

[0061] The prescription image template is a template formed by an XML string, which may include a changeable part and an unchangeable part. The changeable part may be filled with target orchestration structure configuration information or prescription information, etc., to compile and render the preset prescription image template.

[0062] exist Figure 1In the illustrated embodiment, a preset prescription image template is compiled and rendered through target orchestration structure configuration information and prescription information that match the business scenario and business type in the image generation request, and a prescription image is generated based on the compilation and rendering results. That is, in the process of generating the prescription image, the orchestration of the information in the prescription image can be achieved through the orchestration structure configuration information that matches the business scenario and business type of the prescription indicated in the image generation request, thereby effectively reducing resource consumption and effectively improving the efficiency of prescription image generation.

[0063] In an embodiment of the present invention, the user can set a prescription image template according to regulatory requirements, such as Figure 2 As shown, the above prescription image generation method may further include the following steps:

[0064] Step S201: Obtain a prescription image prototype;

[0065] As shown in Figure 3, the structure of the prescription image prototype may include area 1, area 2, area 3, area 4, area 5 and area 6, where area 1 may be used to set the name of the prescription, such as online diagnosis and treatment prescription, online prescription, etc., area 2 may be used to set the name of the unit that issues the prescription, area 3 may be used to set the prescription drug information, such as the drug name, dosage, number of days of medication, etc., area 4 may be used to set the doctor's seal, area 5 may be used to set the unit seal of the unit that issues the prescription, and area 6 may be used to set other remarks, etc. The information, location, font, font size, etc. included in area 1, area 2, area 3, area 4, area 5 and area 6 may be configured accordingly through the layout structure configuration information.

[0066] Step S202: converting the prescription picture prototype into an XML string of the prescription picture, and template-izing the XML string to generate a prescription picture template.

[0067] In an embodiment of the present invention, the specific implementation method of converting the prescription image prototype into the XML string of the prescription image may include: converting the prescription image prototype into an SVG format image, and extracting the XML string of the SVG format image.

[0068] The prescription picture prototype is a picture in SVG (a type of image file format, Scalable Vector Graphics) format, and the SVG format picture can be represented by an XML string. Therefore, the step of converting the prescription picture prototype into the XML string of the prescription picture is essentially converting the prescription picture prototype into an SVG format picture. The whole process makes the generation of the prescription picture template relatively simple and easy to implement.

[0069] In an embodiment of the present invention, the specific implementation of the above-mentioned XML string template may include: replacing the variable content included in the XML string with a placeholder or variable, and fixing the immutable content included in the XML string. Subsequently, the placeholder or variable may be replaced by the position information, font, font size, etc. in the layout structure configuration information to realize the compilation and rendering of the XML string template, so that the prescription image is convenient and easy to obtain.

[0070] In an embodiment of the present invention, the prescription image generation method may further include: receiving and storing the arrangement structure configuration information for one or more business scenarios and one or more business types sent by the second client, wherein the arrangement structure configuration information includes: prescription image frame arrangement, drug information arrangement, prescription signature title arrangement, doctor's seal arrangement, hospital seal arrangement, and any number of the unit name arrangement of the unit to which the prescription belongs. Through the above process, the corresponding arrangement structure configuration information can be set according to the needs, which is convenient for the configuration and management of the arrangement structure configuration information. By configuring the arrangement structure configuration information, the high access cost can be effectively reduced, and support for the rapid development of online electronic prescriptions can be achieved.

[0071] In the embodiment of the present invention, Figure 4 As shown, the above prescription image generation method may further include the following steps:

[0072] Step S401: receiving an adjustment request for arrangement structure configuration information sent by a second client;

[0073] Step S402: updating the orchestration structure configuration information according to the orchestration structure adjustment information included in the adjustment request.

[0074] The orchestration structure adjustment information can be adjusted through adjustment requests to achieve hot updates, so that even very small changes (such as changes in the hospital name and location) can be updated through the orchestration structure configuration information without the need to re-publish and release it online.

[0075] In an embodiment of the present invention, the specific implementation method of obtaining the prescription picture prototype may include: providing a picture structure drawing interface to the second client, wherein the picture structure drawing interface includes a plurality of drawing components, wherein the drawing component is used to draw specific objects in the picture structure drawing interface, so that the user can use a plurality of drawing components to draw a plurality of specific objects in the picture structure drawing interface, and combine the drawn multiple specific objects into a prescription picture prototype; receiving a prescription picture prototype composed of a plurality of the specific objects sent by the second client. For example, the specific object may be a unit seal, a doctor's signature, a prescription label, a text box for inputting information such as the prescription name, etc., and accordingly, the drawing component used to draw the feature image may be a seal component, an electronic signature component, a text box component, a label component, etc. Through this process, the user can draw the corresponding prescription picture prototype according to actual needs, so as to draw the prescription picture prototype more intuitively and accurately to meet the needs of generating kitchen pictures.

[0076] In the embodiment of the present invention, Figure 5 As shown, the specific implementation method of generating the prescription image may include:

[0077] Step S501: generating an initial prescription picture matching the format of the prescription picture template;

[0078] Step S502: Convert the initial prescription image into a prescription image that meets the format required by the prescription supervision platform.

[0079] For example, the format of the initial prescription image generated by the template in SVG format is SVG format. In the embodiment of the present invention, the initial prescription image in SVG format can be converted into a prescription image in png format or JPG format.

[0080] In an embodiment of the present invention, the above-mentioned prescription image generation method may further include: for each type of prescription image's arrangement structure configuration information, executing to determine the business scenario or business type of the arrangement structure configuration information; constructing a correspondence between the unit information with the authority to prescribe and a plurality of business scenarios and a plurality of business types; in response to receiving a prescription processing request sent by the first client, searching for one or more business scenarios and one or more business types corresponding to the unit information included in the prescription processing request according to the correspondence; sending the one or more business scenarios and one or more business types corresponding to the unit information included in the prescription processing request to the first client, so that the first client selects the corresponding business scenario and business type for the prescription information configured for it, and enables the first client to generate an image generation request based on the prescription information, the selected business scenario and the business type.

[0081] For example, the correspondence between the unit information with the authority to issue prescriptions and the multiple business scenarios and the multiple business types can be: the correspondence between the unit information of units 1, 2, and 3 with the authority to issue prescriptions and business scenario A and business types a, b, c, and d, the correspondence between the unit information of units 5 to 9 with the authority to issue prescriptions and business scenario B and business types a, b, c, d, and e, the correspondence between the unit information of units 10 to 20 with the authority to issue prescriptions and business scenario C and business types a, b, c, d, e, and f, etc., that is, a unit or unit information with the authority to issue prescriptions generally corresponds to one business scenario and one or more business types. One business scenario or one business type can provide services for multiple units with the authority to issue prescriptions.

[0082] By providing the first client with one or more business scenarios and one or more business types corresponding to the unit information included in the prescription processing request, the user can select a business scenario and a business type based on the one or more business scenarios and one or more business types provided to facilitate user operation.

[0083] The following uses the example of a third-party tenant (a pharmacy or clinic that provides prescription drugs to a third party on an online medical platform) prescribing Chinese and Western medicines to a patient to explain the method of generating prescription images. Figure 6 As shown, the prescription image generation method may include the following steps:

[0084] Step S601: the server provides a picture structure drawing interface to the second client, wherein the picture structure drawing interface includes a plurality of drawing components;

[0085] The drawing component is used to draw a specific object on the picture structure drawing interface, so that the user can use multiple drawing components to draw multiple specific objects on the picture structure drawing interface, and combine the drawn multiple specific objects into a prescription picture prototype;

[0086] Step S602: The server receives a prescription picture prototype drawn by the second client using a plurality of drawing components;

[0087] The structure of the prescription image prototype can be as follows Figure 3 shown.

[0088] Step S603: the server converts the prescription image prototype into an SVG format image, and extracts the XML string of the SVG format image;

[0089] Step S604: the server replaces the variable content included in the XML string with a placeholder or a variable, and fixes the immutable content included in the XML string to generate a prescription picture template;

[0090] Step S605: The server receives and stores the orchestration structure configuration information for one or more business scenarios and one or more business types sent by the second client;

[0091] The arrangement structure configuration information includes any of the following: prescription picture frame arrangement, drug information arrangement, prescription title arrangement, doctor's seal arrangement, prescription unit seal arrangement, and prescription unit name arrangement.

[0092] Step S606: the server determines the business scenario or business type of the arrangement structure configuration information for each type of prescription image arrangement structure configuration information;

[0093] Step S607: The server constructs a correspondence between units with authority to issue prescriptions and multiple business scenarios and multiple business types;

[0094] There is no strict execution order between the above steps S601 to S604 and steps S605 to S607, that is, steps S605 to S607 can be executed first, and then steps S601 to S604, or steps S605 to S607 can be executed by one second client and steps S601 to S604 can be executed by another second client, and the two second clients can be executed synchronously.

[0095] Step S608: In response to receiving the prescription processing request sent by the third tenant of the first client, the server searches for one or more business scenarios and one or more business types corresponding to the third tenant information included in the prescription processing request according to the corresponding relationship;

[0096] For example, the structure of the prescription image of the third tenant can be that the unit name is located in the upper right corner of the prescription image, the doctor's signature is located in the lower right corner, and the unit's signature covers the doctor's signature. Chinese medicine information such as the name and dosage of Chinese medicine uses No. 4 Song font, located in the area 5mm away from the left and right edges of the image, and Western medicine information uses No. 5 Kai font, located in the area 5mm away from the left and right edges of the image, etc. Among them, the unit name is located in the upper right corner of the prescription image, the doctor's signature is located in the lower right corner, and the unit's signature covers the doctor's signature, which belongs to business scenario A, Chinese medicine information such as the name and dosage of Chinese medicine uses No. 4 Song font, located in the area 5mm away from the left and right edges of the image, which belongs to business type a, and Western medicine information uses No. 5 Kai font, located in the area 5mm away from the left and right edges of the image, which belongs to business type b.

[0097] Step S609: the server sends one or more business scenarios and one or more business types corresponding to the third tenant information to the first client;

[0098] For example, the third tenant information corresponds to business scenarios A and B, and corresponds to business types a, b, c, and d.

[0099] In this step, the server provides the service scenarios A and B corresponding to the service types a, b, c and d to the first client.

[0100] Step S610: The first client selects a corresponding business scenario and business type for the prescription information configured therefor, generates a picture generation request based on the prescription information, the selected business scenario and business type, and sends the picture generation request to the server;

[0101] For example, in this step, the first client selects service scenario A and service types a and b for its configured prescription information.

[0102] Step S611: The server receives a picture generation request sent by the first client, wherein the picture generation request indicates the business scenario to which the prescription belongs, the business type to which the prescription belongs, and prescription information;

[0103] Step S612: the server searches for target arrangement structure configuration information matching the business scenario and business type from arrangement structure configuration information of multiple types of prescription images;

[0104] For example, the orchestration structure configuration information matching business scenario A, the orchestration structure configuration information matching business type a, and the orchestration structure configuration information matching business type b are searched, and the target orchestration structure configuration information is a combination of the orchestration structure configuration information matching business scenario A, the orchestration structure configuration information matching business type a, and the orchestration structure configuration information matching business type b.

[0105] Step S613: the server compiles and renders a preset prescription picture template according to the target arrangement structure configuration information and the prescription information, and generates an initial prescription picture matching the format of the prescription picture template based on the compilation and rendering results;

[0106] Step S614: the server converts the initial prescription image into a prescription image in a format that meets the requirements of the prescription supervision platform, so that the prescription image meets the requirements of the prescription supervision platform, and uploads the prescription image to the prescription supervision platform;

[0107] Step S615: The server receives an adjustment request for the arrangement structure configuration information sent by the second client;

[0108] Step S616: the server updates the orchestration structure configuration information according to the orchestration structure adjustment information included in the adjustment request, and executes step S606.

[0109] Figure 7A prescription picture generating device 700 provided by an embodiment of the present invention is shown. The prescription picture generating device 700 may include: a receiving module 701 and a processing module 702, wherein:

[0110] The receiving module 701 is used to receive a picture generation request sent by the first client, wherein the picture generation request indicates the business scenario to which the prescription belongs, the business type to which the prescription belongs, and the prescription information;

[0111] Processing module 702 is used to search for target orchestration structure configuration information that matches the business scenario and business type from the orchestration structure configuration information of multiple prescription images; compile and render a preset prescription image template according to the target orchestration structure configuration information and prescription information, and generate a prescription image based on the compilation and rendering results so that the prescription image meets the requirements of the prescription supervision platform, and upload the prescription image to the prescription supervision platform.

[0112] In the embodiment of the present invention, Figure 7 As shown, the prescription image generating device 700 further includes: a template management module 703, wherein:

[0113] The template management module 703 is used to obtain the prescription picture prototype; convert the prescription picture prototype into an XML string of the prescription picture, and template the XML string to generate the prescription picture template.

[0114] In the embodiment of the present invention, Figure 7 As shown, the prescription picture generating device 700 further includes: a configuration module 704, wherein:

[0115] Configuration module 704 is used to receive and store the arrangement structure configuration information sent by the second client for one or more business scenarios and one or more business types, wherein the arrangement structure configuration information includes: prescription picture frame arrangement, drug information arrangement, prescription signature title arrangement, doctor's signature arrangement, hospital signature arrangement and any number of unit name arrangements of the unit to which the prescription belongs.

[0116] In the embodiment of the present invention, the configuration module 704 is further configured to receive an adjustment request for the orchestration structure configuration information sent by the second client; and update the orchestration structure configuration information according to the orchestration structure adjustment information included in the adjustment request.

[0117] In the embodiment of the present invention, the template management module 703 is further used to convert the prescription image prototype into an SVG format image and extract the XML string of the SVG format image.

[0118] In the embodiment of the present invention, the template management module 703 is further used to replace the variable content included in the XML string with a placeholder or a variable, and fix the immutable content included in the XML string.

[0119] In an embodiment of the present invention, the template management module 703 is further used to provide a picture structure drawing interface to the second client, wherein the picture structure drawing interface includes multiple drawing components, wherein the drawing components are used to draw specific objects in the picture structure drawing interface, so that the user can use multiple drawing components to draw multiple specific objects in the picture structure drawing interface, and combine the drawn multiple specific objects into a prescription picture prototype; receive the prescription picture prototype composed of multiple specific objects sent by the second client.

[0120] In the embodiment of the present invention, the processing module 702 is further used to generate an initial prescription picture that matches the format of the prescription picture template; and convert the initial prescription picture into a prescription picture that meets the format required by the prescription supervision platform.

[0121] In an embodiment of the present invention, the processing module 702 is further used to determine the business scenario or business type of the arrangement structure configuration information of each type of prescription image; to establish a correspondence between the unit information with the authority to prescribe and multiple business scenarios and multiple business types; in response to receiving a prescription processing request sent by the first client, to search for one or more business scenarios and one or more business types corresponding to the unit information included in the prescription processing request according to the correspondence; to send the one or more business scenarios and one or more business types corresponding to the unit information included in the prescription processing request to the first client, so that the first client selects the corresponding business scenario and business type for the prescription information configured for it, and enables the first client to generate an image generation request based on the prescription information, the selected business scenario and business type.

[0122] Figure 8 A prescription picture generation system 800 provided in an embodiment of the present invention is shown. The prescription picture generation system 800 may include: a first client 801, a prescription supervision platform 802, and the prescription picture generation device 700 provided in the above embodiment.

[0123] Fig. 9 An exemplary system architecture 900 is shown to which the prescription image generation method or prescription image generation device according to the embodiment of the present invention can be applied.

[0124] like Fig. 9As shown, the system architecture 900 may include terminal devices 901, 902, 903 that send prescription image generation requests, a network 904, a server 905, terminal devices 906, 907, 908 that configure the arrangement structure configuration information of the processed images, and a supervision platform 909. The network 904 is used to provide a medium for communication links between the terminal devices 901, 902, 903 and the server 905, between the terminal devices 906, 907, 908 and the server 905, and between the server 905 and the supervision platform 909. The network 904 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0125] The user can use the terminal device 901, 902, 903 that sends the prescription image generation request to interact with the server 905 through the network 904 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 901, 902, 903, such as prescription applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0126] The user can use the terminal devices 906, 907, 908 that configure the arrangement structure configuration information to interact with the server 905 through the network 904 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 906, 907, 908, such as an arrangement structure configuration application, a drawing application for setting a prescription image prototype, a web browser application, a search application, etc. (only as an example).

[0127] Terminal devices 901 , 902 , 903 and terminal devices 906 , 907 , 908 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0128] The server 905 may be a server that provides various services, such as a background management server (only an example) that provides support for the application of prescriptions issued by users using the terminal devices 901, 902, and 903. The background management server may analyze and process the received prescription image generation request or prescription information and other data, and send the processing result (such as prescription image - only an example) to the supervision platform 909.

[0129] The supervision platform 909 can manage and review the prescription images generated by the server 905.

[0130] It should be noted that the prescription image generation method provided in the embodiment of the present invention is generally executed by the server 905 , and accordingly, the prescription image generation device is generally arranged in the server 905 .

[0131] It should be understood that Fig. 9 The number of terminal devices, networks, servers and supervisory platforms in the embodiment is only for illustration. Any number of terminal devices, networks, servers and supervisory platforms may be provided according to the implementation requirements.

[0132] Reference below Fig.10 , which shows a schematic diagram of the structure of a computer system 1000 of a terminal device or a server suitable for implementing an embodiment of the present invention. Fig.10 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0133] like Fig.10 As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0134] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0135] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present invention are executed.

[0136] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0137] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0138] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a receiving module and a processing module. The names of these modules do not, in some cases, constitute a limitation on the modules themselves. For example, the receiving module may also be described as a "module for receiving a picture generation request sent by a first client."

[0139] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: receiving a picture generation request sent by a first client, wherein the picture generation request indicates the business scenario to which the prescription belongs, the business type to which the prescription belongs, and prescription information; searching for target orchestration structure configuration information that matches the business scenario and business type from the orchestration structure configuration information of multiple types of prescription pictures; compiling and rendering a preset prescription picture template according to the target orchestration structure configuration information and prescription information, and generating a prescription picture based on the compilation and rendering results, so that the prescription picture meets the requirements of the prescription supervision platform, and uploading the prescription picture to the prescription supervision platform.

[0140] According to the technical solution of the embodiment of the present invention, a preset prescription image template is compiled and rendered through the target orchestration structure configuration information and prescription information that match the business scenario and business type in the image generation request, and a prescription image is generated based on the compilation and rendering results. That is, in the process of generating the prescription image, the orchestration of the information in the prescription image can be achieved through the orchestration structure configuration information that matches the business scenario to which the prescription belongs and the business type to which the prescription belongs indicated by the image generation request, thereby effectively reducing resource consumption and being able to effectively improve the efficiency of prescription image generation.

[0141] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for generating a prescription image, characterized in that: include: Receiving a picture generation request sent by the first client, wherein the picture generation request indicates a business scenario to which the prescription belongs, a business type to which the prescription belongs, and prescription information; Searching for target arrangement structure configuration information matching the business scenario and the business type from arrangement structure configuration information of multiple types of prescription images; According to the target arrangement structure configuration information and the prescription information, a preset prescription picture template is compiled and rendered, and based on the compilation and rendering results, a prescription picture is generated so that the prescription picture meets the requirements of the prescription supervision platform, and the prescription picture is uploaded to the prescription supervision platform.

2. The method for generating prescription images according to claim 1, characterized in that: Also includes: Get the prescription image prototype; The prescription picture prototype is converted into an XML string of the prescription picture, and the XML string is templated to generate the prescription picture template.

3. The method for generating prescription images according to claim 1, characterized in that: Also includes: Receive and store the arrangement structure configuration information for one or more business scenarios and one or more business types sent by the second client, wherein the arrangement structure configuration information includes: any multiple of prescription picture frame arrangement, drug information arrangement, prescription title arrangement, doctor's seal arrangement, prescription unit seal arrangement and prescription unit name arrangement.

4. The method for generating prescription images according to claim 3, characterized in that: Also includes: receiving an adjustment request for the orchestration structure configuration information sent by the second client; The orchestration structure configuration information is updated according to the orchestration structure adjustment information included in the adjustment request.

5. The method for generating prescription images according to claim 2, characterized in that: The step of converting the prescription picture prototype into an XML string of the prescription picture includes: The prescription image prototype is converted into an SVG format image, and an XML string of the SVG format image is extracted.

6. The method for generating prescription images according to claim 2, characterized in that: The step of templating the XML string comprises: The variable content included in the XML string is replaced with a placeholder or a variable, and the immutable content included in the XML string is fixed.

7. The method for generating prescription images according to claim 2, characterized in that: The method of obtaining a prescription image prototype includes: Providing a picture structure drawing interface to the second client, wherein the picture structure drawing interface includes a plurality of drawing components, and the drawing components are used to draw specific objects on the picture structure drawing interface, so that the user can use the plurality of drawing components to draw a plurality of specific objects on the picture structure drawing interface, and combine the drawn plurality of specific objects into a prescription picture prototype; Receive a prescription image prototype composed of a plurality of the specific objects sent by the second client.

8. The method for generating prescription images according to claim 1, characterized in that: The generating of the prescription image comprises: generating an initial prescription picture matching the format of the prescription picture template; The initial prescription image is converted into a prescription image that meets the format required by the prescription supervision platform.

9. The method for generating prescription images according to claim 1, characterized in that: Also includes: For each type of arrangement structure configuration information of the prescription image, determine the business scenario or business type of the arrangement structure configuration information; Establishing a correspondence between the information of units with authority to issue prescriptions and the plurality of business scenarios and the plurality of business types; In response to receiving the prescription processing request sent by the first client, searching for one or more business scenarios and one or more business types corresponding to the unit information included in the prescription processing request according to the corresponding relationship; One or more business scenarios and one or more business types corresponding to the unit information included in the prescription processing request are sent to the first client, so that the first client selects the corresponding business scenarios and business types for the prescription information configured for it, and enables the first client to generate an image generation request based on the prescription information, the selected business scenarios and business types.

10. A prescription image generating device, characterized in that: include: A receiving module and a processing module, wherein: The receiving module is used to receive a picture generation request sent by the first client, wherein the picture generation request indicates the business scenario to which the prescription belongs, the business type to which the prescription belongs, and prescription information; The processing module is used to search for target orchestration structure configuration information that matches the business scenario and the business type from the orchestration structure configuration information of multiple prescription images; compile and render a preset prescription image template according to the target orchestration structure configuration information and the prescription information, and generate a prescription image based on the compilation and rendering results so that the prescription image meets the requirements of the prescription supervision platform, and upload the prescription image to the prescription supervision platform.

11. A prescription image generation system, characterized in that: include: A first client, a prescription supervision platform, and the prescription image generating device as described in claim 10.

12. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.

13. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Resource orchestration method and device and electronic equipment

    CN110019835A

  • Scanning identification method and system applied to prescription entry

    CN112801232A