CN112163869A - Block chain-based drug tracing method, device, server and medium - Google Patents

Block chain-based drug tracing method, device, server and medium Download PDF

Info

Publication number
CN112163869A
CN112163869A CN202011062740.XA CN202011062740A CN112163869A CN 112163869 A CN112163869 A CN 112163869A CN 202011062740 A CN202011062740 A CN 202011062740A CN 112163869 A CN112163869 A CN 112163869A
Authority
CN
China
Prior art keywords
drug
user
information
block chain
transaction request
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
CN202011062740.XA
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.)
Weiyiyun Hangzhou Holding Co ltd
Original Assignee
Weiyiyun Hangzhou Holding Co 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 Weiyiyun Hangzhou Holding Co ltd filed Critical Weiyiyun Hangzhou Holding Co ltd
Priority to CN202011062740.XA priority Critical patent/CN112163869A/en
Publication of CN112163869A publication Critical patent/CN112163869A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The embodiment of the invention discloses a medicine tracing method, a medicine tracing device, a medicine tracing server and a medicine tracing medium based on a block chain. The method comprises the following steps: acquiring drug related information chaining requests of drug manufacturer users, drug distributor users, drug store users and logistics company users, uploading the circulation information of drugs in each link to a block chain, acquiring drug information inquiry requests of drug supervision users, and inquiring corresponding drug information in the block chain for feedback. By the technical scheme of the embodiment of the invention, the multi-party cooperation of a drug manufacturer, a drug distributor, a drug store user, a logistics company and a drug supervision user can be realized, the information in the links of drug production, drug circulation, drug sale, logistics distribution and the like is stored in a block chain, all the parties maintain the block chain system together, data cannot be changed randomly, and the drug supervision user can trace the source of the target drug in the whole process.

Description

