Block chain based medical electronic bill printing method, system and device

文档序号:9129 发布日期:2021-09-17 浏览:156次 中文

1. A method for printing medical electronic bills based on a block chain is characterized in that the method comprises the following steps:

acquiring identity identification information of a user through a self-service printing terminal, and initiating a target transaction;

responding the target transaction sent by the self-service printing terminal through a block chain, and initiating a printing request;

calling a checking logic in an intelligent contract deployed on the block chain to check the legality of the printing request;

if the printing request passes the validity check, calling a printing logic in the intelligent contract to acquire an electronic bill to be printed on the block chain;

reconstructing according to fields required by printing through printing logic in the intelligent contract, and initiating a printing instruction to a self-service printing terminal;

and responding the printing instruction sent by the block chain through a self-service printing terminal, and executing printing operation.

2. The method of claim 1, wherein invoking printing logic in the smart contract to obtain the electronic ticket to be printed on the blockchain comprises:

and calling a printing logic in the intelligent contract to acquire the electronic bill to be printed which is stored in the block chain account book in advance.

3. The method of claim 1, wherein invoking printing logic in the smart contract to obtain the electronic ticket to be printed on the blockchain comprises:

requesting to acquire an electronic bill to be printed from a financial electronic bill management platform through the block chain;

and calling printing logic in the intelligent contract to acquire the electronic bill on the block chain.

4. The method of claim 1, wherein responding to the target transaction sent by the self-service printing terminal through a blockchain and initiating a print request comprises:

requesting a bill information list of a user from the block link points through the self-service printing terminal;

and selecting the electronic bill to be printed and then initiating a printing request according to the operation information acquired by the input equipment or according to a preset processing logic.

5. The method of claim 1, wherein prior to responding to the print instructions sent by the blockchain via a self-service printing terminal and performing a printing operation, the method further comprises:

and acquiring the starting and ending numbers of the bills in the paper bin through the self-service printing terminal, writing the numbers into a block chain account book, and printing each time to take the numbers according to the stacking sequence of the bills in the paper bin.

6. The method of claim 1, wherein after responding to the print instructions sent by the blockchain via a self-service printing terminal and performing a printing operation, the method further comprises:

and for the connected financial electronic bill, sending an instruction to the cutting equipment through the self-service printing terminal to cut and segment the printed paper.

7. The method of claim 1, further comprising:

before the printing operation is executed, sending an instruction to a stamping device through a self-service printing terminal to stamp the paper to be printed;

or after the printing operation is executed, the self-service printing terminal sends an instruction to the stamping equipment to stamp the printed paper.

8. The method of claim 1, wherein the initiating a print instruction to a self-service printing terminal through reconfiguration of printing logic in the smart contract according to fields required for printing comprises:

reconstructing according to fields required by printing through printing logic in the intelligent contract;

and initiating a printing instruction to a self-service printing terminal through the SDK of the block chain according to the interaction between the SDK of the block chain and the intelligent contract.

9. A system for printing medical electronic bills based on a block chain is characterized by comprising a self-service printing module, a block chain module and a hospital information module;

the self-service printing module acquires the identity identification information of a user and initiates a target transaction;

the block chain module responds to the target transaction sent by the self-service printing module and initiates a printing request;

the block chain module calls a check logic in an intelligent contract deployed on the block chain module to check the validity of the printing request;

if the printing request passes the validity check, calling a printing logic in the intelligent contract to acquire the electronic bill to be printed on the block chain module;

the block chain module reconstructs a field required by printing through printing logic in the intelligent contract and initiates a printing instruction to the self-service printing module;

the self-service printing module responds to the printing instruction sent by the block chain module and executes printing operation;

the hospital information module is used for generating and storing the electronic bill to be printed.

10. An apparatus for blockchain-based medical electronic ticket printing, the apparatus being used for executing the method for blockchain-based medical electronic ticket printing according to any one of claims 1 to 8, the apparatus comprising a touchable operating screen, a computing processing device, a recognizer, a ticket printer, a cutting device and a stamping device;

the touchable operation screen is used for guiding a user to operate the printing step;

the computing processing equipment is used for receiving input of a user, outputting the input to the touchable operation screen and calling the bill printer;

the recognizer is used for reading identity recognition information of a user, and the identity identification information comprises an identity card number, a social security card number, face image information, fingerprint information, a preset two-dimensional code and a preset bar code;

