Biosafety laboratory personnel access management method and system based on block chain
By building a circulating blockchain and a storage blockchain, and combining them with smart contracts to manage the entry and exit of personnel in high-level biosafety laboratories, the problem of lax security management in existing technologies has been solved, and safe and reliable laboratory management has been achieved.
Patent Information
- Application Number
- CN202510667962.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2045-05-23
AI Technical Summary
Existing technologies cannot effectively manage the entry and exit of personnel in high-level biosafety laboratories, especially in complex biosafety laboratories. Blockchain is only used to store compliance identity information but fails to control the entry and exit of personnel in real time, resulting in insufficiently strict security management.
Construct a circulating blockchain and a storage blockchain. The circulating blockchain contains two smart contracts for temporarily storing and analyzing personnel entry and exit instructions, and the storage blockchain is used to finally store the results. The smart contract specifies the temporary storage location of the instructions and the door opening rules to achieve precise control of the door.
It realizes the safe management of high-level biosafety laboratories, ensures the safety of personnel and environment, prevents the leakage of biosafety factors, and effectively controls air cross-mixing.
Smart Images

Figure CN120634816A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of biosafety laboratories and blockchain technology, and in particular to a blockchain-based biosafety laboratory personnel entry and exit management method and system. Background Art
[0002] High-level biosafety laboratories primarily consist of contaminated areas, buffer zones, and clean areas. To ensure the safety of personnel entering and exiting high-level biosafety laboratories, effective access management is essential. The inventors of this invention previously applied for a patent application number and titled "A High-Level Biosafety Laboratory Control System." This invention further optimizes this patent by utilizing blockchain technology to prevent tampering with personnel access data and achieve optimized access management.
[0003] There is currently a patent application numbered 202210935110.1, entitled "A Laboratory Management Method and System Based on Blockchain." Although this patent mentions blockchain-based user access management technology, the blockchain is used to store various compliance identities. When managing and authenticating the user's access rights, the entered identity data is matched with the compliance identity information on the blockchain. If a match is made, the user can enter the laboratory, otherwise they cannot. This technology does not use blockchain to determine whether a user is allowed to enter the laboratory. The blockchain only serves to put the compliance identity on the chain, and the entire process of biosafety laboratory personnel entry and exit management of the present invention requires the participation of the blockchain. This existing patent is aimed at general laboratories and is not suitable for high-level and complex biological laboratories. Summary of the Invention
[0004] In response to the problems and shortcomings of the existing technology, the present invention provides a blockchain-based biosafety laboratory personnel entry and exit management method and system.
[0005] The present invention solves the above technical problems through the following technical solutions:
[0006] The present invention provides a method for managing the entry and exit of biosafety laboratory personnel based on blockchain. A high-level biosafety laboratory has multiple zones, which are characterized by:
[0007] S1. Pre-construct a circular blockchain consisting of M temporary storage blocks and a storage blockchain consisting of N storage blocks. The circular blockchain includes two smart contracts. The first smart contract includes temporarily storing one input and one output instruction for the same zone with the same timestamp in the same temporary storage block, and temporarily storing multiple instructions for different zones in different temporary storage blocks in sequence according to instruction priority. The second smart contract includes the door opening rules corresponding to each input / output instruction.
[0008] S2. Receive the instruction, and temporarily store the instruction and its timestamp, along with the door opening rule for the instruction obtained based on the second smart contract, in a corresponding temporary storage block according to the first smart contract. Collect relevant information corresponding to the instruction and temporarily store it in the temporary storage block for the instruction.
[0009] Continuously loop through the loop blockchain to determine whether there is an instruction in the current temporary block. If so, determine whether the collected relevant information meets the corresponding door opening rules. If so, control the door corresponding to the instruction to open and control the remaining doors to close. Move all data in the current temporary block to the first blank storage block in the storage blockchain in sequence. Determine the next temporary block and the current temporary block becomes a blank temporary block. Otherwise, remind the reason why the door is not opened. Move all data in the current temporary block to the first blank storage block in sequence in the storage blockchain. Determine the next temporary block and the current temporary block becomes a blank temporary block. If there is no instruction in the current temporary block, determine the next temporary block.
[0010] The present invention also provides a biosafety laboratory personnel entry and exit management system based on blockchain, wherein a high-level biosafety laboratory has multiple zones, and is characterized in that the system includes a control center;
[0011] The control center is used to pre-build a circular blockchain consisting of M temporary storage blocks and a storage blockchain consisting of N storage blocks. The circular blockchain includes two smart contracts. The first smart contract includes a command with the same timestamp for the same zone, one entry and one exit command, which are temporarily stored in the same temporary storage block. Multiple commands for different zones are temporarily stored in different temporary storage blocks in sequence according to the command priority. Commands with different timestamps are temporarily stored in different temporary storage blocks in sequence according to the time sequence of the command timestamps. The second smart contract includes the door opening rules corresponding to each entry / exit command.
[0012] The control center is further configured to receive an instruction, temporarily store the instruction and its timestamp, and the door opening rule for the instruction obtained based on the second smart contract, in a corresponding temporary storage block according to the first smart contract, and collect relevant information corresponding to the instruction and temporarily store it in the temporary storage block of the instruction;
[0013] The control center is also used to continuously loop through the loop blockchain to determine whether there is an instruction in the current temporary storage block. If so, it determines whether the collected relevant information meets the corresponding door opening rules. If so, it controls the door corresponding to the instruction to open and controls the remaining doors to close. All data in the current temporary storage block is transferred to the first blank storage block in the storage blockchain in sequence. The next temporary storage block is determined, and the current temporary block becomes a blank temporary block. Otherwise, the reason why the door is not opened is reminded. All data in the current temporary block is transferred to the first blank storage block in sequence in the storage blockchain. The next temporary block is determined, and the current temporary block becomes a blank temporary block. If there is no instruction in the current temporary block, the next temporary block is determined.
[0014] The positive progress effect of the present invention is:
[0015] The present invention constructs a temporary circular blockchain for analyzing instructions and related information, and a storage blockchain for storing the final analysis results. Two smart contracts are constructed in the circular blockchain. The first smart contract is used to specify the temporary storage location of each instruction, and the second smart contract is used to specify the door opening rules corresponding to each entry / exit instruction. Based on these two smart contracts, it can be analyzed whether the corresponding door is opened for each instruction in the temporary storage block in the circular blockchain.
[0016] The present invention takes into account a relatively comprehensive range of influencing factors (body temperature, pressure, and protective measures for putting on and taking off), and can safely control the entry of those to be entered into the clean area, buffer area, and contaminated area; can safely control the exit of those to be exited from the contaminated area, buffer area, and clean area; and can effectively prevent the cross-mixing of air in each area, thereby ensuring the life safety of personnel entering and exiting the biosafety laboratory, the environmental safety of the biosafety laboratory, and preventing the leakage of harmful biological factors in biosafety experiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a schematic structural diagram of a high-level biosafety laboratory according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0019] For ease of description, only the parts related to the present invention are shown in the accompanying drawings. The first, second, etc. involved in the present invention are only for the convenience of describing the technical solution of the present invention, and do not have a specific limiting effect. They are all general references and do not constitute a limitation on the technical solution of the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The terms "inside", "outside", etc. that indicate positional relationships are based on the positional relationships represented by the displayed drawings, and do not mean that the referred components must be presented in the stated positional relationships, and do not constitute a limitation on the technical solution of the present invention.
[0020] like Figure 1 As shown, the high-level biosafety laboratory is divided into clean area, buffer area and contaminated area in sequence. The clean area is equipped with doors for personnel to enter and exit. The entrance and exit of the clean area correspond to A1 进 Instructions and A1 出 Instructions: The buffer zone is equipped with doors for personnel to enter and exit. The entry and exit of the buffer zone correspond to A2 进 Instructions and A2 出 Instructions: There are doors in the contaminated area for personnel to enter and exit. The entry and exit of the contaminated area correspond to A3 进 Instructions and A3 出 instruction.
[0021] Example 1
[0022] The embodiment of the present invention provides a method for managing the entry and exit of biosafety laboratory personnel based on blockchain, comprising the following steps:
[0023] The first step is to pre-build a circular blockchain (consisting of M temporary blocks) and a storage blockchain (consisting of N storage blocks). The circular blockchain includes two smart contracts. The first smart contract includes one entry and one exit instruction with the same timestamp for the same zone, which are sequentially stored in the same temporary block. Multiple instructions with the same timestamp for different zones are sequentially stored in different temporary blocks according to the instruction priority. Instructions with different timestamps are sequentially stored in different temporary blocks according to the time sequence of the instruction timestamps. The second smart contract includes the door opening rules corresponding to each entry / exit instruction. Among them, the instruction priority is A3 出 Command > A2 出 Command > A1 出 Command > A3 进 Command > A2 进 Command > A1 进 Instruction, M and N are both positive integers, and M<N.
[0024] In this step, at the same time, the one-in and one-out instructions for the same area are temporarily stored in the same temporary block, such as when A1 is received at the same time. 进 Instructions and A1 出 Instruction, then A1进 Instruction and A1 出 The instruction is temporarily stored in the same temporary storage block, and A2 is received at the same time 进 Instruction and A2 出 Instruction, then A2 进 Instruction and A2 出 The instruction is temporarily stored in the same temporary storage block, and A3 is received at the same time 进 Instruction and A3 出 Instruction, then A2 进 Instruction and A2 出 The instruction is temporarily stored in the same temporary storage block.
[0025] In this step, at the same time, multiple instructions for different areas are sequentially temporarily stored in different temporary storage blocks according to the instruction priority. For example, if A1 进 Instruction and A2 出 Instruction are received, then A2 出 Instruction is temporarily stored in a temporary storage block first, and then A1 进 Instruction is temporarily stored in the subsequent temporary storage block.
[0026] In this step, for instructions received at different times, they are sequentially temporarily stored in different temporary storage blocks according to the time sequence of the instruction timestamps.
[0027] In this step, in the second smart contract, A1 进 The door opening rule corresponding to the instruction is: the body temperature of the person to enter is within the preset body temperature range, the identity of the person to enter is within the preset authorization range, and P 洁 <P 外 .
[0028] A2 进 The door opening rule corresponding to the instruction is: P 缓 <P 洁 .
[0029] A3 进 The door opening rule corresponding to the instruction is: the person to enter wears protective measures matching a high-level biosafety laboratory, and P 污 <P 缓 .
[0030] A1 出 The door opening rule corresponding to the instruction is: the body temperature of the person to leave is within the preset body temperature range, and P 洁 <P 外 .
[0031] A2 出 The door opening rule corresponding to the instruction is: the person to leave has completely removed the protective measures, and P 缓 <P clean.
[0032] A3出 The door opening rule corresponding to the instruction is: P 污 <P 缓 .
[0033] Step 2: Receive the instruction, and temporarily store the instruction and its timestamp together with the door opening rule of the instruction obtained based on the second smart contract in the corresponding temporary storage block according to the first smart contract, and collect relevant information corresponding to the instruction and temporarily store it in the temporary storage block of the instruction; the relevant information corresponding to the instruction includes pressure-related information corresponding to the instruction and / or information related to the person waiting to enter / exit corresponding to the instruction.
[0034] Continuously loop through the blockchain to determine whether there is an instruction in the current temporary block. If so, determine whether the collected relevant information meets the corresponding door opening rules. If so, control the door corresponding to the instruction to open and control the remaining doors to close. Move all data in the current temporary block to the first blank storage block in the storage blockchain in order, determine the next temporary block, and change the current temporary block to a blank temporary block. When only the pressure-related information does not meet the corresponding door opening rules, remind the people waiting to enter / exit to wait, adjust the pressure of the relevant area so that the pressure-related information meets the corresponding door opening rules, and control the instruction to The corresponding door is opened and the other doors are controlled to be closed at the same time. All data in the current temporary block are transferred to the first blank storage block in the storage blockchain in order. The next temporary block is determined and the current temporary block becomes a blank temporary block. When there is relevant information about the person to be entered / exited and the relevant information about the person to be entered / exited does not meet the corresponding door opening rules, the reason why the door is not opened is reminded. All data in the current temporary block are transferred to the first blank storage block in order in the storage blockchain. The next temporary block is determined and the current temporary block becomes a blank temporary block. If there is no instruction in the current temporary block, the next temporary block is determined.
[0035] A further optimized technical solution is to determine whether there is an instruction in the current temporary storage block. If so, when there is only one instruction, determine whether the collected information related to the instruction meets the corresponding door opening rules. If so, control the door corresponding to the instruction to open and control the remaining doors to close. Move all data in the current temporary storage block to the first blank storage block in the order of the storage blockchain, determine the next temporary storage block, and change the current temporary storage block to a blank temporary storage block. When only the pressure-related information in the instruction-related information does not meet the corresponding door opening rules, remind the people waiting to enter / exit to wait, adjust the pressure in the relevant area so that the pressure-related information meets the corresponding door opening rules, control the door corresponding to the instruction to open and control the remaining doors to close. Move the data to the first blank storage block in the storage blockchain in order, determine the next temporary block, and change the current temporary block to a blank temporary block; when there is information about the person to be entered and the information about the person to be entered does not meet the corresponding door opening rules, remind the reason why the door is not opened, and move all the data in the current temporary block to the first blank storage block in order in the storage blockchain, determine the next temporary block, and change the current temporary block to a blank temporary block; when there is information about the person to be exited and only the information about the person to be exited does not meet the corresponding door opening rules, remind the reason why the door is not opened, and move all the data in the current temporary block to the first blank storage block in order in the storage blockchain, determine the next temporary block, and change the current temporary block to a blank temporary block.
[0036] For example: when the instruction is one, specifically A1 进 When the instruction is given, it is determined whether the temperature of the person to be entered is within the preset temperature range, the identity of the person to be entered is within the preset authorization range, and P 洁 <P 外 If so, control A1 进 The door corresponding to the instruction (the airtight electronic lock on the door of the clean area) is opened, and the other doors are controlled to close at the same time. All data in the current temporary block are transferred to the first blank storage block in the order of the storage blockchain. The next temporary block is determined, and the current temporary block becomes a blank temporary block. When only the pressure-related information is not satisfied, the personnel waiting to enter are reminded to wait, and the pressure of the clean area is adjusted so that P 洁 <P 外 , control A1 进 The door corresponding to the instruction opens and the remaining doors are controlled to close at the same time. All data in the current temporary storage block is transferred to the first blank storage block in the storage blockchain in order. The next temporary storage block is determined and the current temporary storage block becomes a blank temporary storage block. When the temperature and / or identity of the person waiting to enter does not meet the requirements, the reason why the door is not opened is reminded. All data in the current temporary storage block is transferred to the first blank storage block in order in the storage blockchain. The next temporary storage block is determined and the current temporary block becomes a blank temporary block.
[0037] In the instruction is one, specifically A2 进 When the instruction is given, determine whether P 缓 <P 洁 If so, control A2 进 The door corresponding to the instruction (the airtight electronic lock on the door of the buffer zone) is opened, and the other doors are controlled to close at the same time. All data in the current temporary storage block is transferred to the first blank storage block in the order of the storage blockchain. The next temporary storage block is determined, and the current temporary storage block becomes a blank temporary storage block. When the pressure-related information is not satisfied, the waiting personnel are reminded to wait, and the pressure of the buffer zone and the clean zone is adjusted so that P 缓 <P 洁 , control A2 进 The door corresponding to the instruction opens and controls the closing of the other doors at the same time. When the person enters, all the data in the current temporary storage block is moved to the first blank storage block in the storage blockchain in order. The next temporary storage block is determined and the current temporary storage block becomes a blank temporary storage block.
[0038] In the instruction is one, specifically A3 进 When giving instructions, judge whether the personnel to be entered are wearing protective measures that match those of a high-level biosafety laboratory, and whether P 污 <P 缓 If so, control A3 进 The door corresponding to the instruction (the airtight electronic lock on the door of the contaminated area) is opened, and the other doors are controlled to close at the same time. All data in the current temporary block are transferred to the first blank storage block in the storage blockchain in order. The next temporary block is determined, and the current temporary block becomes a blank temporary block. When only the pressure-related information is not satisfied, the personnel waiting to enter are reminded to wait, and the pressure of the contaminated area and the buffer zone is adjusted so that P 污 <P 缓 , control A3 进 The door corresponding to the instruction opens and the remaining doors are controlled to close at the same time. All data in the current temporary storage block is transferred to the first blank storage block in the storage blockchain in order. The next temporary storage block is determined and the current temporary storage block becomes a blank temporary storage block. When the protective measures worn by the personnel waiting to enter are not met, the reason why the door is not opened is reminded. All data in the current temporary storage block is transferred to the first blank storage block in order in the storage blockchain. The next temporary storage block is determined and the current temporary block becomes a blank temporary block.
[0039] The instruction is one, specifically A1 出 When the instruction is given, it is determined whether the temperature of the person to be discharged is within the preset temperature range, and P 洁 <P 外 If so, control A1 出The door corresponding to the instruction (the airtight electronic lock on the door of the clean area) is opened, and the other doors are controlled to close at the same time. All data in the current temporary storage block is transferred to the first blank storage block in the order of the storage blockchain. The next temporary storage block is determined, and the current temporary storage block becomes a blank temporary storage block. When only the pressure-related information is not satisfied, the personnel waiting to leave are reminded to wait, and the pressure of the clean area is adjusted so that P 洁 <P 外 , control A1 出 The door corresponding to the instruction opens and the remaining doors are controlled to close at the same time. All data in the current temporary storage block is transferred to the first blank storage block in the storage blockchain in order. The next temporary storage block is determined and the current temporary storage block becomes a blank temporary storage block. When the body temperature of the person to be exited does not meet the requirements, the reason why the door is not opened is reminded. All data in the current temporary storage block is transferred to the first blank storage block in order in the storage blockchain. The next temporary storage block is determined and the current temporary block becomes a blank temporary block.
[0040] In the instruction is one, specifically A2 出 When giving the instruction, judge whether the personnel waiting to leave have completely taken off the protective measures and P 缓 <P 洁 If so, control A2 出 The door corresponding to the instruction (the airtight electronic lock on the door of the buffer zone) is opened, and the other doors are controlled to close at the same time. All data in the current temporary storage block is transferred to the first blank storage block in the order of the storage blockchain. The next temporary storage block is determined, and the current temporary storage block becomes a blank temporary storage block. When only the pressure-related information is not satisfied, the waiting personnel are reminded to wait, and the pressure of the buffer zone and the clean zone is adjusted so that P 缓 <P 洁 , control A2 出 The door corresponding to the instruction opens and the remaining doors are controlled to close at the same time. All data in the current temporary storage block is transferred to the first blank storage block in the storage blockchain in sequence. The next temporary storage block is determined and the current temporary storage block becomes a blank temporary storage block. When the protection measures for the personnel to be removed are not met, the reason why the door is not opened is reminded. All data in the current temporary storage block is transferred to the first blank storage block in sequence in the storage blockchain. The next temporary storage block is determined and the current temporary block becomes a blank temporary block.
[0041] In the instruction is one, specifically A3 出 When the instruction is given, determine whether P 污 <P 缓 If so, control A3 出The door corresponding to the instruction (the airtight electronic lock on the door of the contaminated area) is opened, and the other doors are controlled to close at the same time. All data in the current temporary block are transferred to the first blank storage block in the order of the storage blockchain. The next temporary block is determined, and the current temporary block becomes a blank temporary block. When the pressure-related information is not satisfied, the personnel waiting to leave are reminded to wait, and the pressure of the contaminated area and the buffer zone is adjusted so that P 污 <P 缓 , control A3 出 The door corresponding to the instruction opens and controls the closing of the other doors at the same time. All data in the current temporary block is moved to the first blank storage block in the storage blockchain in order. The next temporary block is determined and the current temporary block becomes a blank temporary block.
[0042] Determine whether there is an instruction in the current temporary storage block. If so, when there are two instructions (one in and one out), determine whether the collected relevant information all meet the corresponding door opening rules. If so, control the door corresponding to the instruction to open and control the remaining doors to close at the same time, and move all data in the current temporary storage block to the first blank storage block in the storage blockchain in order. Determine the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block. When only the pressure-related information does not meet the corresponding door opening rules, remind the waiting in / out personnel to wait, adjust the pressure of the relevant area so that the pressure-related information meets the corresponding door opening rules, control the door corresponding to the instruction to open, and control the remaining doors to close at the same time. Move all data in the current temporary storage block to the first blank storage block in the storage blockchain in order. Determine the next temporary storage block, and the current temporary block becomes a blank temporary block. When only the information about the waiting in personnel and the information about the waiting in personnel does not meet the corresponding door opening rules, or when there is information about both the waiting in personnel and the waiting out personnel and only the information about the waiting in personnel does not meet the corresponding door opening rules, control the door corresponding to the instruction to open and control the remaining doors to close at the same time. When the person waiting to leave is awakened and the person waiting to enter cannot enter and is far away from the door position, all data in the current temporary block is moved to the first blank storage block in the order of the storage blockchain, and the next temporary block is determined, and the current temporary block becomes a blank temporary block; when there is only relevant information about the person waiting to leave and the relevant information about the person waiting to leave does not meet the corresponding door opening rules, or when there is relevant information about the person waiting to enter and the person waiting to leave and only the relevant information about the person waiting to leave does not meet the corresponding door opening rules, the door corresponding to the instruction is controlled to open and the other doors are controlled to close at the same time to remind the person waiting to enter However, if the person waiting to leave cannot exit and is far away from the door, all data in the current temporary storage block will be moved to the first blank storage block in the storage blockchain in order, and the next temporary storage block will be determined, and the current temporary storage block will become a blank temporary storage block; when there is information about people waiting to enter and people waiting to leave at the same time and the information about people waiting to leave and people waiting to enter does not meet the corresponding door opening rules, the reason why the door is not opened will be reminded, and all data in the current temporary storage block will be moved to the first blank storage block in order in the storage blockchain, and the next temporary storage block will be determined, and the current temporary block will become a blank temporary block.
[0043] For example: In the instruction A1 进 Instructions and A1 出 When the instruction is given, it is determined whether the body temperature of the person waiting to enter and the person waiting to exit are within the preset body temperature range, the identity of the person waiting to enter is within the preset authorization range, and P 洁 <P 外If yes, then control the door corresponding to the instruction to open and control the other doors to close at the same time, move all the data in the current temporary block to the first blank storage block in the order of the storage blockchain, judge the next temporary block, and the current temporary block becomes a blank temporary block; when only the pressure-related information is not satisfied, remind the people waiting to enter and the people waiting to leave to wait, and adjust the pressure of the cleaning area so that P 洁 <P 外 , control A1 进 Instruction or A1 出 The door corresponding to the instruction opens and controls the closing of the other doors at the same time. All data in the current temporary block is transferred to the first blank storage block in the order of the storage blockchain. The next temporary block is determined and the current temporary block becomes a blank temporary block. If only the temperature and / or identity of the person waiting to enter are not satisfied, control A1. 出 The door corresponding to the instruction opens and controls the closing of the other doors at the same time, reminding the people waiting to leave to exit but the people waiting to enter cannot enter and stay away from the door position, and all the data in the current temporary block is moved to the first blank storage block in the storage blockchain in order, and the next temporary block is determined, and the current temporary block becomes a blank temporary block; when only the body temperature of the people waiting to leave is not satisfied, control A1 进 The door corresponding to the instruction opens and the other doors are controlled to close at the same time, reminding the people waiting to enter to enter but the people waiting to leave cannot exit and must stay away from the door position, and all data in the current temporary storage block is moved to the first blank storage block in the storage blockchain in sequence, and the next temporary storage block is determined, and the current temporary storage block becomes a blank temporary storage block; when the relevant information of the people waiting to leave and the people waiting to enter does not meet the corresponding door opening rules, the reason for not opening the door is reminded, and all data in the current temporary storage block is moved to the first blank storage block in sequence in the storage blockchain, and the next temporary storage block is determined, and the current temporary block becomes a blank temporary block.
[0044] In the instruction A2 进 Instructions and A2 出 When giving the instruction, judge whether the personnel waiting to leave have completely taken off the protective measures and P 缓 <P 洁 If yes, then control the door corresponding to the instruction to open and control the other doors to close at the same time, move all the data in the current temporary block to the first blank storage block in the order of the storage blockchain, judge the next temporary block, and the current temporary block becomes a blank temporary block; when only the pressure-related information is not satisfied, remind the people waiting to enter and the people waiting to leave to wait, adjust the pressure of the buffer zone and the clean zone so that P 缓 <P 洁 , control A2 进 Instructions or A2 出The door corresponding to the instruction opens and controls the closing of the other doors at the same time. All data in the current temporary storage block is transferred to the first blank storage block in the order of the storage blockchain. The next temporary storage block is determined and the current temporary storage block becomes a blank temporary storage block. When the protection measures for the personnel to be removed are not met, control A2 进 The door corresponding to the instruction opens and the other doors are controlled to close at the same time, reminding people waiting to enter to enter but people waiting to exit cannot exit and must stay away from the door position. All data in the current temporary block is moved to the first blank storage block in the storage blockchain in order. The next temporary block is determined and the current temporary block becomes a blank temporary block.
[0045] In the instruction A3 进 Instructions and A3 出 When giving instructions, judge whether the personnel to be entered are wearing protective measures that match those of a high-level biosafety laboratory, and whether P 污 <P 缓 If yes, then control the door corresponding to the instruction to open and control the other doors to close at the same time, move all the data in the current temporary block to the first blank storage block in the order of the storage blockchain, judge the next temporary block, and the current temporary block becomes a blank temporary block; when only the pressure-related information is not satisfied, remind the people waiting to enter and the people waiting to leave to wait, adjust the pressure of the contaminated area and the buffer zone so that P 污 <P 缓 , control A3 进 Instructions or A3 出 The door corresponding to the instruction opens and controls the closing of the other doors at the same time. All data in the current temporary block is transferred to the first blank storage block in the storage blockchain in order. The next temporary block is determined and the current temporary block becomes a blank temporary block. If the protective measures of the personnel waiting to enter are not met, control A3 出 The door corresponding to the instruction opens and the other doors are closed at the same time, reminding people waiting to leave to exit but people waiting to enter cannot enter and must stay away from the door. All data in the current temporary block is moved to the first blank storage block in the storage blockchain in order. The next temporary block is determined and the current temporary block becomes a blank temporary block.
[0046] An embodiment of the present invention also provides a blockchain-based biosafety laboratory personnel entry and exit management system. The high-level biosafety laboratory has multiple areas, and the system includes a control center.
[0047] The control center is used to pre-build a circular blockchain consisting of M temporary storage blocks and a storage blockchain consisting of N storage blocks. The circular blockchain includes two smart contracts. The first smart contract includes one input and one output instruction with the same timestamp for the same zone temporarily stored in the same temporary storage block, and multiple instructions for different zones are temporarily stored in different temporary storage blocks in sequence according to the instruction priority. Instructions with different timestamps are temporarily stored in different temporary storage blocks in sequence according to the time sequence of the instruction timestamps. The second smart contract includes the door opening rules corresponding to each input / output instruction.
[0048] The control center is also used to receive instructions, and temporarily store the instruction and its timestamp together with the door opening rules of the instruction obtained based on the second smart contract in the corresponding temporary storage block according to the first smart contract, and collect relevant information corresponding to the instruction and temporarily store it in the temporary storage block of the instruction.
[0049] The control center is also used to continuously loop through the loop blockchain to determine whether there is an instruction in the current temporary storage block. If so, it determines whether the collected relevant information meets the corresponding door opening rules. If so, it controls the door corresponding to the instruction to open and controls the remaining doors to close. All data in the current temporary storage block is transferred to the first blank storage block in the storage blockchain in sequence. The next temporary storage block is determined, and the current temporary block becomes a blank temporary block. Otherwise, the reason why the door is not opened is reminded. All data in the current temporary block is transferred to the first blank storage block in sequence in the storage blockchain. The next temporary block is determined, and the current temporary block becomes a blank temporary block. If there is no instruction in the current temporary block, the next temporary block is determined.
[0050] An embodiment of the present invention further provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0051] An embodiment of the present invention further provides a computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions implement the aforementioned method when executed by a processor.
[0052] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.
[0053] Example 2
[0054] The embodiment of the present invention optimizes the first smart contract based on embodiment 1. In the first smart contract, instructions with different timestamps are temporarily stored in different temporary blocks in sequence according to the time sequence of the instruction timestamps. If the same instruction for the same area is received before and after and the door opening or door reminder reason operation for the previous instruction has not been implemented, the latter instruction will be placed in the same temporary block as the previous instruction. If one-in-one-out instruction or one-out-one-in instruction for the same area is received before and after and the door opening or door reminder reason operation for the previous instruction has not been implemented, the latter instruction will be placed in the same temporary block as the previous instruction.
[0055] For example, if the same person waiting to enter or exit issues the same command multiple times before the door is opened or before the reason why the door is not opened is reminded, the multiple identical commands can be regarded as one command and stored in the same temporary storage block.
[0056] A1 is issued to those waiting to enter 进 Instructions, followed by the personnel waiting to go out to issue A1 出 Instruction, that is, the person waiting to leave sends A1 to the person waiting to enter 进 A1 is issued before the door opening instruction or the door not opening reason operation is executed 出 Instruction, you can set this A1 进 Instructions and A1 出 The instructions are treated as one in and one out at the same time and stored in the same temporary buffer block.
[0057] Although specific embodiments of the present invention have been described above, those skilled in the art will appreciate that these are merely illustrative and that the scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, and such changes and modifications are intended to fall within the scope of the present invention.
Claims
1. A blockchain-based method for managing the entry and exit of biosafety laboratory personnel. A high-level biosafety laboratory has multiple zones, characterized by: S1. Pre-construct a circular blockchain consisting of M temporary storage blocks and a storage blockchain consisting of N storage blocks. The circular blockchain includes two smart contracts. The first smart contract includes temporarily storing one input and one output instruction for the same zone with the same timestamp in the same temporary storage block, and temporarily storing multiple instructions for different zones in different temporary storage blocks in sequence according to instruction priority. The second smart contract includes the door opening rules corresponding to each input / output instruction. S2. Receive the instruction, and temporarily store the instruction and its timestamp, along with the door opening rule for the instruction obtained based on the second smart contract, in a corresponding temporary storage block according to the first smart contract. Collect relevant information corresponding to the instruction and temporarily store it in the temporary storage block for the instruction. Continuously loop through the loop blockchain to determine whether there is an instruction in the current temporary block. If so, determine whether the collected relevant information meets the corresponding door opening rules. If so, control the door corresponding to the instruction to open and control the remaining doors to close. Move all data in the current temporary block to the first blank storage block in the storage blockchain in sequence. Determine the next temporary block and the current temporary block becomes a blank temporary block. Otherwise, remind the reason why the door is not opened. Move all data in the current temporary block to the first blank storage block in sequence in the storage blockchain. Determine the next temporary block and the current temporary block becomes a blank temporary block. If there is no instruction in the current temporary block, determine the next temporary block.
2. The biosafety laboratory personnel entry and exit management method based on blockchain as claimed in claim 1, characterized in that, in S2, the relevant information corresponding to the instruction includes the environment-related information corresponding to the instruction and / or the information related to the personnel to be entered / exited; Determine whether there is an instruction in the current temporary storage block. If so, determine whether the collected relevant information meets the corresponding door opening rules. If so, control the door corresponding to the instruction to open and control the remaining doors to close. Move all data in the current temporary storage block to the first blank storage block in the storage blockchain in order. Determine the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block. When only the environment-related information does not meet the corresponding door opening rules, remind the person waiting to enter / exit to wait, adjust the relevant area environment so that the environment-related information meets the corresponding door opening rules, control the door corresponding to the instruction to open and control the remaining doors to close. Move all data in the current temporary storage block to the first blank storage block in the storage blockchain in order. Determine the next temporary storage block, and the current temporary block becomes a blank temporary block. When there is relevant information about the person waiting to enter / exit and the relevant information about the person waiting to enter / exit does not meet the corresponding door opening rules, remind the person why the door is not opened. Move all data in the current temporary storage block to the first blank storage block in the storage blockchain in order. Determine the next temporary storage block, and the current temporary block becomes a blank temporary block.
3. The biosafety laboratory personnel entry and exit management method based on blockchain as claimed in claim 2 is characterized in that it is judged whether there is an instruction in the current temporary storage block. If so, when the instruction is one, it is judged whether the collected relevant information all meets the corresponding door opening rules. If so, the door corresponding to the instruction is controlled to open and the remaining doors are controlled to close at the same time. All data in the current temporary storage block is transferred to the first blank storage block in the order of the storage blockchain, the next temporary storage block is judged, and the current temporary storage block becomes a blank temporary storage block; when only the environmental related information does not meet the corresponding door opening rules, the personnel to be entered / exited are reminded to wait, and the relevant areas are adjusted. The environment makes the environment-related information meet the corresponding door opening rules, controls the door corresponding to the instruction to open, and controls the remaining doors to close at the same time, moves all data in the current temporary storage block to the first blank storage block in the storage blockchain in sequence, determines the next temporary storage block, and changes the current temporary storage block to a blank temporary storage block; when there is information about the person to be entered / exited and the information about the person to be entered / exited does not meet the corresponding door opening rules, reminds the reason why the door is not opened, moves all data in the current temporary storage block to the first blank storage block in sequence in the storage blockchain, determines the next temporary storage block, and changes the current temporary block to a blank temporary block.
4. The biosafety laboratory personnel entry and exit management method based on blockchain as claimed in claim 2 is characterized in that it is judged whether there is an instruction in the current temporary storage block. If so, when there are two instructions, namely one in and one out, it is judged whether the collected relevant information meets the corresponding door opening rules. If so, the door corresponding to the instruction is controlled to open and the remaining doors are controlled to close at the same time. All data in the current temporary storage block is transferred to the first blank storage block in the order of the storage blockchain, the next temporary storage block is judged, and the current temporary storage block becomes a blank temporary storage block; when only the environmental related information does not meet the corresponding door opening rules, a temporary storage block is generated. Wake up the waiting personnel to enter / exit, adjust the environment of the relevant area so that the relevant information of the environment meets the corresponding door opening rules, control the door corresponding to the instruction to open, and control the closing of the other doors at the same time, move all the data in the current temporary block to the first blank storage block in the storage blockchain in order, judge the next temporary block, and change the current temporary block to a blank temporary block; when there is only relevant information about the waiting personnel to enter and the relevant information about the waiting personnel to enter does not meet the corresponding door opening rules, or, when there is relevant information about the waiting personnel to enter and the waiting personnel to exit at the same time and only the relevant information about the waiting personnel to enter does not meet the corresponding door opening rules, control the instruction The corresponding door opens and the other doors are controlled to close at the same time, reminding the people waiting to leave to exit but the people waiting to enter cannot enter and stay away from the door position, and all the data in the current temporary storage block is moved to the first blank storage block in the storage blockchain in order, and the next temporary storage block is determined, and the current temporary storage block becomes a blank temporary storage block; when there is only relevant information about the people waiting to leave and the relevant information about the people waiting to leave does not meet the corresponding door opening rules, or, when there is relevant information about the people waiting to enter and the people waiting to leave and only the relevant information about the people waiting to leave does not meet the corresponding door opening rules, the door corresponding to the instruction is controlled to open and the other doors are controlled to close at the same time. , remind the people waiting to enter to enter but the people waiting to exit cannot exit and stay away from the door position, move all the data in the current temporary storage block to the first blank storage block in the storage blockchain in sequence, judge the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block; when there is relevant information of people waiting to enter and people waiting to exit at the same time and the relevant information of people waiting to exit and people waiting to enter do not meet the corresponding door opening rules, remind the reason why the door is not opened, move all the data in the current temporary storage block to the first blank storage block in sequence in the storage blockchain, judge the next temporary storage block, and the current temporary block becomes a blank temporary block.
5. The method for managing the entry and exit of biosafety laboratory personnel based on blockchain as claimed in claim 1 is characterized in that the high-level biosafety laboratory is divided into a clean area, a buffer area and a contaminated area in sequence, and the clean area corresponds to A1 进 Instructions and A1 出 Instruction, buffer corresponds to A2 进 Instructions and A2 出 Instructions, contaminated area corresponds to A3 进 Instructions and A3 出 Instruction, instruction priority is A3 出 Command > A2 出 Command > A1 出 Command > A3 进 Command > A2 进 Command > A1 进 instruction.
6. The biosafety laboratory personnel entry and exit management method based on blockchain as claimed in claim 5 is characterized in that, in the second smart contract, A1 进 The door opening rules corresponding to the instruction are: the body temperature of the person to be entered is within the preset body temperature range, the identity of the person to be entered is within the preset authorization range, and P 洁 <P 外 ; A2 进 The door opening rule corresponding to the instruction is: P 缓 <P 洁 ; A3 进 The door opening rules corresponding to the instructions are: the personnel to be entered wear protective measures that match those of a high-level biosafety laboratory, and P 污 <P 缓 ; A1 出 The door opening rule corresponding to the instruction is: the body temperature of the person to be released is within the preset temperature range, and P 洁 <P 外 ; A2 出 The door opening rule corresponding to the instruction is: the personnel to be exited have completely removed the protective measures and P 缓 <P clean; A3 出 The door opening rule corresponding to the instruction is: P 污 <P 缓 .
7. The biosafety laboratory personnel entry and exit management method based on blockchain as claimed in claim 1 is characterized in that, in the first smart contract, different timestamps are temporarily stored in different temporary storage blocks in sequence according to the timing of the instruction timestamp, wherein the same instruction for the same district is received before and after and the door is not opened or the door is reminded that the reason operation is not opened for the previous instruction, then the latter instruction is placed in the same temporary storage block as the previous instruction, and the one-in-one-out instruction or one-out-one-in instruction for the same district is received before and after and the door is not opened or the door is reminded that the reason operation is not opened for the previous instruction, then the latter instruction is placed in the same temporary storage block as the previous instruction.
8. A blockchain-based biosafety laboratory personnel entry and exit management system, wherein a high-level biosafety laboratory has multiple zones, and the system includes a control center; The control center is used to pre-build a circular blockchain consisting of M temporary storage blocks and a storage blockchain consisting of N storage blocks. The circular blockchain includes two smart contracts. The first smart contract includes a command with the same timestamp for the same zone, one entry and one exit command, which are temporarily stored in the same temporary storage block. Multiple commands for different zones are temporarily stored in different temporary storage blocks in sequence according to the command priority. Commands with different timestamps are temporarily stored in different temporary storage blocks in sequence according to the time sequence of the command timestamps. The second smart contract includes the door opening rules corresponding to each entry / exit command. The control center is further configured to receive an instruction, temporarily store the instruction and its timestamp, and the door opening rule for the instruction obtained based on the second smart contract, in a corresponding temporary storage block according to the first smart contract, and collect relevant information corresponding to the instruction and temporarily store it in the temporary storage block of the instruction; The control center is also used to continuously loop through the loop blockchain to determine whether there is an instruction in the current temporary storage block. If so, it determines whether the collected relevant information meets the corresponding door opening rules. If so, it controls the door corresponding to the instruction to open and controls the remaining doors to close. All data in the current temporary storage block is transferred to the first blank storage block in the storage blockchain in sequence. The next temporary storage block is determined, and the current temporary block becomes a blank temporary block. Otherwise, the reason why the door is not opened is reminded. All data in the current temporary block is transferred to the first blank storage block in sequence in the storage blockchain. The next temporary block is determined, and the current temporary block becomes a blank temporary block. If there is no instruction in the current temporary block, the next temporary block is determined.
9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call instructions stored in the memory to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Laboratory management method and system based on block chain
CN115471930A
Personnel information verification method and system based on block chain
CN111540111A
Laboratory operation management method and system based on block chain
CN114118981A