A method and system for improving the timeliness of specimen submission
By combining identity verification and spatial permission checks with scanning time and beacon technology, the specimen delivery process is dynamically updated, solving the problem of inaccurate specimen location tracking in existing technologies and improving the timeliness and accuracy of specimen delivery.
Patent Information
- Application Number
- CN202510485952.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2026-05-15
- Estimated Expiration
- 2045-04-17
AI Technical Summary
Existing technologies cannot accurately track the location and status of specimens under high load and complex conditions, leading to delays, misplacement, or loss of specimens, which affects processing efficiency and accuracy. The lack of an effective geolocation verification mechanism increases the probability of medical errors.
By obtaining the specimen collector's identification number and real-time task node number, and matching and verifying them with the scanning time, spatial permissions and beacon technology are introduced to ensure the accuracy of the handover geographical location, dynamically update and handle abnormal states, and re-plan the path node sequence.
It improves the timeliness and accuracy of specimen delivery, avoids human error, enhances process monitoring and response speed, and improves the flexibility and security of specimen processing.
Smart Images

Figure CN120432100B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of sample processing technology, and in particular to a method and system for improving the timeliness of specimen delivery. Background Technology
[0002] The field of sample processing technology encompasses the automation and intelligent management of medical testing processes, aiming to optimize the collection, transportation, and testing of medical specimens to improve efficiency and accuracy. Core components include real-time logistics tracking, multi-role collaborative verification, and intelligent error prevention mechanisms. By integrating information technology and logistics management, this field addresses the timeliness and error rate issues in traditional medical specimen processing, enabling healthcare providers to more effectively manage and monitor the entire process from specimen collection to testing.
[0003] The method for improving the timeliness of specimen delivery refers to ensuring that medical specimens are delivered to the laboratory on time and processed quickly through specific technical means. This patent covers every key step from specimen collection to transportation and receipt, achieved by establishing a multi-role barcode verification and real-time logistics information update mechanism. The method described in the patent includes the collaborative work of a three-tiered user system involving nurses, delivery personnel, and the laboratory department, as well as the use of barcode technology to achieve real-time status updates and confirmations at each stage, ensuring the accuracy and timeliness of each operation.
[0004] While existing technologies integrate information technology and logistics management, they have shortcomings in real-time monitoring and handling of abnormal states. Under high load and complex conditions, existing systems cannot accurately track the specific location and status of specimens, leading to risks of delivery delays, specimen misplacement, or loss. When staff are busy or the system is under heavy load, existing technologies fail to update specimen status or handle abnormalities in a timely manner, affecting overall processing efficiency and specimen accuracy. The lack of an effective geolocation verification mechanism leads to specimen security issues during transfer, increasing the probability of medical errors. These shortcomings limit the ability of medical institutions to process specimens, resulting in inaccurate test results and affecting the timeliness and accuracy of patient recovery. Summary of the Invention
[0005] To address the shortcomings of existing technologies in real-time monitoring and handling of abnormal states, under high load and complex conditions, current systems cannot accurately track the specific location and status of specimens, leading to risks of delayed delivery, misplacement, or loss of specimens. When staff are busy or the system is under heavy load, existing technologies fail to update specimen status or handle abnormalities in a timely manner, affecting overall processing efficiency and specimen accuracy. The lack of an effective geolocation verification mechanism leads to specimen security issues during transfer, increasing the probability of medical errors. These shortcomings limit the specimen processing capabilities of medical institutions, resulting in inaccurate test results and affecting the timeliness and accuracy of patient recovery. This invention provides a method and system to improve the timeliness of specimen delivery. The technical solution is as follows:
[0006] On the one hand, a method for improving the timeliness of specimen delivery is provided, the method comprising:
[0007] S1: Obtain the specimen collector's ID number, real-time task node number, and scanning time. Match the ID number with the list of responsible persons for real-time nodes in the preset task path. If the match is successful, write it to the task path log. If the match fails, stop scanning and record the node number and deviation time, and generate a node timing compliance identifier.
[0008] S2: Based on the node time sequence compliance identifier, compare the grid number of the real-time specimen handover site with the spatial label set of the node in the task path, select to activate the handover operation permission and prohibit scanning, and generate spatial permission verification results;
[0009] S3: Call the space permission verification result, read the specimen transport container status field, if the real-time status is out of the warehouse and the verification result is active, update the status to transporting and generate a transport status update instruction.
[0010] S4: According to the transportation status update instruction, extract the node number, identity number and operation time point from the real-time signature frame, and perform a series verification with the node number continuity, identity responsibility list and time sequence window of the previous frame. If they are continuous and conform to the preset path order, generate a signature frame and send the sample for inspection; otherwise, interrupt the process and mark the abnormal frame number, and generate a path continuity judgment result.
[0011] Optionally, the node timing compliance identifier includes node deviation time, node number, and identity matching result; the spatial permission verification result includes grid permission status, spatial positioning consistency, and handover permission status; the transportation status update instruction includes transportation anomaly marker, signature chain update time point, and next node warning information; and the path continuity determination result includes signature frame validity, anomaly frame number, and path node continuity.
[0012] Optionally, the steps for obtaining the node timing compliance identifier are as follows:
[0013] S101: Obtain the specimen collector's ID number, real-time task path node number, and scanning time. Match the ID number with the responsible person number corresponding to the real-time node in the task path, and perform an attribution judgment operation between the scanning time and the preset handover time interval of the real-time node. When both judgments meet the conditions, merge the ID number, node number, and scanning time to generate an ID node association dataset.
[0014] S102: Based on the identity node association dataset, extract the start and end values of the scanning time and the time interval set by the node in the task path, calculate the position interval of the scanning time and the start and end values, and determine whether the relative position interval is within the time interval set in the task path. If the determination is yes, mark it as a time sequence compliance state and generate a scanning time matching state.
[0015] S103: Based on the scanning time matching status, filter the record items marked as non-compliant, extract the corresponding node number and offset time length, and if the status is compliant, generate a joint field value of the identity number, node number and scanning time to generate a node time sequence compliance identifier.
[0016] Optionally, the steps for obtaining the space permission verification result are as follows:
[0017] S201: Based on the node time sequence compliance identifier, extract the grid number and beacon positioning data of the real-time specimen handover site, and obtain the handover node spatial matching information by comparing the set intersection of the grid number and the spatial label set of the corresponding node in the task path.
[0018] S202: Based on the spatial matching information of the handover node, obtain the identity number and the permission role number bound in the spatial tag set, and compare the identity number with the permission number list of any tag. If the judgment is true, grant the scanning permission; if not, freeze the scanning operation and record the identity and space combination to generate the space permission verification result.
[0019] The formula for comparing whether an identity number exists in the list of permission numbers for any tag is as follows:
[0020]
[0021] Where CA represents the permission matching value of the identity and space combination, and P i R represents the permission number of the i-th tag. i A represents the identity number in the i-th label. i B represents the weight factor corresponding to the i-th label. irepresents the size of the space corresponding to the i-th label, and n represents the total number of labels.
[0022] Optionally, the step of obtaining the transportation status update instruction specifically includes:
[0023] S301: Call the space permission verification result, read the status field value of the real-time specimen transport container, and verify whether the permission verification result is active by judging whether the field value is out of the warehouse. If both judgment results are yes, enter the status update process and obtain the out of the warehouse status determination identifier.
[0024] S302: Based on the outbound status determination identifier, extract the real-time identity number, handover grid number and scanning operation time, merge the three pieces of information according to the set field order, and write them into the node position of the specimen signature chain field. Update the value of the specimen transport container status field, set the real-time status to transport, and obtain the transport status signature record.
[0025] S303: Based on the transport status signature record, obtain the start and end information of the time window of the next node in the task path, and continuously monitor whether the status field completes the update operation from "in transit" to "to be received" within the time period. If no status change is detected before the end of the time period, mark the status field as "abnormal in transit" and generate a transport status update instruction.
[0026] Optionally, the steps for obtaining the path continuity determination result are as follows:
[0027] S401: According to the transportation status update instruction, extract the node number, identity number and operation time point from the real-time signature frame, and call the data content of the previous frame from the signature chain field. By comparing the sorting sequence value between the real-time node number and the node number of the previous frame, determine whether there is a continuous relationship set in the path table. If they are continuous, mark the real-time frame as the path docking state and obtain the node sequence connection state.
[0028] S402: Based on the node sequence connection status, read the set of real-time identity number and node responsible person number in the task path, perform matching judgment, and determine the attribution of the operation time point and the node preset time window. If both judgment results are true, verify the path consistency of the real-time signature frame; otherwise, stop the specimen delivery process and record the abnormal frame number, and generate the path continuity judgment result.
[0029] Optionally, the determination of the affiliation of the operation time point with the preset time window of the node is performed using the following formula:
[0030]
[0031] Where H represents the time sequence window assignment deviation value, TA represents the timestamp value corresponding to the real-time operation point, TB represents the start timestamp value of the node's preset time sequence window, TC represents the end timestamp value of the node's preset time sequence window, w represents the time sequence window weight coefficient, N represents the total number of nodes in the real-time task path, α represents the path correction factor, and C k This represents the k-th level time-series fault tolerance threshold.
[0032] Optionally, the method further includes step S5:
[0033] S5: Based on the path continuity determination result, if there is an abnormal frame or a timeout without update, immediately lock the specimen transport container status as path blockage, re-plan the path node sequence and update the transport container status to correction transport, synchronously send priority handover notification, and generate specimen handover trigger command.
[0034] The specimen handover triggering instructions include path correction sequence, transport container lock status, and priority handover notification.
[0035] Optionally, the step of obtaining the specimen exchange triggering command specifically includes:
[0036] S501: Based on the path continuity determination result, filter entries marked as abnormal frames and records with outdated status fields, extract the corresponding specimen transport container number, perform a locking operation, and update the specimen transport container to path blocking to obtain transport container blocking records;
[0037] S502: Based on the transport container blocking record, extract the remaining node numbers in the original task path, rearrange the path order in combination with the real-time node position, regenerate the path node sequence and write it into the task path field, and at the same time update the transport container status field to "correction in transport" and generate a path reconstruction status identifier.
[0038] S503: Based on the path reconstruction status identifier, locate the adjacent handover node number in the real-time transportation path, match the corresponding responsible person's identity number, construct the handover reminder field and send the notification information, and generate the specimen handover trigger command.
[0039] On the other hand, the system for improving the timeliness of specimen delivery is used to perform the above-described method for improving the timeliness of specimen delivery, and the system includes:
[0040] The identity verification module obtains the specimen collector's identity number, the current task node number, and the scanning time. It compares the identity number with the responsible person's number and performs boundary judgment on the scanning time and the start and end values of the time window to generate a node timing compliance identifier.
[0041] The permission verification module calls the node time sequence compliance identifier, obtains the grid number and beacon location of the specimen handover site, identifies the relationship between the grid number and the node spatial label set, determines whether the identity number exists in the permission list, and generates spatial permission verification results;
[0042] Based on the spatial permission verification result, the transportation identification module reads the status field of the specimen transportation container and determines whether it is in the out-of-warehouse status. If the determination is true, it writes the status in transit and records the identity number, grid number and real-time operation time, and generates a transportation status update instruction.
[0043] Based on the transportation status update instruction, the node signature module extracts the node number, identity number and operation time of the real-time signature frame, calculates the difference between the node number and the previous signature frame, compares the identity number with the responsibility list, and generates a path continuity determination result.
[0044] The path correction module calls the path continuity determination result. If there is an abnormal frame identifier or time limit record, the transport container status is locked as path blockage. The unfinished node number is selected to reassemble the task path sequence and distribute the handover reminder, and a specimen handover trigger command is generated.
[0045] The beneficial effects of the technical solutions provided in the embodiments of the present invention include at least the following:
[0046] By employing sophisticated identity verification and monitoring of time and location, compliance and accuracy at every step of the operation are ensured. Real-time matching of the collector's identity with task nodes, combined with barcode scanning time records, enables precise control of the operational process, avoiding human error during specimen processing. The introduction of spatial access control and beacon technology ensures the accuracy of the geographical location of specimen handover, enhancing security and traceability. This step-by-step verification logic not only strengthens process monitoring but also improves response speed and processing flexibility. Through dynamic updates and immediate handling of abnormal states, the timeliness and accuracy of specimen delivery are significantly improved. Attached Figure Description
[0047] Figure 1 This is a schematic diagram of the workflow of the present invention;
[0048] Figure 2 This is a system flowchart of the present invention. Detailed Implementation
[0049] The technical solution of the present invention will now be described with reference to the accompanying drawings.
[0050] In embodiments of the present invention, words such as "exemplarily," "for example," etc., are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" in the present invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present the concept in a concrete manner. Furthermore, in embodiments of the present invention, the meaning expressed by "and / or" can be both, or either one.
[0051] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.
[0052] Please see Figure 1 This invention provides a method for improving the timeliness of specimen delivery, the method comprising the following steps:
[0053] S1: Obtain the specimen collector's ID number, real-time task node number, and scanning time. Match the ID number with the list of responsible persons for real-time nodes in the preset task path. If the match is successful and the time is compliant, bind the ID number, node number, and scanning time to the task path log. Otherwise, stop scanning and record the node number and deviation time, and generate a node time sequence compliance identifier.
[0054] S2: Based on the node time sequence compliance identifier, extract the grid number and beacon positioning data of the real-time specimen handover site, compare the grid number with the spatial label set of the node in the task path, if there is an intersection and the identity number matches the spatial label permission, activate the handover operation permission, otherwise prohibit scanning and generate spatial permission verification result;
[0055] S3: Call the space permission verification result, read the specimen transport container status field. If the real-time status is out of the warehouse and the verification result is active, update the status to transporting, and merge the identity number, grid number and operation time to generate a signature chain entry. If the next node does not complete the status update within the set time window, mark the status as transporting abnormal and generate a transport status update instruction.
[0056] S4: According to the transportation status update instruction, extract the node number, identity number and operation time point from the real-time signature frame, and perform a series verification with the node number continuity, identity responsibility list and time sequence window of the previous frame. If they are continuous and conform to the preset path order, generate a signature frame and send the sample for inspection; otherwise, interrupt the process and mark the abnormal frame number, and generate a path continuity judgment result.
[0057] S5: Based on the path continuity determination result, if there are abnormal frames or timeouts without updating the status, immediately lock the specimen transport container status as path blockage, re-plan the path node sequence and update the transport container status to corrective transport, synchronously send priority handover notification, and generate specimen handover trigger command.
[0058] The node timing compliance identifier includes node deviation time, node number, and identity matching result; the spatial permission verification result includes grid permission status, spatial positioning consistency, and handover permission status; the transportation status update instruction includes transportation anomaly marker, signature chain update time, and next node warning information; the path continuity judgment result includes signature frame validity, anomaly frame number, and path node continuity; and the specimen handover trigger instruction includes path correction sequence, transportation container lock status, and priority handover notification.
[0059] The specific steps for obtaining the node timing compliance identifier are as follows:
[0060] S101: Obtain the specimen collector's ID number, real-time task path node number, and scanning time. Match the ID number with the responsible person number corresponding to the real-time node in the task path, and perform an attribution judgment operation on the scanning time and the preset handover time interval of the real-time node. When both judgments meet the conditions, merge the ID number, node number, and scanning time to generate an ID node association dataset.
[0061] When acquiring the specimen collector's ID, real-time task path node number, and scanning time, the acquisition device needs to call the unique ID number bound to the current operator. This ID number is linked to their operator ID and stored in the personnel permission database. The specimen information is read based on the scanning event, and the operation time is recorded and scanning time data is generated. The task path node number is determined by matching the current time interval with the node allocation time period in the path settings. If the current scanning event occurs within the time period of 08:00 to 08:10 in the task path settings, the current node number is identified as N003 and used as the real-time node number. The system extracts the identity number value of the current node from the list of responsible persons for the task node and compares it one-to-one with the extracted collector identity number. If the identity number is successfully retrieved in the list of responsible persons, it is determined that the collector identity number matches the node configuration successfully. At the same time, the current scanning time is recorded and bound to the currently identified node number. The identity number, node number and scanning time are merged to form a structured data entry, which is recorded in the task path log field. This provides the basis for identity traceability and time indexing for subsequent node permission verification and handover processes, and generates an identity node association dataset.
[0062] S102: Based on the identity node association dataset, extract the start and end values of the scanning time and the time interval set by the node in the task path, calculate the position interval of the scanning time and the start and end values, and determine whether the relative position interval is within the time interval set in the task path. If the determination is yes, mark it as a time sequence compliance state and generate a scanning time matching state.
[0063] The system reads the time configuration field that matches the current task node number and extracts the corresponding start and end times as the time interval. The scanning time needs to be compared with this interval for attribution judgment. In the judgment process, the positional relationship between the scanning time and the start and end time intervals is compared to check whether the scanning time is within the time interval. If the time value is earlier than the start time or later than the end time, it is considered to be outside the task path set interval; otherwise, it is marked as being in the compliant segment. In this judgment process, the task path configuration table is the only data source. The time interval configuration of each node is generated by the scheduling unit during the initial task issuance stage and can be adjusted as needed but needs to be updated synchronously. The judgment process does not rely on external variables or real-time data, but is entirely based on the real-time scanning events generated during task execution. After the scanning time attribution judgment is successful, it is recorded as "compliant" and used as the input basis for downstream control logic. The scanning time marked as compliant will be retained for execution permission release and node signature actions to generate a scanning time matching status.
[0064] S103: Based on the scanning time matching status, filter the records marked as non-compliant, extract the corresponding node number and offset time length, and if the status is compliant, generate a joint field value of the identity number, node number and scanning time to generate a node time sequence compliance identifier.
[0065] The scanning records in the task log are filtered. Records marked as non-compliant are analyzed using their node number and scanning time fields. Combined with the handover time period set for that node in the task path configuration, the offset duration of the scanning time exceeding the set interval is calculated. This offset calculation does not rely on real-time samples, but only on the set time and current scanning time fields in the task structure. The extracted offset data, along with the node number, is written into the deviation record table for isolation and marking. This table is maintained separately and does not participate in subsequent signature judgment; it is only used for anomaly tracking. If the matching status is determined to be compliant, the system calls the identity number, node number, and scanning time from that record, combines them into a standard field format structure, and writes it into the task path log as a time-series compliance entry. This entry will participate in the handover node space permission verification and status update process in subsequent steps and is one of the prerequisite elements for the signature chain construction logic, generating a node time-series compliance identifier.
[0066] The specific steps for obtaining the space permission verification result are as follows:
[0067] S201: Based on the node time sequence compliance identifier, extract the grid number and beacon positioning data of the real-time specimen handover site, and obtain the handover node spatial matching information by comparing the set intersection of the grid number and the spatial label set of the corresponding node in the task path.
[0068] The system needs to extract the spatial positioning information corresponding to the current specimen handover location, including the signal identification data emitted by the beacon equipment fixed in the location and the grid number associated with the location of the acquisition equipment. The grid number establishes a unique mapping relationship between the positioning equipment and the grid number mapping table in the spatial structure map. The beacon positioning data is broadcast in real time by the low-power Bluetooth beacon equipment deployed on site. The acquisition equipment receives the signal strength value and determines the current beacon area number based on it. The system packages the real-time acquired grid number and beacon number to form a spatial tag for the current location. Then, by querying the set of spatial tags set for this node in the task path configuration, the system performs a set intersection comparison operation. The system performs intersection filtering on the current location tag and the node spatial tag set. If there is at least one matching item in the filtering result, the current location tag is considered to match the task path node location, and the current spatial tag is recorded as an available tag. This tag will continue to be used in subsequent permission judgments. If the intersection result is empty, the current location is marked as an unauthorized location, and the handover action is terminated. This comparison process is automatically completed based on the node configuration table and the location positioning configuration items to obtain the spatial matching information of the handover node.
[0069] S202: Based on the spatial matching information of the handover node, obtain the identity number and the permission role number bound in the spatial tag set, and compare the identity number with the permission number list of any tag. If the judgment is true, grant the scanning permission; if not, freeze the scanning operation and record the identity and space combination to generate the space permission verification result.
[0070] The formula for checking whether an identity number exists in the list of permission numbers for any tag is as follows:
[0071]
[0072] Where CA represents the permission matching value of the identity and space combination, and P i R represents the permission number of the i-th tag. i A represents the identity number in the i-th label. i B represents the weight factor corresponding to the i-th label. i This represents the size of the space corresponding to the i-th label, and n represents the total number of labels;
[0073] Meaning of parameters and derivation of formulas:
[0074] Pi This represents the permission number in the permission number list of the i-th tag. The specific value comes from the permission number stored in the permission tag database. The first tag permission number list contains a value of 110, and the second tag permission number list contains a value of 120. P1 = 110, P2 = 120.
[0075] R i R1 represents the identity number in the i-th tag. The identity number is obtained by scanning and reading the identity information provided by the user. The identity number in the first tag is set to 115 and the identity number in the second tag is set to 125. Therefore, R1 = 115 and R2 = 125.
[0076] A i The weight factor represents the identity number and measures the importance of the identity. The weight value is set based on the priority of the identity in the permission list or specific importance indicators related to permissions. The weight value can be calculated by factors such as the frequency of use of identity information and the validity of permissions in monitoring. For identity number 115, its weight factor is set to 1.2; for identity number 125, its weight factor is set to 1.5, A1 = 1.2, A2 = 1.5.
[0077] B i The size of the space corresponding to the label is in square meters, reflecting the physical attributes of the space label. The space size value is obtained by real-time monitoring sensors. The space size corresponding to the first label is set to 50 square meters, and the space size corresponding to the second label is set to 60 square meters. Therefore, B1 = 50 and B2 = 60.
[0078] n represents the total number of tags, which is obtained by the number of available tags. In this example, there are two tags, so n = 2.
[0079] The calculation process is as follows:
[0080] Calculate the absolute value of the difference between the permission numbers of tag 1 and tag 2, and multiply it by the ratio of the corresponding weight factor to the space size;
[0081] For the first label:
[0082] |P1-R1|=|110-115|=5;
[0083]
[0084] 5 × 0.024 = 0.12;
[0085] For the second label:
[0086] |P2-R2|=|120-125|=5;
[0087]
[0088] 5 × 0.025 = 0.125;
[0089] Step 2:
[0090] Sum the values calculated for each of the above tags:
[0091] CA = 0.12 + 0.125 = 0.245;
[0092] The results show that the permission matching value of the identity and space combination is 0.245, indicating a low permission matching degree and a poor matching degree between the identity number and the permission label. Through further analysis, the labels with low matching degree can be adjusted or optimized to improve the accuracy of permission matching.
[0093] The specific steps for obtaining the transportation status update instruction are as follows:
[0094] S301: Call the space permission verification result, read the status field value of the real-time specimen transport container, and verify whether the permission verification result is active by judging whether the field value is out of the warehouse. If both judgment results are yes, then enter the status update process and obtain the out of the warehouse status judgment identifier.
[0095] When calling the status field identifier and permission activation flag in the spatial permission verification result, the status field value corresponding to the current container needs to be extracted from the transport container status record. This field value represents the real-time status of the specimen in the current transportation stage. The field value is generated synchronously through the barcode record bound to the container body and the path update. The system compares this field value with the default status definition of the outbound node in the task path. If the current status is outbound, the system considers that the transportation chain has transitioned from the collection node to the handover node preparation state. At the same time, the system reads the corresponding permission verification flag and determines whether the flag is in an "activated" state. If the permission status shows that it is activated, it means that the current identity number has passed the spatial permission judgment and time compliance comparison, and meets the preconditions for the handover operation. After completing the above two judgments, the system immediately calls the status change logic module to start the status update preparation process. This process is jointly triggered by permission and status dual verification in data logic. It does not accept execution under the condition of single verification success and generates an outbound status judgment flag.
[0096] S302: Based on the outbound status determination identifier, extract the real-time identity number, handover grid number and scanning operation time, merge the three pieces of information according to the set field order, and write them into the node position of the specimen signature chain field. Update the value of the specimen transport container status field, set the real-time status to transporting, and obtain the transport status signature record.
[0097] The system extracts three key pieces of information collected at the current node: the identity number of the person performing the handover operation, the grid number to which the handover point belongs, and the time point of the scanning operation. These three pieces of information are respectively derived from the scanning device identity binding record, the grid positioning signal receiver, and the scanning event log. The system integrates these three pieces of information into a standard structured field combination according to the set field order. This combination of data will be appended to the chain field node position of the specimen as a signature chain entry. The specimen signature chain field is arranged in the order of the task path nodes. Each node generates a signature entry to record the complete path of the handover operation. After the signature is written, the system performs a status field update, changing the status value recorded by the current transport container from "outbound" to "in transit". This change also generates a corresponding record entry in the task path log to maintain data consistency and process status synchronization. After the status is successfully written and the signature chain node position is updated synchronously, the transport status signature record is obtained.
[0098] S303: Based on the transportation status signature record, obtain the start and end information of the time window of the next node in the task path, and continuously monitor whether the status field completes the update operation from "in transit" to "to be received" within the time period. If no status change is detected before the end of the time period, mark the status field as "abnormal in transit" and generate a transportation status update instruction.
[0099] The system locates the next node number for the current transportation task and extracts the start and end times of the time window from the task path configuration. This time window represents the limited processing period for the current container after completing the "transporting" status change and entering the next stage. The system needs to periodically monitor the transportation container status field. The monitoring frequency is set by the scheduling management. In each polling cycle, the system reads the current status value of the transportation container and determines whether it has changed from "transporting" to "awaiting receipt" within the set time window. If no status field change is detected within the monitoring cycle and the current time has exceeded the end time of the time window, the system marks the transportation container status field as "abnormal transportation" and stops the current node signature chain writing operation. After the abnormal mark is generated, the system synchronously creates a path control instruction and a transportation task abnormal notification, and generates a transportation status update instruction.
[0100] The specific steps for obtaining the path continuity determination result are as follows:
[0101] S401: According to the transportation status update instruction, extract the node number, identity number and operation time point from the real-time signature frame, and call the data content of the previous frame from the signature chain field. By comparing the sorting sequence value between the real-time node number and the node number of the previous frame, determine whether there is a continuous relationship set in the path table. If they are continuous, mark the real-time frame as the path docking state and obtain the node sequence connection state.
[0102] The core structural data items of the real-time signature frame need to be extracted from the current task path, including the current node number, operator ID number, and scanning operation time. All information is automatically written into the signature chain field by the most recent scanning action. The system calls the content of the previous frame in the signature chain, extracts its node number as a comparison basis, and then retrieves the sorting sequence between node numbers from the task path structure table. By comparing the positional relationship of the node numbers of the current frame and the previous frame, it is determined whether the two are configured adjacently in the preset order of the task path. If the two nodes are sequentially connected in the sorting table, the system marks the current signature frame as being in the path docking state, and regards it as a legal handover link with a continuous sequence. If the current node number appears after the previous frame but the sorting interval is greater than one, this situation is marked as a path jump or missed signature behavior, and is not included in the path docking chain. The system terminates the node signature advancement and records the anomaly. All comparison processes are supported by the node number order rules in the task path structure configuration. These rules are set before the path is issued and remain locked during the process execution to obtain the node sequential connection status.
[0103] S402: Based on the node sequence connection status, read the set of real-time identity number and node responsible person number in the task path, perform matching judgment, and determine the attribution of the operation time point and the node preset time window. If both judgment results are true, verify the path consistency of the real-time signature frame; otherwise, stop the specimen delivery process and record the abnormal frame number, and generate the path continuity judgment result.
[0104] The operation time point is assigned to a node's preset time sequence window using the following formula:
[0105]
[0106] Where H represents the time sequence window assignment deviation value, TA represents the timestamp value corresponding to the real-time operation point, TB represents the start timestamp value of the node's preset time sequence window, TC represents the end timestamp value of the node's preset time sequence window, w represents the time sequence window weight coefficient, N represents the total number of nodes in the real-time task path, α represents the path correction factor, and C k This represents the k-th level time-series fault tolerance threshold;
[0107] Meaning of parameters and derivation of formulas:
[0108] TA (Real-time Operation Time Stamp): The current operation time is obtained through a clock and converted into a timestamp value. For example, 2025-04-11 14:30:00 corresponds to timestamp 1712831400.
[0109] TB (Timing Window Start Timestamp): Reads the preset start time from the task path node configuration. For example, if the preset start time of a node is 2025-04-11 14:20:00, the corresponding timestamp is 1712830800.
[0110] TC (Time Window End Timestamp): Reads the preset end time from the task path node configuration. For example, the preset end time of the node is 2025-04-11 14:40:00, corresponding to timestamp 1712832000.
[0111] w (Timing Window Weight Coefficient): Based on the product of node level (numerical: high level = 3, medium level = 2, low level = 1) and task priority (numerical: urgent = 1.2, high = 0.9, normal = 0.6), for example: medium level (2) × high priority (0.9) = 1.8;
[0112] N (Total number of nodes in the task path): The total number of nodes is calculated from the task path configuration. For example, if the current task path contains 10 nodes, N = 10.
[0113] α (Path Correction Factor): Calculated as the ratio of jump frequency (number of jumps between nodes / total number of nodes) to the number of responsible persons. For example: jump frequency = 5 times / 10 nodes = 0.5, number of responsible persons = 3.
[0114] α = 0.5 / 3 ≈ 0.1667;
[0115] C k (Time-based fault tolerance threshold): The value is retrieved from the preset strategy according to the fault tolerance level. For example: Basic level (k=1)=5, Extended level (k=2)=10, Emergency level (k=3)=15. The fault tolerance threshold is in minutes.
[0116] Calculate the center point of the time window:
[0117]
[0118] Calculate the absolute value of the time deviation:
[0119] |TA-1712831400|=|1712831400-1712831400|=0;
[0120] Calculate the numerator: 0 × 1.8 = 0;
[0121] Calculate the denominator:
[0122]
[0123] Calculate the first fraction:
[0124] Calculate the fault tolerance threshold score:
[0125]
[0126] Substitute into the formula to calculate:
[0127] H = 0 + 15 = 15;
[0128] The results show that the time series window assignment deviation is 15 minutes. According to the preset rule, when H≤C k If the attribution is deemed valid, in this example, H=15 equals the emergency level fault tolerance threshold (k=3), triggering the emergency fault tolerance mechanism, allowing the operation to continue but marking it as a low-confidence event; if H>15, the attribution is deemed to have failed and the process is aborted.
[0129] The specific steps for obtaining the specimen exchange trigger command are as follows:
[0130] S501: Based on the path continuity determination result, filter entries marked as abnormal frames and records with outdated status fields, extract the corresponding specimen transport container number, perform a locking operation, and update the specimen transport container to path blocking to obtain the transport container blocking record;
[0131] Based on the path continuity determination results, the system filters out records marked as abnormal frames and retrieves the specimen transport container status field values from these records. It identifies entries that have not yet completed the update from "in transit" to "awaiting receipt" status. The system merges these two types of information to form an abnormal handover record set, and then extracts the corresponding specimen transport container number from the set. The specimen transport container number serves as a unique identifier for each specimen task link. Upon matching, the system immediately performs a container locking operation, freezing all current handover and signature operation permissions to prevent further path advancement. The system updates the value of the transport container status field to "path blocked" and simultaneously writes it to the task status monitoring field for full-process monitoring and display. This status will be called by the subsequent node identification module to determine whether the current task needs to trigger correction logic. After the operation is completed, the system registers the container number, locking time, and blocking reason classification identifier in the container task status record, obtaining the transport container blocking record.
[0132] S502: Based on the transport container blockage record, extract the remaining node numbers in the original task path, rearrange the path order in combination with the real-time node position, regenerate the path node sequence and write it into the task path field, and at the same time update the transport container status field to "correction in transport" and generate a path reconstruction status identifier.
[0133] Based on the container number contained in the transport container interruption record, the system extracts the set of node numbers of the container's original task path that have not completed the handover action from the path structure configuration. Combined with the actual node location information of the current container, the system determines the current task execution stall point. The system performs a path reconstruction operation according to the original path node order and the node number at the current location. Completed nodes are removed, and the remaining nodes are rearranged from the current location to the target destination. The generated new path node sequence is written into the task path field, overwriting the original path structure before the task interruption. The system synchronously updates the transport container status field to "Correcting in transit" to indicate that the container is currently in the re-progression process under the path reorganization state. This status will be used as a judgment basis in the path signature control module to avoid triggering the abnormal verification process again. After all fields are updated, a path reconstruction status identifier is generated.
[0134] S503: Based on the path reconstruction status identifier, locate the adjacent handover node number in the real-time transportation path, match the corresponding responsible person's identity number, construct the handover reminder field and send the notification information, and generate the specimen handover trigger command;
[0135] Based on the node structure update content in the path reconstruction status identifier, the system locates the next handover node number in the rearranged current task path as the handover target for subsequent advancement. At the same time, it retrieves the list of responsible person numbers configured for this node, extracts the identity numbers that are activated or in standby status from the matching items, and generates a handover task reminder field for this identity number. The reminder field includes the container number, current task number, path location, node number, and handover time limit information. This information is packaged into a push message format and sent synchronously to the receiving terminal corresponding to the identity number. This terminal is a mobile work device or PC interaction registered by the task scheduler. After the message is pushed, the system records the sending time, the recipient's identity number, and the reminder response status to support subsequent response statistics and task closed-loop control, and generates a specimen handover trigger command.
[0136] Please see Figure 2 A system for improving the timeliness of specimen delivery, the system comprising:
[0137] The identity verification module obtains the specimen collector's identity number, the current task node number, and the scanning time. It compares the identity number with the responsible person's number and performs boundary judgment on the scanning time and the start and end values of the time window to generate a node timing compliance identifier.
[0138] The permission verification module calls the node time sequence compliance identifier, obtains the grid number and beacon location of the specimen handover site, identifies the relationship between the grid number and the node spatial label set, determines whether the identity number exists in the permission list, and generates spatial permission verification results;
[0139] Based on the spatial permission verification result, the transportation identification module reads the status field of the specimen transportation container and determines whether it is in the out-of-warehouse status. If the determination is true, it writes the status in transportation and records the identity number, grid number and real-time operation time, and generates a transportation status update instruction.
[0140] The node signature module extracts the node number, identity number and operation time of the real-time signature frame based on the transportation status update instruction. It calculates the difference between the node number and the previous signature frame, compares the identity number with the responsibility list, and generates a path continuity determination result.
[0141] The path correction module calls the path continuity determination result. If there is an abnormal frame identifier or time limit record, the transport container status is locked as path blockage. The unfinished node number is selected to reassemble the task path sequence and distribute handover reminders, and a specimen handover trigger command is generated.
[0142] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for improving the timeliness of specimen delivery, characterized in that, Includes the following steps: S1: Obtain the specimen collector's ID number, real-time task node number, and scanning time. Match the ID number with the list of responsible persons for real-time nodes in the preset task path. If the match is successful, write it to the task path log. If the match fails, stop scanning and record the node number and deviation time, and generate a node timing compliance identifier. S2: Based on the node time sequence compliance identifier, compare the grid number of the real-time specimen handover site with the spatial label set of the node in the task path, select to activate the handover operation permission and prohibit scanning, and generate spatial permission verification results; S3: Call the space permission verification result, read the specimen transport container status field, if the real-time status is out of the warehouse and the verification result is active, update the status to transporting and generate a transport status update instruction. S4: According to the transportation status update instruction, extract the node number, identity number, and operation time point from the real-time signature frame, and perform a series verification with the node number continuity, identity responsibility list, and time sequence window of the previous frame. If they are continuous and conform to the preset path order, generate a signature frame and send the sample for inspection; otherwise, interrupt the process and mark the abnormal frame number, and generate a path continuity judgment result. The specific steps are as follows: S401: According to the transportation status update instruction, extract the node number, identity number and operation time point from the real-time signature frame, and call the data content of the previous frame from the signature chain field. By comparing the sorting sequence value between the real-time node number and the node number of the previous frame, determine whether there is a continuous relationship set in the path table. If they are continuous, mark the real-time frame as the path docking state and obtain the node sequence connection state. S402: Based on the node sequence connection status, read the set of real-time identity number and node responsible person number in the task path, perform matching judgment, and determine the attribution of the operation time point and the node preset time window. If both judgment results are true, verify the path consistency of the real-time signature frame; otherwise, stop the specimen delivery process and record the abnormal frame number, and generate the path continuity judgment result. The method for determining the affiliation of the operation time point with the preset time window of the node is based on the following formula: ; in, This represents the deviation value of the time series window. This represents the timestamp value corresponding to the real-time operation point. The value of the start timestamp of the node's preset timing window. The value of the end timestamp of the node's preset timing window. Represents the time series window weight coefficient. This represents the total number of nodes in the real-time task path. Represents the path correction factor. Representing the Level timing fault tolerance threshold.
2. The method for improving the timeliness of specimen delivery according to claim 1, characterized in that, The node timing compliance identifier includes node deviation time, node number, and identity matching result; the spatial permission verification result includes grid permission status, spatial positioning consistency, and handover permission status; the transportation status update instruction includes transportation anomaly marker, signature chain update time, and next node warning information; and the path continuity determination result includes signature frame validity, anomaly frame number, and path node continuity.
3. The method for improving the timeliness of specimen delivery according to claim 1, characterized in that, The specific steps for obtaining the node timing compliance identifier are as follows: S101: Obtain the specimen collector's ID number, real-time task path node number, and scanning time. Match the ID number with the responsible person number corresponding to the real-time node in the task path, and perform an attribution judgment operation on the scanning time and the preset handover time interval of the real-time node. When both judgments meet the conditions, merge the ID number, node number, and scanning time to generate an ID node association dataset. S102: Based on the identity node association dataset, extract the start and end values of the scanning time and the time interval set by the node in the task path, calculate the position interval of the scanning time and the start and end values, and determine whether the relative position interval is within the time interval set in the task path. If the determination is yes, mark it as a time sequence compliance state and generate a scanning time matching state. S103: Based on the scanning time matching status, filter the record items marked as non-compliant, extract the corresponding node number and offset time length, and if the status is compliant, generate a joint field value of the identity number, node number and scanning time to generate a node time sequence compliance identifier.
4. The method for improving the timeliness of specimen delivery according to claim 3, characterized in that, The specific steps for obtaining the space permission verification result are as follows: S201: Based on the node time sequence compliance identifier, extract the grid number and beacon positioning data of the real-time specimen handover site, and obtain the handover node spatial matching information by comparing the set intersection of the grid number and the spatial label set of the corresponding node in the task path. S202: Based on the spatial matching information of the handover node, obtain the identity number and the permission role number bound in the spatial tag set, and compare the identity number with the permission number list of any tag. If the judgment is true, grant the scanning permission; if not, freeze the scanning operation and record the identity and space combination to generate the space permission verification result. The formula for comparing whether an identity number exists in the list of permission numbers for any tag is as follows: ; in, The permission matching value representing the combination of identity and space. Representing the The permission number of each tag. Representing the The identification number in each label, Representing the The weight factor corresponding to each label Representing the The size of the space corresponding to each label This represents the total number of tags.
5. The method for improving the timeliness of specimen delivery according to claim 4, characterized in that, The specific steps for obtaining the transportation status update instruction are as follows: S301: Call the space permission verification result, read the status field value of the real-time specimen transport container, and verify whether the permission verification result is active by judging whether the field value is out of the warehouse. If both judgment results are yes, enter the status update process and obtain the out of the warehouse status determination identifier. S302: Based on the outbound status determination identifier, extract the real-time identity number, handover grid number and scanning operation time, merge the three pieces of information according to the set field order, and write them into the node position of the specimen signature chain field. Update the value of the specimen transport container status field, set the real-time status to transport, and obtain the transport status signature record. S303: Based on the transport status signature record, obtain the start and end information of the time window of the next node in the task path, and continuously monitor whether the status field completes the update operation from "in transit" to "to be received" within the time period. If no status change is detected before the end of the time period, mark the status field as "abnormal in transit" and generate a transport status update instruction.
6. The method for improving the timeliness of specimen delivery according to claim 1, characterized in that, The method further includes step S5: S5: Based on the path continuity determination result, if there is an abnormal frame or a timeout without update, immediately lock the specimen transport container status as path blockage, re-plan the path node sequence and update the transport container status to correction transport, synchronously send priority handover notification, and generate specimen handover trigger command. The specimen handover triggering instructions include path correction sequence, transport container lock status, and priority handover notification.
7. The method for improving the timeliness of specimen delivery according to claim 6, characterized in that, The specific steps for obtaining the specimen exchange triggering command are as follows: S501: Based on the path continuity determination result, filter entries marked as abnormal frames and records with outdated status fields, extract the corresponding specimen transport container number, perform a locking operation, and update the specimen transport container to path blocking to obtain transport container blocking records; S502: Based on the transport container blocking record, extract the remaining node numbers in the original task path, rearrange the path order in combination with the real-time node position, regenerate the path node sequence and write it into the task path field, and at the same time update the transport container status field to "correction in transport" and generate a path reconstruction status identifier. S503: Based on the path reconstruction status identifier, locate the adjacent handover node number in the real-time transportation path, match the corresponding responsible person's identity number, construct the handover reminder field and send the notification information, and generate the specimen handover trigger command.
8. A system for improving the timeliness of specimen delivery, characterized in that, The system is used to implement the method for improving the timeliness of specimen delivery as described in any one of claims 1-7, the system comprising: The identity verification module obtains the specimen collector's identity number, the current task node number, and the scanning time. It compares the identity number with the responsible person's number and performs boundary judgment on the scanning time and the start and end values of the time window to generate a node timing compliance identifier. The permission verification module calls the node time sequence compliance identifier, obtains the grid number and beacon location of the specimen handover site, identifies the relationship between the grid number and the node spatial label set, determines whether the identity number exists in the permission list, and generates spatial permission verification results; Based on the spatial permission verification result, the transportation identification module reads the status field of the specimen transportation container and determines whether it is in the out-of-warehouse status. If the determination is true, it writes the status in transit and records the identity number, grid number and real-time operation time, and generates a transportation status update instruction. Based on the transportation status update instruction, the node signature module extracts the node number, identity number and operation time of the real-time signature frame, calculates the difference between the node number and the previous signature frame, compares the identity number with the responsibility list, and generates a path continuity determination result. The path correction module calls the path continuity determination result. If there is an abnormal frame identifier or time limit record, the transport container status is locked as path blockage. The unfinished node number is selected to reassemble the task path sequence and distribute the handover reminder, generating a specimen handover trigger command.