the bill printer automatically adopts a corresponding printing mode according to the type of the bill, and the printing mode comprises ink-jet printing and needle type printing;

the cutting equipment is used for cutting the connected bills;

the stamping equipment is used for stamping a stamp at the designated position of the bill.

Background

In real life, two printing modes generally exist, wherein one mode is that format files of electronic documents, such as electronic invoices, are directly printed, and the format files are generally directly printed on A4 paper; and the other is commonly called as 'sleeve printing', namely, related anti-counterfeiting information is printed on the paper, and only part or all of the content of the electronic document needs to be printed on the paper. In addition to the differences in electronic and machine style during printing, a more risky challenge is faced.

Typically, hospitals are typically provided with self-service printers, including printing medical tickets, examination reports, discharge details, and the like, whether the ticket or the report relate to the privacy of the patient. For example, a certain medicine in the outpatient service charging bill can easily search what kind of disease is treated through the internet according to the medicine name, and the privacy information of the relevant user can be easily obtained by adding the patient name, social security number and the like recorded on the bill.

At present, no effective solution is provided for the problems that privacy information is easy to steal and leak and effective supervision cannot be carried out when a user prints an electronic bill in the related technology.

Disclosure of Invention

The embodiment of the application provides a method, a system and a device for printing medical electronic bills based on a block chain, which are used for at least solving the problems that privacy information is easy to steal and leak and effective supervision cannot be carried out when a user prints the electronic bills in the related technology.

In a first aspect, the present application provides a method for block chain based printing of medical electronic tickets, the method comprising:

acquiring identity identification information of a user through a self-service printing terminal, and initiating a target transaction;

responding the target transaction sent by the self-service printing terminal through a block chain, and initiating a printing request;

calling a checking logic in an intelligent contract deployed on the block chain to check the legality of the printing request;

if the printing request passes the validity check, calling a printing logic in the intelligent contract to acquire an electronic bill to be printed on the block chain;

reconstructing according to fields required by printing through printing logic in the intelligent contract, and initiating a printing instruction to a self-service printing terminal;

and responding the printing instruction sent by the block chain through a self-service printing terminal, and executing printing operation.

In some embodiments, invoking the printing logic in the intelligent contract to obtain the electronic bill to be printed on the blockchain comprises:

and calling a printing logic in the intelligent contract to acquire the electronic bill to be printed which is stored in the block chain account book in advance.

In some embodiments, invoking the printing logic in the intelligent contract to obtain the electronic bill to be printed on the blockchain comprises:

requesting to acquire an electronic bill to be printed from a financial electronic bill management platform through the block chain;

and calling printing logic in the intelligent contract to acquire the electronic bill on the block chain.

In some of these embodiments, responding to the target transaction sent by the self-service printing terminal through a blockchain and initiating a print request comprises:

requesting a bill information list of a user from the block link points through the self-service printing terminal;

and selecting the electronic bill to be printed and then initiating a printing request according to the operation information acquired by the input equipment or according to a preset processing logic.

In some embodiments, before responding to the print instruction sent by the blockchain through a self-service printing terminal and executing a printing operation, the method further comprises:

and acquiring the starting and ending numbers of the bills in the paper bin through the self-service printing terminal, writing the numbers into a block chain account book, and printing each time to take the numbers according to the stacking sequence of the bills in the paper bin.

In some embodiments, after responding to the print instruction sent by the blockchain through a self-service printing terminal and executing a printing operation, the method further comprises:

and for the connected financial electronic bill, sending an instruction to the cutting equipment through the self-service printing terminal to cut and segment the printed paper.

In some of these embodiments, the method further comprises:

before the printing operation is executed, sending an instruction to a stamping device through a self-service printing terminal to stamp the paper to be printed;

or after the printing operation is executed, the self-service printing terminal sends an instruction to the stamping equipment to stamp the printed paper.

In some embodiments, the reconstructing by the printing logic in the smart contract according to the fields required for printing, the initiating the printing instruction to the self-service printing terminal includes:

reconstructing according to fields required by printing through printing logic in the intelligent contract;

and initiating a printing instruction to a self-service printing terminal through the SDK of the block chain according to the interaction between the SDK of the block chain and the intelligent contract.

In a second aspect, the embodiment of the application provides a system for printing medical electronic bills based on a block chain, which comprises a self-service printing module, a block chain module and a hospital information module;

the self-service printing module acquires the identity identification information of a user and initiates a target transaction;