Block chain-based drug tracing method, device, server and medium
Technical Field
The embodiment of the invention relates to the technical field of blockchain, in particular to a method, a device, a server and a medium for tracing a medicine source based on a blockchain.
Background
At present, the concern on the production of medicines and the safety problem of medicines is high, the existing medicine traceability system is difficult to cooperatively process the sharing of multi-party data, and only the production links of medicines can be supervised through a medicine traceability management system, so that related users can only trace the information of the medicine production links through the system, and the medicine circulation information traceability of the whole flow of medicine production, medicine circulation, medicine sale, logistics distribution and the like can not be realized, so that the medicine traceability has certain limitation.
Disclosure of Invention
The embodiment of the invention provides a block chain-based drug traceability method, a block chain-based drug traceability device, a server and a medium, which are used for acquiring information of drug production, circulation, sale, logistics distribution and other links by using a block chain technology and traceability of a drug whole process through a drug electronic supervision code.
In a first aspect, an embodiment of the present invention provides a method for tracing a drug source based on a blockchain, where the method includes:
acquiring a drug production information chain loading business request initiated by a drug manufacturer user in a block chain network, and executing the drug production information chain loading business request;
acquiring a medicine warehouse-in and warehouse-out information uplink transaction request initiated by a medicine dealer user in a blockchain network, and executing the medicine warehouse-in and warehouse-out information uplink transaction request;
acquiring a drug sales information chain loading business request initiated by a pharmacy user in a block chain network, and executing the drug sales information chain loading business request;
acquiring a drug transportation information uplink transaction request initiated by a logistics company user in a block chain network, and executing the drug transportation information uplink transaction request;
acquiring a drug information query transaction request of a drug administration user, executing the drug information query request, and querying and feeding back related drug information of a target drug in a block chain network, wherein the drug information comprises at least one of drug production information, drug warehouse-in and warehouse-out information, drug sales information and drug transportation information.
Optionally, the method further includes:
acquiring account registration transaction requests of drug manufacturer users, drug distributor users, drug store users, logistics company users and drug supervision users in a blockchain network;
and executing the account registration transaction request, and distributing public keys and private keys of accounts for the drug manufacturer user, the drug distributor user, the drug store user, the logistics company user and the drug supervision user.
Optionally, before executing each transaction request, the method further includes:
based on the public key and the private key, performing identity authentication on a user initiating a transaction request;
the business request comprises at least one of a drug production information uplink business request, a drug warehouse-in and warehouse-out information uplink business request, a drug sales information uplink business request, a drug transportation information uplink business request or a drug information inquiry business request, and correspondingly, the user comprises at least one of a drug manufacturer user, a drug distributor user, a pharmacy user, a logistics company user and a drug supervision user.
Optionally, the drug manufacturer user, the drug distributor user, the pharmacy user, the logistics company user, and the drug monitoring user establish a connection with the blockchain network through the electronic monitoring code of the target drug and send corresponding transaction requests.
In a second aspect, an embodiment of the present invention further provides a block chain-based drug tracing apparatus, where the apparatus includes:
the system comprises a drug production information uplink transaction request processing module, a block chain network processing module and a block chain processing module, wherein the drug production information uplink transaction request processing module is used for acquiring a drug production information uplink transaction request initiated by a drug manufacturer user in the block chain network and executing the drug production information uplink transaction request;
the system comprises a medicine warehouse-in and warehouse-out information uplink transaction request processing module, a block chain network processing module and a block chain network processing module, wherein the medicine warehouse-in and warehouse-out information uplink transaction request processing module is used for acquiring a medicine warehouse-in and warehouse-out information uplink transaction request initiated by a medicine dealer user in the block chain network and executing the medicine warehouse-in and warehouse-out information uplink transaction request;
the system comprises a medicine sales information uplink transaction request processing module, a block chain network processing module and a block chain processing module, wherein the medicine sales information uplink transaction request processing module is used for acquiring a medicine sales information uplink transaction request initiated by a pharmacy user in the block chain network and executing the medicine sales information uplink transaction request;
and the drug transport information uplink transaction request processing module is used for acquiring a drug transport information uplink transaction request initiated by a logistics company user in the block chain network and executing the prescription uplink transaction request.
And the drug information inquiry transaction request processing module is used for acquiring a drug information inquiry transaction request of a drug supervision user, executing the drug information inquiry request, inquiring and feeding back related drug information of a target drug in a block chain network, wherein the drug information comprises at least one of drug production information, drug warehouse-in and warehouse-out information, drug sales information and drug transportation information.
Optionally, the apparatus further comprises:
the account registration management module is used for acquiring account registration transaction requests of drug manufacturer users, drug distributor users, drug store users, logistics company users and drug supervision users in the blockchain network;
and executing the account registration transaction request, and distributing public keys and private keys of accounts for the drug manufacturer user, the drug distributor user, the drug store user, the logistics company user and the drug supervision user.
Optionally, the apparatus further includes a request verification module, configured to perform, before executing each transaction request, identity authentication on a user initiating the transaction request based on the public key and the private key;
the business request comprises at least one of a drug production information uplink business request, a drug warehouse-in and warehouse-out information uplink business request, a drug sales information uplink business request, a drug transportation information uplink business request or a drug information inquiry business request, and correspondingly, the user comprises at least one of a drug manufacturer user, a drug distributor user, a pharmacy user, a logistics company user and a drug supervision user.
Optionally, the drug manufacturer user, the drug distributor user, the pharmacy user, the logistics company user, and the drug monitoring user establish a connection with the blockchain network through the electronic monitoring code of the target drug and send corresponding transaction requests.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a blockchain-based drug tracing method as provided by any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the block chain-based drug tracing method according to any embodiment of the present invention.
The embodiment of the invention has the following advantages or beneficial effects:
by utilizing the block chain technology, a medicine manufacturer, a medicine distributor, a pharmacy user, a logistics company and a medicine supervision user cooperate in many ways, information in links such as medicine production, medicine circulation, medicine sale and logistics distribution is stored in a block chain, all the parties maintain the block chain system together, data cannot be changed randomly, and a medicine supervision user can trace the source of a target medicine in a whole process.
Drawings
Fig. 1 is a flowchart of a method for tracing to a source of a medicine based on a blockchain according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a block chain-based drug traceability system according to an embodiment of the present invention;
fig. 3 is a diagram illustrating an information uplink request according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an information query request according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a block chain-based drug tracing apparatus according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for tracing to a source of a drug based on a block chain according to an embodiment of the present application, which is applicable to a situation of tracing to a source of a drug based on a block chain, and is used to solve a problem that an existing drug tracing system is difficult to cooperatively process multi-party data of a drug in a circulation process, and the real effectiveness of drug circulation information cannot be guaranteed. The applicable blockchain may be, for example, a federation chain. The method may be performed by a blockchain-based drug tracing apparatus, which is implemented in software and/or hardware, and is preferably configured in an electronic device, such as a computing device carrying blockchain nodes.
As shown in fig. 1, the block chain-based drug tracing method is performed by block chain nodes, and specifically includes the following steps:
s110, acquiring a drug production information uplink transaction request initiated by a drug manufacturer user in a block chain network, and executing the drug production information uplink transaction request.
Specifically, a drug manufacturer is a source of drug transfer information, and when a household of the drug manufacturer starts to produce a drug, a drug information uplink request can be sent to a corresponding blockchain network, and drug production information is uploaded to a blockchain. The drug production information comprises drug names, production time, production line codes, production operator information, drug delivery date, delivery quantity, delivery destination, delivery units and the like. The blockchain-based drug traceability system responds to the chain transaction request of the drug production information and executes the request to store the corresponding drug production information to the corresponding location.
S120, acquiring a medicine warehouse-in/out information uplink transaction request initiated by a medicine dealer user in the blockchain network, and executing the medicine warehouse-in/out information uplink transaction request.
After the drug production factory finishes producing the drugs, the drugs are sent to a drug distributor, and the drug distributor records the warehousing-in record of each drug and the warehousing-out record of each drug. The warehousing record comprises information such as medicine names, medicine quantity, medicine manufacturer names and the like, and can also comprise warehousing position information after the medicines are warehoused. The delivery information includes information such as the name of the medicine, the number of deliveries, the destination of the delivery, and the carrier.
When a medicine dealer party generates a piece of medicine warehouse-in/out information, a medicine dealer user logs in a medicine traceability system, initiates a medicine warehouse-in/out information uplink request to a block chain network, and uploads the medicine warehouse-in/out information of each medicine to a block chain. And the medicine traceability system based on the block chain responds to the chain transaction request of the medicine in-out warehouse information, executes the request, and uniformly stores the corresponding medicine in-out warehouse information and the corresponding medicine production information, namely updates the state information of medicine circulation.
S130, acquiring a drug sales information uplink transaction request initiated by a pharmacy user in the blockchain network, and executing the drug sales information uplink transaction request.
After the medicines are sold by the dealers, the medicines are transferred to various pharmacy selling the medicines, and when a new medicine enters the pharmacy or a consumer purchases the medicine, the pharmacy has corresponding recorded information, sends a medicine sales information uplink request to the blockchain network, and stores the medicine sales information in the blockchain.
And the block chain-based drug traceability system responds to the drug sales information chain transaction request, executes the request, and uniformly stores the corresponding drug sales information chain transaction request, the corresponding drug production information and the drug in-out and in-out information, namely updates the state information of drug circulation.
S140, acquiring a medicine transportation information uplink transaction request initiated by a logistics company user in a block chain network, and executing the medicine transportation information uplink transaction request.
The logistics company, i.e., the carrier of the drug during circulation, is responsible for transporting the drug from the drug manufacturer to the drug distributor, or from the drug distributor to the drug store, and from the drug store to the consumer. When the medicine needs to be circulated, the logistics company uploads the medicine transportation information to the block chain. The medicine transportation information includes information such as medicine name, medicine quantity, transportation origin, destination, and transportation transfer station.
It should be noted that step S140 does not have to be in a strict sequence with steps S120 and S130, and the drug delivery information is generated when the drug is delivered from the drug manufacturer to the drug distributor or from the drug distributor to the drug store. Only for the same medicine, corresponding medicine warehouse-in and warehouse-out information, medicine sales information and medicine transportation information exist after the medicine production information exists. Further, when a drug has just completed the manufacturing process and another drug may have been shipped to a pharmacy, the progress of the drug circulation process for different types of drugs or different batches of drugs may not be the same.
In one embodiment, the drug may be sold directly from the manufacturer to the pharmacy, and the drug may not have drug warehousing information corresponding to the drug dealer user.
S150, acquiring a drug information query transaction request of a drug supervision user, executing the drug information query request, and querying and feeding back related drug information of a target drug in a block chain network, wherein the drug information comprises at least one of drug production information, drug warehouse-in and warehouse-out information, drug sales information and drug transportation information.
When the blockchain stores the related information of the medicine, the medicine supervision user can inquire the related information of the medicine through the blockchain network, and the inquired information can be information of any stage in the medicine circulation process. Similarly, the steps and the above steps S110 to S140 are not strictly limited in sequence, and the drug administration user may query the information of the target drug at any time when needed, and the target drug may not be shipped or may be in transit, and the serial numbers are only for convenience of description.
Further, the structure of the block chain-based drug traceability system in this embodiment may refer to the structure shown in fig. 2, where the system includes block chain nodes such as drug manufacturers, drug distributors, drug stores, and logistics companies, and each node may send an information uplink request to the block chain-based drug traceability system to upload corresponding drug information. Before that, the blockchain-based drug traceability system also acquires a drug manufacturer user, a drug distributor user, a drug store user, a logistics company user and a drug supervision user, registers a transaction request for an account in a blockchain network, executes the account registration transaction request, and distributes a public key and a private key of the account for the drug manufacturer user, the drug distributor user, the pharmacy user, the logistics company user and the drug supervision user. Then, when each node user sends a transaction request to the blockchain-based drug traceability system, the blockchain-based drug traceability system performs identity authentication on the user who sends the transaction request based on the public key and the private key; the business request comprises at least one of a drug production information uplink business request, a drug warehouse-in and warehouse-out information uplink business request, a drug sales information uplink business request, a drug transportation information uplink business request or a drug information inquiry business request, and correspondingly, the user comprises at least one of a drug manufacturer user, a drug distributor user, a pharmacy user, a logistics company user and a drug supervision user.
In a preferred embodiment, the drug manufacturer users, drug distributor users, pharmacy users, logistics company users, and drug administration users may establish a connection with the blockchain network via the electronic administration code of the target drug and issue a corresponding transaction request. As shown in fig. 3, after a user of a drug manufacturer, a user of a drug distributor, a user of a drug store, and a user of a logistics company log in a block chain-based drug traceability system, corresponding information can be stored in a corresponding position by scanning an electronic supervision code in a two-dimensional code form, so that the circulation information of the same drug is stored in the same position. As shown in fig. 4, a drug administration user can scan the administration code to query the information of the drug corresponding to the administration code to the blockchain-based drug traceability system, so as to realize drug traceability.
The electronic supervision code of the medicine is an identifier given to each product by an official party implementing electronic supervision on the product. The electronic supervision code of each product is unique, namely one code, is like the identity card of a commodity, and is called the supervision code for short. The electronic supervision code can establish a corresponding relation with the commodity code to complete the function of settlement and pricing in the retail field. Production enterprises transmit source information of production, quality and the like of products to a monitoring network database through electronic monitoring codes, circulation enterprises perform goods feeding inspection and acceptance through the electronic monitoring codes and transmit goods feeding information to the monitoring network database, and sales information is transmitted to the monitoring network database during sales, and the data information can be used for consumers to perform true and false and quality inquiry, governments to perform law enforcement and false forging, quality tracing and product recall management, and the enterprises can know market supply and demand conditions, channel sales conditions and fake related information.
According to the technical scheme of the embodiment, by utilizing the block chain technology, a medicine manufacturer, a medicine distributor, a pharmacy user, a logistics company and a medicine supervision user cooperate in multiple ways, information in links of medicine production, medicine circulation, medicine sale, logistics distribution and the like is stored in the block chain, all the parties maintain the block chain system together, data cannot be changed randomly, and the medicine supervision user can trace the source of the target medicine in the whole process.
Example two
Fig. 5 is a schematic structural diagram of a block chain-based drug tracing apparatus according to a second embodiment of the present invention, where the apparatus is implemented in a software and/or hardware manner, and is preferably configured in an electronic device, such as a computing device carrying a block chain node. The embodiment is applicable to the situation of drug traceability based on a block chain, and is used for solving the problems that the existing drug traceability system is difficult to cooperatively process multi-party data of drugs in the circulation process, and the true validity of drug circulation information cannot be guaranteed. Wherein explanations of the same or corresponding terms as those of the above-described embodiments are omitted.
Referring to fig. 5, the block chain-based drug tracing apparatus provided in this embodiment specifically includes the following structure: a drug production information uplink transaction request processing module 210, a drug warehousing information uplink transaction request processing module 220, a drug sales information uplink transaction request processing module 230, a prescription uplink transaction request processing module 240 and a drug information query transaction request processing module 250.
The uplink transaction request processing module 210 is configured to acquire a drug production information uplink transaction request initiated by a drug manufacturer user in a block chain network, and execute the drug production information uplink transaction request; a drug warehousing information uplink transaction request processing module 220, configured to acquire a drug warehousing information uplink transaction request initiated by a drug dealer user in a blockchain network, and execute the drug warehousing information uplink transaction request; a drug sales information uplink transaction request processing module 230, configured to obtain a drug sales information uplink transaction request initiated by a pharmacy user in a blockchain network, and execute the drug sales information uplink transaction request; the prescription uplink transaction request processing module 240 is configured to obtain a drug transportation information uplink transaction request initiated by a logistics company user in a blockchain network, and execute the prescription uplink transaction request. The drug information query transaction request processing module 250 is configured to obtain a drug information query transaction request of a drug administration user, execute the drug information query request, query and feed back related drug information of a target drug in a block chain network, where the drug information includes at least one of the drug production information, the drug warehousing information, the drug sales information, and the drug transportation information.
Optionally, the apparatus further comprises:
the account registration management module is used for acquiring account registration transaction requests of drug manufacturer users, drug distributor users, drug store users, logistics company users and drug supervision users in the blockchain network;
and executing the account registration transaction request, and distributing public keys and private keys of accounts for the drug manufacturer user, the drug distributor user, the drug store user, the logistics company user and the drug supervision user.
Optionally, the apparatus further includes a request verification module, configured to perform, before executing each transaction request, identity authentication on a user initiating the transaction request based on the public key and the private key;
the business request comprises at least one of a drug production information uplink business request, a drug warehouse-in and warehouse-out information uplink business request, a drug sales information uplink business request, a drug transportation information uplink business request or a drug information inquiry business request, and correspondingly, the user comprises at least one of a drug manufacturer user, a drug distributor user, a pharmacy user, a logistics company user and a drug supervision user.
Optionally, the drug manufacturer user, the drug distributor user, the pharmacy user, the logistics company user, and the drug monitoring user establish a connection with the blockchain network through the electronic monitoring code of the target drug and send corresponding transaction requests.
According to the technical scheme of the embodiment, by utilizing the block chain technology, a medicine manufacturer, a medicine distributor, a pharmacy user, a logistics company and a medicine supervision user cooperate in multiple ways, information in links of medicine production, medicine circulation, medicine sale, logistics distribution and the like is stored in the block chain, all the parties maintain the block chain system together, data cannot be changed randomly, and the medicine supervision user can trace the source of the target medicine in the whole process.
EXAMPLE III
Fig. 6 is a schematic structural diagram of a server according to a third embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention. The server 12 shown in fig. 6 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 6, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the server 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the server 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the steps of a block chain-based drug tracing method for business data processing provided by the embodiment of the present invention, the method includes:
acquiring a drug production information chain loading business request initiated by a drug manufacturer user in a block chain network, and executing the drug production information chain loading business request;
acquiring a medicine warehouse-in and warehouse-out information uplink transaction request initiated by a medicine dealer user in a blockchain network, and executing the medicine warehouse-in and warehouse-out information uplink transaction request;
acquiring a drug sales information chain loading business request initiated by a pharmacy user in a block chain network, and executing the drug sales information chain loading business request;
acquiring a drug transportation information uplink transaction request initiated by a logistics company user in a block chain network, and executing the drug transportation information uplink transaction request;
acquiring a drug information query transaction request of a drug administration user, executing the drug information query request, and querying and feeding back related drug information of a target drug in a block chain network, wherein the drug information comprises at least one of drug production information, drug warehouse-in and warehouse-out information, drug sales information and drug transportation information.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the block chain-based drug tracing method provided in any embodiment of the present invention.
Example four
A fourth embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for tracing a medicine source based on a blockchain according to any embodiment of the present invention, where the method includes:
acquiring a drug production information chain loading business request initiated by a drug manufacturer user in a block chain network, and executing the drug production information chain loading business request;
acquiring a medicine warehouse-in and warehouse-out information uplink transaction request initiated by a medicine dealer user in a blockchain network, and executing the medicine warehouse-in and warehouse-out information uplink transaction request;
acquiring a drug sales information chain loading business request initiated by a pharmacy user in a block chain network, and executing the drug sales information chain loading business request;
acquiring a drug transportation information uplink transaction request initiated by a logistics company user in a block chain network, and executing the drug transportation information uplink transaction request;
acquiring a drug information query transaction request of a drug administration user, executing the drug information query request, and querying and feeding back related drug information of a target drug in a block chain network, wherein the drug information comprises at least one of drug production information, drug warehouse-in and warehouse-out information, drug sales information and drug transportation information.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A drug source tracing method based on a block chain is characterized by being executed by block chain nodes and comprising the following steps:
acquiring a drug production information chain loading business request initiated by a drug manufacturer user in a block chain network, and executing the drug production information chain loading business request;
acquiring a medicine warehouse-in and warehouse-out information uplink transaction request initiated by a medicine dealer user in a blockchain network, and executing the medicine warehouse-in and warehouse-out information uplink transaction request;
acquiring a drug sales information chain loading business request initiated by a pharmacy user in a block chain network, and executing the drug sales information chain loading business request;
acquiring a drug transportation information uplink transaction request initiated by a logistics company user in a block chain network, and executing the drug transportation information uplink transaction request;
acquiring a drug information query transaction request of a drug administration user, executing the drug information query request, and querying and feeding back related drug information of a target drug in a block chain network, wherein the drug information comprises at least one of drug production information, drug warehouse-in and warehouse-out information, drug sales information and drug transportation information.
2. The method of claim 1, further comprising:
acquiring account registration transaction requests of drug manufacturer users, drug distributor users, drug store users, logistics company users and drug supervision users in a blockchain network;
and executing the account registration transaction request, and distributing public keys and private keys of accounts for the drug manufacturer user, the drug distributor user, the drug store user, the logistics company user and the drug supervision user.
3. The method of claim 2, wherein prior to executing transaction requests, the method further comprises:
based on the public key and the private key, performing identity authentication on a user initiating a transaction request;
the business request comprises at least one of a drug production information uplink business request, a drug warehouse-in and warehouse-out information uplink business request, a drug sales information uplink business request, a drug transportation information uplink business request or a drug information inquiry business request, and correspondingly, the user comprises at least one of a drug manufacturer user, a drug distributor user, a pharmacy user, a logistics company user and a drug supervision user.
4. The method of any one of claims 1-3, wherein the drug manufacturer user, the drug distributor user, the pharmacy user, the logistics company user, and the drug administration user establish a connection with a blockchain network via the electronic supervisory code of the target drug and issue corresponding transaction requests.
5. The utility model provides a medicine device of tracing to source based on block chain which characterized in that includes:
the system comprises a drug production information uplink transaction request processing module, a block chain network processing module and a block chain processing module, wherein the drug production information uplink transaction request processing module is used for acquiring a drug production information uplink transaction request initiated by a drug manufacturer user in the block chain network and executing the drug production information uplink transaction request;
the system comprises a medicine warehouse-in and warehouse-out information uplink transaction request processing module, a block chain network processing module and a block chain network processing module, wherein the medicine warehouse-in and warehouse-out information uplink transaction request processing module is used for acquiring a medicine warehouse-in and warehouse-out information uplink transaction request initiated by a medicine dealer user in the block chain network and executing the medicine warehouse-in and warehouse-out information uplink transaction request;
the system comprises a medicine sales information uplink transaction request processing module, a block chain network processing module and a block chain processing module, wherein the medicine sales information uplink transaction request processing module is used for acquiring a medicine sales information uplink transaction request initiated by a pharmacy user in the block chain network and executing the medicine sales information uplink transaction request;
the system comprises a drug transport information uplink transaction request processing module, a block chain network and a block chain network, wherein the drug transport information uplink transaction request processing module is used for acquiring a drug transport information uplink transaction request initiated by a logistics company user in the block chain network and executing the drug transport information uplink transaction request.
And the drug information inquiry transaction request processing module is used for acquiring a drug information inquiry transaction request of a drug supervision user, executing the drug information inquiry request, inquiring and feeding back related drug information of a target drug in a block chain network, wherein the drug information comprises at least one of drug production information, drug warehouse-in and warehouse-out information, drug sales information and drug transportation information.
6. The apparatus of claim 5, further comprising:
the account registration management module is used for acquiring account registration transaction requests of drug manufacturer users, drug distributor users, drug store users, logistics company users and drug supervision users in the blockchain network;
and executing the account registration transaction request, and distributing public keys and private keys of accounts for the drug manufacturer user, the drug distributor user, the drug store user, the logistics company user and the drug supervision user.
7. The apparatus of claim 6, further comprising a request verification module configured to authenticate a user initiating a transaction request based on the public key and the private key before executing each transaction request;
the business request comprises at least one of a drug production information uplink business request, a drug warehouse-in and warehouse-out information uplink business request, a drug sales information uplink business request, a drug transportation information uplink business request or a drug information inquiry business request, and correspondingly, the user comprises at least one of a drug manufacturer user, a drug distributor user, a pharmacy user, a logistics company user and a drug supervision user.
8. The apparatus of any one of claims 5-7, wherein the drug manufacturer user, the drug distributor user, the pharmacy user, the logistics company user, and the drug administration user establish a connection with a blockchain network via the electronic supervision code of the target drug and issue corresponding transaction requests.
9. A server, characterized in that the server comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the blockchain based drug tracing method of any one of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the blockchain-based drug tracing method according to any one of claims 1 to 4.
CN202011062740.XA 2020-09-30 2020-09-30 Block chain-based drug tracing method, device, server and medium Pending CN112163869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011062740.XA CN112163869A (en) 2020-09-30 2020-09-30 Block chain-based drug tracing method, device, server and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011062740.XA CN112163869A (en) 2020-09-30 2020-09-30 Block chain-based drug tracing method, device, server and medium

