CN113222076A - Printing and verifying method, device, system and storage medium - Google Patents

Printing and verifying method, device, system and storage medium Download PDF

Info

Publication number
CN113222076A
CN113222076A CN202010071762.6A CN202010071762A CN113222076A CN 113222076 A CN113222076 A CN 113222076A CN 202010071762 A CN202010071762 A CN 202010071762A CN 113222076 A CN113222076 A CN 113222076A
Authority
CN
China
Prior art keywords
prescription
verified
printing
content
printed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010071762.6A
Other languages
Chinese (zh)
Inventor
刘铁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Health Information Technology Ltd
Original Assignee
Alibaba Health Information Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Health Information Technology Ltd filed Critical Alibaba Health Information Technology Ltd
Priority to CN202010071762.6A priority Critical patent/CN113222076A/en
Publication of CN113222076A publication Critical patent/CN113222076A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/60ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The embodiment of the application provides a printing and verifying method, equipment, a system and a storage medium. In the embodiment of the application, in the process of printing the prescription list, a graphic code associated with the prescription content can be generated based on the prescription content issued by the doctor, and the graphic code is printed on the physical carrier, so that the prescription list printed with the graphic code is obtained. Therefore, in the using process of the prescription, the authenticity of the prescription can be verified based on the graphic codes on the prescription, and the authenticity verification problem in the online circulation process of the prescription is solved, so that the circulation safety of the prescription can be improved; on the other hand, the security of the square bill circulation can be further improved by means of the characteristic that the graphic code is not easy to be imitated and tampered.

Description

