Blockchain-based biosafety laboratory personnel access management method and system

By constructing a circular and storage blockchain and combining it with smart contracts to manage personnel access to high-level biosafety laboratories, the problem of insufficient security in existing technologies has been solved, achieving secure access management and air isolation.

CN120634816BActive Publication Date: 2025-12-09CHINESE PEOPLES LIBERATION ARMY NAVAL SPECIALTY MEDICAL CENT
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510667962.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2025-12-09
Estimated Expiration
2045-05-23

AI Technical Summary

Technical Problem

Existing technologies are ineffective in managing personnel access to high-level biosafety laboratories, especially in complex biosafety laboratories. Blockchain is only used for identity compliance authentication and has not been fully involved in access management, resulting in insufficient security and inadequate prevention of cross-contamination of air.

Method used

A circular blockchain and a storage blockchain are constructed. The circular blockchain contains two smart contracts for temporarily storing and analyzing personnel entry and exit instructions, while the storage blockchain is used to store the final results. The smart contracts define the temporary storage location of instructions and the door opening rules to achieve secure control of the door.

Benefits of technology

It enables safe management of high-level biosafety laboratories, ensuring personnel safety, environmental safety, and preventing the leakage of biosafety factors. It also effectively controls personnel entry and exit from different areas and prevents cross-mixing of air.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120634816B_ABST
    Figure CN120634816B_ABST
Patent Text Reader

Abstract

The application discloses a bio-safety laboratory personnel access management method and system based on a blockchain, and relates to the technical field of blockchain technology. The method comprises the following steps: constructing a circulation blockchain and a storage blockchain, wherein the circulation blockchain comprises two smart contracts; receiving an instruction, storing the instruction, a time stamp of the instruction and an instruction door opening rule obtained based on the second smart contract into a corresponding temporary storage block according to the first smart contract, and storing relevant information corresponding to the instruction into the temporary storage block of the instruction; traversing the circulation blockchain, judging whether there is an instruction in a current temporary storage block, judging whether the collected relevant information all satisfies the corresponding door opening rule if there is an instruction, controlling the door corresponding to the instruction to open if the relevant information all satisfies the corresponding door opening rule, moving all data in the current temporary storage block to the first blank storage block in sequence, judging a next temporary storage block, reminding reasons why the door does not open if the relevant information does not satisfy the corresponding door opening rule, moving all data in the current temporary storage block to the first blank storage block in sequence, judging the next temporary storage block, and judging the next temporary storage block if there is no instruction in the current temporary storage block.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of biosafety laboratories and blockchain technology, in particular to a biosafety laboratory personnel access management method and system based on blockchain. BACKGROUND

[0002] A high-level biosafety laboratory is mainly composed of a contaminated area, a buffer area and a clean area. In order to ensure the safety of personnel access to the high-level biosafety laboratory, effective management of personnel access is required. The present inventor has previously applied for an invention patent for a high-level biosafety laboratory control system with application number and the name. The present application further optimizes the previous application and utilizes blockchain technology to prevent personnel access data from being tampered with, while also achieving optimized management of personnel access.

[0003] The present application discloses an application number 202210935110.1, a laboratory management method and system based on blockchain. In this existing patent, although the technology of user access management based on blockchain is mentioned, the blockchain is used to store the compliance identity of each user. When the access permission of the user is managed and authenticated, the entered identity data is matched with the compliance identity information on the blockchain. If the match is successful, the user can enter the laboratory, otherwise the user cannot enter the laboratory. This technology does not use blockchain to determine whether the user is allowed to enter the laboratory. The blockchain only serves to chain the compliance identity. The personnel access management of the biosafety laboratory in the present application requires the participation of the blockchain throughout the process. The present application is applicable to general laboratories, but not to high-level and complex biological laboratories. SUMMARY

[0004] The present application provides a biosafety laboratory personnel access management method and system based on blockchain to address the problems and deficiencies of the prior art.

[0005] The present application solves the above technical problems by the following technical solutions:

[0006] The present application provides a biosafety laboratory personnel access management method based on blockchain. The high-level biosafety laboratory has multiple areas, and the characteristics are as follows:

[0007] S1, a cycle blockchain composed of M temporary storage blocks and a storage blockchain composed of N storage blocks are constructed in advance, the cycle blockchain includes two smart contracts, the first smart contract includes one-in-one-out instructions for the same area with the same timestamp temporarily stored in the same temporary storage block, multiple instructions for different areas sequentially stored in different temporary storage blocks according to instruction priority, and instructions with different timestamps sequentially stored in different temporary storage blocks according to instruction timestamp, and the second smart contract includes door opening rules corresponding to each access instruction.