the block chain module responds to the target transaction sent by the self-service printing module and initiates a printing request;

the block chain module calls a check logic in an intelligent contract deployed on the block chain module to check the validity of the printing request;

if the printing request passes the validity check, calling a printing logic in the intelligent contract to acquire the electronic bill to be printed on the block chain module;

the block chain module reconstructs a field required by printing through printing logic in the intelligent contract and initiates a printing instruction to the self-service printing module;

the self-service printing module responds to the printing instruction sent by the block chain module and executes printing operation;

the hospital information module is used for generating and storing the electronic bill to be printed.

In a third aspect, an embodiment of the present application provides an apparatus for printing a blockchain-based medical electronic bill, the apparatus being configured to perform the method for printing a blockchain-based medical electronic bill as described in the first aspect, the apparatus including a touchable operating screen, a computing processing device, a recognizer, a bill printer, a cutting device, and a stamping device;

the touchable operation screen is used for guiding a user to operate the printing step;

the computing processing equipment is used for receiving input of a user, outputting the input to the touchable operation screen and calling the bill printer;

the recognizer is used for reading identity recognition information of a user, and the identity identification information comprises an identity card number, a social security card number, face image information, fingerprint information, a preset two-dimensional code and a preset bar code;

the bill printer automatically adopts a corresponding printing mode according to the type of the bill, and the printing mode comprises ink-jet printing and needle type printing;

the cutting equipment is used for cutting the connected bills;

the stamping equipment is used for stamping a stamp at the designated position of the bill.

Compared with the related technology, the method, the system and the device for printing the medical electronic bill based on the blockchain, provided by the embodiment of the application, acquire the identity information of a user through the self-service printing terminal, initiate the target transaction, respond to the target transaction by the blockchain, initiate the printing request, call the check logic in the intelligent contract deployed on the blockchain, verify the legality of the printing request, if the printing request passes the legality check, call the printing logic in the intelligent contract, acquire the electronic bill to be printed on the blockchain, reconstruct according to the field required by printing through the printing logic in the intelligent contract, initiate the printing instruction to the self-service printing terminal, respond to the printing instruction by the self-service printing terminal, and execute the printing operation, so that the problems that privacy information is easy to be stolen and leaked and the effective supervision cannot be carried out when the user prints the electronic bill are solved, the behavior control and tracing of the printer, the printer and the data source in the financial electronic bill printing process are realized, the privacy safety of the user is ensured, and the printing data is prevented from being 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. 1 is a schematic diagram of a method of creating an intelligent contract;

FIG. 2 is a schematic diagram of a method for invoking an intelligent contract;

FIG. 3 is a schematic diagram of a method of creating an intelligent contract and invoking the intelligent contract;

fig. 4 is a timing diagram illustrating a printing method of a medical electronic ticket according to the related art;

FIG. 5 is a flowchart of steps of a method for printing medical electronic tickets based on a blockchain according to an embodiment of the present application;

FIG. 6 is a timing diagram of a method for printing medical electronic tickets based on a blockchain according to a specific embodiment of the present application;

fig. 7 is a block diagram of a block chain-based medical electronic ticket printing system according to an embodiment of the present application;

fig. 8 is an internal structural diagram of an electronic device according to an embodiment of the present application.

Description of the drawings: 71. a self-service printing module; 72. a block chain module; 73. hospital information module.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.

It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.

Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.

Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.

Blockchains are generally divided into three types: public chain (Public Blockchain), private chain (PrivateBlockchain) and alliance chain (Consortium Blockchain). Furthermore, there may be a combination of the above types, such as private chain + federation chain, federation chain + public chain, and so on.

Among them, the most decentralized is the public chain. The public chain is represented by bitcoin and ether house, and participants (also called nodes in the block chain) joining the public chain can read data records on the chain, participate in transactions, compete for accounting rights of new blocks, and the like. Moreover, each node can freely join or leave the network and perform related operations.

Private chains are the opposite, with the network's write rights controlled by an organization or organization and the data read rights specified by the organization. Briefly, a private chain may be a weakly centralized system with strict restrictions on nodes and a small number of nodes. This type of blockchain is more suitable for use within a particular establishment.

A federation chain is a block chain between a public chain and a private chain, and "partial decentralization" can be achieved. Each node in a federation chain typically has a physical organization or organization corresponding to it; the nodes are authorized to join the network and form a benefit-related alliance, and block chain operation is maintained together.