Publications (1)

Publication Number Publication Date
CN112163869A true CN112163869A (en) 2021-01-01

Family

ID=73860902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011062740.XA Pending CN112163869A (en) 2020-09-30 2020-09-30 Block chain-based drug tracing method, device, server and medium

Country Status (1)

Country Link
CN (1) CN112163869A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113762983A (en) * 2021-08-11 2021-12-07 成都华药共享网络科技有限公司 Block chain-based medical product chain tracing method
CN113762982A (en) * 2021-08-11 2021-12-07 成都华药共享网络科技有限公司 Medical product chain traceability system based on block chain
CN114119038A (en) * 2021-08-23 2022-03-01 广州方舟信息科技有限公司 Medicine tracing method, device and equipment based on block chain technology
CN114565326A (en) * 2022-04-29 2022-05-31 深圳市誉兴通科技股份有限公司 Medicine management method and system based on Internet of things

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107274136A (en) * 2017-07-11 2017-10-20 西安工业大学 A kind of product is traced to the source information protecting method
CN108305083A (en) * 2018-02-11 2018-07-20 张国忠 A kind of commodity source tracing method and system based on block chain
CN109993546A (en) * 2019-02-18 2019-07-09 西安西电链融科技有限公司 A kind of drug traceability system and implementation method based on RFID and block chain
CN110634003A (en) * 2019-09-25 2019-12-31 北京艾摩瑞策科技有限公司 Medicine circulation information tracing method and device based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107274136A (en) * 2017-07-11 2017-10-20 西安工业大学 A kind of product is traced to the source information protecting method
CN108305083A (en) * 2018-02-11 2018-07-20 张国忠 A kind of commodity source tracing method and system based on block chain
CN109993546A (en) * 2019-02-18 2019-07-09 西安西电链融科技有限公司 A kind of drug traceability system and implementation method based on RFID and block chain
CN110634003A (en) * 2019-09-25 2019-12-31 北京艾摩瑞策科技有限公司 Medicine circulation information tracing method and device based on block chain

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113762983A (en) * 2021-08-11 2021-12-07 成都华药共享网络科技有限公司 Block chain-based medical product chain tracing method
CN113762982A (en) * 2021-08-11 2021-12-07 成都华药共享网络科技有限公司 Medical product chain traceability system based on block chain
CN114119038A (en) * 2021-08-23 2022-03-01 广州方舟信息科技有限公司 Medicine tracing method, device and equipment based on block chain technology
CN114565326A (en) * 2022-04-29 2022-05-31 深圳市誉兴通科技股份有限公司 Medicine management method and system based on Internet of things
CN114565326B (en) * 2022-04-29 2022-08-30 深圳市誉兴通科技股份有限公司 Medicine management method and system based on Internet of things