[0008] S2, receiving an instruction, according to the first smart contract, the instruction and its timestamp and the door opening rule of the instruction based on the second smart contract are temporarily stored in the corresponding temporary block, and the relevant information corresponding to the instruction is collected and temporarily stored in the temporary block of the instruction;

[0009] Continuously loop through the loop blockchain, determine whether there is an instruction in the current temporary block, if yes, determine whether the collected relevant information meets the corresponding door opening rule, if yes, 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, the current temporary block becomes a blank temporary block, otherwise, prompt the reason why the door is not opened, 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, 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 application also provides a personnel access management system for a biosafety laboratory based on a blockchain, and the high-level biosafety laboratory has multiple areas, and the system comprises a control center;

[0011] The control center is used for pre-constructing a loop blockchain composed of M temporary blocks and a storage blockchain composed of N storage blocks, the loop blockchain comprises two smart contracts, the first smart contract comprises a one-in-one-out instruction for the same area with the same timestamp temporarily stored in the same temporary block, multiple instructions for different areas sequentially temporarily stored in different temporary blocks according to instruction priority, and instructions with different timestamps sequentially temporarily stored in different temporary blocks according to instruction timestamp, and the second smart contract comprises a door opening rule corresponding to each access instruction;

[0012] The control center is also used for receiving an instruction, according to the first smart contract, the instruction and its timestamp and the door opening rule of the instruction based on the second smart contract are temporarily stored in the corresponding temporary block, and the relevant information corresponding to the instruction is collected and temporarily stored in the temporary block of the instruction;

[0013] The control center is also used to continuously loop through the circulating blockchain, determine whether there is an instruction in the current temporary block, if so, determine whether the collected relevant information all meet the corresponding door opening rule, if so, control the door corresponding to the instruction to open, while controlling 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, the current temporary block becomes a blank temporary block, otherwise, prompt the reason why the door does not open, 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, the current temporary block becomes a blank temporary block, if there is no instruction in the current temporary block, determine the next temporary block.

[0014] The positive progress effect of the present application is that:

[0015] The present application constructs a circulating blockchain for temporarily storing instructions and related information, and a storage blockchain for storing the final analysis results, two smart contracts are constructed in the circulating blockchain, the first smart contract is used to specify the temporary storage position of each instruction, and the second smart contract is used to specify the door opening rule corresponding to each entry / exit instruction, based on the two smart contracts, it can be analyzed whether the corresponding door is opened for the instruction in each temporary block in the circulating blockchain.

[0016] The present application considers more comprehensive influencing factors (body temperature, stress, and wearing and removing protective measures), which can safely control the entry of the to-be-entering person into the clean area, the buffer area and the contaminated area, safely control the exit of the to-be-exiting person from the contaminated area, the buffer area and the clean area, effectively prevent the cross mixing of air in each area, and ensure the life safety of the personnel entering and exiting the biosafety laboratory, the environmental safety of the biosafety laboratory, and the prevention of the leakage of harmful biological factors in the biosafety experiment. BRIEF DESCRIPTION OF DRAWINGS

[0017] Figure 1 The figure is a structural schematic diagram of the high-level biosafety laboratory of the preferred embodiment of the present application. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme of the embodiments of the present application will be described clearly and completely below in combination with the drawings of the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0019] For the convenience of description, only the parts related to the present application are shown in the drawings. The first, second, etc. involved in the present application are only for the convenience of describing the technical solutions of the present application, and do not have a specific limiting effect, and are all generic, which does not constitute a limiting effect on the technical solutions of the present application. It should be noted that the embodiments and features in the embodiments in the present application can be combined with each other without conflict. The terms "inner", "outer" and the like indicating the positional relationship are based on the positional relationship represented by the displayed drawings, and do not mean that the components referred to must be presented in the position relationship expressed, which does not constitute a limiting effect on the technical solutions of the present application.

[0020] As shown in Figure 1 , the high-level biosafety laboratory is divided into a clean area, a buffer area and a contaminated area in turn, the clean area is provided with a door for personnel to enter and exit, the entry and exit of the clean area correspond to A1 进 instruction and A1 出 instruction respectively; the buffer area is provided with a door for personnel to enter and exit, the entry and exit of the buffer area correspond to A2 进 instruction and A2 出 instruction respectively; the contaminated area is provided with a door for personnel to enter and exit, the entry and exit of the contaminated area correspond to A3 进 instruction and A3 出 instruction respectively.

[0021] Embodiment 1

[0022] The embodiment of the present application provides a personnel access management method for a biosafety laboratory based on a blockchain, comprising the following steps:

[0023] Firstly, a circulating blockchain (composed of M temporary storage blocks) and a storage blockchain (composed of N storage blocks) are constructed in advance, the circulating blockchain includes two smart contracts, the first smart contract includes one-in-one-out instructions for the same area with the same time stamp sequentially stored in the same temporary storage block, multiple instructions for different areas with the same time stamp sequentially stored in different temporary storage blocks according to instruction priority, and instructions with different time stamps sequentially stored in different temporary storage blocks according to the time sequence of the time stamps, and the second smart contract includes the door opening rules corresponding to each access instruction. Wherein, the instruction priority is A3 出 instruction>A2 出 instruction>A1 出 instruction>A3 进 instruction>A2 进 instruction>A1 进 instruction, M and N are positive integers, and M

[0024] In this step, at the same time, one-in-one-out instructions for the same area are stored in the same temporary storage block, such as receiving A1 进 instruction and A1 出 instruction at the same time, then A1进 instruction and A1 出 instruction is temporarily stored in the same temporary storage block, and A2 is received at the same time 进 instruction and A2 出 instruction, and A2 进 instruction and A2 出 instruction is temporarily stored in the same temporary storage block, and A3 is received at the same time 进 instruction and A3 出 instruction, and A2 进 instruction and A2 出 instruction is temporarily stored in the same temporary storage block.

[0025] In this step, at the same time, a plurality of instructions for different areas are sequentially stored in different temporary storage blocks according to instruction priority, such as A1 进 instruction and A2 出 instruction, A2 is first stored 出 instruction is temporarily stored in one temporary storage block, and A1 进 instruction is temporarily stored in the next temporary storage block.

[0026] In this step, instructions received at different times are sequentially stored in different temporary storage blocks according to the time sequence of the instruction timestamp.

[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 be admitted is within the preset body temperature range, the identity of the person to be admitted is within the preset authorized 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 be admitted wears protective measures matched with the 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 be admitted is within the preset body temperature range, and P 洁 <P 外 .

[0031] A2 出 The door opening rule corresponding to the instruction is: the person to be admitted has completely removed the protective measures, and P 缓 <P

[0032] A3出 The door opening rule corresponding to the instruction is P 污 <P 缓 .

[0033] Second step, receiving the instruction, and storing the instruction, its timestamp and the door opening rule of the instruction based on the second smart contract into the corresponding temporary storage block according to the first smart contract, and collecting the relevant information corresponding to the instruction into the temporary storage block of the instruction; the relevant information corresponding to the instruction includes the pressure related information corresponding to the instruction and / or the to-be-entered / exited personnel related information corresponding to the instruction.

[0034] Continuously circulating the circulating blockchain, judging whether there is an instruction in the current temporary storage block, if yes, judging whether the collected relevant information all meet the corresponding door opening rule, if yes, controlling the door corresponding to the instruction to open and controlling the remaining doors to close, moving all data in the current temporary storage block to the first blank storage block in the storage blockchain in order, judging 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 rule, reminding the to-be-entered / exited personnel to wait, adjusting the pressure of the relevant area so that the pressure related information meets the corresponding door opening rule, controlling the door corresponding to the instruction to open and controlling the remaining doors to close, moving all data in the current temporary storage block to the first blank storage block in the storage blockchain in order, judging the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block; when there is to-be-entered / exited personnel related information and the to-be-entered / exited personnel related information does not meet the corresponding door opening rule, reminding the reason why the door does not open, moving all data in the current temporary storage block to the first blank storage block in the storage blockchain in order, judging the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block; if there is no instruction in the current temporary storage block, judging the next temporary storage block.

[0035] A further optimized technical solution involves determining whether there is an instruction in the current temporary storage block. If so, and there is only one instruction, it checks whether all the collected information related to that instruction meets the corresponding door opening rules. If so, it controls the door corresponding to that instruction to open and simultaneously controls the other doors to close, transferring all data in the current temporary storage block to the first blank storage block in the storage blockchain in sequence. Then, it checks the next temporary storage block, making the current temporary storage block a blank block. If only the pressure information in the instruction's information does not meet the corresponding door opening rules, it alerts personnel waiting to enter / exit to wait, adjusts the pressure in the relevant area to make the pressure information meet the corresponding door opening rules, controls the door corresponding to that instruction to open and simultaneously controls the other doors to close, transferring all data in the current temporary storage block... The data is transferred to the first blank storage block in the storage blockchain in sequence. The next temporary storage block is then determined, and the current temporary storage block becomes a blank temporary storage block. If there is information about personnel waiting to enter, but this information does not meet the corresponding door opening rules, the reason for the door not opening is displayed. 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 then determined, and the current temporary storage block becomes a blank temporary storage block. Similarly, if there is information about personnel waiting to exit, but only this information does not meet the corresponding door opening rules, the reason for the door not opening is displayed. 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 then determined, and the current temporary storage block becomes a blank temporary storage block.

[0036] For example: In a single instruction, specifically A1 进 When issuing an instruction, it determines whether the body temperature of the person waiting to enter is within a preset temperature range, whether the identity of the person waiting to enter is within a preset authorization range, and whether P 洁 <P 外 If so, then control A1. 进 The command opens the corresponding door (the airtight electronic lock on the clean area door) and simultaneously closes the remaining doors. All data in the current temporary storage block is transferred to the first blank storage block in the storage blockchain. The next temporary storage block is then determined, and the current temporary storage block becomes a blank block. If only pressure-related information is not met, personnel waiting to enter are reminded to wait, and the pressure in the clean area is adjusted to P. 洁 <P 外 Control A1 进 The instruction opens the corresponding door and simultaneously closes the other doors, transferring all data in the current temporary block to the first blank storage block in the storage blockchain, determining the next temporary block, and making the current temporary block a blank temporary block; if the body temperature and / or identity of the person waiting to enter does not meet the requirements, the instruction prompts the reason why the door does not open, transfers all data in the current temporary block to the first blank storage block in the storage blockchain, determines the next temporary block, and makes the current temporary block a blank temporary block.

[0037] The instruction is a single, specific A2. 进 When giving an instruction, check if P is enabled. 缓 <P 洁 If so, then control A2. 进 The command opens the corresponding door (the airtight electronic lock on the buffer door) and simultaneously closes the remaining doors, transferring all data from the current temporary block to the first blank storage block in the storage blockchain. It then checks the next temporary block, making the current temporary block blank. If pressure-related information is not met, it alerts waiting personnel to wait and adjusts the pressure in the buffer and clean zone to P. 缓 <P 洁 Control A2 进 The command opens the corresponding door and simultaneously closes the other doors, allowing personnel to enter. All data in the current temporary storage block is then transferred to the first blank storage block in the storage blockchain in sequence. The next temporary storage block is then determined, and the current temporary storage block becomes a blank temporary storage block.

[0038] The instruction is a single, specific A3. 进 When issuing the instruction, determine whether the personnel to be admitted are wearing protective measures appropriate for a high-level biosafety laboratory, and P 污 <P 缓 If so, then control A3. 进 The command opens the corresponding door (the airtight electronic lock on the door of the contaminated area) and simultaneously closes the remaining doors. 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 then determined, and the current temporary storage block becomes a blank block. If only pressure-related information is not met, personnel waiting to enter are reminded to wait. The pressure in the contaminated area and buffer zone is adjusted to P. 污 <P 缓 Control A3 进 The instruction opens the corresponding door and simultaneously closes the other doors, transferring all data in the current temporary block to the first blank storage block in the storage blockchain, determining the next temporary block, and making the current temporary block a blank temporary block; if the protective measures worn by the personnel waiting to enter do not meet the requirements, the reason why the door does not open is reminded, all data in the current temporary block is transferred to the first blank storage block in the storage blockchain, determining the next temporary block, and making the current temporary block a blank temporary block.

[0039] The instruction is a single, specific A1 出 When issuing the command, determine whether the body temperature of the person waiting to leave is within the preset temperature range, and P 洁 <P 外 If so, then control A1. 出The door corresponding to the instruction (the air-tight electronic lock on the door of the cleaning area) is opened, while the remaining doors are closed, all data in the current temporary block is moved to the first blank storage block in the storage block chain in sequence, the next temporary block is determined, and the current temporary block becomes a blank temporary block; when only the pressure-related information does not meet the requirement, the person waiting to go out is reminded to wait, the pressure of the cleaning area is adjusted to make P 洁 <P 外 , A1 出 instruction is controlled, the door corresponding to the instruction is opened, while the remaining doors are closed, all data in the current temporary block is moved to the first blank storage block in the storage block chain in sequence, the next temporary block is determined, and the current temporary block becomes a blank temporary block; when the body temperature of the person waiting to go out does not meet the requirement, the reason why the door is not opened is reminded, all data in the current temporary block is moved to the first blank storage block in the storage block chain in sequence, the next temporary block is determined, and the current temporary block becomes a blank temporary block.

[0040] When the instruction is one, specifically A2 出 instruction, it is determined whether the person waiting to go out has completely removed the protective measures, and P 缓 <P 洁 , if yes, A2 出 instruction corresponding door (air-tight electronic lock on the door of the buffer area) is controlled to open, while the remaining doors are closed, all data in the current temporary block is moved to the first blank storage block in the storage block chain in sequence, the next temporary block is determined, and the current temporary block becomes a blank temporary block; when only the pressure-related information does not meet the requirement, the person waiting to go out is reminded to wait, the pressures of the buffer area and the cleaning area are adjusted to make P 缓 <P 洁 , A2 出 instruction corresponding door is controlled to open, while the remaining doors are closed, all data in the current temporary block is moved to the first blank storage block in the storage block chain in sequence, the next temporary block is determined, and the current temporary block becomes a blank temporary block; when the protective measures of the person waiting to go out do not meet the requirement, the reason why the door is not opened is reminded, all data in the current temporary block is moved to the first blank storage block in the storage block chain in sequence, the next temporary block is determined, and the current temporary block becomes a blank temporary block.

[0041] When the instruction is one, specifically A3 出 instruction, it is determined whether P 污 <P 缓 , if yes, A3 出The command opens the corresponding door (the airtight electronic lock on the door of the contaminated area) and simultaneously closes the other doors. 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 then determined, and the current temporary storage block becomes a blank block. If pressure-related information is not met, personnel waiting to exit are reminded to wait. The pressure in the contaminated area and buffer zone is adjusted to P. 污 <P 缓 Control A3 出 The instruction opens the corresponding door and simultaneously closes the other doors, transferring all data in the current temporary block to the first blank storage block in the storage blockchain in sequence. The next temporary block is then determined, and the current temporary block becomes a blank temporary block.

[0042] If there is an instruction in the current temporary block, if the instruction is two (one in and one out), it is determined whether the collected relevant information meets the corresponding door opening rule, if so, the door corresponding to the instruction is opened, the remaining doors are closed, all data in the current temporary block is moved to the first blank storage block in the storage block chain in order, the next temporary block is determined, and the current temporary block becomes a blank temporary block; if only the pressure related information does not meet the corresponding door opening rule, the person to be in / out is reminded to wait, the pressure related information is adjusted to meet the corresponding door opening rule, the door corresponding to the instruction is opened, the remaining doors are closed, all data in the current temporary block is moved to the first blank storage block in the storage block chain in order, the next temporary block is determined, and the current temporary block becomes a blank temporary block; if only the information related to the person to be in meets the corresponding door opening rule, or if there are information related to the person to be in and the person to be out, and only the information related to the person to be in does not meet the corresponding door opening rule, the door corresponding to the instruction is opened, the remaining doors are closed, the person to be out is reminded to exit, but the person to be in cannot enter and is away from the door position, all data in the current temporary block is moved to the first blank storage block in the storage block chain in order, the next temporary block is determined, and the current temporary block becomes a blank temporary block; if only the information related to the person to be out meets the corresponding door opening rule, or if there are information related to the person to be in and the person to be out, and only the information related to the person to be out does not meet the corresponding door opening rule, the door corresponding to the instruction is opened, the remaining doors are closed, the person to be in is reminded to enter, but the person to be out cannot exit and is away from the door position, all data in the current temporary block is moved to the first blank storage block in the storage block chain in order, the next temporary block is determined, and the current temporary block becomes a blank temporary block; if there are information related to the person to be in and the person to be out, and the information related to the person to be in and the person to be out does not meet the corresponding door opening rule, the reason why the door is not opened is reminded, all data in the current temporary block is moved to the first blank storage block in the storage block chain in order, the next temporary block is determined, and the current temporary block becomes a blank temporary block.

[0043] For example: if the instruction is A1 进 The instruction and A1 出 The instruction, it is determined whether the body temperature of the person to be in and the person to be out is within the preset body temperature range, the identity of the person to be in is within the preset authorized range, and P 洁 <P 外, if yes, control the door corresponding to the instruction to open, 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 block chain in order, judge 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, remind the personnel waiting to enter and the personnel waiting to exit, adjust the pressure of the cleaning area to make P 洁 <P 外 , control A1 进 instruction or A1 出 instruction corresponding door to open, 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 block chain in order, judge the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block; when only the body temperature and / or identity of the personnel waiting to enter do not meet, control the A1 出 instruction corresponding door to open, control the remaining doors to close at the same time, remind the personnel waiting to exit to exit but the personnel waiting to enter cannot enter and move away from the door position, move all data in the current temporary storage block to the first blank storage block in the storage block chain in order, judge the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block; when only the body temperature of the personnel waiting to exit does not meet, control the A1 进 instruction corresponding door to open, control the remaining doors to close at the same time, remind the personnel waiting to enter to enter but the personnel waiting to exit cannot exit and move away from the door position, move all data in the current temporary storage block to the first blank storage block in the storage block chain in order, judge the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block; when the related information of the personnel waiting to exit and the personnel waiting to enter does not meet the corresponding door opening rule, remind the reason why the door does not open, move all data in the current temporary storage block to the first blank storage block in the storage block chain in order, judge the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block.

[0044] When the instruction is A2 进 instruction and A2 出 instruction, judge whether the personnel waiting to exit has completely removed the protective measures, and P 缓 <P 洁 , if yes, control the door corresponding to the instruction to open, 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 block chain in order, judge 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, remind the personnel waiting to enter and the personnel waiting to exit to wait, adjust the pressure of the buffer area and the cleaning area to make P 缓 <P 洁 , control A2 进 instruction or A2 出The door corresponding to the instruction is opened, and the remaining doors are closed at the same time, all data in the current temporary block is moved to the first blank storage block in the storage block chain in order, the next temporary block is judged, and the current temporary block becomes a blank temporary block; when the de-protection measures of the personnel to be out do not meet the requirements, A2 进 The door corresponding to the instruction is opened, and the remaining doors are closed at the same time, all data in the current temporary block is moved to the first blank storage block in the storage block chain in order, the next temporary block is judged, and the current temporary block becomes a blank temporary block.

[0045] When the instruction is A3 进 The instruction and A3 出 When the instruction is A3 污 <P 缓 If yes, the door corresponding to the instruction is opened, and the remaining doors are closed at the same time, all data in the current temporary block is moved to the first blank storage block in the storage block chain in order, the next temporary block is judged, and the current temporary block becomes a blank temporary block; when only the pressure related information does not meet the requirements, the personnel to be in and the personnel to be out are reminded to wait, and the pressures of the contaminated area and the buffer area are adjusted to make P 污 <P 缓 <P 进 The instruction or A3 出 The door corresponding to the instruction is opened, and the remaining doors are closed at the same time, all data in the current temporary block is moved to the first blank storage block in the storage block chain in order, the next temporary block is judged, and the current temporary block becomes a blank temporary block; when the de-protection measures of the personnel to be in do not meet the requirements, A3 出 The door corresponding to the instruction is opened, and the remaining doors are closed at the same time, all data in the current temporary block is moved to the first blank storage block in the storage block chain in order, the next temporary block is judged, and the current temporary block becomes a blank temporary block.

[0046] The application also provides a personnel access management system for a biosafety laboratory based on a block chain, and the biosafety laboratory has multiple areas.

[0047] The control center is configured to pre-construct a circulating block chain composed of M temporary storage blocks and a storage block chain composed of N storage blocks, the circulating block chain comprises two smart contracts, the first smart contract comprises the following steps: storing the same in-out instruction for the same area in the same temporary storage block with the same timestamp, storing the multiple instructions for different areas in different temporary storage blocks in sequence according to the instruction priority, and storing the instructions with different timestamps in different temporary storage blocks in sequence according to the instruction timestamp; and the second smart contract comprises the opening rule of the door corresponding to each in-out instruction.

[0048] The control center is further configured to receive an instruction, store the instruction, the timestamp of the instruction and the opening rule of the door of the instruction obtained based on the second smart contract in the corresponding temporary storage block according to the first smart contract, and store the relevant information corresponding to the instruction in the temporary storage block of the instruction.

[0049] The control center is further configured to continuously circulate and traverse the circulating block chain, determine whether there is an instruction in the current temporary storage block, if yes, determine whether the relevant information collected all meet the corresponding opening rule of the door, if yes, 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 block chain in sequence, determine the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block, otherwise, remind the reason why the door does not open, move all data in the current temporary storage block to the first blank storage block in the storage block chain in sequence, determine the next temporary storage block, and the current temporary storage block becomes a blank temporary storage block, and if there is no instruction in the current temporary storage block, determine the next temporary storage block.

[0050] The embodiment of the application further provides an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to execute the foregoing method.

[0051] The embodiment of the application further provides a computer-readable storage medium, which stores computer program instructions, and the computer program instructions are executed by the processor to implement the foregoing method.

[0052] The application can be a method, device, system and / or computer program product. The computer program product can include a computer readable storage medium having computer readable program instructions loaded thereon for executing various aspects of the application.

[0053] Embodiment 2

[0054] The first smart contract is optimized based on the embodiment 1, in the first smart contract, the time sequence of the instructions with different time stamps is temporarily stored in different temporary storage blocks according to the time stamp of the instruction, wherein the latter instruction is placed in the same temporary storage block as the former instruction if the same instruction for the same area is received before and after and the door opening operation or the reminding operation of the reason for not opening the door for the former instruction has not been implemented; the latter instruction is placed in the same temporary storage block as the former instruction if the one-in-one-out instruction or the one-out-one-in instruction for the same area is received before and after and the door opening operation or the reminding operation of the reason for not opening the door for the former instruction has not been implemented.

[0055] For example, the same person to be in or the same person to be out issues the same instruction multiple times before the door is opened or the reminding operation of the reason for not opening the door is performed, and the multiple same instructions can be regarded as one instruction, and the multiple same instructions are stored in the same temporary storage block.

[0056] The person to be in issues A1 进 instruction, and then the person to be out issues A1 出 instruction, that is, the person to be out issues A1 进 instruction before the door opening operation or the reminding operation of the reason for not opening the door for the A1 instruction issued by the person to be in is performed. 出 instruction, the A1 进 instruction and A1 出 instruction can be regarded as the one-in-one-out instruction, and the A1

[0057] Although the specific embodiments of the present application are described above, those skilled in the art should understand that these are only illustrative, and the protection scope of the present application is defined by the appended claims. Those skilled in the art can make various changes or modifications to the embodiments without departing from the principles and essence of the present application, and these changes and modifications all fall within the protection scope of the present application.

Claims

1. A blockchain-based method for managing personnel access to a biosafety laboratory, wherein the high-level biosafety laboratory has multiple zones, characterized by including: S1. Pre-construct 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 in and one out instruction with the same timestamp for the same area, which is temporarily stored in the same temporary block. Multiple instructions for different areas are temporarily stored in different temporary blocks according to the instruction priority. Instructions with different timestamps are temporarily stored in different temporary blocks according to the time order of the instruction timestamps. The second smart contract includes the door opening rules corresponding to each in / out instruction. M and N are both positive integers, and M < N. S2. Receive the instruction, and according to the first smart contract, temporarily store the instruction, its timestamp, and the door opening rules of the instruction obtained based on the second smart contract into the corresponding temporary storage block. Collect the relevant information corresponding to the instruction and temporarily store it into the temporary storage block of the instruction. The algorithm continuously iterates through the circular blockchain, checking if there are any instructions in the current temporary block. If so, it checks if all collected information meets the corresponding door opening rules. If so, it opens the door corresponding to the instruction and closes the other doors, transferring all data from the current temporary block to the first blank storage block in the storage blockchain. It then checks the next temporary block, making the current temporary block blank. Otherwise, it displays the reason why the door is not open, transfers all data from the current temporary block to the first blank storage block in the storage blockchain, checks the next temporary block, making the current temporary block blank. If there are no instructions in the current temporary block, it checks the next temporary block.

2. The blockchain-based biosafety laboratory personnel access management method as described in claim 1, characterized in that, in S2, the relevant information corresponding to the instruction includes environmental information corresponding to the instruction and / or personnel information to be entered / exited; The system checks if there are any instructions in the current temporary storage block. If so, it checks if all collected relevant information meets the corresponding door opening rules. If so, it controls the door corresponding to the instruction to open and simultaneously controls the other doors to close. All data in the current temporary storage block is then transferred to the first blank storage block in the storage blockchain. The next temporary storage block is checked, and the current temporary storage block becomes a blank temporary storage block. If only environmental information does not meet the corresponding door opening rules, the system prompts personnel waiting to enter / exit to wait. The environment of the relevant area is adjusted so that the environmental information meets the corresponding door opening rules. The door corresponding to the instruction is opened and simultaneously controls the other doors to close. All data in the current temporary storage block is transferred to the first blank storage block in the storage blockchain. The next temporary storage block is checked, and the current temporary storage block becomes a blank temporary storage block. If there is information about personnel waiting to enter / exit but this information does not meet the corresponding door opening rules, the system prompts the reason why the door is not opening. All data in the current temporary storage block is transferred to the first blank storage block in the storage blockchain. The next temporary storage block is checked, and the current temporary storage block becomes a blank temporary storage block.

3. The blockchain-based biosafety laboratory personnel access management method as described in claim 2, characterized in that: it determines whether there is an instruction in the current temporary storage block; if so, if there is only one instruction, it determines whether all collected relevant information meets the corresponding door opening rules; if so, it controls the door corresponding to the instruction to open and simultaneously controls the remaining doors to close, 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 the current temporary storage block becomes a blank temporary storage block; when only environmental information does not meet the corresponding door opening rules, it reminds personnel waiting to enter / exit to wait and adjusts the relevant areas... The environment ensures that relevant information meets the corresponding door opening rules, controlling the door corresponding to the instruction to open and simultaneously controlling the other doors to close. All data in the current temporary block is moved to the first blank storage block in the storage blockchain in sequence. The next temporary block is then determined, and the current temporary block becomes a blank temporary block. When there is information about personnel waiting to enter / exit but the information does not meet the corresponding door opening rules, the reason why the door does not open is displayed. All data in the current temporary block is moved to the first blank storage block in the storage blockchain in sequence. The next temporary block is then determined, and the current temporary block becomes a blank temporary block.

4. The blockchain-based biosafety laboratory personnel access management method as described in claim 2, characterized in that: First, it is determined whether there is an instruction in the current temporary storage block. If so, and there are two instructions (one for entry and one for exit), it is determined whether the collected relevant information meets the corresponding door opening rules. If so, the door corresponding to the instruction is opened, and the remaining doors are closed simultaneously. 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. Second, when only environmental information does not meet the corresponding door opening rules, the personnel waiting to enter / exit are reminded to wait. The environment of the relevant area is adjusted so that the environmental information meets the corresponding door opening rules. The door corresponding to the instruction is opened, and the remaining doors are closed simultaneously. 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. Third, when there is information on both personnel waiting to enter and personnel waiting to exit, and only the information on personnel waiting to enter does not meet the corresponding door opening rules, the instruction is controlled. The corresponding door opens, while the remaining doors close, alerting those waiting to exit to leave, but preventing those waiting to enter from entering and keeping them away from the door. All data in the current temporary block is moved to the first blank storage block in the storage blockchain. The next temporary block is then checked, and the current temporary block becomes a blank block. If information about both those waiting to enter and those waiting to exit exists, but only the information about those waiting to exit does not meet the corresponding door opening rules, the door corresponding to this instruction opens, while the remaining doors close, alerting those waiting to enter to enter, but preventing those waiting to exit from leaving. Furthermore, if the data in the current temporary block is moved away from the door, all data in the current temporary block is transferred to the first blank storage block in the storage blockchain in sequence. The next temporary block is then determined, and the current temporary block becomes a blank temporary block. If there is information about both people waiting to enter and people waiting to exit, and neither information meets the corresponding door opening rules, the reason why the door is not opened is reminded. All data in the current temporary block is then transferred to the first blank storage block in the storage blockchain in sequence. The next temporary block is then determined, and the current temporary block becomes a blank temporary block.

5. The blockchain-based biosafety laboratory personnel access management method as described in claim 1, characterized in that the high-level biosafety laboratory is sequentially divided into a clean zone, a buffer zone, and a contaminated zone, with the clean zone corresponding to A1. 进 Instructions and A1 出 Instructions, buffer corresponding to A2 进 Instructions and A2 出 Instruction, contaminated area corresponds to A3 进 Instructions and A3 出 Instruction, instruction priority is A3 出 Instruction > A2 出 Instruction > A1 出 Instruction > A3 进 Instruction > A2 进 Instruction > A1 进 instruction.

6. The blockchain-based biosafety laboratory personnel access management method as described in claim 5, characterized in that, in the second smart contract, A1 进 The door opening rules corresponding to the instruction are: the body temperature of the person waiting to enter is within the preset temperature range, the identity of the person waiting to enter 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 instruction are: personnel entering must wear protective measures matching those required for a high-level biosafety laboratory, and P 污 <P 缓 ; A1 出 The door opening rule corresponding to the instruction is: the body temperature of the person waiting to exit is within the preset body temperature range, and P 洁 <P 外 ; A2 出 The door opening rule corresponding to the instruction is: the person waiting to exit has completely removed protective measures, and P 缓 <P 洁 ; A3 出 The door opening rule corresponding to the instruction is: P 污 <P 缓 ; P 外 Due to external pressure, P 洁 For the pressure within the clean area, P 缓 P represents the pressure within the buffer zone. 污 Pressure within the contaminated area.

7. The blockchain-based biosafety laboratory personnel access management method as described in claim 1, characterized in that, in the first smart contract, instructions with different timestamps are sequentially stored in different temporary storage blocks according to the order of the instruction timestamps, wherein if the same instruction for the same area is received before and after, and the operation of opening the door or reminding the reason why the door is not opened has not yet been implemented for the previous instruction, the subsequent instruction is placed in the same temporary storage block as the previous instruction; if one entry and one exit instruction or one exit and one entry instruction for the same area is received before and after, and the operation of opening the door or reminding the reason why the door is not opened has not yet been implemented for the previous instruction, the subsequent instruction is placed in the same temporary storage block as the previous instruction.

8. A blockchain-based biosafety laboratory personnel access management system, wherein the high-level biosafety laboratory has multiple zones, characterized in that the system includes a control center; The control center is used 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-in and one-out instructions with the same timestamp for the same area, which are temporarily stored in the same temporary block. Multiple instructions for different areas are temporarily stored in different temporary blocks according to the instruction priority. Instructions with different timestamps are temporarily stored in different temporary blocks according to the time order of the instruction timestamps. The second smart contract includes the door opening rules corresponding to each in / out instruction. M and N are both positive integers, and M < N. The control center is also used to receive instructions, and according to the first smart contract, temporarily store the instruction, its timestamp, and the door opening rules of the instruction obtained based on the second smart contract into the corresponding temporary storage block, and collect relevant information corresponding to the instruction and temporarily store it into the temporary storage block of the instruction. The control center is also used to continuously traverse the circular blockchain, determine whether there is an instruction in the current temporary block, and 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 other 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, indicate the reason why the door is not open, 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. If there is no instruction in the current temporary block, determine the next temporary block.

9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in memory to execute the method of any one of claims 1-7.

10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When computer program instructions are executed by a processor, they implement the method of any one of claims 1-7.

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