Based on the basic characteristics of a blockchain, a blockchain is usually composed of several blocks. The time stamps corresponding to the creation time of the block are recorded in the blocks respectively, and all the blocks form a time-ordered data chain according to the time stamps recorded in the blocks strictly.

The real data generated by the physical world can be constructed into a standard transaction (transaction) format supported by a block chain, then is issued to the block chain, the node equipment in the block chain performs consensus processing on the received transaction, and after the consensus is achieved, the node equipment serving as an accounting node in the block chain packs the transaction into a block and performs persistent evidence storage in the block chain.

The consensus algorithm supported in the blockchain may include:

the first kind of consensus algorithm, namely the consensus algorithm that the node device needs to contend for the accounting right of each round of accounting period; consensus algorithms such as Proof of Work (POW), Proof of equity (POS), Proof of commission rights (DPOS), etc.;

the second kind of consensus algorithm, namely the consensus algorithm which elects accounting nodes in advance for each accounting period (without competing for accounting right); for example, a consensus algorithm such as a Practical Byzantine Fault Tolerance (PBFT) is used.

In a blockchain network employing a first type of consensus algorithm, node devices competing for billing rights can execute a transaction upon receipt. One of the node devices competing for the accounting right may win in the process of competing for the accounting right in the current round, and become an accounting node. The accounting node may package the received transaction with other transactions to generate a latest block and send the generated latest block or a block header of the latest block to other node devices for consensus.

In the block chain network adopting the second type of consensus algorithm, the node equipment with the accounting right is agreed before accounting in the current round. Thus, the node device, after receiving the transaction, may send the transaction to the accounting node if it is not the accounting node of its own round. For the accounting node of the current round, the transaction may be performed during or before packaging the transaction with other transactions to generate the latest block. After generating the latest block, the accounting node may send the latest block or a block header of the latest block to other node devices for consensus.

As described above, regardless of which consensus algorithm is used by the blockchain, the accounting node of the current round may pack the received transaction to generate the latest block, and send the generated latest block or the block header of the latest block to other node devices for consensus verification. If no problem is verified after other node equipment receives the latest block or the block header of the latest block, the latest block can be added to the tail of the original block chain, so that the accounting process of the block chain is completed. The transaction contained in the block may also be performed by other nodes in verifying the new block or block header sent by the accounting node.

In the field of blockchain, an important concept is Account (Account); taking an ether house as an example, the ether house generally divides an account into an external account and a contract account; the external account is an account directly controlled by the user and is also called as a user account; and the contract account is created by the user through an external account, the account containing the contract code (i.e. the smart contract). Of course, for some blockchain items derived from the ethernet-based architecture (such as ant blockchains), the account types supported by the blockchain may be further expanded, and are not particularly limited in this specification.

For accounts in a blockchain, the account status of the account is usually maintained through a structure. When a transaction in a block is executed, the status of the account associated with the transaction in the block chain is also typically changed.

Taking etherhouses as an example, the structure of an account usually includes fields such as Balance, Nonce, Code and Storage. Wherein:

a Balance field for maintaining the current account Balance of the account;

a Nonce field for maintaining a number of transactions for the account; the counter is used for guaranteeing that each transaction can be processed only once, and replay attack is effectively avoided;

a Code field for maintaining a contract Code for the account; in practical applications, only the hash value of the contract Code is typically maintained in the Code field; thus, the Code field is also commonly referred to as the Codhash field.

A Storage field for maintaining the Storage contents of the account (default field value is null); for a contract account, a separate storage space is usually allocated to store the storage content of the contract account; this separate storage space is often referred to as the account storage of the contract account. The storage content of the contract account is generally constructed into a data structure of an MPT (MerklePatriceitie) tree and stored in the independent storage space; in which, the Storage content based on the contract account is constructed into an MPT tree, which is also commonly referred to as a Storage tree. Whereas the Storage field typically maintains only the root node of the Storage tree; thus, the Storage field is also commonly referred to as the Storage root field.

Wherein, for the external account, the field values of the Code field and the Storage field shown above are both null values.

In addition, in practical applications, whether public, private, or alliance, it is possible to provide the functionality of a Smart contract (Smart contract). An intelligent contract on a blockchain is a contract on a blockchain that can be executed triggered by a transaction. An intelligent contract may be defined in the form of code.