Similar Documents

Publication Publication Date Title
US10868676B2 (en) Computerized apparatus for secure serialization of supply chain product units
CN112163869A (en) Block chain-based drug tracing method, device, server and medium
US20190258991A1 (en) System and methods for querying the distribution path of product units within a supply chain
US20190258986A1 (en) Secure distributed supply chain transactional management system
WO2019010067A1 (en) Blockchain proof of custody, proof against tampering, proof of chain of custody
WO2020236560A1 (en) Method and system for generalized provenance solution for blockchain supply chain applications
CN111177275A (en) Block chain-based management method, terminal, device and storage medium
CN111383020B (en) Block chain-based article anti-counterfeiting management method, device, equipment and storage medium
CN110503373A (en) A kind of material-flow method and device based on block chain network
US20210294914A1 (en) Distribution management apparatus, distribution management system, and distribution management method
US11516001B2 (en) Method and system for generalized provenance solution for blockchain supply chain applications
WO2019168786A1 (en) Blockchain-based system and method for crowdsourced delivery
EP3347868A1 (en) Method and system for intelligent storage and distribution of media keys for content delivery
CN116483919A (en) Method, device, equipment and medium for tracing data uplink and tracing data query
Bapatla et al. PharmaChain: A blockchain to ensure counterfeit‐free pharmaceutical supply chain
CN112184264A (en) Block chain-based drug supervision method, device, server and medium
CN110659859B (en) E-commerce order inventory ERP management method and system
US20150142614A1 (en) Transaction support system
US9904965B2 (en) System, method and apparatus for managing pharmacy inventories
CN112651752A (en) Block chain-based traditional Chinese medicine tracing method, device, server and medium
CN113141404A (en) Intelligent gateway and data sharing system
US20050144089A1 (en) Shipment and delivery management system
CN114819983A (en) Individually customized SAAS (software as a service) tracing system for small and micro enterprises
CN111861293A (en) Method and apparatus for transmitting information
US11847136B2 (en) Systems and methods for distributed entity tracking

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