Printing and verifying method, device, system and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a printing and verifying method, device, system, and storage medium.
Background
Offline documents (e.g., paper documents) are widely used in the fields of administration, commerce, medical care, and the like. Illegal copying, making and using of illegally copied or made offline files brings great potential safety hazards to normal business.
In practical applications, paper documents are often stamped or signed to prevent counterfeiting and copying. Accordingly, people distinguish the authenticity of a signature or a signature by the naked eye. However, this security method is low.
Disclosure of Invention
Aspects of the present application provide a printing and authentication method, apparatus, and storage medium to improve security of a policy transfer process.
An embodiment of the present application provides a printing method, including: acquiring data to be printed; the data to be printed comprises prescription content; generating a graphic code associated with the data to be printed according to the data to be printed; printing the graphic code on a physical carrier to obtain a square list; wherein, the graphic code can be used for verifying the authenticity of the prescription content.
An embodiment of the present application further provides a verification method, including: scanning a graphic code on a prescription to be verified to obtain associated information of first prescription content prescribed by a target doctor; acquiring second prescription content carried by the prescription to be verified; verifying the authenticity of the prescription to be verified according to the associated information of the first prescription content and the second prescription content; and outputting the authenticity verification result.
An embodiment of the present application further provides a verification method, including: acquiring first printing characteristics of target content on a prescription to be verified, wherein the first printing characteristics are displayed on a physical carrier, and information of a target doctor issuing the prescription to be verified; acquiring a second printing characteristic of the printing equipment with the use permission of the target doctor according to the information of the target doctor; according to the first printing characteristic and the second printing characteristic, the prescription to be verified is subjected to copy verification; and outputs a copy verification result.
An embodiment of the present application further provides a printing method, including: acquiring data to be printed; the data to be printed comprises file content; generating a graphic code associated with the data to be printed according to the data to be printed; printing the graphic code on a physical carrier to obtain a document original; wherein, the graphic code can be used for verifying the authenticity of the document content.
An embodiment of the present application further provides a verification method, including: scanning a graphic code on a file to be verified to obtain associated information of first file content provided by a source user; acquiring the content of a second file carried by the file to be verified; verifying the authenticity of the file to be verified according to the associated information of the first file content and the second file content; and outputting the authenticity verification result.
An embodiment of the present application further provides a verification method, including: acquiring a first printing characteristic of target content on a file to be verified, which is presented on a physical carrier, and information of a source user providing the file to be verified; acquiring a second printing characteristic of the printing equipment with the use authority of the source user according to the information of the source user; according to the first printing characteristic and the second printing characteristic, copying and verifying the file to be verified; and outputs a copy verification result.
An embodiment of the present application further provides a printing system, including: a terminal device and a printing device; the terminal equipment is used for acquiring data to be printed and sending the data to be printed to the printing equipment; the data to be printed comprises prescription content; the printing equipment is used for generating a graphic code associated with the data to be printed according to the data to be printed; printing the graphic code on a physical carrier to obtain a square list; wherein, the graphic code can be used for verifying the authenticity of the prescription content.
An embodiment of the present application further provides a verification system, including: the system comprises terminal equipment and server-side equipment; wherein the terminal device is configured to: scanning a graphic code on a prescription to be verified to obtain associated information of first prescription content prescribed by a target doctor; acquiring second prescription content carried by the prescription to be verified; sending the associated information of the first prescription content and the second prescription content to the server-side equipment; the server side equipment is used for verifying the authenticity of the prescription to be verified according to the associated information of the first prescription content and the second prescription content; and outputting the authenticity verification result.
An embodiment of the present application further provides a verification system, including: the system comprises terminal equipment and server-side equipment; wherein the terminal device is configured to: acquiring first printing characteristics of target content on the prescription to be verified, wherein the first printing characteristics are displayed on a physical carrier, and information of a target doctor who opens the prescription to be verified; sending the first printing characteristic and the information of the target doctor to the server-side equipment; the server side equipment is used for acquiring a second printing characteristic of the printing equipment with the use permission of the target doctor according to the information of the target doctor; according to the first printing characteristic and the second printing characteristic, performing copy verification on the prescription to be verified; and outputs a copy verification result.
An embodiment of the present application further provides a computer device, including: a memory, a processor, and a communications component; wherein the memory is used for storing a computer program; the processor is coupled to the memory for executing the computer program for: acquiring data to be printed; the data to be printed comprises prescription content; generating a graphic code associated with the data to be printed according to the data to be printed; the graphic code is provided for the printing equipment through the communication component, so that the printing equipment can print the graphic code on a physical carrier to obtain a prescription order; wherein, the graphic code can be used for verifying the authenticity of the prescription content.
An embodiment of the present application further provides a printing apparatus, including: a memory, a processor, a communication component, and a printing component; wherein the memory is used for storing a computer program; the processor is coupled to the memory for executing the computer program for: acquiring data to be printed through the communication assembly; the data to be printed comprises prescription content; generating a graphic code associated with the data to be printed according to the data to be printed; printing the graphic code on a physical carrier through the printing component to obtain a square list; wherein, the graphic code can be used for verifying the authenticity of the prescription content.
An embodiment of the present application further provides a computer device, including: a memory and a processor; wherein the memory is for storing a computer program; the processor is coupled to the memory for executing the computer program for: acquiring the associated information of the first prescription content issued by the target doctor, which is carried by the graphic code on the prescription to be verified; acquiring second prescription content carried by the prescription to be verified; verifying the authenticity of the prescription to be verified according to the associated information of the first prescription content and the second prescription content; and outputting the authenticity verification result.
An embodiment of the present application further provides a computer device, including: a memory and a processor; wherein the memory is for storing a computer program; the processor is coupled to the memory for executing the computer program for: acquiring first printing characteristics of target content on a prescription to be verified, wherein the first printing characteristics are displayed on a physical carrier, and information of a target doctor issuing the prescription to be verified; acquiring a second printing characteristic of the printing equipment with the use permission of the target doctor according to the information of the target doctor; according to the first printing characteristic and the second printing characteristic, performing copy verification on the prescription to be verified; and outputs a copy verification result.
Embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which when executed by one or more processors, cause the one or more processors to perform the steps of the above-mentioned methods.
In the embodiment of the application, when the prescription is printed, a graphic code associated with the prescription content can be generated based on the prescription content issued by the doctor and the graphic code is printed on the prescription, so that the prescription printed with the graphic code is obtained. Therefore, when the prescription is used, the authenticity of the prescription can be verified based on the graphic code on the prescription, and the authenticity verification problem of the prescription in the online circulation process is solved, so that the circulation safety of the prescription is guaranteed; on the other hand, the security of the square bill circulation can be further improved by means of the characteristic that the graphic code is not easy to be imitated and tampered.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1a is a schematic structural diagram of a printing system according to an embodiment of the present application;
fig. 1b is a schematic structural diagram of an authentication system according to an embodiment of the present application;
fig. 1c is a schematic structural diagram of another verification system provided in the embodiment of the present application;
fig. 2 is a schematic flow chart of a printing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a verification method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another verification method provided in the embodiment of the present application;
FIG. 5 is a schematic flow chart of another printing method provided in the embodiments of the present application;
fig. 6 is a schematic flowchart of another verification method provided in the embodiment of the present application;
fig. 7 is a schematic flowchart of another verification method provided in an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a printing apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In some embodiments of the present application, in the process of printing a prescription order, a graphic code associated with the prescription content may be generated based on the prescription content prescribed by a doctor, and the graphic code may be printed on the prescription order to obtain the prescription order printed with the graphic code. Therefore, in the using process of the prescription list, the authenticity of the prescription list can be verified based on the graphic code, and the authenticity verification problem in the online circulation process of the prescription list is solved, so that the circulation safety of the prescription list is guaranteed; on the other hand, the security of the square bill circulation can be further improved by means of the characteristic that the graphic code is not easy to be imitated and tampered.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
It should be noted that: like reference numerals refer to like objects in the following figures and embodiments, and thus, once an object is defined in one figure or embodiment, further discussion thereof is not required in subsequent figures and embodiments.
Fig. 1a is a schematic structural diagram of a printing system according to an embodiment of the present application. As shown in fig. 1a, the system comprises: a terminal device 10a and a printing device 10 b.
In the present embodiment, the implementation form of the terminal device 10a is not limited, and may be, for example, a smart phone, a tablet computer, a personal computer, a wearable device, or the like. Fig. 1a illustrates a terminal device 10a as an example of a personal computer.
Therein, the terminal device 10a typically comprises at least one processing unit and at least one memory. The number of processing units and memories depends on the configuration and type of terminal device 10 a. The Memory may include volatile, such as RAM, non-volatile, such as Read-Only Memory (ROM), flash Memory, etc., or both. The memory typically stores an Operating System (OS), one or more application software, such as doctor's prescription software, and program data. In addition to the processing unit and the memory, the terminal device 10a may also include a network card chip, an IO bus, an audio/video component, and other basic configurations. Optionally, depending on the implementation of the terminal device 10a, the terminal device 10b may also include some peripheral devices, such as a keyboard, a mouse, a stylus, etc. These peripheral devices are well known in the art and will not be described in detail herein.
In the present embodiment, the implementation form of the printing apparatus 10b is not limited, and any apparatus form having a printing function and a communication function may be used. For example, the printing apparatus 10b may be a stylus printer, a laser printer, an inkjet printer, or the like, but is not limited thereto.
In this embodiment, the terminal device 10a and the printing device 10b may be connected wirelessly or by wire, optionally, the terminal device 10a may be communicatively connected with the printing device 10b through a mobile network, and accordingly, the network format of the mobile network may be any one of 2G (gsm), 2.5G (gprs), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G + (LTE +), 5G, WiMax, and the like. Alternatively, the terminal device 10a may be communicatively connected to the printing device 10b by bluetooth, WiFi, infrared, or the like.
In the present embodiment, the doctor can prescribe a patient using the terminal device 10 a. In the embodiment of the present application, a doctor who makes a real prescription is defined as a target doctor. In addition, the target doctor can also supply the data to be printed containing the prescription content to the printing device 10b through the terminal device 10a for the printing device 10b to print the data to be printed. For example, a printing control is provided on the interface on which the terminal device 10a makes a prescription; the target doctor may trigger the print control, and the terminal device 10a acquires data to be printed including prescription content in response to the trigger operation for the print control, and sends the data to be printed to the printing device 10 b. Alternatively, the target doctor may issue an instruction to the terminal device 10a by voice to instruct the terminal device 10a to acquire data to be printed containing prescription content and send the data to be printed to the printing device 10 b. In the present embodiment, the data to be printed contains prescription content. Alternatively, the prescription content included in the data to be printed may be the prescription content currently input by the target doctor, or may be the prescription content stored in advance locally. Wherein, the prescription content can include: one or more of prescribing, and prescribing postscript. Wherein the plurality of items means 2 or more. Further, the prescription pre-records comprise hospital full-scale, department, patient name, sex, age, date and the like; the prescription can include the name, dosage form, specification, quantity, usage and the like of the medicine; prescription postscript may include doctor signatures, and the like.
In the present embodiment, the printing apparatus 10b is a printing apparatus to which the target doctor has a use authority. The printing device 10b receives the data to be printed sent by the terminal device 10a, and generates a graphic code C associated with the data to be printed according to the data to be printed. In the present embodiment, the "graphic code" refers to a set of bars and empty symbols arranged according to a certain coding rule to represent information composed of certain characters, numbers and symbols, and is generally a graphic information carrier. From the aspect of the dimension of carrying information, the graphic code in the embodiment of the present application may include a one-dimensional code (or barcode), a two-dimensional code, a three-dimensional code, or a character code, and the like. One-dimensional codes may include, but are not limited to: EAN Code, UPC Code, Code 39, Code 93, etc. The two-dimensional code may include, but is not limited to: PDF417 two-dimensional Code, QR Code two-dimensional bar Code, etc. The character code can be pure number code, such as 123987; may also be purely alphabetic, such as Healthaab, etc.; alternatively, the character encoding is a pure symbol encoding, e.g.,; (ii) a (ii) a . . Etc.; or the character code may also be a combination code including at least 2 characters of letters, numbers and punctuation marks, such as 743yyu, Tqw,; (ii) a 118qyy, etc.
The association of the graphic code and the data to be printed in the embodiment means: the graphic code is generated based on data to be printed. For example, a link of a webpage where the data to be printed is located may be encoded to generate a graphic code C; for another example, the data to be printed may be encoded to generate a graphics code C; for another example, the data to be printed may be encrypted, and the encrypted data may be encoded to generate the graphic code C; alternatively, the data to be printed may be character-encoded, and the character-encoded may be a graphic code C, or the like, but is not limited thereto.
There are various alternative embodiments for the above character encoding of the data to be printed, which are exemplified below. For example, the data to be printed can be converted into characters one by one according to the corresponding relationship between the set data and the characters, and then the character code corresponding to the data to be printed is obtained; for another example, a random number may be generated with the current timestamp as a random seed; encrypting the data to be printed by using the random number to obtain encrypted data which is the character code; or, the current processing times may also be used as a random seed to generate a random number, and the data to be printed is encrypted by using the random number, and the obtained encrypted data is a character code or the like, but is not limited thereto; thereafter, the generated character code may be treated as a graphic code C.
In addition to the character encoding mode, in the several modes of generating the graphic code, the encoding objects are respectively the link of the webpage where the data to be printed is located, the data to be printed and the data after the encryption processing, and the encoding objects are different, but the encoding processes are the same or similar. The following describes an encoding process for generating a graphic code, except for a character encoding method, by taking the graphic code as a QR two-dimensional code as an example and taking data to be printed as an encoding object as an example:
optionally, a QR code system can be used to convert the data to be printed into a QR code, so as to obtain code element information required by the QR two-dimensional code; further, acquiring a positioning pattern and a calibration pattern required by the QR two-dimensional code from a preset pattern, and placing the positioning pattern and the calibration pattern required by the QR two-dimensional code at a specific position on a QR two-dimensional code template; and filling the code element information into a data area on the QR two-dimensional code template, and further obtaining the QR two-dimensional code corresponding to the data to be printed.
Further, one embodiment of the above encrypting the data to be printed and encoding the encrypted data to generate the graphic code C includes: the printing device 10b may perform hash processing on the data to be printed to obtain an abstract of the data to be printed; signing the abstract of the data to be printed by using a local private key to obtain a digital signature; and generating a graphic code C according to the data to be printed (prescription content), the digital signature and the local private key. The specific implementation of encoding the data to be printed (prescription content), the digital signature and the local private key to generate the graphic code C may refer to the above-mentioned related content of generating the graphic code C by using the data to be printed as an encoding object, which is not described herein again. In this embodiment, the graphic code C carries the prescription content, the digital signature, and the public key corresponding to the local private key. The local private key may be a private key of the printing device 10b, and accordingly, the public key corresponding to the private key is a public key of the printing device 10 b. Alternatively, the local private key may also be a private key of the terminal device 10a, and accordingly, the public key corresponding to the private key is a public key of the terminal device 10 a.
In some optional embodiments, before performing encryption processing on the data to be printed, the method further includes: and configuring public and private key information for the printing equipment or the terminal equipment of the hospital. In one embodiment, the printing device 10b may be configured with public and private key information, and the printing device 10b configured with the public and private key information may be bound with a target doctor, which is equivalent to binding the public and private key information of the printing device 10b with the target doctor, and subsequently, the doctor may be authenticated through the binding relationship. Or, in another embodiment, the terminal device 10a may be configured with public and private key information, and the terminal device 10a is bound with the target doctor, which is equivalent to binding the public and private key information with the target doctor, and then the target doctor may be authenticated through the binding relationship.
Further, after obtaining the graphic code C, the printing apparatus 10b may print the graphic code C on a physical carrier, thereby obtaining the prescription sheet F printed with the graphic code C. Thus, when the patient takes the prescription F to a pharmacy or a pharmacy to take a medicine, the pharmacist can verify the authenticity of the prescription F by using the graphic code C through the terminal used by the pharmacist. The detailed implementation process of verifying the authenticity of the prescription is described in detail below, and will not be described herein again. Optionally, the printing device 10b may also print the data to be printed and the graphic code C on a physical carrier together, resulting in a prescription slip printed with prescription content and the graphic code C.
In the embodiment of the present application, the physical carrier refers to a physical carrier which can print information and can be circulated offline. In this embodiment, the material of the physical carrier is not limited. Alternatively, the physical carrier may be paper, plastic plate, metal plate, wood plate, etc., but is not limited thereto.
It should be noted that, in the embodiment of the present application, the terminal device 10a may also generate the graphics code C associated with the data to be printed according to the data to be printed, and send the graphics code C to the printing device 10 b; accordingly, the printing device 10b prints the graphic code C on the physical carrier. Or the terminal device 10a generates a graphic code C associated with the data to be printed according to the data to be printed, and sends the data to be printed and the graphic code C to the printing device 10 b; accordingly, the printing device 10b can print the data to be printed and the graphic code C on the physical carrier, resulting in the prescription form F printed with the prescription content and the graphic code C. For a specific embodiment of the terminal device 10a generating the graphic code C associated with the data to be printed, reference may be made to the content of the graphic code C generated by the printing device 10b, which is not described herein again.
Whether the printing device 10b or the terminal device 10a is adopted to generate the graphic code C, the embodiment of the application can verify the authenticity of the prescription by using the graphic code on the prescription. The recipe verification process is illustratively described below in conjunction with the figures.
Fig. 1b is a schematic structural diagram of an authentication system according to an embodiment of the present application. As shown in fig. 1b, the system comprises: a terminal device 10c and a server device 10 d. The implementation forms of the terminal device and the server device shown in fig. 1b are only exemplary and are not limited thereto.
In this embodiment, the terminal device 10c is a terminal device used by a pharmacist or pharmacist of a pharmacy, and the implementation form thereof is not limited, and may be a smart phone, a personal computer, a wearable device, or the like. In fig. 1b, a terminal device 10c is illustrated, taking a smartphone as an example.
In this embodiment, the server device 10d is a computer device capable of performing data management and providing services related to data processing to pharmacists in response to a service request from the terminal device 10c, and generally has the capability of performing and securing the services. The server device 10d may be a single server device, a cloud server array, or a Virtual Machine (VM) running in the cloud server array. In addition, the server device may also refer to other computing devices with corresponding service capabilities, such as a terminal device (running a service program) such as a computer. Fig. 1b illustrates an example in which the server device 10d is a cloud server array.
In this embodiment, the server device 10d and the terminal device 10c may be connected wirelessly or by wire, and the specific communication manner may refer to the communication manner between the terminal device 10a and the printing device 10b in the above embodiments, which is not described herein again.
In this embodiment, the terminal device 10c has an information scanning function, and may scan, for example, graphics, text, and graphics code, but is not limited thereto. The terminal device 10c may use its own camera to scan information, or may use an external scanning device to scan information. The external scanning device of the terminal device 10c may be a scanning bargun or the like.
Optionally, the terminal device 10c may be installed with a relevant application program, and call a camera of the terminal device or an external scanning device to perform information scanning by using a scanning function in the application program. The terminal device 10c has different implementation forms, and the application program has different implementation forms. If the terminal device 10c is a desktop computer, a notebook computer, or the like, the application program may be implemented as a client program or a web page; if the terminal device 10c is a smart phone, a wearable device, or the like, the application may be implemented as an APP.
In this embodiment, the terminal device 10c and the server device 10d cooperate with each other to verify the authenticity of the prescription. In practice, a patient or family of patients may take a prescription G, on which a graphical code D is printed, to a pharmacy or pharmacy to purchase a medicine. The graphic code D may be the graphic code C generated by the printing system, or may be other graphic codes; accordingly, the prescription G may be the prescription F (real prescription) printed by the above-described printing system, or may be another prescription. For the pharmacist, it is impossible to confirm whether the graphic code D is the graphic code C on the real prescription sheet F, and it is impossible to confirm whether the prescription sheet G is the real prescription sheet F printed by the printing system. Based on the method, whether the prescription list G to be verified is the real prescription list F or not can be verified by verifying whether the graphic code D is the graphic code C or not, namely the authenticity of the prescription list to be verified is verified.
Based on the above analysis, in order to verify the authenticity of the prescription G to be verified, the pharmacist of the pharmacy or pharmacy may scan the graphic code D on the prescription G to be verified by using the terminal device 10c to obtain the associated information of the real prescription content issued by the target doctor, which is carried by the graphic code D, and the associated information may verify the authenticity of the prescription content carried by the prescription G to be verified. And the prescription content carried by the prescription list G to be verified is the prescription content to be verified.
In this embodiment, the terminal device 10c may further obtain the contents of the prescription to be verified carried by the prescription to be verified G. In an optional embodiment, the content of the prescription to be verified may be encapsulated in the graphic code D, and the terminal device 10c may scan the graphic code D to obtain the content of the prescription to be verified carried by the graphic code D. In another optional embodiment, the content of the prescription to be verified may be printed on the prescription list G to be verified in a plaintext form, and the terminal device 10c may obtain the image of the prescription list G to be verified, perform character recognition on the image of the prescription list G to be verified, and further obtain the content of the prescription to be verified printed on the prescription list G to be verified.
Further, after obtaining the associated information of the real prescription content carried by the graphic code D on the prescription to be verified G and the prescription content to be verified carried by the prescription to be verified G, the terminal device 10c may send the associated information of the real prescription content and the prescription content to be verified to the server device 10D. Accordingly, the server device 10d may verify the authenticity of the prescription G to be verified based on the association information of the real prescription content and the prescription content to be verified, and output the authenticity verification result. In this embodiment, verifying the authenticity of the prescription to be verified G mainly means verifying the authenticity of the prescription content to be verified carried by the prescription to be verified G.
It should be noted that the implementation process of the terminal device 10c acquiring the associated information of the real prescription content and the prescription content to be verified may also be completed by the server device 10 d. Alternatively, the terminal device 10c may transmit the image of the prescription G to be verified to the server device 10 d. Accordingly, the server device 10d can obtain the associated information of the real prescription content and the prescription content to be verified according to the image of the prescription list G to be verified. Optionally, if the contents of the prescription to be verified are encapsulated in the graphic code D, performing feature recognition on the image of the prescription list G to be verified to determine the image of the graphic code D; and analyzing the graphic code D to obtain the associated information of the real prescription content and the prescription content to be verified. Optionally, if the prescription content to be verified is printed on the prescription list G to be verified in a plaintext form, the image of the prescription list G to be verified may be subjected to feature equipment to determine the image of the image graphic code D and the image of the prescription content; performing character recognition on the image of the prescription content to obtain the content of the prescription to be verified; and analyzing the graphic code D to obtain the associated information of the real prescription content and the prescription content to be verified. The verification system provided by the embodiment can be matched with the printing system provided by the previous embodiment to realize the authenticity verification of the prescription. In the process of printing the prescription, the printing system generates a graphic code associated with the prescription content based on the prescription content issued by the doctor and prints the graphic code on a physical carrier to obtain the prescription printed with the graphic code. Correspondingly, in the using process of the prescription, the verification system provided by the embodiment can verify the authenticity of the prescription on the basis of the graphic code on the prescription to be verified, so that the authenticity verification problem of the prescription in the online circulation process is solved, and the circulation safety of the prescription can be guaranteed; on the other hand, the security of the square bill circulation can be further improved by means of the characteristic that the graphic code is not easy to be imitated and tampered.
In addition, the information coding technology is used for verifying the authenticity of the prescription list, and the user does not need to recognize the authenticity by naked eyes, so that the accuracy of verification is improved, and the safety of single-line downloading and transferring of the prescription is further improved.
In the embodiment of the application, the printing system has different implementation modes for generating the graphic code C associated with the data to be printed according to the data to be printed, and the associated information of the real prescription content carried by the graphic code D is different; of course, the way of verifying the authenticity of the prescription list G to be verified is different according to the associated information of the real prescription content and the prescription content to be verified. The following is an exemplary description in connection with several embodiments of generating a graphic code C associated with the data to be printed (real prescription content).
In an embodiment, the graphic code C is obtained by coding a link of a webpage where the real prescription content is located, and the associated information of the real prescription content carried in the graphic code D is the link of the webpage where the real prescription content is located. Accordingly, the terminal device 10c may parse the graphic code D to obtain a link where the real prescription content is located; the link can be accessed to enter a webpage where the real prescription content is located; and reads the real prescription content from the web page and then sends the real prescription content to the server device 10 d. Further, the server device 10d may compare whether the contents of the prescription to be verified are consistent with the contents of the real prescription, so as to determine the authenticity of the prescription form G to be verified. Correspondingly, if the contents of the prescription to be verified are consistent with the contents of the real prescription, determining that the prescription list G to be verified is the real prescription list; and if the contents of the prescription to be verified are inconsistent with the contents of the real prescription, determining that the prescription list G to be verified is a forged prescription list. For the obtaining manner of the contents of the prescription to be verified, reference may be made to the relevant contents of the above embodiments, and details are not described herein again.
In another embodiment, the data to be printed may be character-encoded, and the character-encoded data may be the graphic code C. In this embodiment, the contents of the prescription to be verified may be printed in plain text on the prescription to be verified G. Accordingly, the terminal device 10c may acquire characters included in the character code (graphic code D) on the prescription G to be verified; and transmits the characters and the contents of the prescription to be verified to the server device 10 d. Alternatively, the terminal device 10c may provide a character and contents-of-prescription-to-be-verified input window for inputting characters included in the graphic code D and contents of prescription to be verified by a pharmacist of the pharmacy or pharmacy. Or, the terminal device 10c may obtain the image of the to-be-verified recipe G by using its camera, perform feature device on the image of the to-be-verified recipe G, and determine the image of the graphic code D and the image of the prescription content; performing character recognition on the image of the prescription content to obtain the content of the prescription to be verified; on the other hand, the image of the graphic code D is subjected to character recognition to obtain characters included in the graphic code D.
After the server device 10D receives the contents of the prescription to be verified and the characters contained in the graphic code D, the characters contained in the graphic code D can be decoded to obtain the contents of the real prescription. Further, the server device 10d may compare whether the contents of the prescription to be verified are consistent with the contents of the real prescription, so as to determine the authenticity of the prescription form G to be verified. Correspondingly, if the contents of the prescription to be verified are consistent with the contents of the real prescription, determining that the prescription list G to be verified is the real prescription list; and if the contents of the prescription to be verified are inconsistent with the contents of the real prescription, determining that the prescription list G to be verified is a forged prescription list.
The above-mentioned ways of character encoding the data to be printed are different, and the decoding of the characters included in the graphic code D is also different. In an embodiment, the data to be printed can be converted into characters by using the corresponding relationship between the data and the characters, and then inverse operation can be performed by using the corresponding relationship between the data and the characters to obtain data corresponding to each character, so as to obtain data corresponding to the characters contained in the graphic code D, and the data is used as the real prescription content. In another embodiment, the data to be printed can be encrypted by using a random number to obtain a character code; the server device 10D may decrypt the characters included in the graphic code D with the random number to obtain the real prescription content.
In another embodiment, the real prescription content may be encrypted and signed based on a digital signature technique, and then the real prescription content, the signature corresponding to the real prescription content, and the private key bound to the target doctor are encoded to generate the graphic code C. Accordingly, the associated information of the real prescription content carried in the graphic code D may also include: a digital signature corresponding to the real prescription content and a public key bound to the target doctor who issued the real prescription content. The digital signature is obtained by signing the abstract of the real prescription content by using a private key corresponding to a public key bound with a target doctor. The public key bound to the target doctor may be the public key of the terminal device (terminal device 10a) used by the target doctor to make a prescription, or may be the public key of the printing device (printing device 10b) to which the target doctor has the use authority.
Accordingly, the server device 10d may verify the authenticity of the prescription to be verified G according to the prescription content to be verified carried by the prescription to be verified G, the public key bound to the target doctor and the digital signature, that is, verify whether the prescription content to be verified carried by the prescription to be verified G is consistent with the real prescription content provided by the target doctor. Optionally, the server device 10d may decrypt the digital signature using the public key bound to the target doctor to obtain the digest of the real prescription content; the abstract of the real prescription content is obtained by performing hash processing on the real prescription content issued by the target doctor. The server device 10d may also perform hash processing on the contents of the prescription to be verified to obtain an abstract of the contents of the prescription to be verified. Further, the server device 10d may verify the authenticity of the prescription G to be verified based on the digest of the real prescription content and the digest of the prescription content to be verified.
The method for verifying the authenticity of the prescription list G to be verified according to the abstract of the real prescription content and the abstract of the prescription content to be verified can adopt but is not limited to the following modes. For example, the digest of the real prescription content may be directly compared with the digest of the prescription content to be verified; if the abstract of the prescription content to be verified is consistent with the abstract of the real prescription content, determining that the prescription content to be verified carried on the prescription list G to be verified is consistent with the real prescription content issued by the target doctor, namely the prescription list G to be verified is a real prescription list; correspondingly, if the abstract of the prescription to be verified is inconsistent with the abstract of the real prescription content, it is determined that the prescription content to be verified carried on the prescription to be verified G is inconsistent with the real prescription content issued by the target doctor, that is, the prescription to be verified G is a forged prescription. For another example, the server device 10d may calculate a matching degree between the abstract of the prescription to be verified and the abstract of the real prescription content; if the matching degree is greater than or equal to a preset matching degree threshold value, determining that the prescription list G to be verified is a true prescription list; correspondingly, if the calculated matching degree of the abstract to be verified and the abstract of the real prescription content is smaller than the preset matching degree threshold value, the prescription to be verified G is determined to be a forged prescription.
Alternatively, the matching degree of the abstract of the prescription content to be verified and the abstract of the real prescription content can be calculated by, but not limited to, the following methods: because the abstract of the real prescription content and the abstract of the prescription list to be verified are a string of ciphertext with fixed length, a string of character sequences corresponding to the abstract of the real prescription content and the abstract of the prescription content to be verified are respectively represented as a sequence X and a sequence Y, the Euclidean distance or cosine similarity of the sequence X and the sequence Y can be calculated and used as the matching degree of the abstract of the real prescription content and the abstract of the prescription content to be verified.
Wherein the euclidean distance of sequences X and Y can be expressed as:
Figure BDA0002377479380000151
wherein X.Y represents the inner product of sequences X and Y. The cosine similarity of the sequences X and Y can be expressed as:
Figure BDA0002377479380000152
further, the server device 10d may output an authenticity verification result of the prescription G to be verified. Alternatively, the server device 10d may transmit the authentication result to the terminal device 10c and be provided to the user by the terminal device 10 c. Accordingly, the terminal device 10c may present the verification result on its display screen, or the terminal device 10c may also play the verification result through its audio component, and so on, but is not limited thereto. Alternatively, the server device 10d may also display the verification result on its display screen; or playing the verification result through an audio component; and the like, but are not limited thereto.
In addition to verifying the authenticity of the contents of the prescription, the embodiment of the application can also perform copy verification on the prescription, namely, verify whether the prescription is printed by a printing device with the use authority of the target doctor or printed or copied by other printing devices. The other printing apparatuses refer to printing apparatuses other than the printing apparatus to which the target doctor has the use authority. The copy verification process for the recipe list is exemplified below.
In actual practice, each printing device has inherent printing characteristics. The printing characteristic refers to that the printing equipment prints information on a physical carrier, and the characteristic presented by the information on the physical carrier is the inherent physical characteristic of the printing equipment and is determined by the performance of the printing equipment. Preferably, the printing resolution (DPI) of the printing apparatus is greater than or equal to 600 DPI. This is because the higher the printing resolution of the printing apparatus is, the more obvious the printing features on the contents on the prescription sheet are, and the higher the accuracy of the subsequent copy verification of the prescription sheet is, which is helpful to further improve the accuracy of the verification.
In this embodiment, the printing characteristics of the printing device may include at least one of: ink distribution features, vestige features, punch mark features, dissolution features of the writing colorant, printed secret features, and texture features, but are not limited thereto.
The printing characteristics of different printing devices may differ, in other words, different printing devices are used to print the same information, which differs in the printing characteristics presented on the physical carrier. If the physical carrier printed with the information to be printed is copied in the off-line circulation process, the printing characteristics presented by the information on the physical carrier are changed to a certain extent.
Based on the above analysis, in order to verify whether the prescription G to be verified is a copied prescription, in this embodiment, as shown in fig. 1c, the terminal device 10c may scan the target content on the prescription G to be verified, so as to obtain the print characteristic of the target content presented on the physical carrier; based on the print characteristics, it is verified whether the recipe G to be verified is a copied recipe. For convenience of description and distinction, the print feature that presents the target content on the prescription document G to be verified onto the physical carrier is defined as the print feature to be verified. The target content may be any content printed on the prescription sheet G to be verified, such as but not limited to text, patterns, graphic codes D, and the like.
Optionally, the terminal device 10c may acquire an image of the target content, and perform feature extraction on the image of the target content to obtain a to-be-verified print feature of the target content presented on the physical carrier. Alternatively, the terminal device 10c may also transmit the image of the target content to the server device 10 d. Accordingly, the server device 10d may perform feature extraction on the image of the target content to obtain the print feature to be verified, where the target content is presented on the physical carrier.
Further, the information of the target doctor who opens the prescription is displayed on the physical carrier. Accordingly, the terminal device 10c can also acquire information of the target doctor. In the present embodiment, the information of the target doctor refers to information that can uniquely identify the doctor. Alternatively, the target information may be: the doctor's name, code number, hospital, department, certificate number, identification number, but not limited to. For example, the information for the target physician in FIG. 1a is Zhang three of XXX hospital XXX department. In the embodiments of the present application, plural means 2 or more than 2.
In the present embodiment, the embodiment of acquiring information of a doctor who prescribes a prescription G to be verified is not limited. Alternatively, the terminal device 10c may scan the content on the prescription to be verified G, and obtain the information of the target doctor who has prescribed the prescription to be verified G. Alternatively, the terminal device 10c may also provide a corresponding doctor information input interface for the user to autonomously input information of the target doctor. Alternatively, the terminal device 10c may collect an image of the prescription G to be verified; and performing character recognition on the image of the prescription list G to be verified, and further extracting the information of the target doctor from the image of the prescription list G to be verified. Alternatively, the terminal device 10c transmits the image of the prescription G to be authenticated to the server device 10 d. The server device 10d performs character recognition on the image of the prescription to be verified G, and extracts information of the target doctor who has prescribed the prescription to be verified G.
Further, for the case where the terminal device 10c acquires the print feature to be verified presented on the physical carrier by the target content on the prescription G to be verified and the information of the target doctor who has prescribed the prescription G to be verified, the terminal device 10c may send the print feature to be verified and the information of the target doctor to the server device 10 d. Accordingly, the server device 10d can obtain the printing characteristics of the printing device having the use authority of the doctor according to the information of the target doctor. For convenience of description and distinction, the print feature of the printing apparatus to which the target doctor has the authority of use is defined as a source print feature.
Wherein the source print characteristic refers to: the printing device with the use authority of the target doctor prints the information onto the physical carrier, and the printing characteristics of the information presented on the physical carrier. The source print feature may be pre-collected prior to the copy validation of the prescription G. Alternatively, before the copy verification is performed on the prescription G to be verified, the designated information may be printed on the physical carrier by using the printing device that the target doctor has the use authority, the physical carrier printed with the designated information is used as a sample, and the printing features of the designated information on the sample and presented on the physical carrier are collected as the printing features of the printing device that the target doctor has the use authority. The specific information may be the same as the target content, or may be other information than the target content. Further, the corresponding relationship between the information of the target doctor and the printing characteristics of the printing device with the use authority can be constructed, and the corresponding relationship is preset in the server device 10d, so that the server device 10d can retrieve the printing characteristics of the printing device with the use authority of the doctor, namely the source printing characteristics, from the corresponding relationship between the information of the target doctor and the printing characteristics of the printing device with the use authority of the target doctor through the information of the target doctor.
Further, in the embodiment of the present application, the server device 10d may also maintain the correspondence between the doctor information and the print characteristics. The correspondence between the doctor information and the print characteristics specifically means: the correspondence between the doctor information and the print characteristics of the printing apparatus to which the doctor has the authority to use. Alternatively, the print characteristics of the printing apparatus that specifies the doctor has the use authority may be acquired in advance, and the correspondence between the user doctor and the print characteristics may be constructed. The designated doctor may be a doctor of the hospital who customizes the relevant verification service, and includes the target doctor who has prescribed the prescription G to be verified. For a specific embodiment of collecting the printing features of the printing device with usage right of each designated doctor, reference may be made to the above-mentioned related contents of collecting the printing features of the printing device with usage right of the target doctor, which are not described herein again.
Based on the correspondence between the doctor information and the print characteristics, the server device 10b can match the information of the target doctor with the correspondence between the doctor information and the print characteristics, and obtain the print characteristics of the print device having the use authority of the target doctor as the source print characteristics.
Further, after obtaining the print feature to be verified presented on the physical carrier by the target content on the prescription G to be verified and the source print feature of the printing device having the usage right of the target doctor who has issued the prescription G to be verified, the server device 10d may perform copy verification on the prescription G to be verified according to the print feature to be verified and the source print feature, that is, verify whether the prescription G to be verified is a copied prescription. In this embodiment, the prescription is a non-copy prescription, that is, the prescription G to be verified is the original prescription, means: the prescription list G to be verified is directly printed by a printing device with the use authority of the target doctor, namely the prescription list G to be verified is not printed by other printing devices, and is not obtained by copying the original F of the prescription list.
Alternatively, the server device 10d may calculate a similarity between the print feature to be verified and the source print feature, and perform copy verification on the recipe G to be verified by using the similarity. Further, if the calculated similarity is greater than or equal to a preset similarity threshold, it is determined that the recipe G to be verified is an original, not a duplicate. Namely, the prescription to be verified G is printed by the printing device which the doctor who has the authority to use the prescription to be verified G has, and is not copied by other printing devices. Correspondingly, if the calculated similarity is smaller than the preset similarity threshold, the to-be-verified recipe G is determined to be copied, namely the to-be-verified recipe G is not printed by a printing device which has the use authority of a doctor who opens the to-be-verified recipe G, but is printed by a printing device of another user, or is obtained by copying the original of the recipe.
Optionally, the similarity between the print feature to be verified and the source print feature may be calculated by, but not limited to, the following methods: and respectively representing the printing feature to be verified and the source printing feature by using the feature vectors A and B, and calculating the Euclidean distance or cosine similarity of the feature vectors A and B as the similarity of the printing feature to be verified and the source printing feature. For the calculation of the euclidean distance and the cosine similarity, reference may be made to the above-mentioned contents related to the calculation of the matching degree between the digest of the content of the prescription to be verified and the digest of the content of the real prescription, which is not described herein again.
If the printing features to be verified and the source printing features contain printing features of multiple attributes, the similarity of feature vectors corresponding to the printing features of the same attributes in the source printing features in the printing features to be verified can be calculated, and the average value of the similarities of the printing features of the multiple attributes is calculated and used as the similarity of the printing features to be verified and the source printing features. For example, the print characteristics include: and respectively calculating the similarity of the feature vector of 3 attributes in the to-be-verified printing feature and the source printing feature, and calculating the average value of the similarity of the feature vectors of the 3 attributes as the similarity of the to-be-verified printing feature and the source printing feature.
Further, the copy verification result can be obtained by performing copy verification on the prescription sheet G to be verified, and the copy verification result can be output so that the user (pharmacist) can know the copy verification result. For a specific implementation of the server device 10d outputting the copy verification result, reference may be made to the relevant content of the authentication result output by the server device 10d, which is not described herein again.
In the embodiment, the terminal device and the server device are matched with each other, so that the printing feature to be verified, which is presented to the physical carrier by the target content on the prescription to be verified, and the information of the target doctor who has the prescription can be obtained, and the source printing feature of the printing device which has the use authority of the doctor can be obtained according to the information of the target doctor; and copying and verifying the prescription list to be verified through the printing feature to be verified and the source printing feature. The verification mode can be used for copying and verifying the prescription according to the printing characteristics presented on the prescription and the inherent printing characteristics of the printing equipment, does not need the naked eye identification of a user, and is beneficial to improving the verification accuracy, thereby being beneficial to improving the safety of single-line downloading and transferring of the prescription.
It should be noted that the prescription verification system shown in fig. 1c can perform copy verification on the prescription printed by the prescription printing system shown in fig. 1a, and can also perform copy verification on the prescription printed by other printing systems, for example, perform copy verification on the prescription without graphic codes, and so on.
It should be further noted that the verification system provided in the embodiments of the present application may only provide a function of verifying whether the prescription content is true or false or performing a copy verification on the prescription, or may provide both a function of verifying whether the prescription content is true or false and a function of performing a copy verification on the prescription. In the embodiment that provides both the authenticity verification of the prescription contents and the copy verification of the prescription, the execution sequence of the authenticity verification of the prescription contents and the copy verification of the prescription is not limited.
The printing and verification system provided by the embodiment of the application can be applied to printing and verification of prescription in the medical field, and can also be applied to offline process of offline documents (paper documents) in the fields of commerce, administration and the like, for example, to printing and verification of offline documents such as contract documents, certification documents, bills and the like. The printing and verification method for other documents is exemplarily described below in connection with the above-described fig. 1 a-1 c.
For the printing system shown in fig. 1a, a source user who provides a file can open the file using the terminal device 10 a. Wherein, the source user of the contract document can be the first party or the second party of the contract; for a certification document, the source user may be the issuing authority; for tickets, the source user may be the billing unit.
Further, the source user can send a print instruction to the printing apparatus 10b through the terminal apparatus 10 a. For example, a printing control is provided on an interface for inputting file content corresponding to the terminal device 10 a; the source user may trigger the terminal device 10a to print the control, and the terminal device 10a transmits a print instruction to the printing device 10b in response to the trigger operation for the print control. Wherein the print instruction may carry data to be printed. For the present embodiment, the data to be printed includes file content, or the data to be printed is file content. For the contract document, the document content may include the agreement content, the information of both parties, and the like, but is not limited thereto; for certification documentation, the document contents may include certification content, personal information, and the like; for tickets, the document content may include ticket content, billing unit information, and the like. I.e., the terminal apparatus 10a, transmits the data to be printed to the printing apparatus 10 b.
In the present embodiment, the printing apparatus 10b may be a printing apparatus to which the source user has a usage right. The printing device 10b may receive data to be printed and generate a graphic code associated with the data to be printed based on the data to be printed. The implementation of the graphic code and the specific implementation of generating the graphic code may refer to the related contents of the above embodiments, and are not described herein again.
Alternatively, the printing apparatus 10b may perform hash processing on the data to be printed, to obtain a digest of the data to be printed. Further, the printing device 10b may sign the digest of the data to be printed by using the local private key to obtain a digital signature; and generating a graphic code according to the data to be printed (the real file content), the digital signature and the local private key. The graphic code carries the real file content, the digital signature and the public key corresponding to the local private key. For a specific implementation of generating the graphic code according to the data to be printed (the real file content), the digital signature and the local private key, reference may be made to the relevant contents of the above embodiments, and details are not repeated here.
Further, the printing apparatus 10b may print the graphic code on a physical carrier, thereby obtaining a document original printed with the graphic code. The file original is printed with a graphic code. Alternatively, the printing device 10b may also print the data to be printed and the graphic code on a physical carrier together, resulting in a document original printed with the document content and the graphic code.
Whether the file content is printed on the file or not, the receiver of the file can verify the authenticity of the received file by using the graphic code on the file. For the contract document, the receiver of the contract document is the party A or the party B signing the contract; for a credential, the recipient of the credential may be the entity that asks the user to provide the relevant credential, and so on. In the following embodiments, for convenience of description and distinction, a file requiring authentication is defined as a file to be authenticated.
For the authentication system shown in fig. 1b, terminal device 10c is the terminal device of the recipient of the file to be authenticated. The terminal device 10c may scan the graphic code on the file to obtain the associated information of the actual file content provided by the source user carried by the graphic code. For convenience of description and distinction, the file content provided by the source user is defined as the true file content.
In this embodiment, the terminal device 10c may further obtain the file content carried by the file to be verified, where the prescription content is the file content to be verified. The content of the file to be verified can be packaged in the graphic code on the file to be verified, and can also be printed on the file to be verified in a plaintext form. For a specific implementation of the terminal device 10c acquiring the content of the file to be verified, reference may be made to the above-mentioned related content of acquiring the content of the prescription to be verified, which is not described herein again.
Further, the terminal device 10c may send the association information of the real file content and the file content to be verified to the server device 10 d. Correspondingly, the server device 10d may verify the authenticity of the document to be verified according to the association information of the real document content and the document content to be verified; and outputting the authenticity verification result. In this embodiment, verifying the authenticity of the document to be verified mainly includes: and verifying the authenticity of the content of the file to be verified borne by the file to be verified. The specific implementation manners of verifying the authenticity of the document to be verified according to the associated information of the content of the real document and the content of the document to be verified can refer to the related content of the prescription verification, and are not repeated herein.
The verification system provided by the embodiment can be matched with the printing system provided by the previous embodiment to realize the authenticity verification of the document under the line. In the process of printing the file, the printing system can generate a graphic code associated with the file content based on the file content provided by the source user, and print the graphic code on a physical carrier to obtain the file printed with the graphic code. Correspondingly, in the using process of the prescription, the verification system provided by the embodiment can verify the authenticity of the file to be verified based on the graphic code on the file to be verified, so that the authenticity verification problem of the file in the online circulation process is solved, and the safety of the online circulation of the file can be guaranteed; on the other hand, the security of file offline circulation can be further improved by means of the characteristic that the graphic code is not easy to counterfeit and tamper.
In addition, the authenticity of the document is verified by using the information coding technology, and the document is not required to be identified by naked eyes of a user, so that the verification accuracy is improved, and the document offline circulation safety is further improved.
Besides verifying the authenticity of the file content, the embodiment of the application can also perform copy verification on the file to be verified, namely, verify that the file to be verified is printed by the printing device with the use authority of the source user or is printed or copied by other printing devices, wherein the other printing devices refer to printing characteristics except the printing device with the use authority of the source user. The following is an exemplary description of the copy verification process for files.
In this embodiment, in order to verify whether the file to be verified is a copied file, as shown in fig. 1c, the terminal device 10c may scan the target content on the file to be verified, so as to obtain the print characteristic of the target content presented on the physical carrier; based on the print characteristics, it can be verified whether the document to be verified is a duplicate prescription. And presenting the target content on the file to be verified to the printing feature on the physical carrier, wherein the printing feature is the printing feature to be verified. The target content may be any content printed on the document to be verified, such as, but not limited to, text, patterns, graphic codes, and the like. For a specific implementation of the terminal device 10c obtaining the print feature to be verified that the target content is presented on the physical carrier, reference may be made to relevant contents of the foregoing embodiments, and details are not described here again.
Furthermore, the information of the active user is also displayed on the physical carrier. Accordingly, the terminal device 10c can also acquire information of the source user. In this embodiment, the information of the source user refers to information that can uniquely identify the source user. Alternatively, for the contract document, the information of the source user may be: corporate information; for the certificate, the source user information may be information of the organization that opened the certificate, and the like, but is not limited thereto. For a specific embodiment of the terminal device 10c acquiring the information of the source user, reference may be made to the above-mentioned related content of acquiring the information of the target doctor, and details are not described here again.
Further, in the case where the terminal device 10c acquires the print feature to be authenticated and the information of the source user, which are presented on the physical carrier by the target content, the terminal device 10c may send the print feature to be authenticated and the information of the source user to the server device 10 d. Accordingly, the server device 10d can obtain the printing characteristics of the printing device which the source user has the use authority, that is, the source printing characteristics, according to the information of the source user. For the explanation and the obtaining method of the source printing feature, reference may be made to the related content of the source printing feature of the printing device that the target doctor who has the right of use for obtaining the prescription list, and details are not repeated here.
Further, after obtaining the print feature to be verified presented on the physical carrier by the target content on the file to be verified and the source print feature of the printing device having the usage right of the source user who opens the file to be verified, the server device 10d may also perform copy verification on the file to be verified according to the print feature to be verified and the source print feature, that is, verify whether the file to be verified is copied. For a specific implementation of performing copy verification on a document to be verified according to the print feature to be verified and the source print feature, reference may be made to the above-mentioned related contents of performing copy verification on a prescription, which is not described herein again.
In this embodiment, the document to be verified is non-copied, that is, the document to be verified is a document original, means: the document to be verified is directly printed by the printing device with the use authority of the source user, namely the document to be verified is not printed by other printing devices, and is not obtained by copying the original document.
Further, the copy verification result may be obtained by performing copy verification on the to-be-verified recipe G, and accordingly, the server device 10d may output the copy verification result so that the receiver of the to-be-verified document may know the copy verification result. For a specific implementation of the server device 10d outputting the copy verification result, reference may be made to the relevant content of the authentication result output by the server device 10d, which is not described herein again.
In this embodiment, the terminal device and the server device cooperate with each other to obtain a print feature to be verified, which is presented on a physical carrier by target content on a file to be verified, and information of a source user who provides the file to be verified, and obtain a source print feature of a printing device which has a use right of the source user according to the information of the source user; and copying and verifying the file to be verified through the printing feature to be verified and the source printing feature. The verification method can copy and verify the file to be verified according to the printing characteristics presented on the file to be verified and the inherent printing characteristics of the printing equipment, does not need the naked eye identification of a user, and is beneficial to improving the verification accuracy, thereby being beneficial to improving the safety of the offline circulation of the file.
In addition to the printing system and authentication system embodiments described above, the present application embodiments also provide printing and authentication methods, which are exemplarily described below.
Fig. 2 is a schematic flowchart of a printing method according to an embodiment of the present application. As shown in fig. 2, the method includes:
201. acquiring data to be printed; the data to be printed includes prescription content.
202. And generating a graphic code associated with the data to be printed according to the data to be printed.
203. Printing the graphic code on a physical carrier to obtain a square list; wherein, the graphic code can be used for verifying the authenticity of the prescription content.
The printing method provided by the embodiment can be completed by the printing device alone or by the printing system shown in fig. 1 a. For example, steps 201 and 202 may be performed by a terminal device of the target doctor, step 203 may be performed by a printing device having a use authority of the target doctor, and so on. For a specific implementation of the prescription printing system, reference may be made to the related contents of the above system embodiments, and details are not described herein again.
In this embodiment, the graphic code may be a one-dimensional code (or called barcode), a two-dimensional code, a three-dimensional code, or a character code. For specific implementation forms of the one-dimensional code, the two-dimensional code and the character code, reference may be made to relevant contents of the above embodiments, and details are not described herein.
In this embodiment, a graphic code associated with the data to be printed may be generated from the data to be printed. In the embodiment of the present application, the association of the graphic code with the data to be printed means: the graphic code is generated based on data to be printed. For example, a link of a webpage where the data to be printed is located may be encoded to generate a graphic code; for another example, the data to be printed may be encoded to generate a graphics code; for another example, the data to be printed can be encrypted, and the encrypted data is encoded to generate the graphic code; alternatively, the data to be printed may be character-encoded, and the character-encoded may be a graphic code, or the like, but is not limited thereto.
Optionally, one embodiment of the above encoding the encrypted data to generate the graphics code includes: the data to be printed can be subjected to Hash processing to obtain an abstract of the data to be printed; further, the local private key can be used for signing the abstract of the data to be printed to obtain a digital signature; and generating a graphic code according to the data to be printed, the digital signature and the local private key. The graphic code carries data to be printed (prescription content), a digital signature and a public key corresponding to a local private key. Therefore, the data to be printed (prescription content), the digital signature and the public key corresponding to the local private key carried by the graphic code can be used for verifying the authenticity of the prescription.
Further, in step 203, the graphic code is printed on a physical carrier to obtain a prescription. Optionally, the data to be printed and the graphic code can be printed on a physical carrier together to obtain a prescription list printed with prescription content and the graphic code. Since the graphic code is associated with the prescription content, when the patient takes the prescription order to a pharmacy or a pharmacy to take the medicine, the pharmacist can verify the authenticity of the prescription order by using the graphic code through the terminal used by the pharmacist. The recipe verification process is exemplary illustrated below in conjunction with the figures.
Fig. 3 is a schematic flowchart of a verification method according to an embodiment of the present application. As shown in fig. 3, the method includes:
301. and scanning the graphic codes on the prescription list to be verified to obtain the associated information of the real prescription content issued by the target doctor.
302. And acquiring the contents of the prescription to be verified carried by the prescription list to be verified.
303. And verifying the authenticity of the prescription list to be verified according to the correlation information of the real prescription content and the prescription content to be verified.
304. And outputting the authenticity verification result.
The verification method provided by the embodiment can be independently completed by the terminal device at the pharmacist side, and can also be completed by the terminal device at the pharmacist side and the server side in a mutual matching manner. For example, steps 301 and 302 may be performed by the terminal device of the pharmacist, steps 303 and 304 may be performed by the server device, and so on. For the specific implementation of the coordination of the printing system, reference may be made to the related contents of the above system embodiments, and details are not described herein again.
In this embodiment, in step 301, the graphic code on the prescription to be verified carries the associated information of the real prescription content issued by the target doctor, and the associated information can verify the authenticity of the prescription content to be verified carried on the prescription to be verified. For the description of the associated information of the real prescription content, reference may be made to the related content of the above embodiments, which is not described herein again.
In step 302, the contents of the prescription to be verified may also be obtained. In an alternative embodiment, the contents of the prescription to be verified may be encapsulated in a graphical code of the prescription slip to be verified. Accordingly, an alternative implementation of step 302 is: and scanning the graphic code to obtain the contents of the prescription to be verified, which are carried by the graphic code. In another alternative embodiment, the contents of the prescription to be verified may also be printed in the clear on the prescription to be verified. Accordingly, another alternative implementation of step 302 is: and acquiring an image of the prescription to be verified, and performing character recognition on the image of the prescription to be verified, so as to obtain the content of the prescription to be verified printed on the prescription to be verified.
Further, in step 303, the authenticity of the prescription to be verified may be verified according to the correlation information of the real prescription content and the content of the prescription to be verified, and in step 304, the authenticity verification result is output. In this embodiment, verifying the authenticity of the prescription to be verified mainly includes: and verifying the authenticity of the contents of the prescription to be verified, which are borne by the prescription list to be verified.
In the embodiment of the application, in the prescription printing process, a graphic code associated with real prescription content can be generated based on the real prescription content issued by a doctor, and the graphic code is printed on a physical carrier, so that a prescription list printed with the graphic code is obtained. Therefore, in the using process of the prescription, the authenticity of the prescription can be verified based on the graphic code on the prescription, the authenticity verification problem in the online circulation process of the prescription is solved, and the circulation safety of the prescription can be guaranteed; on the other hand, the security of the square bill circulation can be further improved by means of the characteristic that the graphic code is not easy to be imitated and tampered.
In addition, the information coding technology is used for verifying the authenticity of the prescription list, and the user does not need to recognize the authenticity by naked eyes, so that the accuracy of verification is improved, and the safety of single-line downloading and transferring of the prescription is further improved.
In the embodiment of the application, in the recipe list printing stage, different implementation modes are adopted for generating the graphic codes associated with the data to be printed according to the data to be printed, and the associated information of the real recipe content carried by the graphic codes on the recipe list to be verified is different; of course, the way of verifying the authenticity of the prescription list G to be verified is different according to the associated information of the real prescription content and the prescription content to be verified. The following is an exemplary description in connection with several embodiments of generating a graphic code C associated with the data to be printed (real prescription content).
In one embodiment, the graphic code is obtained by coding a link of a webpage where the real prescription content is located, and the associated information of the real prescription content carried in the graphic code is the link of the webpage where the real prescription content is located. Correspondingly, the graphic code can be analyzed to obtain the link where the real prescription content is located; the link can be accessed to enter a webpage where the real prescription content is located; and reading the real prescription content from the webpage, and then comparing whether the prescription content to be verified is consistent with the real prescription content to determine the authenticity of the prescription to be verified. Correspondingly, if the contents of the prescription to be verified are consistent with the contents of the real prescription, determining that the prescription to be verified is the real prescription; and if the contents of the prescription to be verified are inconsistent with the contents of the real prescription, determining that the prescription to be verified is a forged prescription. For the obtaining manner of the contents of the prescription to be verified, reference may be made to the relevant contents of the above embodiments, and details are not described herein again.
In another embodiment, the data to be printed may be character-encoded, and the character-encoded as the graphic code. In this embodiment, the contents of the prescription to be verified may be printed in plain text on the prescription to be verified. Correspondingly, characters contained in the character codes on the prescription to be verified and the content of the prescription to be verified can be obtained; and decoding characters contained in the graphic codes on the prescription to be verified to obtain the real prescription content. Further, the contents of the prescription to be verified and the contents of the real prescription can be compared to determine whether the prescription to be verified is true or false. Correspondingly, if the contents of the prescription to be verified are consistent with the contents of the real prescription, determining that the prescription to be verified is the real prescription; and if the contents of the prescription to be verified are inconsistent with the contents of the real prescription, determining that the prescription to be verified is a forged prescription.
In another embodiment, the real prescription content may be encrypted and signed based on a digital signature technique, and then the real prescription content, the digital signature corresponding to the real prescription content, and the private key bound to the target doctor may be encoded to generate the graphical code. Accordingly, the associated information of the real prescription content carried in the graphic code may also include: a digital signature corresponding to the real prescription content and a public key bound to a target doctor who prescribed the real prescription content (real prescription content). The digital signature is obtained by signing the abstract of the real prescription content issued by the doctor by using a private key corresponding to the public key bound by the target doctor.
Accordingly, since the digital signature corresponding to the real prescription content is obtained by digitally signing with the private key bound to the target doctor, an optional implementation of step 303 is based on: decrypting the digital signature by using a public key bound with a target doctor to obtain an abstract of the real prescription content; carrying out Hash processing on the contents of the prescription to be verified to obtain an abstract of the contents of the prescription to be verified; and verifying the authenticity of the prescription list to be verified according to the abstract of the real prescription content and the abstract of the prescription content to be verified. For a specific implementation manner of verifying the authenticity of the prescription to be verified according to the abstract of the real prescription content and the abstract of the prescription content to be verified, reference may be made to the related contents of the above system embodiments, and details are not repeated here.
Further, in step 304, an authenticity verification result of the prescription to be verified may be output. For a specific implementation manner of outputting the authenticity verification result, reference may be made to relevant contents of the above system embodiment, and details are not described herein again.
In addition to verifying the authenticity of the contents of the prescription, the embodiment of the present application may also perform a copy verification on the prescription, i.e. verify whether the prescription is printed by a printing device with the use right of the target doctor, which is described in the following exemplary description.
Fig. 4 is a schematic flowchart of another verification method provided in the embodiment of the present application. As shown in fig. 4, the method includes:
401. and acquiring the printing characteristics to be verified of the target content on the prescription to be verified, which is presented on the physical carrier, and the information of the target doctor who opens the prescription to be verified.
402. And acquiring the source printing characteristics of the printing equipment with the use authority of the target doctor according to the information of the target doctor.
403. And according to the printing characteristics to be verified and the source printing characteristics, copying and verifying the prescription to be verified.
404. And outputting a copy verification result.
The verification method provided by the embodiment can be independently completed by the terminal equipment of the pharmacist, and can also be completed by the cooperation of the server-side equipment and the terminal equipment of the pharmacist. For example, step 401 may be completed by the terminal device, and step 402 and step 404 may be completed by the server device; and so on.
In the present embodiment, each printing apparatus has an inherent printing characteristic. The printing characteristic refers to that the printing equipment prints information on a physical carrier, and the characteristic presented by the information on the physical carrier is the inherent physical characteristic of the printing equipment and is determined by the performance of the printing equipment. The printing features may include at least one of the following: ink distribution features, vestige features, punch mark features, dissolution features of the writing colorant, printed secret features, and texture features, but are not limited thereto.
The printing characteristics of different printing devices may differ, in other words, different printing devices are used to print the same information, which differs in the printing characteristics presented on the physical carrier. If the physical carrier printed with the information to be printed is copied in the off-line circulation process, the printing characteristics presented by the information on the physical carrier are changed to a certain extent.
Based on the above analysis, in order to verify whether the prescription is a duplicated prescription, in step 401, a print characteristic to be verified that target content on the prescription to be verified is presented on the physical carrier may be obtained; based on the print characteristics, it can be verified whether the prescription to be verified is a duplicate prescription. The target content refers to any content printed on the prescription slip, such as, but not limited to, text, patterns, graphic codes, and the like.
Further, the information of the target doctor who opens the prescription is displayed on the prescription. Accordingly, information of the target doctor can also be acquired. For specific implementation of the information about the acquisition target, reference may be made to relevant contents of the foregoing embodiments, and details are not described herein again. In the present embodiment, the information of the target doctor refers to information that can uniquely identify the doctor. Alternatively, the target information may be: the doctor's name, code number, hospital, department, certificate number, identification number, but not limited to.
Further, in step 402, the source printing characteristics of the printing device having the use authority of the doctor are acquired according to the information of the target doctor. For a description of the source printing feature and a specific implementation of acquiring the source printing feature of the printing device having the usage right of the target doctor, reference may be made to the related contents of the above embodiments, and details are not described herein again.
Optionally, a correspondence between the doctor information and the printed features may be maintained. The correspondence between the doctor information and the print characteristics specifically means: the correspondence between the doctor information and the print characteristics of the printing apparatus to which the doctor has the authority to use. Alternatively, the print characteristics of the printing apparatus that specifies the doctor has the use authority may be acquired in advance, and the correspondence between the user doctor and the print characteristics may be constructed. The designated doctor may be a doctor of the hospital who customizes the relevant verification service, and includes the target doctor who has prescribed the prescription to be verified.
Accordingly, an alternative implementation of step 402 is: and matching the information of the target doctor in the corresponding relation between the doctor information and the printing characteristics, and further obtaining the printing characteristics of the printing equipment with the use authority of the target doctor as the source printing characteristics.
Further, in step 403, according to the print characteristics to be verified and the source print characteristics, performing copy verification on the prescription, that is, verifying whether the prescription to be verified is a copied prescription.
Alternatively, the similarity between the print feature to be verified and the source print feature may be calculated, and the copy verification may be performed on the prescription to be verified by the similarity. Further, if the calculated similarity is greater than or equal to a preset similarity threshold, it is determined that the prescription to be verified is an original, not a duplicate. Namely, the prescription to be verified is printed by the printing device which has the use authority of the doctor who has issued the prescription to be verified, and is not copied by other printing devices. Correspondingly, if the calculated similarity is smaller than the preset similarity threshold, the prescription to be verified is determined to be copied, namely the prescription to be verified is not printed by the printing device which is used by the doctor who issues the prescription to be verified and has the use authority, but is printed by the printing device of other users, or is copied by the original document of the prescription. For a specific implementation of calculating the similarity between the print feature to be verified and the source print feature, reference may be made to the relevant contents of the above system embodiment, and details are not repeated here.
In this embodiment, the prescription is a non-copy prescription, that is, the prescription is the original prescription: the prescription is directly printed by a printing device with the use authority of the target doctor, namely the prescription is neither printed by other printing devices nor obtained by copying the original document of the prescription.
Further, the copy verification result can be obtained by performing copy verification on the prescription to be verified, and in step 404, the copy verification result can be output for the user (pharmacist) to know the copy verification result. For a specific implementation of outputting the copy verification result, reference may be made to the related contents of the above system embodiment, and details are not described herein.
In this embodiment, the print feature to be verified that the target content on the prescription to be verified is presented on the physical carrier and the information of the target doctor who has the prescription to be verified can be obtained, and the source print feature of the printing device which the doctor has the use authority can be obtained according to the information of the target doctor; and the prescription is copied and verified through the printing feature to be verified and the source printing feature. The data verification mode can copy and verify the prescription list according to the printing characteristics presented on the prescription list and the inherent printing characteristics of the printing equipment, does not need the naked eye identification of a user, and is beneficial to improving the verification accuracy, thereby being beneficial to improving the safety of the single-line down-flow of the prescription.
It should be noted that the recipe verification method shown in fig. 4 and its optional embodiments performs copy verification on the recipe printed by the recipe printing method shown in fig. 2, and also performs copy verification on the recipe printed by other printing methods, for example, performs copy verification on a recipe without graphic codes, and so on.
It is also worth noting that the authentication methods provided in fig. 3 and 4 and alternative embodiments thereof may be used alone or in combination. That is, in some embodiments, the prescription verification method provided in fig. 3 and its alternative embodiments can be used alone to perform anti-counterfeit verification on the prescription content; in other embodiments, the prescription verification method provided in fig. 4 and its alternative embodiments may be used alone to perform copy verification; in still other embodiments, the prescription verification method provided in fig. 3 and 4 and their alternatives can be used to perform anti-counterfeiting and copy verification. When the data verification method provided by fig. 3 and 4 and the alternative embodiment thereof is used for anti-counterfeiting and anti-tampering verification, the prescription verification methods shown in fig. 3 and 4 may be performed sequentially or in parallel. When the prescription verification methods shown in fig. 3 and 4 are sequentially performed, the order of execution is not limited.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to execute the steps of the printing method shown in fig. 2 and the optional implementation thereof.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the authentication method shown in fig. 3 and/or fig. 4 and the optional implementation manner thereof.
Fig. 5 is a schematic flowchart of another printing method according to an embodiment of the present application. As shown in fig. 5, the method includes:
501. acquiring data to be printed; the data to be printed includes file contents.
502. And generating a graphic code associated with the data to be printed according to the data to be printed.
503. Printing the graphic code on a physical carrier to obtain a document original; the graphic code can be used for verifying the authenticity of the document content.
The printing method provided by the embodiment can be completed by the printing device alone or by the printing system shown in fig. 1 a. For example, steps 501 and 502 may be performed by a terminal device of the source user, step 503 may be performed by a printing device having usage rights by the source user, and so on. For the specific implementation of the coordination of the printing system, reference may be made to the related contents of the above system embodiments, and details are not described herein again.
In this embodiment, a graphic code associated with the data to be printed may be generated from the data to be printed. In the embodiment of the present application, the association of the graphic code with the data to be printed means: the graphic code is generated based on data to be printed. For a specific implementation of generating the graphic code associated with the data to be printed according to the data to be printed, reference may be made to relevant contents of the above system embodiment, and details are not described herein again.
Further, in step 503, the graphic code may be printed on a physical carrier, resulting in a document original. Optionally, the data to be printed and the graphic code may be printed on a physical carrier together, so as to obtain a document original printed with the document content and the graphic code. Since the graphic code is associated with the content of the document, the document receiver can verify the authenticity of the received document by using the graphic code. The document verification process is exemplary illustrated in conjunction with the figures below.
Fig. 6 is a schematic flowchart of another verification method provided in the embodiment of the present application. As shown in fig. 6, the method includes:
601. and scanning the graphic codes on the file to be verified to obtain the associated information of the real file content provided by the source user.
602. And acquiring the content of the file to be verified borne by the file to be verified.
603. And verifying the authenticity of the file to be verified according to the associated information of the real file content and the file content to be verified.
604. And outputting the authenticity verification result.
In this embodiment, the graphic code on the document to be verified carries the associated information of the document content provided by the active user. For convenience of description and distinction, the file content provided by the source user is defined as the true file content. The source user is the original user who provided the actual file content. For example, the source user of the contract document may be party A or party B of the contract; for a certification document, the source user may be the issuing authority.
In step 601, the graphic code on the document may be scanned to obtain the associated information of the real document content provided by the source user, where the associated information may verify the authenticity of the document content to be verified carried by the document to be verified. The content of the file to be verified can be packaged in the graphic code on the file to be verified, and can also be printed on the file to be verified in a plaintext form. In step 602, the content of the file to be verified carried by the file to be verified can be obtained. For a specific implementation of obtaining the content of the file to be verified, reference may be made to the above-mentioned related content of obtaining the content of the prescription to be verified, which is not described herein again.
Further, in step 603, the authenticity of the document to be verified can be verified according to the association information of the real document content and the document content to be verified; and outputs the result of the authentication in step 604. In this embodiment, verifying the authenticity of the document to be verified mainly includes: and verifying the authenticity of the content of the file to be verified borne by the file to be verified. The specific implementation manners of verifying the authenticity of the document to be verified according to the associated information of the content of the real document and the content of the document to be verified can refer to the related content of the prescription verification, and are not repeated herein.
In this embodiment, in the process of printing the file, a graphic code associated with the file content may be generated based on the file content provided by the source user, and the graphic code is printed on the physical carrier, so as to obtain the file printed with the graphic code. Therefore, in the using process of the file, the authenticity of the file to be verified can be verified based on the graphic code on the file to be verified, the authenticity verification problem in the online file transfer process is solved, and the online file transfer safety is improved.
In addition to verifying the authenticity of the document content, the embodiment of the present application may also perform copy verification on the document to be verified, that is, verify whether the document to be verified is printed by a printing device having a usage right of a source user, which is described in the following exemplary description.
Fig. 7 is a schematic flowchart of another verification method according to an embodiment of the present application. As shown in fig. 7, the method includes:
701. and acquiring the printing characteristics to be verified of the target content on the file to be verified, which is presented on the physical carrier, and information of a source user providing the file to be verified.
702. And acquiring the source printing characteristics of the printing equipment with the use authority of the source user according to the information of the source user.
703. And copying and verifying the file to be verified according to the printing feature to be verified and the source printing feature.
704. And outputting a copy verification result.
The verification method provided by the embodiment can be completed by the right terminal device independently, and can also be completed by the cooperation of the server device and the terminal device. For example, step 701 may be performed by a terminal device, and step 702 and step 704 may be performed by a server device; and so on.
In this embodiment, in order to verify whether the document to be verified is a copied document, in step 701, the print feature to be verified that the target content on the document to be verified is presented on the physical carrier may be acquired. The target content may be any content printed on the document to be verified, such as, but not limited to, text, patterns, graphic codes, and the like. For a specific implementation of obtaining the to-be-verified printing characteristics of the target content, reference may be made to relevant contents of the foregoing embodiments, and details are not described herein again.
Furthermore, the information of the active user is also displayed on the physical carrier. Accordingly, information of the source user may also be acquired in step 701. In this embodiment, the information of the source user refers to information that can uniquely identify the source user. Alternatively, for the contract document, the information of the source user may be: corporate information; for the certificate, the source user information may be information of the organization that opened the certificate, and the like, but is not limited thereto. For specific embodiments of obtaining the information of the source user, reference may be made to the above-mentioned related contents of obtaining the information of the target doctor, which are not described herein again.
Further, in step 702, the source printing characteristics of the printing device that the source user has the usage right can be obtained according to the information of the source user; for a description of the source printing characteristics and a specific implementation of obtaining the source printing characteristics, reference may be made to the related contents of the above system embodiments, and details are not repeated herein.
Further, in step 703, according to the print feature to be verified and the source print feature, performing copy verification on the file to be verified, that is, verifying whether the file to be verified is copied. For a specific implementation of performing copy verification on a document to be verified according to the print feature to be verified and the source print feature, reference may be made to the above-mentioned related contents for verifying the prescription, which is not described herein again.
In this embodiment, the document to be verified is non-copied, that is, the document to be verified is a document original, means: the document to be verified is directly printed by the printing device with the use authority of the source user, namely the document to be verified is not printed by other printing devices, and is not obtained by copying the original document.
Further, a copy verification result can be obtained by performing copy verification on the file to be verified, and in step 704, the copy verification result can be output so that the receiver of the file to be verified can know the copy verification result. For a specific implementation of outputting the verification result, reference may be made to the above-mentioned related contents of outputting the authenticity verification result, which are not described herein again.
In this embodiment, the print characteristics to be verified, which are presented to the physical carrier by the target content on the file to be verified, and the information of the source user providing the file to be verified can be obtained, and the source print characteristics of the printing device having the use authority of the source user can be obtained according to the information of the source user; and copying and verifying the file to be verified through the printing feature to be verified and the source printing feature. The verification method can copy and verify the file to be verified according to the printing characteristics presented on the file to be verified and the inherent printing characteristics of the printing equipment, does not need the naked eye identification of a user, and is beneficial to improving the verification accuracy, thereby being beneficial to improving the safety of the offline circulation of the file.
It should be noted that the verification method shown in fig. 7 and its optional embodiments performs copy verification on the document printed by the printing method shown in fig. 5, and may also perform copy verification on documents printed by other printing methods, for example, perform copy verification on a document to be verified without graphic codes, and so on.
It is also worth noting that the authentication methods provided in fig. 6 and 7 and alternative embodiments thereof may be used alone or in combination. That is, in some embodiments, the authentication method provided in fig. 6 and its optional embodiments can be used alone to perform anti-counterfeit authentication on the document to be authenticated; in other embodiments, the verification method provided in fig. 7 and its alternative embodiments may be used alone to perform copy verification; in still other embodiments, the authentication methods provided in fig. 6 and 7 and their alternatives can be used for anti-counterfeiting and copy authentication. When the authentication methods provided in fig. 6 and 7 and their alternative embodiments are used for anti-counterfeit and tamper-proof authentication, the authentication methods shown in fig. 6 and 7 may be performed sequentially or in parallel. When the verification methods shown in fig. 6 and 7 are sequentially performed, the order of execution is not limited.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to execute the steps of the printing method shown in fig. 5 and the optional implementation thereof.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the authentication method shown in fig. 6 and/or fig. 7 and the optional implementation thereof.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subjects of steps 201 and 202 may be device a; for another example, the execution subject of step 201 may be device a, and the execution subject of step 202 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 201, 202, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel.
Fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 8, the computer apparatus includes: a memory 80a, a processor 80b, and a communication component 80 c. The memory 80a is used for storing computer programs.
The processor 80b is coupled to the memory 80a for executing computer programs for: acquiring data to be printed; the data to be printed comprises prescription content; generating a graphic code associated with the data to be printed according to the data to be printed; and provides the graphic code to the printing device through the communication component 80c, so that the printing device can print the graphic code on the physical carrier to obtain the prescription order; wherein, the graphic code can be used for verifying the authenticity of the prescription content.
Optionally, the graphic code is a bar code, a two-dimensional code, a three-dimensional code, or a character code.
Optionally, the processor 80b is further configured to: and sending the data to be printed to the printing device through the communication component 80c, so that the printing device prints the data to be printed and the graphic code on the physical carrier together to obtain a prescription list printed with the prescription content and the graphic code.
In some embodiments, the processor 80b, when generating the graphic code associated with the data to be printed, is specifically configured to: performing hash processing on the data to be printed to obtain an abstract of the data to be printed; signing the abstract of the data to be printed by using a local private key to obtain a digital signature; and generating a graphic code according to the abstract and the digital signature of the data to be printed and the public key corresponding to the private key of the home terminal.
In some other application scenarios, the processor 80b is further configured to: acquiring data to be printed; the data to be printed comprises file content; generating a graphic code associated with the data to be printed according to the data to be printed; and provides the graphic code to the printing device through the communication component 80c, so that the printing device can print the graphic code on the physical carrier to obtain the original document; the graphic code can be used for verifying the authenticity of the document content.
Optionally, the processor 80b is further configured to: and sending the data to be printed to the printing device through the communication component 80c, so that the printing device prints the data to be printed and the graphic codes on the physical carrier together to obtain the original document with the document contents and the graphic codes printed.
In some optional embodiments, as shown in fig. 8, the computer device may further include: power components 80d, display 80e, audio components 80f, and the like. Only some of the components shown in fig. 8 are schematically shown, and it is not meant that the computer device must include all of the components shown in fig. 8, nor that the computer device only includes the components shown in fig. 8.
The computer device provided by the embodiment can generate the graphic code associated with the data to be printed, and the printing device prints the graphic code on the prescription slip or the document, thereby providing a basis for performing the authenticity verification on the prescription slip to be verified or the document to be verified by using the graphic code on the prescription slip to be verified or the document to be verified.
Fig. 9 is a schematic structural diagram of a printing apparatus according to an embodiment of the present application. As shown in fig. 9, the printing apparatus includes: memory 90a, processor 90b, communication component 90c, and printing component 90 d; the memory 90a is used for storing computer programs.
The processor 90b is coupled to the memory 90a for executing computer programs for: acquiring data to be printed through the communication component 90 c; the data to be printed comprises prescription content; generating a graphic code associated with the data to be printed according to the data to be printed; and printing the graphical code on a physical carrier via the printing component 90d to obtain a square; wherein, the graphic code can be used for verifying the authenticity of the prescription content. For a specific embodiment of the processor 90b generating the graphic code associated with the data to be printed, reference may be made to the content of the processor 80b generating the graphic code associated with the data to be printed, which is not described herein again.
Optionally, the processor 90b may also print the data to be printed and the graphic code on the physical carrier through the printing component 90d, so as to obtain a prescription list printed with the prescription content and the graphic code.
In some other application scenarios, the processor 90b is further configured to: acquiring data to be printed; the data to be printed comprises file content; generating a graphic code associated with the data to be printed according to the data to be printed; and provides the graphic code to the printing device through the communication component 90c, so that the printing device prints the graphic code on the physical carrier to obtain the original document; the graphic code can be used for verifying the authenticity of the document content.
Optionally, the processor 90b is further configured to: the data to be printed and the graphic code can be printed on the physical carrier together by the printing component 90d, so as to obtain the original document printed with the document content and the graphic code.
In some optional embodiments, as shown in fig. 9, the printing apparatus may further include: power supply 90e, display 90f, etc. Among them, the types of printing apparatuses are different, and the components of the printing assembly 90d are also different. For a laser printing apparatus, the printing assembly 90d may include: laser scanning system 90d1, toner cartridge assembly 90d2, fusing system 90d3, transfer separation system 90d4, and the like, but are not limited thereto. For an inkjet printing apparatus, the printing assembly 90d may include: ink cartridges, nozzles and their corresponding ink circulation systems, and the like, but are not limited thereto. For a needle printing device, the printing assembly 90d includes: print heads, ribbons, etc., but are not so limited. Fig. 9 illustrates only the printing unit of the laser printing apparatus, but the configuration is not limited thereto.
It should be noted that fig. 9 only shows some components schematically, and does not mean that the printing apparatus must include all the components shown in fig. 9, nor does the printing apparatus include only the components shown in fig. 9.
The printing device provided by the embodiment can generate the graphic code associated with the data to be printed, and the printing device prints the graphic code on the prescription slip or the document, thereby providing a basis for performing the authenticity verification on the prescription slip or the document to be verified by using the graphic code on the prescription slip or the document to be verified.
Fig. 10 is a schematic structural diagram of another computer device according to an embodiment of the present application. As shown in fig. 10, the computer apparatus includes: a memory 100a and a processor 100 b; the memory 100a is used for storing a computer program.
The processor 100b is coupled to the memory 100a for executing a computer program for: acquiring the associated information of the first prescription content issued by the target doctor, which is carried by the graphic code on the prescription to be verified; acquiring second prescription content carried by the prescription to be verified; verifying the authenticity of the prescription to be verified according to the associated information of the first prescription content and the second prescription content; and outputting the authenticity verification result.
In some embodiments, the computer device may be implemented as a terminal device. For the terminal device, the method can further comprise: the scanning assembly 100 c. Alternatively, the scanning assembly 100c may be a camera or an external scanning gun, etc. Optionally, when acquiring the associated information of the first prescription content provided by the target doctor and carried by the graphic code on the prescription to be verified, the processor 100b is specifically configured to: the graphic code on the prescription to be verified is scanned by the scanning component 100c to obtain the associated information of the first prescription content issued by the target doctor.
Optionally, when the processor 100b obtains the second prescription content carried by the prescription to be verified, the processor is specifically configured to: scanning the graphic code through the scanning component 100c to obtain a second prescription content carried by the graphic code; or acquiring an image of a prescription to be verified; and performing character recognition on the image of the prescription to be verified to acquire the second prescription content printed on the prescription to be verified.
In some embodiments, the computer device may be implemented as a server device, the server device comprising: the communication component 100 d. Accordingly, when acquiring the associated information of the first prescription content provided by the target doctor, which is carried by the graphic code on the prescription to be verified, the processor 100b is specifically configured to: receiving, by the communication component 100d, the association information of the first prescription content transmitted by the terminal device; and the terminal equipment scans the graphic code to obtain the associated information of the first prescription content.
In some embodiments, the association information of the first prescription content includes: a digital signature corresponding to the first prescription content and a public key bound to a target doctor who prescribed the first prescription content. Accordingly, the processor 100b, when verifying the authenticity of the prescription to be verified, is specifically configured to: decrypting the digital signature by using the public key to obtain a first abstract; performing hash processing on the contents of the second prescription to obtain a second abstract; and verifying the authenticity of the prescription list to be verified according to the first abstract and the second abstract.
In this embodiment, the processor 100b may further be configured to: acquiring first printing characteristics of target content on a prescription to be verified and information of a target doctor; acquiring a second printing characteristic of the printing equipment with the use authority of the target doctor according to the information of the target doctor; according to the first printing characteristic and the second printing characteristic, performing copy verification on the prescription to be verified; and outputs a copy verification result.
Optionally, the target content is graphics encoded. The first print feature includes at least one of: ink distribution features, vestige features, punch mark features, dissolution features of writing color, printed secret features, and texture features.
In some embodiments, when performing copy verification on the to-be-verified recipe, the processor 100b is specifically configured to: calculating a similarity between the first print feature and the second print feature; and if the similarity is greater than or equal to a preset similarity threshold, determining that the prescription to be verified is the original.
In other embodiments, the processor 100b, when acquiring the second printing feature of the printing apparatus that the target doctor has the usage right, is specifically configured to: and matching the information of the target doctor in the corresponding relation between the doctor information and the printing characteristics to acquire the printing characteristics corresponding to the target doctor as second printing characteristics.
Optionally, the processor 100b is further configured to: collecting printing characteristics of printing equipment with use authority of a designated doctor; constructing a corresponding relation between the doctor information and the printing characteristics; wherein the designated doctor comprises the target doctor.
In some other application scenarios, the processor 100b is further configured to: acquiring the associated information of the first file content provided by a source user and carried by the graphic code on the file to be verified; acquiring the content of a second file carried by the file to be verified; verifying the authenticity of the file to be verified according to the associated information of the first file content and the second file content; and outputting the authenticity verification result.
In some embodiments, the processor 100b is further configured to: acquiring a first printing characteristic of target content on a file to be verified, which is presented on a physical carrier, and information of a source user providing the file to be verified; acquiring a second printing characteristic of the printing equipment with the use authority of the source user according to the information of the source user; according to the first printing characteristic and the second printing characteristic, copying and verifying the file to be verified; and outputs a copy verification result.
In some optional embodiments, as shown in fig. 10, the computer device may further include: power component 100e, display 100f, audio component 100g, and the like. Only some of the components shown in fig. 10 are schematically shown, and it is not meant that the computer device must include all of the components shown in fig. 10, nor that the computer device only includes the components shown in fig. 10.
According to the computer equipment provided by the embodiment, in the using process of the prescription order or the offline file, the authenticity of the prescription order or the offline file is verified based on the graphic code on the prescription order or the offline file, so that the authenticity verification problem of the prescription order or the offline file in the online circulation process is solved, and the safety of the prescription order circulation is guaranteed; on the other hand, the safety of offline circulation of high-order bills or documents can be further improved by means of the characteristic that the graphic codes are not easy to counterfeit and tamper.
The computer device provided by this embodiment may further obtain a first print feature that target content on the prescription to be verified is presented on the physical carrier and information of a target doctor who has the prescription to be verified, and obtain, according to the information of the target doctor, a second print feature of a printing device that the doctor has a right of use; and performing copy verification on the prescription through the first printing characteristic and the second printing characteristic. The data verification mode can copy and verify the prescription list according to the printing characteristics presented on the prescription list and the inherent printing characteristics of the printing equipment, does not need the naked eye identification of a user, and is beneficial to improving the verification accuracy, thereby being beneficial to improving the safety of the single-line down-flow of the prescription.
In some application scenarios, the computer device provided in this embodiment may acquire a first print characteristic that target content on a file to be verified is presented on a physical carrier and information of a source user providing the file to be verified, and acquire, according to the information of the source user, a second print characteristic of a printing device to which the source user has a usage right; and copying and verifying the file to be verified through the first printing characteristic and the second printing characteristic. The verification method can copy and verify the file to be verified according to the printing characteristics presented on the file to be verified and the inherent printing characteristics of the printing equipment, does not need the naked eye identification of a user, and is beneficial to improving the verification accuracy, thereby being beneficial to improving the safety of the offline circulation of the file.
In embodiments of the present application, the memory is used to store computer programs and may be configured to store other various data to support operations on the device on which it is located. Wherein the processor may execute a computer program stored in the memory to implement the corresponding control logic. The memory may be implemented by any type or combination of volatile or non-volatile memory devices, 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 or optical disks.
In the embodiments of the present application, the processor may be any hardware processing device that can execute the above described method logic. Alternatively, the processor may be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), or a Micro Controller Unit (MCU); programmable devices such as Field-Programmable Gate arrays (FPGAs), Programmable Array Logic devices (PALs), General Array Logic devices (GAL), Complex Programmable Logic Devices (CPLDs), etc. may also be used; or Advanced Reduced Instruction Set (RISC) processors (ARM), or System On Chip (SOC), etc., but is not limited thereto. The processor may also have peripheral circuitry.
In embodiments of the present application, the communication component is configured to facilitate wired or wireless communication between the device in which it is located and other devices. The device in which the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G, 5G or a combination thereof. In an exemplary embodiment, the communication component 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 may also be implemented based on Near Field Communication (NFC) technology, Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In the embodiment of the present application, the display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the display screen includes a touch panel, the display screen may be implemented as a touch screen to receive an input signal from a 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 boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
In embodiments of the present application, a power supply component is configured to provide power to various components of the device in which it is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
In embodiments of the present application, the audio component may be configured to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals. For example, for devices with language interaction functionality, voice interaction with a user may be enabled through an audio component, and so forth.
It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (26)