Taking an Etherhouse as an example, a user is supported to create and call some complex logic in the Etherhouse network. The ethernet workshop is used as a programmable block chain, and the core of the ethernet workshop is an ethernet workshop virtual machine (EVM), and each ethernet workshop node can run the EVM. The EVM is a well-behaved virtual machine through which various complex logic can be implemented. The user issuing and invoking smart contracts in the etherhouse is running on the EVM. In fact, the EVM directly runs virtual machine code (virtual machine bytecode, hereinafter referred to as "bytecode"), so the intelligent contract deployed on the blockchain may be bytecode.

Fig. 1 is a schematic diagram of a method for creating a smart contract, as shown in fig. 1, after Bob sends a Transaction (Transaction) containing information for creating a smart contract to an ethernet network, each node can execute the Transaction in an EVM. In fig. 1, the From field of the transaction is used To record the address of the account initiating the creation of the intelligent contract, the contract code stored in the field value of the Data field of the transaction may be bytecode, and the field value of the To field of the transaction is a null account. After the nodes reach the agreement through the consensus mechanism, the intelligent contract is successfully created, and the follow-up user can call the intelligent contract.

After the intelligent contract is established, a contract account corresponding to the intelligent contract appears on the block chain, and the block chain has a specific address; for example, "0 x68e12cf284 …" in each node in fig. 1 represents the address of the contract account created; the contract Code (Code) and account store (Storage) will be maintained in the account store for that contract account. The behavior of the intelligent contract is controlled by the contract code, while the account storage of the intelligent contract preserves the state of the contract. In other words, the intelligent contract causes a virtual account to be generated on the blockchain that contains the contract code and account storage.

As mentioned above, the Data field containing the transaction that created the intelligent contract may hold the byte code of the intelligent contract. A bytecode consists of a series of bytes, each of which can identify an operation. Based on the multiple considerations of development efficiency, readability and the like, a developer can select a high-level language to write intelligent contract codes instead of directly writing byte codes. For example, the high-level language may employ a language such as Solidity, Serpent, LLL, and the like. For intelligent contract code written in a high-level language, the intelligent contract code can be compiled by a compiler to generate byte codes which can be deployed on a blockchain.

Taking the Solidity language as an example, the contract code written by it is very similar to a Class (Class) in the object-oriented programming language, and various members including state variables, functions, function modifiers, events, etc. can be declared in one contract. A state variable is a value permanently stored in an account Storage (Storage) field of an intelligent contract to save the state of the contract.

Fig. 2 is a schematic diagram of a method for invoking an intelligent contract, as shown in fig. 2, and still taking an ethernet shop as an example, after Bob sends a transaction including information of invoking the intelligent contract to the ethernet shop network, each node may execute the transaction in the EVM. In fig. 2, the From field of the transaction is used To record the address of the account initiating the intelligent contract invocation, the To field is used To record the address of the intelligent contract invocation, and the Data field of the transaction is used To record the method and parameters of the intelligent contract invocation. After invoking the smart contract, the account status of the contract account may change. Subsequently, a client may view the account status of the contract account through the accessed block link point (e.g., node 1 in fig. 2).

The intelligent contract can be independently executed at each node in the blockchain network in a specified mode, and all execution records and data are stored on the blockchain, so that after the transaction is executed, transaction certificates which cannot be tampered and lost are stored on the blockchain.

FIG. 3 is a schematic diagram of a method for creating an intelligent contract and invoking the intelligent contract, as shown in FIG. 3. An intelligent contract is created in an Ethernet workshop and needs to be subjected to the processes of compiling the intelligent contract, changing the intelligent contract into byte codes, deploying the intelligent contract to a block chain and the like. The intelligent contract is called in the Ethernet workshop, a transaction pointing to the intelligent contract address is initiated, the EVM of each node can respectively execute the transaction, and the intelligent contract code is distributed and operated in the virtual machine of each node in the Ethernet workshop network.

In the related art, the printing of the medical electronic bill of the user in the hospital scene faces a more risky challenge besides the difference between the electronic style and the machine-printed style, that is, the user information is easy to steal, and in order to prevent the privacy of the user from leaking, fig. 4 is a timing diagram of the printing method of the medical electronic bill in the related art, as shown in fig. 4, the method includes:

a user reads user identification information on the self-service printer through an identifier;

the self-service printer is connected with the HIS (Hospital Information System) through an intranet;

the user selects the electronic bill to be printed, and the self-service printer sends a request for acquiring the electronic bill to the HIS;

