Blood operation method and system based on data processing
By building operation blockchain and RFID tags in the blood operation system, the problems of damaged RFID tags, insufficient data confidentiality and inaccurate blood volume recording in the blood operation system are solved, and the accuracy of blood operation and data security are improved.
Patent Information
- Application Number
- CN202410382104.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-01
- Publication Date
- 2024-12-31
Smart Images

Figure CN119230074A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a blood circulation method and system based on data processing. Background Art
[0002] Blood circulation based on data processing refers to the process of collecting, counting, transmitting and using blood information. It is mainly carried out in the scenario where blood goes from blood donation volunteers to hospital patients for disease treatment. The purpose is to ensure the full-chain tracking of blood and increase the safety of blood storage.
[0003] At present, the method of adding RFID tags to blood bags to achieve full-chain tracking of blood has been widely used. However, this method requires constant supervision of the integrity of the RFID tags to prevent the RFID tags from being damaged and causing failure in blood number recognition. If the RFID tags are damaged, it will affect the tracking of the entire chain of blood. Secondly, the current cold chain monitoring system is used to store blood data, which is not confidential, making the data easy to be tampered with. On the other hand, when the blood volume changes, if it is not detected, it will lead to errors in blood volume records. Finally, the specific location of the blood in the hospital is often not displayed. Therefore, the accuracy of blood circulation based on data processing is insufficient. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a blood circulation method and system based on data processing, which can improve the accuracy of blood circulation based on data processing.
[0005] In a first aspect, the present invention provides a blood circulation method based on data processing, comprising: Divide the operation stages of blood, wherein the operation stages include blood collection stage, blood storage stage, blood delivery stage, and blood use stage, and construct an operation blockchain for the operation stages; In the blood collection stage, historical blood information in the running blockchain is retrieved, an RFID tag of the blood is constructed according to the historical blood information, current blood information of the blood is generated based on the RFID tag, and the current blood information is uploaded to the running blockchain; In the blood storage stage, the storage address of the blood is tracked, and the current blood information is updated using the storage address in the running blockchain to obtain a first updated blockchain; In the blood delivery stage, a person delivering the blood is identified, the integrity of the blood is checked at the delivery person, and based on the integrity, the first updated blockchain is updated to obtain a second updated blockchain; During the blood use phase, the blood bag carrying the blood is recovered in the second updated blockchain to obtain a blood circulation result of the blood.
[0006] In a possible implementation of the first aspect, dividing the blood into operation stages includes: Determining the operational and abstract processes of said blood; The abstract process includes an input stage, an intermediate stage, and an output stage; Based on the phase objectives of the input phase and the output phase, determining a first operation phase of the blood from the operation process; Wherein, the first operation stage includes a blood collection stage and a blood use stage; collecting address data points of the blood; The change rate of the address data point in a preset time period is calculated using the following formula: in, represents the rate of change, Indicates the number of changes of the address data point in a preset time period, Indicates a preset time period; and uses the change rate to identify dynamic data points and static data points in the address data points; Based on the dynamic data points and the static data points, dividing the operation process into a static phase and a flow phase; Dividing the second operation phase of the blood by the static phase and the flow phase; Wherein, the second operation stage includes a blood storage stage and a blood transfer stage.
[0007] In a possible implementation of the first aspect, the constructing the operation blockchain in the operation stage includes: Determining an initial blockchain between the blood supplier and the blood demander in the operation phase; Receiving a blood supply request from the blood demander in the initial blockchain; Based on the blood supply request, receiving a blood supply response from the blood supplier in the initial blockchain; Determining the number of collection blocks and the number of use blocks in the blood collection phase and the blood use phase in the operation phase according to the blood supply request and the blood supply response; According to the blood supply request and the blood supply response, the number of storage blocks in the blood storage phase in the operation phase is calculated using the following formula: in, Indicates the number of storage blocks, represents the value of the jth storage space under the i-th storage site, which is set to 1, n represents the total number of storage sites in the operation stage, and m represents the total number of storage spaces in the operation stage; the number of transfer blocks in the blood transfer stage in the operation stage is calculated using the following formula: in, Indicates the number of blocks transferred, It represents the value of the u-th type of medical staff under the ith storage site, which is set to 1, n represents the total number of storage sites in the operation stage, and U represents the total number of categories of medical staff in the operation stage; construct the block space of the number of acquisition blocks, the number of use blocks, the number of storage blocks and the number of transfer blocks in the initial blockchain, and construct the index space of the block space to obtain the operation blockchain.
[0008] In a possible implementation manner of the first aspect, generating the current blood information of the blood based on the RFID tag includes: address information where the blood was collected; Constructing storage information of the blood; The storage information includes blood type, blood type, blood product weight, blood collection date, expiration date, storage date and storage time, data entry operator information and blood temperature; The RFID tag, the address information and the storage information are used as the current blood information.
[0009] In a possible implementation of the first aspect, uploading the current blood information to the operating blockchain includes: Querying a target index space of the current blood information in the index space of the running blockchain; Querying the block space of the blood collection stage corresponding to the current blood information in the target index space; The current blood information is entered in the block space.
[0010] In a possible implementation of the first aspect, tracking the storage address of the blood includes: Using a preset GPS positioning technology to identify the location information of the blood; constructing a positioning distribution map of the blood using the positioning information; Dividing the positioning distribution map into an expandable positioning area and a non-expandable positioning area; In the expandable positioning area, collecting channel status information of the Internet of Things transfer box that operates the blood; Analyze the scalable positioning points of the Internet of Things transfer box based on the channel state information; calculating a first storage address of the blood using the expandable positioning point; Using the positioning information in the non-expandable positioning area as the second storage address of the blood; The first storage address and the second storage address are combined to obtain the storage address of the blood.
[0011] In a possible implementation manner of the first aspect, calculating the first storage address of the blood by using the expandable positioning point includes: Based on the expandable positioning point, the channel state information corresponding to the blood is updated using the following formula to obtain updated channel state information: in, represents the updated channel state information, represents the amplitude attenuation of the path, It represents the relative direction angle of the wireless signal from the transmitter to the space. Indicates the relative direction angle of the wireless signal from the transmitting source to the receiver. It represents the time delay between the signal from the transmitter to the receiver. represents the imaginary part, Indicates the serial number of the transmitting antenna, Indicates the serial number of the receiving antenna, represents the distance between adjacent transmitting antennas, represents the distance between adjacent receiving antennas, Indicates the subcarrier number, represents the interval between consecutive subcarriers, f represents the signal frequency, c represents the speed of light, represents pi; Based on the updated channel state information, the signal propagation distance of the address for monitoring the blood is calculated using the following formula: in, represents the signal propagation distance, c represents the speed of light, represents the amplitude attenuation of the path, represents the total number of subcarriers, represents the center frequency, Indicates that the channel status information is updated in The amplitude on the subcarrier, represents a constant parameter, Indicates that the channel status information is updated in The frequency on the subcarrier.
[0012] In a possible implementation of the first aspect, the step of checking the integrity of the blood at the delivery person includes: Detecting the RFID tag of the blood at the delivery person; Querying the first updated blockchain whether there is a target RFID tag that is consistent with the RFID tag; When there is no target RFID tag consistent with the RFID tag in the first updated blockchain, determining a first integrity of the blood; When there is a target RFID tag that is consistent with the RFID tag in the first updated blockchain, the blood weight of the blood is calculated using the following formula: in, represents the blood weight, represents the pre-calibrated area coefficient, represents the projected area of the blood, , represents a constant parameter; querying whether the weight of the blood is consistent with the weight of the blood product in the first updated blockchain, and determining the second integrity of the blood when the weight of the blood is not consistent with the weight of the blood product in the first updated blockchain; When the weight of the blood is consistent with the weight of the blood product in the first updated blockchain, a third integrity of the blood is determined.
[0013] In a possible implementation manner of the first aspect, performing a blockchain update on the first updated blockchain based on the integrity to obtain a second updated blockchain includes: identifying the current transferee of said blood; Querying the block space of the current delivery person in the first updated blockchain; When the integrity is the first integrity, querying the neighboring RFID tags of the RFID tag; identifying a first target RFID tag of the RFID tag in the first updated blockchain using the neighborhood RFID tag; Based on the first target RFID tag, a block update is performed in the block space of the current delivery person to obtain a first second updated blockchain; When the integrity is the second integrity, the blood product weight data is added to the block space of the current delivery person to obtain a second second updated blockchain; When the integrity is the third integrity, no update operation is performed in the block space of the current transfer person, and the third second updated blockchain is obtained.
[0014] In a second aspect, the present invention provides a blood circulation system based on data processing, the system comprising: A stage division module is used to divide the operation stages of blood, wherein the operation stages include a blood collection stage, a blood storage stage, a blood delivery stage, and a blood use stage, and to construct an operation blockchain for the operation stages; An information uploading module is used to retrieve historical blood information in the running blockchain during the blood collection phase, construct an RFID tag of the blood according to the historical blood information, generate current blood information of the blood based on the RFID tag, and upload the current blood information to the running blockchain; An information updating module, used for tracking the storage address of the blood during the blood storage stage, and updating the current blood information using the storage address in the running blockchain to obtain a first updated blockchain; A blockchain updating module, used for identifying the person delivering the blood during the blood delivery phase, verifying the integrity of the blood at the delivery person, and updating the first updated blockchain based on the integrity to obtain a second updated blockchain; A blood bag recovery module is used to recover the blood bag carrying the blood in the second updated blockchain during the blood use stage to obtain the blood circulation result of the blood.
[0015] Compared with the prior art, the technical principle and beneficial effects of this solution are: The embodiment of the present invention divides the blood operation stage to divide the long chain of blood operation into multiple shorter chains, so as to refine the blood operation process in each short chain later. Furthermore, the embodiment of the present invention constructs the operation blockchain of the operation stage to replace the cold chain monitoring system with the blockchain to realize the full chain tracking of blood and increase the confidentiality and non-tamperability of blood data. Furthermore, the embodiment of the present invention constructs the RFID tag of the blood according to the historical blood information to avoid the conflict between the newly generated RFID tag and the RFID tag in the historical blood information. The embodiment of the present invention tracks the storage address of the blood to display the specific location of the blood in the hospital. Furthermore, the embodiment of the present invention verifies the integrity of the blood at the delivery personnel to detect the RFID tag by other methods when the RFID tag is damaged, ensures the successful identification of the blood number, and detects the blood volume in time when the blood volume changes, thereby improving the recording accuracy. Therefore, the blood operation method and system based on data processing proposed in the embodiment of the present invention can improve the accuracy of blood operation based on data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 A flow chart of a blood circulation method based on data processing provided by one embodiment of the present invention; Figure 2 In one embodiment of the present invention Figure 1 A schematic diagram of an operation process of a blood operation method based on data processing is provided; Figure 3 In one embodiment of the present invention Figure 1 A schematic diagram of a blood circulation method based on data processing and operating blockchain is provided; Figure 4 A module schematic diagram of a blood circulation system based on data processing provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0019] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0020] The embodiment of the present invention provides a blood circulation method based on data processing, and the execution subject of the blood circulation method based on data processing includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present invention. In other words, the blood circulation method based on data processing can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), as well as basic cloud computing services such as big data and artificial intelligence platforms.
[0021] See also Figure 1 FIG. 1 is a flow chart of a blood circulation method based on data processing provided by an embodiment of the present invention. Figure 1The blood circulation method based on data processing described in the invention includes: S1. Divide the operation stages of blood, wherein the operation stages include blood collection stage, blood storage stage, blood delivery stage, and blood use stage, and construct an operation blockchain for the operation stages.
[0022] In the embodiment of the present invention, the blood refers to blood drawn from blood donation volunteers for treating diseases of hospital patients.
[0023] Furthermore, the embodiment of the present invention divides the blood circulation stages to divide the long chain of blood circulation into multiple shorter chains, so as to subsequently refine the blood circulation process in each short chain.
[0024] Further, the division of blood operation stages includes: determining the operation process and abstract process of the blood; wherein the abstract process includes an input stage, an intermediate stage, and an output stage; based on the stage objectives of the input stage and the output stage, determining the first operation stage of the blood from the operation process; wherein the first operation stage includes a blood collection stage and a blood use stage; collecting address data points of the blood; and calculating the change rate of the address data points in a preset time period using the following formula: in, represents the rate of change, Indicates the number of changes of the address data point in a preset time period, Representing a preset time period; using the change rate to identify dynamic data points and static data points in the address data points; based on the dynamic data points and the static data points, dividing the static phase and the flow phase in the operation process; using the static phase and the flow phase to divide the second operation phase of the blood; wherein the second operation phase includes a blood storage phase and a blood transfer phase.
[0025] See also Figure 2 As shown, an embodiment of the present invention Figure 1 A schematic diagram of the operation process of a blood circulation method based on data processing is provided. Figure 2 In the figure, A represents the blood collection station, B represents the blood transfusion department of the hospital, C represents the doctor, D represents the nurse, and E represents the patient. 1 represents the blood transfusion request initiated by the patient to the nurse, 2 represents the blood transfusion request initiated by the nurse to the doctor, 3 represents the blood transfusion request initiated by the doctor to the blood transfusion department of the hospital, 4 represents the blood transfusion request initiated by the blood transfusion department of the hospital to the blood collection station, 5 represents the blood collection station's response to the hospital's blood transfusion department's blood, 6 represents the hospital's blood transfusion department's response to the nurse's blood, and 7 represents the nurse's response to the patient's blood.
[0026] The stage objectives include the objective of the input stage and the objective of the output stage. The objective of the input stage refers to the objective of completing the input, and the objective of the output stage refers to the objective of completing the output.
[0027] It should be noted that the process of collecting the address data points of the blood is similar to the process of tracking the storage address of the blood described below, and will not be further elaborated here.
[0028] Furthermore, the embodiment of the present invention constructs an operating blockchain in the operating stage to replace the cold chain monitoring system with the blockchain, thereby achieving full-chain tracking of blood and increasing the confidentiality and non-tamperability of blood data.
[0029] Further, the construction of the operation blockchain in the operation stage includes: determining an initial blockchain between a blood supplier and a blood demander in the operation stage; receiving a blood supply request from the blood demander in the initial blockchain; receiving a blood supply response from the blood supplier in the initial blockchain based on the blood supply request; determining the number of collection blocks and the number of use blocks in the blood collection stage and the blood use stage in the operation stage according to the blood supply request and the blood supply response; and calculating the number of storage blocks in the blood storage stage in the operation stage according to the blood supply request and the blood supply response using the following formula: in, Indicates the number of storage blocks, represents the value of the jth storage space under the i-th storage site, which is set to 1, n represents the total number of storage sites in the operation stage, and m represents the total number of storage spaces in the operation stage; The number of transfer blocks in the blood transfer phase during the operation phase is calculated using the following formula: in, Indicates the number of blocks transferred, represents the value of the u-th category of medical staff under the i-th storage site, which is set to 1, n represents the total number of storage sites in the operation stage, and U represents the total number of categories of medical staff in the operation stage; A block space including the number of acquisition blocks, the number of usage blocks, the number of storage blocks and the number of transfer blocks is constructed in the initial blockchain, and an index space of the block space is constructed to obtain the operating blockchain.
[0030] Among them, the blood supplier refers to the blood collection station in the operation process, the blood demander refers to the hospital in the operation process, including doctors, nurses, patients, etc., further, the initial blockchain refers to the initial blockchain that does not store the current blood information, the blood supply request includes the requested blood type and the type of person initiating the request, the blood supply response includes the maximum amount of blood that can be collected responded by the blood collection station, the number of collection blocks is one, the number of usage blocks is one, the storage sites include blood collection stations, hospitals, etc., and the storage space includes the hospital's cold storage area, the blood collection station refrigerator, etc.
[0031] See also Figure 3 As shown, an embodiment of the present invention Figure 1 A schematic diagram of a blockchain for operating a blood circulation method based on data processing is provided.
[0032] S2. During the blood collection stage, historical blood information in the operating blockchain is retrieved, an RFID tag of the blood is constructed based on the historical blood information, current blood information of the blood is generated based on the RFID tag, and the current blood information is uploaded to the operating blockchain.
[0033] In the embodiment of the present invention, the RFID tag refers to a blood identification code, which is uniquely determined by the blood bag number and the blood product.
[0034] Furthermore, the embodiment of the present invention constructs an RFID tag of the blood according to the historical blood information, so as to avoid conflicts between the newly generated RFID tag and the RFID tag in the historical blood information.
[0035] Furthermore, the current blood information of the blood is generated based on the RFID tag, including: address information for collecting the blood; constructing storage information of the blood; wherein the storage information includes blood type, blood type, blood product weight, blood collection date, expiration date, storage date and storage time, data entry operator information and blood temperature; the RFID tag, the address information and the storage information are used as the current blood information.
[0036] Furthermore, uploading the current blood information to the operating blockchain includes: querying a target index space of the current blood information in the index space of the operating blockchain; querying a block space of the blood collection stage corresponding to the current blood information in the target index space; and entering the current blood information into the block space.
[0037] S3. During the blood storage stage, the storage address of the blood is tracked, and the current blood information is updated using the storage address in the operating blockchain to obtain a first updated blockchain.
[0038] The embodiment of the present invention tracks the storage address of the blood to display the specific location of the blood in the hospital.
[0039] Furthermore, the tracking of the storage address of the blood includes: using a preset GPS positioning technology to identify the positioning information of the blood; using the positioning information to construct a positioning distribution map of the blood; dividing the positioning distribution map into an expandable positioning area and a non-expandable positioning area; in the expandable positioning area, collecting channel status information of the Internet of Things transfer box that operates the blood; analyzing the expandable positioning points of the Internet of Things transfer box based on the channel status information; using the expandable positioning points to calculate the first storage address of the blood; using the positioning information in the non-expandable positioning area as the second storage address of the blood; and combining the first storage address and the second storage address to obtain the storage address of the blood.
[0040] In another embodiment of the present invention, the calculating the first storage address of the blood by using the expandable positioning point includes: based on the expandable positioning point, updating the channel state information corresponding to the blood by using the following formula to obtain updated channel state information: in, represents the updated channel state information, represents the amplitude attenuation of the path, It represents the relative direction angle of the wireless signal from the transmitter to the space. Indicates the relative direction angle of the wireless signal from the transmitting source to the receiver. It represents the time delay between the signal from the transmitter to the receiver. represents the imaginary part, Indicates the serial number of the transmitting antenna, Indicates the serial number of the receiving antenna, represents the distance between adjacent transmitting antennas, represents the distance between adjacent receiving antennas, Indicates the subcarrier number, represents the interval between consecutive subcarriers, f represents the signal frequency, c represents the speed of light, represents pi; Based on the updated channel state information, the signal propagation distance of the address for monitoring the blood is calculated using the following formula: in, represents the signal propagation distance, c represents the speed of light, represents the amplitude attenuation of the path, represents the total number of subcarriers, represents the center frequency, Indicates that the channel status information is updated in The amplitude on the subcarrier, represents a constant parameter, Indicates that the channel status information is updated in The frequency on the subcarrier.
[0041] Based on the signal propagation distance, a first storage address of the blood is determined.
[0042] Among them, the expandable positioning area refers to the hospital area. Since GPS positioning can only locate the entire area of the hospital and cannot locate the positions of various departments within the hospital, the expandable positioning area is set. The non-expandable positioning area refers to the area without expandable positioning inside, such as traffic lights, parking lots, etc., which can be accurately located using GPS positioning. Furthermore, the channel state information is referred to as CSI for short, which refers to a type of information used to describe the characteristics and quality of a wireless channel in a wireless communication system. It provides information about the time-varying characteristics of the channel, including fading, multipath propagation, interference, etc. CSI contains information on The following aspects of information: Delay: describes the time delay of signal transmission from the transmitter to the receiver; Fading: measures the degree to which the signal strength weakens with increasing distance, that is, the fading characteristics of the signal; Multipath propagation: describes the situation where the signal reaches the receiver through different paths, including direct paths and reflected paths; Spectral efficiency: used to measure how many bits of information can be transmitted under a given bandwidth; Interference: describes the influence of other irrelevant signals on the current signal, such as co-channel interference or heterodyne interference; Noise: describes the random noise introduced by the environment and the receiver itself. Furthermore, the signal propagation distance refers to the distance from the transmitting antenna to the receiving antenna.
[0043] Optionally, the process of analyzing the scalable positioning point of the IoT transfer box based on the channel state information is: using a neural network to analyze the amplitude attenuation, phase offset, and time delay of the path in the channel state information. The neural network refers to a convolutional neural network model for domain adaptation, and its structure includes the following main components: Convolutional Layers: The convolutional layer is the basic component of the DA-CNN model. It extracts and transforms the input data by sliding windows. In each convolutional layer, a series of convolution kernels perform convolution operations on the input and introduce nonlinearity through activation functions. These convolutional layers can extract high-dimensional features from the original image. Pooling Layers: The pooling layer is used to reduce the spatial size of the feature map while retaining the most important features. Domain Adaptation Layer: This layer is a key component of the DA-CNN model and is used to achieve domain adaptation. It eliminates domain differences by aligning the features of the source domain and the target domain. The domain adaptation layer usually uses some adversarial training methods, such as Domain Adversarial Neural Network (DANN) or Maximum Mean Difference (RMSD). Discrepancy, MMD), etc. Fully Connected Layers: The fully connected layer is used to map the output features of the convolutional layer to the space of the predicted target.
[0044] Optionally, the process of determining the first storage address of the blood based on the signal propagation distance is: after determining the propagation path of the signal between multiple transmitting antennas and multiple receiving antennas, the positioning of the blood between the multiple transmitting antennas and multiple receiving antennas can be determined.
[0045] It should be noted that the process of using the storage address to update the current blood information in the operating blockchain to obtain the first updated blockchain is: adding the storage address in the block space.
[0046] S4. In the blood delivery stage, the person delivering the blood is identified, the integrity of the blood is verified at the delivery person, and based on the integrity, the first updated blockchain is updated to obtain a second updated blockchain.
[0047] In the embodiment of the present invention, the delivery personnel include doctors from different departments, nurses from different departments and other personnel types.
[0048] Furthermore, the embodiment of the present invention verifies the integrity of the blood at the delivery person so that when the RFID tag is damaged, other methods can be used to detect the RFID tag, thereby ensuring successful blood number identification and timely detecting the blood volume when the blood volume changes, thereby improving recording accuracy.
[0049] Further, the checking the integrity of the blood at the delivery person includes: detecting the RFID tag of the blood at the delivery person; querying whether there is a target RFID tag consistent with the RFID tag in the first updated blockchain; when there is no target RFID tag consistent with the RFID tag in the first updated blockchain, determining the first integrity of the blood; when there is a target RFID tag consistent with the RFID tag in the first updated blockchain, calculating the blood weight of the blood using the following formula:
[0050] in, represents the blood weight, represents the pre-calibrated area coefficient, represents the projected area of the blood, , represents a constant parameter; Query whether the weight of the blood is consistent with the weight of the blood product in the first updated blockchain, and when the weight of the blood is not consistent with the weight of the blood product in the first updated blockchain, determine the second integrity of the blood; when the weight of the blood is consistent with the weight of the blood product in the first updated blockchain, determine the third integrity of the blood.
[0051] It should be noted that the process of calculating the blood weight of the blood collects an image of the blood bag, uses image recognition technology to identify the projected area of the blood in the image, and calculates the blood weight using trained area coefficients and constant parameters.
[0052] Furthermore, based on the integrity, the first updated blockchain is updated to obtain a second updated blockchain, including: identifying the current delivery person of the blood; querying the block space of the current delivery person in the first updated blockchain; when the integrity is the first integrity, querying the neighborhood RFID tag of the RFID tag; using the neighborhood RFID tag to identify the first target RFID tag of the RFID tag in the first updated blockchain; based on the first target RFID tag, performing a block update in the block space of the current delivery person to obtain a first second updated blockchain; when the integrity is the second integrity, adding blood product weight data to the block space of the current delivery person to obtain a second second updated blockchain; when the integrity is the third integrity, no update operation is performed in the block space of the current delivery person to obtain a third second updated blockchain.
[0053] Among them, the neighborhood RFID tag refers to other RFID tags from the same batch as the current RFID tag. Furthermore, the process of using the neighborhood RFID tag to identify the first target RFID tag of the RFID tag in the first updated blockchain is: query the corresponding recorded RFID tag of each neighborhood RFID tag in the neighborhood RFID tag in the first updated blockchain respectively, so that the first target RFID tag that has no corresponding neighborhood RFID tag can be determined from the recorded RFID tags.
[0054] S5. During the blood use phase, the blood bag carrying the blood is recovered in the second updated blockchain to obtain the blood circulation result of the blood.
[0055] Optionally, the process of recovering the blood bag carrying the blood in the second updated blockchain to obtain the blood circulation result of the blood is: recording the destruction information of the blood bag in the block space corresponding to the blood usage stage, and the destruction information includes the original address information of the blood bag, storage information, destruction mark, empty blood bag quantity, etc.
[0056] It can be seen that the embodiment of the present invention divides the blood operation stage to divide the long chain of blood operation into multiple shorter chains, so as to refine the blood operation process in each short chain later. Furthermore, the embodiment of the present invention constructs the operation blockchain of the operation stage to replace the cold chain monitoring system with the blockchain to realize the full chain tracking of blood and increase the confidentiality and non-tamperability of blood data. Furthermore, the embodiment of the present invention constructs the RFID tag of the blood according to the historical blood information to avoid the conflict between the newly generated RFID tag and the RFID tag in the historical blood information. The embodiment of the present invention tracks the storage address of the blood to display the specific location of the blood in the hospital. Furthermore, the embodiment of the present invention verifies the integrity of the blood at the delivery personnel to detect the RFID tag by other methods when the RFID tag is damaged, ensures the successful identification of the blood number, and detects the blood volume in time when the blood volume changes, thereby improving the recording accuracy. Therefore, the blood operation method based on data processing proposed in the embodiment of the present invention can improve the accuracy of blood operation based on data processing.
[0057] like Figure 4 The figure shows a functional module diagram of the blood circulation system based on data processing of the present invention.
[0058] The blood circulation system 400 based on data processing of the present invention can be installed in an electronic device. According to the functions implemented, the blood circulation system based on data processing can include a phase division module 401, an information upload module 402, an information update module 403, a blockchain update module 404 and a blood bag recovery module 405. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0059] In the embodiment of the present invention, the functions of each module / unit are as follows: The stage division module 401 is used to divide the operation stages of blood, wherein the operation stages include a blood collection stage, a blood storage stage, a blood delivery stage, and a blood use stage, and to construct an operation blockchain of the operation stages; The information uploading module 402 is used to retrieve the historical blood information in the running blockchain during the blood collection phase, construct an RFID tag of the blood according to the historical blood information, generate current blood information of the blood based on the RFID tag, and upload the current blood information to the running blockchain; The information updating module 403 is used to track the storage address of the blood during the blood storage stage, and update the current blood information using the storage address in the running blockchain to obtain a first updated blockchain; The blockchain updating module 404 is used to identify the person delivering the blood during the blood delivery phase, verify the integrity of the blood at the delivery person, and perform blockchain updating on the first updated blockchain based on the integrity to obtain a second updated blockchain; The blood bag recovery module 405 is used to recover the blood bag carrying the blood in the second updated blockchain during the blood use stage to obtain the blood circulation result of the blood.
[0060] In detail, each module in the blood circulation system 400 based on data processing in the embodiment of the present invention is used in the same manner as described above. Figure 1 The blood circulation method based on data processing described in the present invention has the same technical means and can produce the same technical effects, so it will not be repeated here.
[0061] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0062] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A blood circulation method based on data processing, characterized in that: The method comprises: Divide the operation stages of blood, wherein the operation stages include blood collection stage, blood storage stage, blood delivery stage, and blood use stage, and construct an operation blockchain for the operation stages; In the blood collection stage, historical blood information in the running blockchain is retrieved, an RFID tag of the blood is constructed according to the historical blood information, current blood information of the blood is generated based on the RFID tag, and the current blood information is uploaded to the running blockchain; In the blood storage stage, the storage address of the blood is tracked, and the current blood information is updated using the storage address in the running blockchain to obtain a first updated blockchain; In the blood delivery stage, a person delivering the blood is identified, the integrity of the blood is checked at the delivery person, and based on the integrity, the first updated blockchain is updated to obtain a second updated blockchain; During the blood use phase, the blood bag carrying the blood is recovered in the second updated blockchain to obtain a blood circulation result of the blood.
2. The method according to claim 1, characterized in that The blood operation stages are divided into: Determining the operational and abstract processes of said blood; The abstract process includes an input stage, an intermediate stage, and an output stage; Based on the phase objectives of the input phase and the output phase, determining a first operation phase of the blood from the operation process; Wherein, the first operation stage includes a blood collection stage and a blood use stage; collecting address data points of the blood; The change rate of the address data point in a preset time period is calculated using the following formula: in, represents the rate of change, Indicates the number of changes of the address data point in a preset time period, Indicates a preset time period; and uses the change rate to identify dynamic data points and static data points in the address data points; Based on the dynamic data points and the static data points, dividing the operation process into a static phase and a flow phase; Dividing the second operation phase of the blood by the static phase and the flow phase; Wherein, the second operation stage includes a blood storage stage and a blood transfer stage.
3. The method according to claim 1, characterized in that The constructing of the operation blockchain in the operation phase includes: Determining an initial blockchain between the blood supplier and the blood demander in the operation phase; Receiving a blood supply request from the blood demander in the initial blockchain; Based on the blood supply request, receiving a blood supply response from the blood supplier in the initial blockchain; Determining the number of collection blocks and the number of use blocks in the blood collection phase and the blood use phase in the operation phase according to the blood supply request and the blood supply response; According to the blood supply request and the blood supply response, the number of storage blocks in the blood storage phase in the operation phase is calculated using the following formula: in, Indicates the number of storage blocks, represents the value of the jth storage space under the i-th storage site, which is set to 1, n represents the total number of storage sites in the operation stage, and m represents the total number of storage spaces in the operation stage; the number of transfer blocks in the blood transfer stage in the operation stage is calculated using the following formula: in, Indicates the number of blocks transferred, It represents the value of the u-th type of medical staff under the ith storage site, which is set to 1, n represents the total number of storage sites in the operation stage, and U represents the total number of categories of medical staff in the operation stage; construct the block space of the number of acquisition blocks, the number of use blocks, the number of storage blocks and the number of transfer blocks in the initial blockchain, and construct the index space of the block space to obtain the operation blockchain.
4. The method according to claim 1, characterized in that: The generating the current blood information of the blood based on the RFID tag comprises: address information where the blood was collected; Constructing storage information of the blood; The storage information includes blood type, blood type, blood product weight, blood collection date, expiration date, storage date and storage time, data entry operator information and blood temperature; The RFID tag, the address information and the storage information are used as the current blood information.
5. The method according to claim 1, characterized in that: The uploading of the current blood information to the operating blockchain includes: Querying a target index space of the current blood information in the index space of the running blockchain; Querying the block space of the blood collection stage corresponding to the current blood information in the target index space; The current blood information is entered in the block space.
6. The method according to claim 1, characterized in that The tracking of the storage address of the blood comprises: Using a preset GPS positioning technology to identify the location information of the blood; constructing a positioning distribution map of the blood using the positioning information; Dividing the positioning distribution map into an expandable positioning area and a non-expandable positioning area; In the expandable positioning area, collecting channel status information of the Internet of Things transfer box that operates the blood; Analyze the scalable positioning points of the Internet of Things transfer box based on the channel state information; Calculating a first storage address of the blood using the expandable positioning point; Using the positioning information in the non-expandable positioning area as the second storage address of the blood; The first storage address and the second storage address are combined to obtain the storage address of the blood.
7. The method according to claim 6, characterized in that The step of calculating the first storage address of the blood by using the expandable positioning point comprises: Based on the expandable positioning point, the channel state information corresponding to the blood is updated using the following formula to obtain updated channel state information: in, represents the updated channel state information, represents the amplitude attenuation of the path, It represents the relative direction angle of the wireless signal from the transmitter to the space. Indicates the relative direction angle of the wireless signal from the transmitting source to the receiver. It represents the time delay between the signal from the transmitter to the receiver. represents the imaginary part, Indicates the serial number of the transmitting antenna, Indicates the serial number of the receiving antenna, represents the distance between adjacent transmitting antennas, represents the distance between adjacent receiving antennas, Indicates the subcarrier number, represents the interval between consecutive subcarriers, f represents the signal frequency, c represents the speed of light, represents pi; Based on the updated channel state information, the signal propagation distance of the address for monitoring the blood is calculated using the following formula: in, represents the signal propagation distance, c represents the speed of light, represents the amplitude attenuation of the path, represents the total number of subcarriers, represents the center frequency, Indicates that the channel status information is updated in The amplitude on the subcarrier, represents a constant parameter, Indicates that the channel status information is updated in The frequency on the subcarrier.
8. The method according to claim 1, characterized in that The step of checking the integrity of the blood at the delivery person includes: Detecting the RFID tag of the blood at the delivery person; Querying the first updated blockchain whether there is a target RFID tag that is consistent with the RFID tag; When there is no target RFID tag consistent with the RFID tag in the first updated blockchain, determining a first integrity of the blood; When there is a target RFID tag that is consistent with the RFID tag in the first updated blockchain, the blood weight of the blood is calculated using the following formula: in, represents the blood weight, represents the pre-calibrated area coefficient, represents the projected area of the blood, , represents a constant parameter; querying whether the weight of the blood is consistent with the weight of the blood product in the first updated blockchain, and when the weight of the blood is not consistent with the weight of the blood product in the first updated blockchain, determining the second integrity of the blood; When the weight of the blood is consistent with the weight of the blood product in the first updated blockchain, a third integrity of the blood is determined.
9. The method according to claim 1, characterized in that: The updating the first updated blockchain based on the integrity to obtain a second updated blockchain includes: identifying the current transferee of said blood; Querying the block space of the current delivery person in the first updated blockchain; When the integrity is the first integrity, querying the neighboring RFID tags of the RFID tag; identifying a first target RFID tag of the RFID tag in the first updated blockchain using the neighborhood RFID tag; Based on the first target RFID tag, a block update is performed in the block space of the current delivery person to obtain a first second updated blockchain; When the integrity is the second integrity, the blood product weight data is added to the block space of the current delivery person to obtain a second second updated blockchain; When the integrity is the third integrity, no update operation is performed in the block space of the current transfer person, and the third second updated blockchain is obtained.
10. A blood circulation system based on data processing, the blood circulation system implementing the method according to any one of claims 1 to 9, characterized in that: The system comprises: A stage division module is used to divide the operation stages of blood, wherein the operation stages include a blood collection stage, a blood storage stage, a blood delivery stage, and a blood use stage, and to construct an operation blockchain for the operation stages; An information uploading module is used to retrieve historical blood information in the running blockchain during the blood collection phase, construct an RFID tag of the blood according to the historical blood information, generate current blood information of the blood based on the RFID tag, and upload the current blood information to the running blockchain; An information updating module, used for tracking the storage address of the blood during the blood storage stage, and updating the current blood information using the storage address in the running blockchain to obtain a first updated blockchain; A blockchain update module, used for identifying the person delivering the blood during the blood delivery phase, verifying the integrity of the blood at the delivery person, and updating the first updated blockchain based on the integrity to obtain a second updated blockchain; A blood bag recovery module is used to recover the blood bag carrying the blood in the second updated blockchain during the blood use stage to obtain the blood circulation result of the blood.