1. A method of printing, comprising:
acquiring data to be printed; the data to be printed comprises prescription content;
generating a graphic code associated with the data to be printed according to the data to be printed;
printing the graphic code on a physical carrier to obtain a square list; wherein, the graphic code can be used for verifying the authenticity of the prescription content.
2. The method according to claim 1, wherein the generating a graphic code associated with the data to be printed according to the data to be printed comprises:
performing hash processing on the data to be printed to obtain an abstract of the data to be printed;
signing the abstract of the data to be printed by using a local private key to obtain a digital signature;
and generating the graphic code according to the abstract of the data to be printed, the digital signature and the public key corresponding to the local private key.
3. The method of claim 1, wherein said printing the graphical code on a physical carrier comprises:
and printing the data to be printed and the graphic code on the physical carrier together.
4. The method of any one of claims 1-3, wherein the graphical code is a bar code, a two-dimensional code, a three-dimensional code, or a character code.
5. A method of authentication, comprising:
scanning a graphic code on a prescription to be verified to obtain associated information of first prescription content prescribed by a target doctor; acquiring second prescription content carried by the prescription to be verified;
verifying the authenticity of the prescription to be verified according to the associated information of the first prescription content and the second prescription content; and outputting the authenticity verification result.
6. The method of claim 5, wherein obtaining second prescription content carried by the prescription to be verified comprises:
scanning the graphic code to obtain the second prescription content carried by the graphic code; alternatively, the first and second electrodes may be,
acquiring an image of the prescription to be verified; and performing character recognition on the image of the to-be-verified prescription to acquire the second prescription content printed on the to-be-verified prescription.
7. The method of claim 5, wherein the information associated with the first prescription content comprises: a digital signature corresponding to the first prescription content and a public key bound with a target doctor who has prescribed the first prescription content;
verifying the authenticity of the prescription to be verified according to the associated information of the first prescription content and the second prescription content comprises the following steps:
decrypting the digital signature by using the public key to obtain a first abstract;
performing hash processing on the second prescription content to obtain a second abstract;
and verifying the authenticity of the prescription to be verified according to the first abstract and the second abstract.
8. The method of any one of claims 5-7, further comprising:
acquiring first printing characteristics of target content on the to-be-verified prescription presented on a physical carrier and information of a target doctor;
acquiring a second printing characteristic of the printing equipment with the use permission of the target doctor according to the information of the target doctor;
according to the first printing characteristic and the second printing characteristic, performing copy verification on the prescription to be verified; and outputs a copy verification result.
9. The method of claim 8, wherein the target content is the graphics code.
10. The method of claim 8, wherein the first print feature comprises at least one of: ink distribution features, vestige features, punch mark features, dissolution features of writing color, printed secret features, and texture features.
11. The method of claim 8, wherein the performing copy verification on the prescription to be verified based on the first print characteristic and the second print characteristic comprises:
calculating a similarity between the first print feature and the second print feature;
and if the similarity is greater than or equal to a preset similarity threshold, determining that the prescription to be verified is an original.
12. The method according to claim 8, wherein the obtaining of the second printing characteristic of the printing device having the use authority of the target doctor according to the information of the target doctor comprises:
and matching the information of the target doctor in the corresponding relation between the doctor information and the printing characteristics to acquire the printing characteristics corresponding to the target doctor as the second printing characteristics.
13. The method of claim 12, further comprising, prior to obtaining the corresponding printed feature for the target physician:
collecting printing characteristics of printing equipment with use authority of a designated doctor; constructing a corresponding relation between the doctor information and the printing characteristics; wherein the designated doctor comprises the target doctor.
14. A method of authentication, comprising:
acquiring first printing characteristics of target content on a prescription to be verified, wherein the first printing characteristics are displayed on a physical carrier, and information of a target doctor issuing the prescription to be verified;
acquiring a second printing characteristic of the printing equipment with the use permission of the target doctor according to the information of the target doctor;
according to the first printing characteristic and the second printing characteristic, performing copy verification on the prescription to be verified; and outputs a copy verification result.
15. A method of printing, comprising:
acquiring data to be printed; the data to be printed comprises file content;
generating a graphic code associated with the data to be printed according to the data to be printed;
printing the graphic code on a physical carrier to obtain a document original; wherein, the graphic code can be used for verifying the authenticity of the document content.
16. A method of authentication, comprising:
scanning a graphic code on a file to be verified to obtain associated information of first file content provided by a source user; acquiring the content of a second file carried by the file to be verified;
verifying the authenticity of the file to be verified according to the associated information of the first file content and the second file content; and outputting the authenticity verification result.
17. The method of claim 16, further comprising:
acquiring a first printing characteristic of target content on the file to be verified, which is presented on a physical carrier, and information of a source user providing the file to be verified;
acquiring a second printing characteristic of the printing equipment with the use authority of the source user according to the information of the source user;
according to the first printing characteristic and the second printing characteristic, performing copy verification on the file to be verified; and outputs a copy verification result.
18. A method of authentication, comprising:
acquiring first printing characteristics of target content on a file to be verified and information of a source user providing the file to be verified;
acquiring a second printing characteristic of the printing equipment with the use authority of the source user according to the information of the source user;
according to the first printing characteristic and the second printing characteristic, performing copy verification on the file to be verified; and outputs a copy verification result.
19. A printing system, comprising: a terminal device and a printing device; wherein the content of the first and second substances,
the terminal equipment is used for acquiring data to be printed and sending the data to be printed to the printing equipment; the data to be printed comprises prescription content;
the printing equipment is used for generating a graphic code associated with the data to be printed according to the data to be printed; printing the graphic code on a physical carrier to obtain a square list; wherein, the graphic code can be used for verifying the authenticity of the prescription content.
20. An authentication system, comprising: the system comprises terminal equipment and server-side equipment; wherein the terminal device is configured to: scanning a graphic code on a prescription to be verified to obtain associated information of first prescription content prescribed by a target doctor; acquiring second prescription content carried by the prescription to be verified; sending the associated information of the first prescription content and the second prescription content to the server-side equipment;
the server side equipment is used for verifying the authenticity of the prescription to be verified according to the associated information of the first prescription content and the second prescription content; and outputting the authenticity verification result.
21. The system of claim 20, wherein the terminal device is further configured to: acquiring first printing characteristics of target content on the to-be-verified prescription presented on a physical carrier and information of a target doctor; sending the first printing characteristic and the information of the target doctor to the server-side equipment;
the server side equipment is used for acquiring a second printing characteristic of the printing equipment with the use permission of the target doctor according to the information of the target doctor; according to the first printing characteristic and the second printing characteristic, performing copy verification on the prescription to be verified; and outputs a copy verification result.
22. A computer device, comprising: a memory, a processor, and a communications component; wherein the memory is used for storing a computer program;
the processor is coupled to the memory for executing the computer program for: acquiring data to be printed; the data to be printed comprises prescription content; generating a graphic code associated with the data to be printed according to the data to be printed; the graphic code is provided for the printing equipment through the communication component, so that the printing equipment can print the graphic code on a physical carrier to obtain a prescription order; wherein, the graphic code can be used for verifying the authenticity of the prescription content.
23. A printing apparatus, comprising: a memory, a processor, a communication component, and a printing component; wherein the memory is used for storing a computer program;
the processor is coupled to the memory for executing the computer program for:
acquiring data to be printed through the communication assembly; the data to be printed comprises prescription content; generating a graphic code associated with the data to be printed according to the data to be printed; printing the graphic code on a physical carrier through the printing component to obtain a square list; wherein, the graphic code can be used for verifying the authenticity of the prescription content.
24. A computer device, comprising: a memory and a processor; wherein the memory is for storing a computer program;
the processor is coupled to the memory for executing the computer program for: acquiring the associated information of the first prescription content issued by the target doctor, which is carried by the graphic code on the prescription to be verified; acquiring second prescription content carried by the prescription to be verified; verifying the authenticity of the prescription to be verified according to the associated information of the first prescription content and the second prescription content; and outputting the authenticity verification result.
25. The device of claim 24, wherein the processor is further configured to: acquiring first printing characteristics of target content on the to-be-verified prescription presented on a physical carrier and information of a target doctor; acquiring a second printing characteristic of the printing equipment with the use permission of the target doctor according to the information of the target doctor; according to the first printing characteristic and the second printing characteristic, performing copy verification on the prescription to be verified; and outputs a copy verification result.
26. A computer-readable storage medium having stored thereon computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 1-18.
CN202010071762.6A 2020-01-21 2020-01-21 Printing and verifying method, device, system and storage medium Pending CN113222076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010071762.6A CN113222076A (en) 2020-01-21 2020-01-21 Printing and verifying method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010071762.6A CN113222076A (en) 2020-01-21 2020-01-21 Printing and verifying method, device, system and storage medium