the HIS returns the electronic ticket to the automatic printer, which receives and prints it.

Therefore, in order to prevent privacy leakage of users, the hospital generally takes measures to allow the self-service printer to be connected with the HIS through the internal network and isolate the external network from the network. However, in practical situations, the self-service printer has an independent processor and a storage device, and after receiving print data of the HIS, the self-service printer can locally store one copy of the data and then copy the data by operation and maintenance personnel, so that the problem of privacy and security of users still exists.

In addition, there is a problem that printing paper for printing requires some security mechanism per se for securing. For example, originally, a 1 ten thousand yuan medical outpatient bill, wherein a certain medicine is 8 thousand yuan of class B medicine, only the class A medicine is reimbursed but not the class B medicine in an insurance item put by a patient. For some purpose, a self-service printer manufacturer may tamper a received class b medication with a class a medication when printing. And the whole behavior cannot be traced and determined for duty, the self-service machine manufacturer can deduce that the deniability is printed completely according to the data transmitted by the HIS, and the HIS manufacturer can insist on the real transmission. No matter the printer is an HIS or a self-service printer, the internal processing logic of the printer is a black box, the processing logic and the stored data can be easily tampered, and no trace is left. Once disputes occur, the person cannot prove that the person does not tamper with the data, so that the difficulty of determining responsibility is increased.

Based on the problems of the related art described above, the inventors found that the series of problems is mainly caused by the centralized systems.

Therefore, a user needs a decentralized electronic bill printing method to solve the problems that the private information is easy to leak, and the printing process is unsupervised and traceable.

The application provides a method for printing medical electronic bills based on a block chain, and fig. 5 is a flow chart of steps of a method for printing medical electronic bills based on a block chain according to an embodiment of the application, and the method comprises the following steps:

s502, obtaining identity identification information of a user through a self-service printing terminal, and initiating target transaction, wherein the identity identification information comprises an identity card number, a social security card number, face image information, fingerprint information, a preset two-dimensional code and a preset bar code;

s504, responding to a target transaction sent by the self-service printing terminal through a block chain, and sending a printing request, wherein the target transaction comprises identification information of an electronic bill to be printed, such as bill numbers, bill codes and other information;

s506, calling a check logic in the intelligent contract deployed on the block chain, and performing validity check on the printing request;

s508, if the printing request passes the validity check, calling a printing logic in the intelligent contract to acquire an electronic bill to be printed on the block chain;

s510, reconstructing according to fields required by printing through printing logic in the intelligent contract, and initiating a printing instruction to the self-service printing terminal;

and S512, responding to the printing instruction sent by the block chain through the self-service printing terminal, and executing printing operation.

It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.

Through the steps S502 to S512 in the embodiment of the application, the problems that when a user prints an electronic bill, privacy information is easy to steal and leak, and effective supervision cannot be carried out are solved, behavior control and tracing of a printer, a printer and a data source in the process of printing the financial electronic bill are realized, and the privacy safety of the user is ensured and printing data is prevented from being tampered.

In some embodiments, in step S508, invoking a printing logic in the smart contract, and acquiring the electronic ticket to be printed on the blockchain includes:

and calling a printing logic in the intelligent contract to acquire the electronic bill to be printed which is stored in the block chain account book in advance.

In some embodiments, in step S508, invoking a printing logic in the smart contract, and acquiring the electronic ticket to be printed on the blockchain includes:

requesting to acquire an electronic bill to be printed from a financial electronic bill management platform through a block chain;

and calling printing logic in the intelligent contract to acquire the electronic bill on the block chain.

In some embodiments, step S504, responding to the target transaction sent by the self-service printing terminal through the blockchain, and initiating the print request includes:

requesting a bill information list of a user from the block link points through the self-service printing terminal;

and selecting the electronic bill to be printed and then initiating a printing request according to the operation information acquired by the input equipment or according to a preset processing logic.

In some embodiments, before responding to the print instruction sent by the blockchain through the self-service printing terminal and executing the printing operation in step S512, the method for printing the medical electronic bill based on the blockchain further includes:

the self-service printing terminal is used for acquiring the starting number and the ending number of the bills in the paper bin, writing the numbers into a block chain account book, and printing each time to take the numbers according to the stacking sequence of the bills in the paper bin.

In some embodiments, in step S512, after responding to the print instruction sent by the blockchain through the self-service printing terminal and performing the printing operation, the method for printing the medical electronic bill based on the blockchain further includes:

and for the connected financial electronic bill, sending an instruction to the cutting equipment through the self-service printing terminal to cut and segment the printed paper.

In some embodiments, the method for printing based on the blockchain medical electronic bill further comprises:

before executing printing operation, sending an instruction to a stamping device through a self-service printing terminal to stamp the paper to be printed;

or after the printing operation is executed, the self-service printing terminal sends an instruction to the stamping device to stamp the printed paper.

In some embodiments, in step S510, reconstructing, by the printing logic in the smart contract, according to the fields required for printing, the initiating the printing instruction to the self-service printing terminal includes:

reconstructing according to fields required by printing through printing logic in the intelligent contract;

and initiating a printing instruction to a self-service printing terminal through the SDK of the block chain according to the interaction between the SDK of the block chain and the intelligent contract.

In some of these embodiments, particularly to steps S506 and S508,

optionally, validity check is performed without calling a check logic in an intelligent contract deployed on the block chain;

and directly requesting the financial electronic bill management platform to acquire the electronic bill through the block chain, and performing subsequent printing steps, wherein the financial electronic bill management platform records the printing behavior.

The embodiment of the present application provides a method for printing a medical electronic bill based on a blockchain, fig. 6 is a schematic timing diagram of a method for printing a medical electronic bill based on a blockchain according to the embodiment of the present application, and as shown in fig. 6, the method includes:

step one, the self-service printing terminal acquires the identity of a patient through an identifier. For example, a card reader is used to read the patient identification number and/or social security card number, or a biometric technology such as face recognition is used to identify the patient, and then a scanner is used to scan the two-dimensional code and/or bar code presented by the patient.

Step two, the block chain link points respond to target transactions sent by the self-service printing terminal; the target transaction includes identification information of the electronic ticket to be printed by the user, such as the ticket number, code, etc.

Optionally, the electronic bill to be printed in the target transaction may request the bill information list of the user from the block link point through the self-service machine, and the user operates the screen or according to a certain processing logic to select the electronic bill to be printed and then initiate the printing request.

And step three, calling a checking logic in the intelligent contract deployed on the block chain, and checking the legality of the printing request.

Step four, if the validity check is passed, further calling a printing logic in the intelligent contract, and acquiring an electronic bill to be printed from the HIS;

optionally, the electronic bill to be printed on the blockchain may be an electronic bill that has been previously stored in the blockchain account book, or an electronic bill that is requested to be acquired from the business system and/or the bill system through the blockchain after the print request is initiated.

Step five, the HIS returns the electronic bill to the block chain;

and step six, reconstructing printing logic in the intelligent contract according to fields required by printing, and then initiating a printing request to a specified self-service printer.

And step seven, the self-service printing terminal responds to the printing control instruction to execute the printing operation.

Optionally, for the connected financial electronic bill, an instruction needs to be sent to a cutting device such as a cutter to cut and segment the printed paper.

Optionally, if the self-service device is required to stamp the printed paper, an instruction needs to be sent to the stamping device to stamp the printed paper. Of course, it is also possible to provide for stamping onto the paper to be printed or otherwise printed on.

And step eight, delivering the printed bill to the patient through the paper outlet by the self-service printer.

Optionally, in another more robust embodiment, the paper to be overprinted can be better controlled;

when the paper to be printed in the sleeve mode is placed into a paper bin of the self-service printer, the starting number and the ending number of the bill placed into the paper bin are input into a block chain, and when a printing logic is called by the block chain, the number is taken and printed according to the stacking sequence of the paper.

Through the steps one to eight in the embodiment of the application, the problems that when a user prints the electronic bill, privacy information is easy to steal and leak, and effective supervision cannot be carried out are solved, behavior control and tracing of a printer, a printer and a data source in the process of printing the financial electronic bill are achieved, and privacy safety of the user is guaranteed and printed data is prevented from being tampered.

It should be noted that the method for printing medical electronic bills based on block chains provided by the above embodiments is not only suitable for printing medical electronic bills with fee, but also suitable for printing electronic bills with fee in various industries and electronic bills in various financial departments.

The embodiment of the application provides a system for printing medical electronic bills based on a block chain, and fig. 7 is a structural block diagram of a system for printing medical electronic bills based on a block chain according to the embodiment of the application, and the system comprises a self-service printing module 71, a block chain module 72 and a hospital information module 73;

the self-service printing module 71 acquires identity information of a user and initiates a target transaction, wherein the identity information comprises an identity card number, a social security card number, face image information, fingerprint information, a preset two-dimensional code and a preset bar code;

the block chain module 72 responds to the target transaction sent by the self-service printing module 71 and sends a printing request, wherein the target transaction comprises identification information of an electronic bill to be printed, such as a bill number, a bill code and other information;

the block chain module 72 calls a check logic in the intelligent contract deployed on the block chain module 72 to check the validity of the printing request;

if the printing request passes the validity check, calling a printing logic in the intelligent contract to acquire the electronic bill to be printed on the block chain module 72;

the block chain module 72 reconstructs the fields required by printing through the printing logic in the intelligent contract, and sends a printing instruction to the self-service printing module 71;

the self-service printing module 71 responds to the printing instruction sent by the block chain module 72 and executes the printing operation;

the hospital information module 73 is used to generate and store electronic tickets to be printed.

According to the embodiment of the application, the self-service printing module 71 acquires the identity information of a user and initiates a target transaction, the blockchain module 72 responds to the target transaction sent by the self-service printing module 71 and initiates a printing request, a check logic in an intelligent contract is called, the legitimacy of the printing request is checked, if the printing request passes the legitimacy check, the printing logic in the intelligent contract is called to acquire an electronic bill to be printed, the electronic bill is reconstructed according to a field required by printing, a printing instruction is sent to the self-service printing module 71, the self-service printing module 71 responds to the printing instruction sent by the blockchain module 72 and executes a printing operation, in addition, the hospital information module 73 is used for generating and storing the electronic bill to be printed, and the problems that privacy information is easy to be stolen and leaked and the effective supervision cannot be carried out when the electronic bill is printed by the user are solved, the behavior control and tracing of the printer, the printer and the data source in the financial electronic bill printing process are realized, the privacy safety of the user is ensured, and the printing data is prevented from being tampered.

The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.

The system for printing medical electronic bills based on the blockchain is not only suitable for printing medical charging electronic bills, but also suitable for printing charging electronic bills in various industries and printing electronic bills in various financial departments.

The embodiment of the application provides a device for printing medical electronic bills based on a block chain, which is used for executing the method for printing the medical electronic bills based on the block chain in the embodiment, and the device comprises a touchable operation screen, a computing processing device, an identifier, a bill printer, a cutting device and a stamping device;

a touchable operation screen for guiding a user to operate the printing step;

the computing processing equipment is used for receiving the input of a user, outputting the input to a touchable operation screen and calling the bill printer;

the recognizer is used for reading identity recognition information of a user, and the identity identification information comprises an identity card number, a social security card number, face image information, fingerprint information, a preset two-dimensional code and a preset bar code;

the bill printer automatically adopts a corresponding printing mode according to the type of the bill, and the printing mode comprises ink-jet printing and needle type printing;

the cutting equipment is used for cutting the connected bills;

and the stamping equipment is used for stamping the stamp at the designated position of the bill.

The device for printing the medical electronic bill based on the blockchain is not only suitable for printing the medical charging electronic bill, but also suitable for printing the charging electronic bill in each industry and the electronic bill in each financial department.

In addition, in combination with the method for printing the medical electronic bill based on the block chain in the above embodiments, the embodiments of the present application may provide a storage medium to implement. The storage medium having stored thereon a computer program; the computer program can realize the method for printing the medical electronic bill based on the block chain when being executed by the processor.

In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for block chain based printing of medical electronic tickets. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.

In an embodiment, fig. 8 is a schematic internal structure diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 8, there is provided an electronic device, which may be a server, and its internal structure diagram may be as shown in fig. 8. The electronic device comprises a processor, a network interface, an internal memory and a non-volatile memory connected by an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used for providing calculation and control capability, the network interface is used for communicating with an external terminal through network connection, the internal storage is used for providing an environment for an operating system and running of a computer program, the computer program is executed by the processor to realize a method based on block chain medical electronic bill printing, and the database is used for storing data.

Those skilled in the art will appreciate that the structure shown in fig. 8 is a block diagram of only a portion of the structure relevant to the present disclosure, and does not constitute a limitation on the electronic device to which the present disclosure may be applied, and that a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather, all combinations of features which are not inconsistent with each other should be construed as being within the scope of the present disclosure.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:面向不平衡数据集的信用风险预测方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!