Emergency medical logistics monitoring method based on user information and block chain technology
By adopting methods based on user information and blockchain technology in emergency medical logistics monitoring, a blockchain network is built to solve the problem of difficulty in coordination of emergency medical material information flow between multiple logistics companies, and efficient traceability of materials and safe and reliable distribution of materials are achieved.
Patent Information
- Application Number
- CN202411680223.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-11
AI Technical Summary
The existing emergency medical logistics monitoring methods are difficult to coordinate the information flow of emergency medical materials among multiple logistics companies, resulting in inefficient monitoring.
Emergency medical logistics monitoring methods based on user information and blockchain technology are adopted, and by building a material flow blockchain network and material application blockchain network, the emergency medical material information flow is realized between different blockchain networks, and information is stored between logistics distribution points and medical institutions.
Ensure the traceability and safety of emergency medical supplies, improve the distribution efficiency of emergency medical supplies, and achieve smooth and traceability of information flow through blockchain technology.
Smart Images

Figure CN119599553A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of logistics, and in particular to an emergency medical logistics monitoring method based on user information and blockchain technology. Background Art
[0002] Emergency medical supplies are a type of supplies used in special emergency situations. The corresponding emergency medical logistics places higher requirements on the timeliness of logistics transportation.
[0003] Since emergency medical supplies are essentially medical supplies, they are emergency supplies that have strict traceability and quality requirements. It is necessary to ensure that emergency medical supplies can be traced throughout the entire transportation and application process to avoid situations where the quality of emergency medical supplies makes it impossible to trace them, making it difficult to ensure the safety and reliability of emergency medical supplies. Therefore, in order to ensure the traceability of emergency medical supplies and ensure their safety and reliability, it is necessary to monitor the emergency medical logistics that undertake the transportation of emergency medical supplies.
[0004] However, existing emergency medical logistics monitoring methods usually focus on monitoring the transportation routes of emergency medical supplies, that is, they pay more attention to the real-time location of emergency medical supplies during transportation. However, when an existing logistics distribution point of a logistics company is unable to continue to complete the transportation task of emergency medical supplies, the current emergency medical logistics monitoring methods are difficult to coordinate multiple logistics companies, and cannot ensure that the relevant information flow for emergency medical supplies can be effectively and smoothly transferred between different logistics companies under the premise of ensuring safety, thereby seriously reducing the monitoring efficiency of emergency medical logistics. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide an emergency medical logistics monitoring method based on user information and blockchain technology in response to the above-mentioned prior art.
[0006] The technical solution adopted by the present invention to solve the above technical problems is: an emergency medical logistics monitoring method based on user information and blockchain technology, characterized in that it includes the following steps:
[0007] Step 1: Pre-build a material circulation blockchain network based on logistics companies and a material application blockchain network based on medical institutions;
[0008] The material circulation blockchain network includes multiple sub-material circulation blockchain networks and a first-level material circulation routing node. Each sub-material blockchain network corresponds to a logistics company that carries out the transportation of emergency medical materials. The first-level material circulation routing node is a first-level logistics distribution supervision node that supervises the transportation of emergency medical materials performed by each logistics company; the sub-material blockchain network is formed by multiple second-level logistics consensus nodes belonging to the same logistics company and a second-level material circulation routing node. The second-level material circulation routing node is respectively connected to each second-level consensus node in the sub-material blockchain network to which it belongs. A logistics distribution node that carries the transportation of emergency medical materials is a second-level logistics consensus node, and a second-level logistics distribution supervision node that supervises logistics distribution is a second-level material circulation routing node; the second-level material circulation routing nodes in each sub-material blockchain network are respectively connected to the first-level material circulation routing node;
[0009] The material application blockchain network includes multiple sub-material application blockchain networks for emergency medical materials and a first-level material application supervision routing node; each sub-material application blockchain network corresponds to an administrative region that supervises the application of medical materials; the sub-material application blockchain network is formed by multiple second-level material application consensus nodes and a second-level material application supervision routing node belonging to the same administrative region, and the second-level material application supervision routing node is respectively connected to each second-level material application consensus node in the sub-material application blockchain network to which it belongs. A medical institution in the administrative region is a second-level material application consensus node, and a medical supervision center in the administrative region is a second-level material application supervision routing node; the second-level material application supervision routing nodes in each sub-material application blockchain network are respectively connected to the first-level material application supervision routing node;
[0010] Step 2: The logistics company that obtains the emergency medical supplies carrying task forms an emergency medical supplies distribution route according to the carrying task, and extracts information of all logistics distribution nodes located on the emergency medical supplies distribution route; wherein the logistics distribution node information includes the logistics distribution node positioning information and the air environment information of the location, and the air environment information includes air temperature and air humidity;
[0011] Step 3, each logistics distribution node located on the emergency medical supplies distribution route sends the distribution personnel information responsible for the distribution of emergency medical supplies to the secondary logistics distribution supervision node of the logistics company to which it belongs in advance, and the logistics distribution node generates a distribution block; wherein, the distribution block includes a block header and a block body, wherein the block header is embedded with the block height of the distribution block, the block identifier of the previous logistics distribution node, the block identifier of the current logistics distribution node, and the current block generation time, and the block body is embedded with the logistics point distribution information of the current logistics distribution point, and the logistics point distribution information includes the air environment information of the day at the location of the logistics distribution point;
[0012] Step 4: When the logistics distribution node distributes the emergency medical supplies, the logistics distribution node generates a verification public key for encrypting the distribution block and a verification private key for decrypting the encrypted distribution block based on the emergency medical supplies recipient information; wherein the emergency medical supplies recipient information is the user information of the emergency medical supplies, and the emergency medical supplies recipient information includes the ID card information of the emergency medical supplies recipient;
[0013] Step 5: The logistics distribution node sends the verification private key to the distribution personnel responsible for the distribution of emergency medical supplies, the secondary logistics distribution supervision node on its own sub-material blockchain network, and the recipient of the emergency medical supplies, and publishes the verification public key and the distribution block together to the sub-material blockchain network for storage;
[0014] Step 6: When the delivery personnel of the logistics distribution node take over and deliver the emergency medical supplies, they send their verification private key to the secondary logistics distribution supervision node on their own sub-material blockchain network for storage;
[0015] Step 7: The delivery personnel of the logistics distribution node sends the verification private key presented by the emergency medical supplies recipient to the secondary logistics distribution supervision node for verification. The secondary logistics distribution supervision node makes a judgment based on the verification result of the verification private key:
[0016] When the verification with the private key is passed, go to step 8; otherwise, the secondary logistics distribution supervision node performs emergency operations for abnormal verification with the private key;
[0017] Step 8: When the secondary logistics distribution supervision node monitors that its logistics distribution node distributes emergency medical supplies to medical institutions, the secondary logistics distribution supervision node generates a cross-regional collaboration block, a cross-regional public key for encrypting the cross-regional collaboration block, and a cross-regional private key for decrypting the encrypted cross-regional collaboration block; wherein the cross-regional collaboration block includes a block header and a block body, the block header is embedded with the block identifier of the secondary logistics distribution supervision node responsible for cross-blockchain collaboration and the current block generation time, and the block body is embedded with the logistics point distribution information responsible for the distribution of emergency medical supplies to medical institutions;
[0018] Step 9: The secondary logistics distribution supervision node sends the cross-regional collaboration block and the cross-regional private key to the primary material flow routing node and publishes the cross-regional collaboration block and the cross-regional public key to the material flow blockchain network;
[0019] Step 10: The first-level material flow routing node sends the cross-region collaboration block and cross-region private key received from the second-level logistics distribution supervision node to the first-level material application supervision routing node for storage;
[0020] Step 11, the medical institution that is located on the material application blockchain network and has received the emergency medical material distribution generates a medical material block for the emergency materials, a traceability public key for encrypting the medical material block, and a traceability private key for decrypting the encrypted medical material block, and publishes the medical material block and the traceability public key together to the material application blockchain network where the medical institution is located; wherein the medical material block includes a block header and a block body, the block header is embedded with the block identifier of the medical institution and the current block generation time, and the block body is embedded with the ID card information of the medical institution's emergency medical material recipient.
[0021] Improved, in the emergency medical logistics monitoring method based on user information and blockchain technology, the deployment and formation process of the emergency medical supplies distribution route includes the following steps:
[0022] Step a1, the secondary logistics distribution supervision node of the logistics company that undertakes the emergency medical supplies carrying task extracts the carrying information in the emergency medical supplies carrying task; wherein the carrying information includes the starting point location coordinates of the emergency medical supplies, the receiving point location coordinates and the transportation environment requirements of the emergency medical supplies;
[0023] Step a2, the secondary logistics distribution supervision node forms a straight line trajectory for the distribution of emergency medical supplies under an ideal state according to the origin location coordinates and the receiving location coordinates in the extracted bearer information;
[0024] Step a3, the secondary logistics distribution supervision node obtains all logistics distribution points within a preset short distance range of the straight track, so as to form a set of to-be-selected logistics distribution points with all the obtained logistics distribution points;
[0025] Step a4, the secondary logistics distribution supervision node obtains the logistics distribution carrying capacity of each logistics distribution point in the set of logistics distribution points to be selected within a preset number of days in the future from the moment when the set of logistics distribution points to be selected is formed;
[0026] Step a5: The secondary logistics distribution supervision node makes a judgment based on the logistics distribution carrying capacity of each logistics distribution point in the set of selected logistics distribution points:
[0027] When the logistics distribution carrying capacity of any logistics distribution point can meet the carrying capacity of the emergency medical supplies, any logistics distribution point is selected as the actual logistics distribution node, and the process goes to step a6; otherwise, the coordinated distribution between adjacent logistics distribution points is performed, and at least two logistics distribution points responsible for the coordinated distribution are selected as the actual logistics distribution nodes, and the process goes to step a6;
[0028] Step a6, the secondary logistics distribution supervision node obtains the projection points of each actual logistics distribution node in the direction of the straight track, and uses the order of the projection points from the nearest to the originating point on the straight track as the order of distribution of the emergency medical supplies by each logistics distribution node;
[0029] Step a7, forming a logistics distribution point sequence according to the respective distribution order of each logistics distribution node; wherein the logistics distribution point sequence is the emergency medical supplies distribution route.
[0030] Furthermore, in the emergency medical logistics monitoring method based on user information and blockchain technology, the preset close-range range is a circular area located in a two-dimensional plane and having a preset distance value from the straight-line trajectory. The preset distance value is the distance that a logistics vehicle within a logistics company carrying emergency medical supplies can travel on a single non-highway road for 12 hours.
[0031] Furthermore, in the emergency medical logistics monitoring method based on user information and blockchain technology, in step a4, the logistics distribution carrying capacity of the logistics distribution point is calculated as follows:
[0032]
[0033] Among them, τ i represents the logistics distribution carrying capacity of the i-th logistics distribution point on the emergency medical supplies distribution route, δ i,car represents the total number of logistics vehicles in idle state at the i-th logistics distribution point within the preset number of days, δ i,car represents the total number of logistics vehicle drivers who are idle and on standby status at the i-th logistics distribution point within the preset number of days, c i represents the average load of a single vehicle of special logistics vehicles for transporting emergency medical supplies in the i-th logistics distribution point, C i,in represents the average daily cargo volume delivered to the i-th logistics distribution point within the preset number of days, C i,out It represents the average daily total volume of cargo shipped by the i-th logistics distribution point within the preset number of days, C i,0 It represents the average remaining cargo load of the i-th logistics distribution point that has not been successfully shipped out every day within the preset number of days, and the preset number of days is 30 days.
[0034] Compared with the prior art, the advantages of the present invention are as follows: the emergency medical logistics monitoring method based on user information and blockchain technology of the invention constructs a material circulation blockchain network and a material application blockchain network respectively, wherein the material circulation blockchain network has multiple sub-material circulation blockchain networks and a first-level material circulation routing node, and the material application blockchain network includes multiple sub-material application blockchain networks and a first-level material application supervision routing node. The material circulation blockchain network and the material application blockchain network realize the flow of information about emergency medical materials between different blockchain networks through the first-level material circulation routing node and the first-level material application supervision routing node, and the logistics information will also be stored on the blockchain of the material application blockchain network. When emergency medical materials are transported between the logistics distribution points of the material circulation blockchain network and the medical institutions of the material application blockchain network, the information flow about the emergency medical materials generated will be stored on the blockchain to ensure that the subsequent traceability of the transportation of emergency medical materials can be checked; not only that, the first-level logistics distribution supervision node can also adjust and allocate the emergency medical materials distribution routes for emergency medical materials according to the logistics distribution points on the material circulation blockchain network where it is located, thereby improving the distribution efficiency of emergency medical materials. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a flow chart of an emergency medical logistics monitoring method based on user information and blockchain technology in an embodiment of the present invention;
[0036] Figure 2 Schematic diagram of the material circulation blockchain network and material application blockchain network constructed for the embodiment of the present invention;
[0037] Figure 3 It is a schematic diagram of the emergency medical supplies distribution route formed by deployment. DETAILED DESCRIPTION
[0038] The present invention is further described in detail below with reference to the accompanying drawings.
[0039] This embodiment provides an emergency medical logistics monitoring method based on user information and blockchain technology. Figure 1 As shown, the emergency medical logistics monitoring method based on user information and blockchain technology in this embodiment includes the following steps 1 to 11:
[0040] Step 1: Pre-build a material circulation blockchain network based on logistics companies and a material application blockchain network based on medical institutions;
[0041] The material circulation blockchain network includes multiple sub-material circulation blockchain networks and a first-level material circulation routing node A. Each sub-material blockchain network corresponds to a logistics company that carries out the transportation of emergency medical materials. The first-level material circulation routing node A is a first-level logistics distribution supervision node that supervises the transportation of emergency medical materials performed by each logistics company; the sub-material blockchain network is formed by multiple second-level logistics consensus nodes B1 belonging to the same logistics company and a second-level material circulation routing node B0. The second-level material circulation routing node B0 is respectively connected to each second-level consensus node B1 in the sub-material blockchain network to which it belongs. A logistics distribution node that carries the transportation of emergency medical materials is a second-level logistics consensus node, and a second-level logistics distribution supervision node that supervises logistics distribution is a second-level material circulation routing node; the second-level material circulation routing node B0 in each sub-material blockchain network is respectively connected to the first-level material circulation routing node A;
[0042] The material application blockchain network includes multiple sub-material application blockchain networks for emergency medical materials and a first-level material application supervision routing node D; each sub-material application blockchain network corresponds to an administrative region that supervises the application of medical materials; the sub-material application blockchain network is formed by multiple second-level material application consensus nodes C1 and a second-level material application supervision routing node C0 belonging to the same administrative region, and the second-level material application supervision routing node C0 is respectively connected to each second-level material application consensus node C1 in the sub-material application blockchain network to which it belongs, a medical institution in the administrative region is a second-level material application consensus node, and the medical supervision center in the administrative region is a second-level material application supervision routing node; the second-level material application supervision routing node C0 in each sub-material application blockchain network is respectively connected to the first-level material application supervision routing node D;
[0043] Step 2: The logistics company that obtains the emergency medical supplies carrying task forms an emergency medical supplies distribution route according to the carrying task, and extracts information of all logistics distribution nodes located on the emergency medical supplies distribution route; wherein the logistics distribution node information includes the logistics distribution node positioning information and the air environment information of the location, and the air environment information includes air temperature and air humidity;
[0044] Step 3, each logistics distribution node located on the emergency medical supplies distribution route sends the distribution personnel information responsible for the distribution of emergency medical supplies to the secondary logistics distribution supervision node of the logistics company to which it belongs in advance, and the logistics distribution node generates a distribution block; wherein, the distribution block includes a block header and a block body, wherein the block header is embedded with the block height of the distribution block, the block identifier of the previous logistics distribution node, the block identifier of the current logistics distribution node, and the current block generation time, and the block body is embedded with the logistics point distribution information of the current logistics distribution point, and the logistics point distribution information includes the air environment information of the day at the location of the logistics distribution point;
[0045] Specifically in this embodiment, part of the program code used when constructing the delivery block is as follows:
[0046]
[0047] Step 4: When the logistics distribution node distributes the emergency medical supplies, the logistics distribution node generates a verification public key for encrypting the distribution block and a verification private key for decrypting the encrypted distribution block based on the emergency medical supplies recipient information; wherein the emergency medical supplies recipient information is the user information of the emergency medical supplies, and the emergency medical supplies recipient information includes the ID card information of the emergency medical supplies recipient;
[0048] Step 5: The logistics distribution node sends the verification private key to the distribution personnel responsible for the distribution of emergency medical supplies, the secondary logistics distribution supervision node on its own sub-material blockchain network, and the recipient of the emergency medical supplies, and publishes the verification public key and the distribution block together to the sub-material blockchain network for storage;
[0049] Step 6: When the delivery personnel of the logistics distribution node take over and deliver the emergency medical supplies, they send their verification private key to the secondary logistics distribution supervision node on their own sub-material blockchain network for storage;
[0050] Step 7: The delivery personnel of the logistics distribution node sends the verification private key presented by the emergency medical supplies recipient to the secondary logistics distribution supervision node for verification. The secondary logistics distribution supervision node makes a judgment based on the verification result of the verification private key:
[0051] When the verification with the verification private key passes, go to step 8; otherwise, the secondary logistics distribution supervision node performs an emergency operation for abnormal verification with the verification private key; for example, the emergency operation for abnormal verification with the verification private key performed here is that the secondary logistics distribution supervision node sends an alarm prompt to the primary logistics distribution supervision node as the primary material flow routing node for processing, so that the supervisor records the abnormal situation or reports to the next level that the emergency medical supplies are abnormal;
[0052] Step 8: When the secondary logistics distribution supervision node monitors that its logistics distribution node distributes emergency medical supplies to medical institutions, the secondary logistics distribution supervision node generates a cross-regional collaboration block, a cross-regional public key for encrypting the cross-regional collaboration block, and a cross-regional private key for decrypting the encrypted cross-regional collaboration block; wherein the cross-regional collaboration block includes a block header and a block body, the block header is embedded with the block identifier of the secondary logistics distribution supervision node responsible for cross-blockchain collaboration and the current block generation time, and the block body is embedded with the logistics point distribution information responsible for the distribution of emergency medical supplies to medical institutions;
[0053] Step 9: The secondary logistics distribution supervision node sends the cross-regional collaboration block and the cross-regional private key to the primary material flow routing node and publishes the cross-regional collaboration block and the cross-regional public key to the material flow blockchain network;
[0054] Step 10: The first-level material flow routing node sends the cross-region collaboration block and cross-region private key received from the second-level logistics distribution supervision node to the first-level material application supervision routing node for storage;
[0055] Step 11, the medical institution that is located on the material application blockchain network and has received the emergency medical material distribution generates a medical material block for the emergency materials, a traceability public key for encrypting the medical material block, and a traceability private key for decrypting the encrypted medical material block, and publishes the medical material block and the traceability public key together to the material application blockchain network where the medical institution is located; wherein the medical material block includes a block header and a block body, the block header is embedded with the block identifier of the medical institution and the current block generation time, and the block body is embedded with the ID card information of the medical institution's emergency medical material recipient.
[0056] Specifically in this embodiment, in the above step 2, the process of forming the emergency medical supplies distribution route includes the following steps a1 to a7:
[0057] Step a1, the secondary logistics distribution supervision node of the logistics company that undertakes the emergency medical supplies carrying task extracts the carrying information in the emergency medical supplies carrying task; wherein the carrying information includes the coordinates of the departure point of the emergency medical supplies, the coordinates of the receiving point, and the transportation environment requirements of the emergency medical supplies;
[0058] Step a2, the secondary logistics distribution supervision node forms a straight line trajectory for the distribution of emergency medical supplies under an ideal state according to the origin location coordinates and the receiving location coordinates in the extracted bearer information;
[0059] Step a3, the secondary logistics distribution supervision node acquires all logistics distribution points within a preset short-distance range of the straight track, so as to form a set of to-be-selected logistics distribution points with all acquired logistics distribution points; wherein, in step a3, the preset short-distance range is a circular area located in a two-dimensional plane and having a preset distance value from the straight track, and the preset distance value is the distance that a logistics vehicle within a logistics company carrying the task of carrying emergency medical supplies can travel on a single road other than a highway for 12 hours; Figure 3 The circles on both sides of the middle straight line AB represent the logistics distribution points in the set of logistics distribution points to be selected;
[0060] Step a4, the secondary logistics distribution supervision node obtains the logistics distribution carrying capacity of each logistics distribution point in the set of logistics distribution points to be selected within the future preset number of days from the moment when the set of logistics distribution points to be selected is formed; for example, in this embodiment, the future preset number of days here is set to 7 days;
[0061] Step a5: The secondary logistics distribution supervision node makes a judgment based on the logistics distribution carrying capacity of each logistics distribution point in the set of selected logistics distribution points:
[0062] When the logistics distribution carrying capacity of any logistics distribution point can meet the carrying capacity of the emergency medical supplies, any logistics distribution point is selected as the actual logistics distribution node, and the process goes to step a6; otherwise, the coordinated distribution between adjacent logistics distribution points is performed, and at least two logistics distribution points responsible for the coordinated distribution are selected as the actual logistics distribution nodes, and the process goes to step a6;
[0063] In this embodiment, the logistics distribution carrying capacity of the logistics distribution point is calculated as follows:
[0064]
[0065] Among them, τ i represents the logistics distribution carrying capacity of the i-th logistics distribution point on the emergency medical supplies distribution route, δ i,car represents the total number of logistics vehicles in the idle state at the i-th logistics distribution point on average within the preset number of days. For example, the preset number of days is 3 days; δ i,car represents the total number of logistics vehicle drivers who are idle and on standby status at the i-th logistics distribution point within the preset number of days, c i represents the average load of a single vehicle of special logistics vehicles for transporting emergency medical supplies in the i-th logistics distribution point, C i,in represents the average daily cargo volume delivered to the i-th logistics distribution point within the preset number of days, C i,out It represents the average daily total volume of cargo shipped by the i-th logistics distribution point within the preset number of days, C i,0It represents the average remaining cargo volume of the i-th logistics distribution point that has not been successfully shipped out every day within the preset number of days, and the preset number of days is 30 days;
[0066] Step a6, the secondary logistics distribution supervision node obtains the projection points of each actual logistics distribution node in the direction of the straight track, and uses the order of the projection points from the nearest to the originating point on the straight track as the order of distribution of the emergency medical supplies by each logistics distribution node;
[0067] Step a7, forming a logistics distribution point sequence according to the respective distribution order of each logistics distribution node; wherein the logistics distribution point sequence is the emergency medical supplies distribution route.
[0068] In addition, in step 3 of this embodiment, the process in which the logistics distribution supervision node generates a distribution block corresponding to each logistics distribution node based on the information of each distribution personnel includes the following steps b1 to b4:
[0069] Step b1, the logistics distribution supervision node obtains the ID card information of the recipient of the emergency medical supplies, and the logistics distribution supervision node obtains the ID card information of the delivery personnel of each logistics distribution node respectively;
[0070] Step b2: The logistics distribution supervision node generates an emergency medical supplies delivery person identification corresponding to each delivery person according to the obtained recipient ID information and delivery person ID information; wherein the emergency medical supplies delivery person identification is marked as
[0071]
[0072] in, It is the first identifier formed based on the recipient’s ID card information. A second identifier formed based on the delivery personnel's ID card information;
[0073] P1 is the total number of strokes of the first character of the recipient's surname as recorded on the recipient's ID card, Q1 is the value of the first digit of the ID number as recorded on the recipient's ID card, U1 is the average value of all digits in the ID number as recorded on the recipient's ID card, and W1 is the total number of strokes of the recipient's name as recorded on the recipient's ID card;
[0074] P2 is the total number of strokes of the first character of the delivery personnel's surname as recorded on the delivery personnel's ID card, Q2 is the value of the first digit of the ID number recorded on the delivery personnel's ID card, U2 is the average value of all digits in the ID number recorded on the delivery personnel's ID card, and W2 is the total number of strokes of the recipient's name as recorded on the delivery personnel's ID card;
[0075] Step b3, the logistics distribution supervision node uses the network identification number of the logistics distribution point to which each delivery personnel belongs and the emergency medical supplies delivery person identification of the delivery personnel as the delivery-specific identification number of the delivery personnel; wherein,
[0076] Step b4: the logistics distribution supervision node generates a distribution block corresponding to the logistics distribution node based on the obtained distribution-specific identification number.
[0077] Correspondingly, in step 4 of this embodiment, the logistics distribution node generates the verification public key and the verification private key using an elliptic curve algorithm; wherein the verification public key and the verification private key are generated as follows:
[0078] K=k·P;P=(x P ,y P );
[0079] Among them, K is the public key for verification, k is the private key for verification and is a randomly generated positive number, P is a point on the elliptic curve S other than the origin O, and the function expression of the elliptic curve S is as follows:
[0080] y 2 =x 3 +αx+1mod23;
[0081] In addition, specifically referring to step 8 and step 11 of this embodiment, in step 8, the generation method of the cross-region public key and the cross-region private key is as follows: M = q·N; M = (x N ,y N ), where M is the public key for verification, q is the private key for cross-zone and is a randomly generated positive number, N is a point on the elliptic curve S1 other than the origin O, and the function expression of the elliptic curve S1 is y 2 =x 3 +x+1mod23; wherein, in this embodiment, the relevant program code for generating the cross-region public key and the cross-region private key is as follows:
[0082]
[0083]
[0084] In step 11, the public key and private key for tracing are generated as follows: G = r·J; J = (x J ,y J ); where G is the public key for tracing, r is the private key for tracing and is a randomly generated positive number, and J is a point on the elliptic curve S2 other than the origin O. The function expression of the elliptic curve S2 is: 2 =y 3 +y+1mod23.
[0085] Considering that emergency medical supplies transportation is a special type of material transportation, it has more stringent requirements for the delivery time and transportation route of logistics transportation. Therefore, in this embodiment, the emergency medical logistics monitoring method based on user information and blockchain technology in this embodiment also includes: the secondary logistics distribution supervision node constructs an emergency transportation optimization route for the currently deployed emergency medical supplies distribution route based on the historical traffic conditions between the previous material distribution point and the next material distribution point on the currently deployed emergency medical supplies distribution route. Specifically, the construction method of the emergency transportation optimization route here is as follows:
[0086] Step c1, constructing a material transportation delay cost function for the logistics vehicles deployed by the secondary logistics distribution supervision node to transport emergency medical supplies from the previous logistics distribution point to the next logistics distribution point; wherein the material transportation delay cost function is as follows:
[0087]
[0088]
[0089] Among them, a is the logistics vehicle deployed by the secondary logistics distribution supervision node, C a is the transportation delay cost of logistics vehicle material a, is the basic penalty cost for logistics vehicle transportation delay, λ a is the increase multiple of the penalty cost for transportation delay of logistics vehicle a; U a is the total delay time when logistics vehicle a transports emergency medical supplies to the emergency medical supplies receiving location B, T av It represents the time required for logistics vehicle a to transport emergency medical supplies to logistics distribution point v, RT a The latest receiving time of the emergency medical supplies receiving place (i.e. the delivery address);
[0090] Step c2, obtaining the historical traffic congestion coefficient between the previous material distribution point and the next material distribution point; wherein the previous material distribution point A n Go to the next material distribution point A n+1 The historical traffic congestion coefficient is marked as
[0091]
[0092] Step c3, constructing a transportation cost function of a logistics distribution point responsible for the transportation of emergency medical supplies; wherein the transportation cost function of the logistics distribution point is as follows:
[0093]
[0094]
[0095] Among them, U a is the transportation cost function of the logistics distribution point, g0 is the unit transportation cost of logistics vehicle a, u0 is the driving speed of logistics vehicle a, It refers to the distance that logistics vehicle a travels from logistics distribution point A to emergency medical supplies receiving point B. is the transportation time required for logistics vehicle a to transport emergency medical supplies from logistics distribution point A to emergency medical supplies receiving point B; and, in the process of logistics vehicle a transporting the same batch of emergency medical supplies, the driving speed and freight of logistics vehicle a in transporting emergency medical supplies per kilometer are constant; N is the total number of logistics distribution points on the currently allocated emergency medical supplies distribution route;
[0096] Step c4, according to the constructed material transportation delay cost function of the logistics vehicle, the historical traffic congestion coefficient between the upper and lower material distribution points, and the transportation cost function, the transportation route optimization objective function is obtained, and the transportation route corresponding to the minimum function value of the transportation route optimization objective function is used as the emergency transportation optimization route for the currently deployed emergency medical material distribution route; wherein the transportation route optimization objective function is marked as F = {minC a ,minU a};
[0097]
[0098] Although the preferred embodiments of the present invention are described in detail above, it should be clearly understood that various modifications and variations are possible for those skilled in the art. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. The emergency medical logistics monitoring method based on user information and blockchain technology is characterized by: The steps include: Step 1: Pre-build a material circulation blockchain network based on logistics companies and a material application blockchain network based on medical institutions; The material circulation blockchain network includes multiple sub-material circulation blockchain networks and a first-level material circulation routing node. Each sub-material blockchain network corresponds to a logistics company that carries out the transportation of emergency medical materials. The first-level material circulation routing node is a first-level logistics distribution supervision node that supervises the transportation of emergency medical materials performed by each logistics company; the sub-material blockchain network is formed by multiple second-level logistics consensus nodes belonging to the same logistics company and a second-level material circulation routing node. The second-level material circulation routing node is respectively connected to each second-level consensus node in the sub-material blockchain network to which it belongs. A logistics distribution node that carries the transportation of emergency medical materials is a second-level logistics consensus node, and a second-level logistics distribution supervision node that supervises logistics distribution is a second-level material circulation routing node; the second-level material circulation routing nodes in each sub-material blockchain network are respectively connected to the first-level material circulation routing node; The material application blockchain network includes multiple sub-material application blockchain networks for emergency medical materials and a first-level material application supervision routing node; each sub-material application blockchain network corresponds to an administrative region that supervises the application of medical materials; the sub-material application blockchain network is formed by multiple second-level material application consensus nodes and a second-level material application supervision routing node belonging to the same administrative region, and the second-level material application supervision routing node is respectively connected to each second-level material application consensus node in the sub-material application blockchain network to which it belongs. A medical institution in the administrative region is a second-level material application consensus node, and a medical supervision center in the administrative region is a second-level material application supervision routing node; the second-level material application supervision routing nodes in each sub-material application blockchain network are respectively connected to the first-level material application supervision routing node; Step 2: The logistics company that obtains the emergency medical supplies carrying task forms an emergency medical supplies distribution route according to the carrying task, and extracts information of all logistics distribution nodes located on the emergency medical supplies distribution route; wherein the logistics distribution node information includes the logistics distribution node positioning information and the air environment information of the location, and the air environment information includes air temperature and air humidity; Step 3, each logistics distribution node located on the emergency medical supplies distribution route sends the distribution personnel information responsible for the distribution of emergency medical supplies to the secondary logistics distribution supervision node of the logistics company to which it belongs in advance, and the logistics distribution node generates a distribution block; wherein, the distribution block includes a block header and a block body, wherein the block header is embedded with the block height of the distribution block, the block identifier of the previous logistics distribution node, the block identifier of the current logistics distribution node, and the current block generation time, and the block body is embedded with the logistics point distribution information of the current logistics distribution point, and the logistics point distribution information includes the air environment information of the day at the location of the logistics distribution point; Step 4: When the logistics distribution node distributes the emergency medical supplies, the logistics distribution node generates a verification public key for encrypting the distribution block and a verification private key for decrypting the encrypted distribution block based on the emergency medical supplies recipient information; wherein the emergency medical supplies recipient information is the user information of the emergency medical supplies, and the emergency medical supplies recipient information includes the ID card information of the emergency medical supplies recipient; Step 5: The logistics distribution node sends the verification private key to the distribution personnel responsible for the distribution of emergency medical supplies, the secondary logistics distribution supervision node on its own sub-material blockchain network, and the recipient of the emergency medical supplies, and publishes the verification public key and the distribution block together to the sub-material blockchain network for storage; Step 6: When the delivery personnel of the logistics distribution node take over and deliver the emergency medical supplies, they send their verification private key to the secondary logistics distribution supervision node on their own sub-material blockchain network for storage; Step 7: The delivery personnel of the logistics distribution node sends the verification private key presented by the emergency medical supplies recipient to the secondary logistics distribution supervision node for verification. The secondary logistics distribution supervision node makes a judgment based on the verification result of the verification private key: When the verification with the private key is passed, go to step 8; otherwise, the secondary logistics distribution supervision node performs emergency operations for abnormal verification with the private key; Step 8: When the secondary logistics distribution supervision node monitors that its logistics distribution node distributes emergency medical supplies to medical institutions, the secondary logistics distribution supervision node generates a cross-regional collaboration block, a cross-regional public key for encrypting the cross-regional collaboration block, and a cross-regional private key for decrypting the encrypted cross-regional collaboration block; wherein the cross-regional collaboration block includes a block header and a block body, the block header is embedded with the block identifier of the secondary logistics distribution supervision node responsible for cross-blockchain collaboration and the current block generation time, and the block body is embedded with the logistics point distribution information responsible for the distribution of emergency medical supplies to medical institutions; Step 9: The secondary logistics distribution supervision node sends the cross-regional collaboration block and the cross-regional private key to the primary material flow routing node and publishes the cross-regional collaboration block and the cross-regional public key to the material flow blockchain network; Step 10: The first-level material flow routing node sends the cross-region collaboration block and cross-region private key received from the second-level logistics distribution supervision node to the first-level material application supervision routing node for storage; Step 11, the medical institution that is located on the material application blockchain network and has received the emergency medical material distribution generates a medical material block for the emergency materials, a traceability public key for encrypting the medical material block, and a traceability private key for decrypting the encrypted medical material block, and publishes the medical material block and the traceability public key together to the material application blockchain network where the medical institution is located; wherein the medical material block includes a block header and a block body, the block header is embedded with the block identifier of the medical institution and the current block generation time, and the block body is embedded with the ID card information of the medical institution's emergency medical material recipient.
2. The method for monitoring emergency medical logistics based on user information and blockchain technology according to claim 1 is characterized in that: The deployment and formation process of the emergency medical supplies distribution route includes the following steps: Step a1, the secondary logistics distribution supervision node of the logistics company that undertakes the emergency medical supplies carrying task extracts the carrying information in the emergency medical supplies carrying task; wherein the carrying information includes the starting point location coordinates of the emergency medical supplies, the receiving point location coordinates and the transportation environment requirements of the emergency medical supplies; Step a2, the secondary logistics distribution supervision node forms a straight line trajectory for the distribution of emergency medical supplies under an ideal state according to the origin location coordinates and the receiving location coordinates in the extracted bearer information; Step a3, the secondary logistics distribution supervision node obtains all logistics distribution points within a preset short distance range of the straight track, so as to form a set of to-be-selected logistics distribution points with all the obtained logistics distribution points; Step a4, the secondary logistics distribution supervision node obtains the logistics distribution carrying capacity of each logistics distribution point in the set of logistics distribution points to be selected within a preset number of days in the future from the moment when the set of logistics distribution points to be selected is formed; Step a5: The secondary logistics distribution supervision node makes a judgment based on the logistics distribution carrying capacity of each logistics distribution point in the set of selected logistics distribution points: When the logistics distribution carrying capacity of any logistics distribution point can meet the carrying capacity of the emergency medical supplies, any logistics distribution point is selected as the actual logistics distribution node, and the process goes to step a6; otherwise, the coordinated distribution between adjacent logistics distribution points is performed, and at least two logistics distribution points responsible for the coordinated distribution are selected as the actual logistics distribution nodes, and the process goes to step a6; Step a6, the secondary logistics distribution supervision node obtains the projection points of each actual logistics distribution node in the direction of the straight track, and uses the order of the projection points from the nearest to the originating point on the straight track as the order of distribution of the emergency medical supplies by each logistics distribution node; Step a7, forming a logistics distribution point sequence according to the respective distribution order of the logistics distribution nodes; wherein the logistics distribution point sequence is the emergency medical supplies distribution route.
3. The method for monitoring emergency medical logistics based on user information and blockchain technology according to claim 2 is characterized in that: The preset close-range range is a circular area located in a two-dimensional plane and having a preset distance value from the straight-line trajectory. The preset distance value is the distance that a logistics vehicle within a logistics company carrying emergency medical supplies can travel on a single non-highway road for 12 hours.
4. The method for monitoring emergency medical logistics based on user information and blockchain technology according to claim 1 is characterized in that: In step 3, the logistics distribution supervision node generates a distribution block corresponding to each logistics distribution node based on the information of each distribution personnel, including the following steps: Step b1, the logistics distribution supervision node obtains the ID card information of the recipient of the emergency medical supplies, and the logistics distribution supervision node obtains the ID card information of the delivery personnel of each logistics distribution node respectively; Step b2, the logistics distribution supervision node generates an emergency medical supplies delivery person identification corresponding to each delivery person according to the acquired recipient ID information and delivery person ID information; wherein the emergency medical supplies delivery person identification is marked as in, It is the first identifier formed based on the recipient’s ID card information. A second identifier formed based on the delivery personnel's ID card information; P1 is the total number of strokes of the first character of the recipient's surname as recorded on the recipient's ID card, Q1 is the value of the first digit of the ID number as recorded on the recipient's ID card, U1 is the average value of all digits in the ID number as recorded on the recipient's ID card, and W1 is the total number of strokes of the recipient's name as recorded on the recipient's ID card; P2 is the total number of strokes of the first character of the delivery personnel's surname as recorded on the delivery personnel's ID card, Q2 is the value of the first digit of the ID number recorded on the delivery personnel's ID card, U2 is the average value of all digits in the ID number recorded on the delivery personnel's ID card, and W2 is the total number of strokes of the recipient's name as recorded on the delivery personnel's ID card; Step b3, the logistics distribution supervision node uses the network identification number of the logistics distribution point to which each delivery personnel belongs and the emergency medical supplies delivery person identification of the delivery personnel as the delivery-specific identification number of the delivery personnel; wherein, Step b4: the logistics distribution supervision node generates a distribution block corresponding to the logistics distribution node based on the obtained distribution-specific identification number.
5. The method for monitoring emergency medical logistics based on user information and blockchain technology according to claim 4 is characterized in that: In step 4, the logistics distribution node generates the verification public key and the verification private key using an elliptic curve algorithm; wherein the verification public key and the verification private key are generated as follows: K=k·P;P=(x P ,y P ); Wherein, K is the public key for verification, k is the private key for verification and is a randomly generated positive number, P is a point on the elliptic curve S other than the origin O, and the function expression of the elliptic curve S is as follows:
6. The method for monitoring emergency medical logistics based on user information and blockchain technology according to claim 5 is characterized in that: In step 8, the cross-region public key and the cross-region private key are generated as follows: M=q·N;M=(x N ,y N ); Among them, M is the public key for verification, q is the cross-zone private key and is a randomly generated positive number, N is a point on the elliptic curve S1 other than the origin O, and the function expression of the elliptic curve S1 is as follows: y 2 =x 3 +x+1mod23; In step 11, the public key for tracing and the private key for tracing are generated as follows: G=r·J;J=(x J ,y J ); Among them, G is the public key for tracing, r is the private key for tracing and is a randomly generated positive number, J is a point on the elliptic curve S2 other than the origin O, and the function expression of the elliptic curve S2 is as follows: x 2 =y 3 +y+1mod23。 7. The method for monitoring emergency medical logistics based on user information and blockchain technology according to claim 2 is characterized in that: Also includes: The secondary logistics distribution supervision node constructs a transportation route optimization model for the currently allocated emergency medical supplies distribution route based on the historical traffic conditions between the previous material distribution point to the next material distribution point on the currently allocated emergency medical supplies distribution route, and displays the delivery time required for logistics vehicles on two adjacent material distribution routes.