Publications (1)

Publication Number Publication Date
CN113222076A true CN113222076A (en) 2021-08-06

Family

ID=77085288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010071762.6A Pending CN113222076A (en) 2020-01-21 2020-01-21 Printing and verifying method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN113222076A (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1430175A (en) * 2001-12-30 2003-07-16 北京兆日科技有限责任公司 Encryption antiforgery method based on substance characteristics
KR20040096484A (en) * 2004-09-22 2004-11-16 주식회사 이지다큐 Two dimension barcode for use precription error/counter prevent system and operation method
CN1567340A (en) * 2003-06-23 2005-01-19 中国科学院研究生院 False proof bill, false proof method of bill and system thereof
CN1808482A (en) * 2006-02-09 2006-07-26 北京北大方正电子有限公司 Visual electronic signature and verification method
JP2006315404A (en) * 2006-06-02 2006-11-24 Casio Comput Co Ltd Printing controller, and recording medium
JP2007124234A (en) * 2005-10-27 2007-05-17 Canon Inc Information processor and woven pattern printing method
JP2007306295A (en) * 2006-05-11 2007-11-22 Fuji Xerox Co Ltd System, method, and program for processing image
WO2008081676A1 (en) * 2006-12-28 2008-07-10 C4 Technology, Inc. Printing system, printing method, program, and computer-readable recording medium
US20120150563A1 (en) * 2010-12-09 2012-06-14 Sean Carroll Prescription Verification System
CN103001768A (en) * 2011-09-13 2013-03-27 东方钢铁电子商务有限公司 Electronic quality certificate and generation and verification method thereof
US20140151445A1 (en) * 2012-11-30 2014-06-05 Thomas D. Pawlik System for detecting reproduction of barcodes
CN104268742A (en) * 2014-10-20 2015-01-07 陕西万宇电子信息科技有限公司 Official seal fake detection method and device based on network digital certificate and network lookup
CN109558741A (en) * 2018-11-08 2019-04-02 中科数字健康科学研究院(南京)有限公司 A kind of protection and the verification method of mimeograph documents and bill original part
CN110264223A (en) * 2019-06-19 2019-09-20 中国工商银行股份有限公司 Verification method, generation method and the relevant apparatus of anti-fake contract
CN110635913A (en) * 2019-09-09 2019-12-31 腾讯科技(深圳)有限公司 Electronic prescription verification method and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1430175A (en) * 2001-12-30 2003-07-16 北京兆日科技有限责任公司 Encryption antiforgery method based on substance characteristics
CN1567340A (en) * 2003-06-23 2005-01-19 中国科学院研究生院 False proof bill, false proof method of bill and system thereof
KR20040096484A (en) * 2004-09-22 2004-11-16 주식회사 이지다큐 Two dimension barcode for use precription error/counter prevent system and operation method
JP2007124234A (en) * 2005-10-27 2007-05-17 Canon Inc Information processor and woven pattern printing method
CN1808482A (en) * 2006-02-09 2006-07-26 北京北大方正电子有限公司 Visual electronic signature and verification method
JP2007306295A (en) * 2006-05-11 2007-11-22 Fuji Xerox Co Ltd System, method, and program for processing image
JP2006315404A (en) * 2006-06-02 2006-11-24 Casio Comput Co Ltd Printing controller, and recording medium
WO2008081676A1 (en) * 2006-12-28 2008-07-10 C4 Technology, Inc. Printing system, printing method, program, and computer-readable recording medium
US20120150563A1 (en) * 2010-12-09 2012-06-14 Sean Carroll Prescription Verification System
CN103001768A (en) * 2011-09-13 2013-03-27 东方钢铁电子商务有限公司 Electronic quality certificate and generation and verification method thereof
US20140151445A1 (en) * 2012-11-30 2014-06-05 Thomas D. Pawlik System for detecting reproduction of barcodes
CN104268742A (en) * 2014-10-20 2015-01-07 陕西万宇电子信息科技有限公司 Official seal fake detection method and device based on network digital certificate and network lookup
CN109558741A (en) * 2018-11-08 2019-04-02 中科数字健康科学研究院(南京)有限公司 A kind of protection and the verification method of mimeograph documents and bill original part
CN110264223A (en) * 2019-06-19 2019-09-20 中国工商银行股份有限公司 Verification method, generation method and the relevant apparatus of anti-fake contract
CN110635913A (en) * 2019-09-09 2019-12-31 腾讯科技(深圳)有限公司 Electronic prescription verification method and device

Similar Documents

Publication Publication Date Title
US11186111B1 (en) Digitally encoded seal for document verification
US9946865B2 (en) Document authentication based on expected wear
CN102930317B (en) Books Quick Response Code identification generation apparatus, Quick Response Code identification recognition device and system
US8370632B2 (en) Apparatus and method for incorporating signature into electronic documents
US20160210621A1 (en) Verifiable credentials and methods thereof
CN103020682B (en) Books Quick Response Code identification generation apparatus, Quick Response Code identification recognition device and system
CN104021482A (en) Certificate false-proof verification method base on identification authentication technology
JP2018186495A (en) Identity authentication using barcode
US9292697B2 (en) Matrix code for encryption, storage, and transmission of data
CN102880833A (en) Two-dimensional code anti-fake verification method for documents
CN107451643A (en) Generation, recognition methods and the device of dynamic two-dimension code
CN101246548A (en) Biological information storage method and system
JP2003044257A (en) Printed matter, printing system and reader
CN110020540A (en) A kind of certificate recognition methods and equipment based on two dimensional code
EP2697785A1 (en) Authentic barcodes using digital signatures
DE102004059391B4 (en) Crypto-wireless-tag
TWI546739B (en) Personal identification card, method for issuing personal identification card, method for authorizing personal identification card
CN109992984A (en) A kind of file identification method and equipment based on two dimensional code
JP2009505133A (en) Data encryption and decryption method using pixels
CN113222076A (en) Printing and verifying method, device, system and storage medium
JP2011088330A (en) Label printing system
CN107943769A (en) The method and apparatus for providing electronics license
CN110609987B (en) Document making and processing system
KR100409270B1 (en) An authentication service method using code image physically represented and apparatus thereof
CN115550925A (en) Reliable method, device and system for electronic signature of mobile phone

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination