Specimen transportation route planning method and device, electronic equipment and storage medium
By dynamically planning sample collection and transportation routes and setting up connection points, the problem of unreasonable cold chain logistics transportation routes is solved, the efficiency of specimen detection is improved, and the accumulation of specimens in the laboratory is reduced.
Patent Information
- Application Number
- CN202410611385.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-27
AI Technical Summary
In the process of cold chain logistics and transportation, with the gradual coverage of rural towns, the original fixed sample collection and transportation routes have become unreasonable, resulting in a decrease in specimen detection efficiency and accumulation of specimens in the laboratory, affecting detection efficiency.
By obtaining information from each sampling point, dynamic sampling routes and transportation routes are generated based on preset rules, and connection points are set up to optimize specimen transportation, ensuring that specimens arrive at the testing point in advance and avoiding waiting for all sampling points to be completed and delivered uniformly. .
It achieves reasonable specimen transportation route planning, reduces the accumulation of specimen detection points, improves detection efficiency, and meets the sampling requirements of each sampling point.
Smart Images

Figure CN118552102A
Abstract
Description
Technical Field
[0001] The present application relates to the field of logistics technology, and in particular to a method, device, electronic device and storage medium for planning a specimen transportation route. Background Art
[0002] When a patient in a hospital has a need for testing, the hospital's doctors will collect specimens from the patient, and the specimens will be transported from the hospital to the corresponding specimen testing point for testing by the specimen collection staff. However, the storage conditions of the specimens are relatively harsh. In order to ensure that the specimens maintain their original chemical structure during transportation, they are usually transported by cold chain logistics. As cold chain logistics gradually covers and refines to various townships, villages, and towns, during the medical cold chain transportation process, new customers who need to collect samples will gradually be added to the original fixed sample collection and transportation routes, making the routes gradually unreasonable and affecting the efficiency of sample collection.
[0003] In the relevant technology, sample collectors collect specimens from each customer according to a fixed route every day. After all the specimens are collected, they return to the logistics office, and then send them to the laboratory in several batches. This allows all specimens from different areas to arrive at the laboratory at the same time, causing specimens to pile up in the laboratory, affecting the efficiency of specimen testing. Summary of the invention
[0004] The embodiments of the present application disclose a specimen transportation route planning method, device, electronic device and storage medium, which can dynamically and reasonably generate a sample collection route and a transportation route, which not only meets the sample collection requirements of each sample collection point, but also reduces the specimen accumulation at the specimen detection point, thereby improving the detection efficiency of subsequent specimens.
[0005] In a first aspect, an embodiment of the present application discloses a method for planning a specimen transportation route, comprising:
[0006] Acquire sampling point information corresponding to at least one sampling point of the sample to be collected, wherein the sampling point information includes at least one of sampling time information, sampling point level and sampling point location information;
[0007] According to the sampling point information corresponding to each sampling point, at least one sampling route is generated based on a preset sampling rule; the at least one sampling route covers the at least one sampling point;
[0008] Determine, according to the at least one sampling route and the historical sample collection amounts corresponding to each sampling point, docking information of one or more docking points corresponding to the at least one sampling route, wherein the docking information includes a docking position and a docking time corresponding to the docking point;
[0009] At least one transportation route is generated based on the docking information of the one or more docking points and the location information of the sample detection points.
[0010] As an optional implementation, in the first aspect of the embodiments of the present application, the sampling point information corresponding to each sampling point generates at least one sampling route based on preset sampling rules, including: obtaining the target service time corresponding to each sampling point; and generating at least one sampling route based on the preset sampling rules according to the target service time corresponding to each sampling point and the sampling point information.
[0011] As an optional implementation, in the first aspect of the embodiments of the present application, obtaining the target service duration corresponding to each sampling point includes: obtaining the target service duration corresponding to each sampling point input by the user; or, fitting the historical sampling quantity and historical service duration corresponding to each sampling point through equations to calculate the target service duration corresponding to each sampling point; or, calculating the average of multiple historical service durations included in the target time period for each sampling point to obtain the target service duration corresponding to each sampling point.
[0012] As an optional implementation, in the first aspect of the embodiments of the present application, at least one sampling route is generated based on preset sampling rules according to the target service durations and sampling point information corresponding to each sampling point, including: in descending order of sampling point levels, in turn according to the target service durations and sampling time information corresponding to each sampling point, determining the allocated time periods corresponding to each sampling point, and allocating each sampling point to one or more sampling routes according to the allocated time periods corresponding to each sampling point to obtain at least one sampling route; wherein the allocated time periods corresponding to each sampling point on each sampling route do not conflict.
[0013] As an optional implementation, in the first aspect of the embodiment of the present application, the method of determining the allocated time period corresponding to each sampling point according to the target service duration and sampling time information corresponding to each sampling point in descending order of the sampling point level, and allocating each sampling point to one or more sampling routes according to the allocated time period corresponding to each sampling point to obtain at least one sampling route includes: sorting the at least one sampling point in descending order of the sampling point level to obtain a sampling point sequence; taking the sampling point ranked first in the sampling point sequence as the current sampling point, and determining the allocated time period corresponding to the current sampling point according to the target service duration and sampling time information corresponding to the current sampling point; if the allocated time period corresponding to the current sampling point does not conflict with the allocated time periods corresponding to each sampling point already allocated in the sampling route to be allocated, then adding the current sampling point to the sampling route to be allocated and remove the current sampling point from the sampling point sequence, re-execute the step of taking the sampling point arranged at the first position in the sampling point sequence as the current sampling point, and determining the allocation time period corresponding to the current sampling point according to the target service duration and sampling time information corresponding to the current sampling point, until the current sampling point is the last sampling point arranged in the sampling point sequence, and the sampling route to be allocated is allocated; if the allocation time period corresponding to the current sampling point conflicts with the allocation time period corresponding to each sampling point allocated in the sampling route to be allocated, then take the next sampling point of the current sampling point as the new current sampling point, and re-execute the step of determining the allocation time period corresponding to the current sampling point according to the target service duration and sampling time information corresponding to the current sampling point, until the current sampling point is the last sampling point arranged in the sampling point sequence, and the sampling route to be allocated is allocated.
[0014] As an optional implementation, in the first aspect of the embodiment of the present application, after determining the allocated time period corresponding to the current sampling point according to the target service duration and sampling time information corresponding to the current sampling point, the method further includes: if there is currently no sampling route to be allocated, creating a new sampling route to be allocated, adding the current sampling point to the sampling route to be allocated, removing the current sampling point from the sampling point sequence, and re-executing the step of taking the sampling point arranged at the first position in the sampling point sequence as the current sampling point, and determining the allocated time period corresponding to the current sampling point according to the target service duration and sampling time information corresponding to the current sampling point; if the sampling point sequence does not include the sampling point, obtaining the allocated sampling routes.
[0015] As an optional implementation, in the first aspect of the embodiment of the present application, the docking information of one or more docking points corresponding to the at least one sampling route is determined based on the at least one sampling route and the historical sampling quantities corresponding to each sampling point, including: according to the sampling order corresponding to each sampling point included in the target sampling route, the historical sampling quantity corresponding to the current sampling point is added to the current cumulative sampling quantity, and the cumulative sampling quantity corresponding to the current sampling point is calculated; the target sampling route is any sampling route containing a sampling point number greater than 1; if the cumulative sampling quantity corresponding to the current sampling point is less than the quantity threshold, the next sampling point is used as the new current sampling point, and the step of adding the current sampling point to the sampling order corresponding to the sampling point is re-executed. The corresponding historical sampling amount is accumulated to the current cumulative sampling amount, and the cumulative sampling amount corresponding to the current sampling point is calculated, until the current sampling point is the last sampling point of the target sampling route; if the cumulative sampling amount corresponding to the current sampling point is not less than the quantity threshold, the connection information of the connection point between the current sampling point and the previous sampling point is determined according to the sampling point position information corresponding to the current sampling point and the previous sampling point respectively, and the current cumulative sampling amount is reset to 0, and the steps of accumulating the historical sampling amount corresponding to the current sampling point to the current cumulative sampling amount and calculating the cumulative sampling amount corresponding to the current sampling point are re-executed until the current sampling point is the last sampling point of the target sampling route.
[0016] In a second aspect, an embodiment of the present application discloses a specimen transportation route planning device, comprising:
[0017] A sampling information acquisition module, used to acquire sampling point information corresponding to at least one sampling point of the sample to be collected, wherein the sampling point information includes at least one of sampling time information, sampling point level and sampling point location information;
[0018] A sampling route generation module, configured to generate at least one sampling route based on the sampling point information corresponding to each sampling point and a preset sampling rule; the at least one sampling route covers the at least one sampling point;
[0019] A docking point determination module, configured to determine docking information of one or more docking points corresponding to the at least one sampling route according to the at least one sampling route and the historical sample collection amounts corresponding to the respective sampling points, wherein the docking information includes a docking position and a docking time corresponding to the docking point;
[0020] The transportation route generation module is used to generate at least one transportation route based on the docking information of the one or more docking points and the location information of the sample detection points.
[0021] In a third aspect, an embodiment of the present application discloses an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor implements the method described in any of the above embodiments.
[0022] In a fourth aspect, an embodiment of the present application discloses a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
[0023] The sample transportation route planning method, device, electronic device and storage medium disclosed in the embodiments of the present application are as follows: the electronic device obtains sampling point information corresponding to at least one sampling point of the sample to be collected, the sampling point information includes at least one of sampling time information, sampling point level and sampling point location information; according to the sampling point information corresponding to each sampling point, at least one sampling route is generated based on a preset sampling rule; at least one sampling route covers at least one sampling point; according to at least one sampling route and the historical sampling volume corresponding to each sampling point, the docking information of one or more docking points corresponding to at least one sampling route is determined, the docking information includes the docking position and docking time corresponding to the docking point; based on the docking information of one or more docking points and the location information of the sample detection point, at least one transportation route is generated. In the embodiment of the present application, at least one of the sampling time information, sampling point level and sampling point location information corresponding to each sampling point can be comprehensively considered to generate at least one sampling route. The at least one sampling route can cover all sampling points, and can make each sampling route more reasonable in terms of sampling time arrangement, etc., to meet the sampling requirements of each sampling point; and by setting a docking point corresponding to the at least one sampling route, the docking point can be used as a transfer station for specimen transportation, so that the specimens collected by the sampling route can reach the specimen detection point in advance through the docking point in the transportation route, thereby avoiding waiting until all the sampling points in the sampling route are collected before sending all the specimens to the specimen detection point, resulting in the accumulation of specimens waiting for detection at the specimen detection point. The sampling route and the transportation route can be dynamically and reasonably generated, which not only meets the sampling requirements of each sampling point, but also reduces the accumulation of specimens at the specimen detection point, thereby improving the detection efficiency of the specimens. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1A diagram showing the effect of specimen transportation in a related technology in an embodiment;
[0026] Figure 2a This is an application scenario diagram of a method for planning a transportation route for specimens in one embodiment;
[0027] Figure 2b This is an application scenario diagram of specimen transportation in an embodiment;
[0028] Figure 3 A flow chart of a method for planning a transport route for a specimen in one embodiment;
[0029] Figure 4 A flowchart for generating at least one sampling route in one embodiment;
[0030] Figure 5 A flowchart for generating at least one sampling route in another embodiment;
[0031] Figure 6 A flowchart for determining docking information for one or more docking points in one embodiment;
[0032] Figure 7 It is a rendering of a method for planning a transportation route for specimens in one embodiment;
[0033] Figure 8 A block diagram of a specimen transportation route planning device in one embodiment;
[0034] Fig. 9 FIG. 4 is a structural block diagram of an electronic device in an embodiment. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0036] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0037] In the related technology, the staff of cold chain logistics transportation collect specimens from each customer every day according to a fixed transportation route. After collecting specimens from all customers on the transportation route, all staff will send all the specimens collected cumulatively to the logistics office; then all the specimens will be divided into several batches in the logistics office and sent to the testing laboratory; finally, the staff of the testing laboratory will send the specimens to various laboratories for specimen testing according to the test items. Therefore, when the time for all the collected specimens to be delivered to the testing laboratory is approaching, the specimens to be tested in the testing laboratory will form a peak period of accumulation, and the number of specimens to be tested in each laboratory will suddenly increase, resulting in the testing laboratory failing to effectively arrange testing personnel to test the samples, thereby causing a decrease in the testing efficiency of subsequent specimens.
[0038] For example, in the related art, Figure 1 As shown in the figure, the bar graph on the left is all the specimens collected cumulatively in the four regions on a certain day; the line graph on the right is the load of the specimen detection point at each moment of the day, that is, the amount of specimens to be detected at each moment, the horizontal axis represents time, and the vertical axis represents load; Figure 1 The dotted lines connecting the middle bar graph and the line graph respectively represent that all specimens collected cumulatively from the four regions were transported to the specimen testing points at the corresponding time; since the four regions delivered the specimens to the specimen testing points at almost the same time, the load of the specimen testing points increased rapidly in a short period of time, and the load peak of the laboratory occurred at 18:00, resulting in a pile-up of specimens to be tested at the specimen testing points, and the testing of the specimens could not be completed until 23:00. The working hours and work intensity of the testing personnel at the specimen testing points were unreasonable, and the testing efficiency of the specimens was significantly reduced.
[0039] The embodiments of the present application disclose a specimen transportation route planning method, device, electronic device and storage medium, which can dynamically and reasonably generate a sample collection route and a transportation route, which not only meets the sample collection requirements of each sample collection point, but also reduces the specimen accumulation at the specimen detection point, thereby improving the detection efficiency of subsequent specimens.
[0040] The specimen transportation route planning method provided in this application can be applied to Figure 2a In the server or server cluster 200 shown. Figure 2a As shown, after the server or server cluster 200 uses the specimen transportation route planning method to generate a sample collection route and a transportation route, the sample collection route or the transportation route is sent to the handheld terminal 220 of the sample collection personnel or the transportation personnel 210. The sample collection personnel or the transportation personnel 210 goes to each sample collection point or docking point to collect specimens or transport the specimens to the specimen testing point according to the sample collection route or the transportation route received by the handheld terminal 220.
[0041] Figure 2b FIG. 1 is an application scenario diagram of specimen transportation in an embodiment, such as Figure 2b As shown, the application scenario may include one or more offices 230 ( Figure 2b Rectangles are used to represent the at least one sampling point 240 ( Figure 2b denoted by a circle), at least one connection point 250 ( Figure 2b The triangle is used to represent the sample detection point 260 ( Figure 2b The office 230 refers to the starting point of the sample collector, and the sample collector refers to the person who collects the specimens. The sample collector can obtain the sample collection tool and the handheld terminal 220 from the office 230; the sample collection tool may include a scanning tool and a heat preservation tool; the scanning tool is used to scan, register and upload the specimen information of each specimen; the specimen information may include the specimen number, the test item corresponding to the specimen, etc.; the heat preservation tool is used to store the specimen and provide the corresponding storage temperature for each specimen; the heat preservation tool may include but is not limited to a positioning device and a temperature control device, etc., and the heat preservation tool can upload the position data generated by the positioning device and the temperature data generated by the temperature control device at a fixed time. Optionally, the handheld terminal 220 may be a scanning tool.
[0042] The sample collection point 240 refers to the location where the specimens are to be collected. The sample collection point 240 can be an institution with specimen collection qualifications, such as a hospital. The sample collection point 240 extracts each specimen and temporarily stores the specimen, waiting for the sample collection personnel to collect and send it to the corresponding specimen testing point 260. The docking point 250 is a place for the sample collection personnel to hand over the specimens to the transport personnel. The transport personnel refers to the personnel who specifically transport the specimens from the docking point to the specimen testing point. The specimen testing point 260 is a place for receiving specimens to perform corresponding laboratory tests on the specimens; the specimen testing point 260 can be a laboratory with specimen testing qualifications.
[0043] In some embodiments, the sample collection personnel obtain the sample collection tools and sample collection routes from the office 230 ( Figure 2b The sample collectors go to the sample collection points 240 for the samples to be collected according to the sample collection route, obtain the samples, register and upload the sample information of each sample using a scanning tool, and store each sample in a heat preservation tool. During the sample collection process, the sample collectors pass by or go to the docking point 250 and hand over the samples in the heat preservation tool to the transport personnel. The transport personnel start from the sample detection point 260 and go to the transport route ( Figure 2b The specimens are sent to the corresponding specimen detection points 260 in advance without waiting for the specimen collection personnel to complete the collection of specimens from all the sampling points before going to the specimen detection points 260. This can avoid a large number of specimens arriving at the specimen detection points 260 at the same time, resulting in the accumulation of specimens in the specimen detection points 260, thereby improving the efficiency of specimen detection.
[0044] like Figure 3 As shown, in one embodiment, a method for planning a transport route for a specimen is provided, which can be applied to an electronic device, and the electronic device can be the above-mentioned Figure 2a The method may include the following steps:
[0045] Step 310: Acquire sampling point information corresponding to at least one sampling point of the specimen to be collected.
[0046] Before the sample collectors collect samples, the server or server cluster 200 plans the sample collection route and the transportation route in advance to generate the sample collection route for the sample collectors and the transportation route for the transportation personnel, and sends the generated sample collection route to the sample collectors' handheld terminal so that the sample collectors can go to each sample collection point to collect the samples according to the received sample collection route; and sends the transportation route to the transportation personnel's handheld terminal so that the transportation personnel can transport the samples from the docking point to the sample testing point for testing according to the received transportation route.
[0047] The sampling point refers to the location where specimens are to be collected, which can usually be a hospital. The sampling doctor in the hospital will collect samples based on the patient's medical condition, obtain multiple specimens, and temporarily store the specimens in the hospital, waiting for collection by the sampling staff.
[0048] The sample collection point information includes at least one of the sample collection time information, the sample collection point level and the sample collection point location information. Among them, the sample collection time information is used to indicate the time period for door-to-door sample collection agreed upon by the sample collection point in advance; the sample collection time information corresponding to different sample collection points can be the same or different; optionally, each sample collection point can set the sample collection time information according to the specimen storage time, the agreed test result feedback time, etc. The specimen storage time refers to the time when the specimen is temporarily stored in the hospital after being collected, and the test result feedback time refers to the time when the sample collection personnel arrive at the sample collection point to feedback the test results of the past specimens. For example, the sample collection time information can be 12:00 to 18:00 every day, or the sample collection time information can also be 9:00 to 14:00 every two days, etc.
[0049] The sampling point level refers to the importance of the sampling point; the higher the sampling point level, the higher its importance, and the more priority is given to including the sampling point in the sampling route when generating the sampling route. Optionally, the sampling point level can be a pre-agreed level; the level can also be determined according to the number of historical samples corresponding to the sampling point (the more historical samples are collected, the higher the sampling point level corresponding to the sampling point). The sampling point level can be represented by a string of English letters, numbers, etc.; for example, the sampling point level can be four levels: A, B, C, and D, and the sampling point levels decrease in alphabetical order, that is, a sampling point with a sampling point level of A is more important than a sampling point with a sampling point level of B, but it is not limited to this. The sampling point location information refers to the geographical location of the sampling point; the sampling point location information can be represented by longitude and latitude, or by the name of the sampling point, or by the specific geographical location of the sampling point, such as a street number in a certain area, etc., but it is not limited to this.
[0050] In some embodiments, one sampling point may correspond to one hospital or multiple hospitals, that is, multiple hospitals may share one sampling point.
[0051] In some embodiments, the sample collection point information may also include the traffic parking conditions corresponding to the sample collection point; the traffic parking conditions may include the vehicles allowed to park near the sample collection point and the distance between the parking position and the sample collection point, etc. The traffic parking conditions may include but are not limited to whether electric vehicles are allowed to park, whether there are electric vehicle charging piles, and whether electric bicycles are allowed to park, etc.; the traffic parking conditions can be used to determine the transportation used by the sample collection personnel when going to the sample collection point to collect the specimens. Specifically, the electronic device can determine the traffic parking conditions corresponding to each sample collection point according to the input traffic parking conditions.
[0052] Step 320: Generate at least one sampling route based on the preset sampling rules according to the sampling point information corresponding to each sampling point.
[0053] Among them, at least one sampling route covers at least one sampling point, that is, it is necessary to ensure that all sampling points for samples to be collected are included in the generated sampling route to ensure that samples can be collected from all sampling points for samples to be collected. Each generated sampling route may include one or more sampling points. The sampling route may define the allocated time period corresponding to each sampling point included. The allocated time period refers to the time period in which the sample collector is allowed to collect the sample. The sample collector will arrive at the sampling point and collect the sample during the allocated time period corresponding to the sampling point. The allocated time periods corresponding to the sampling points included in the same sampling route do not overlap, so as to ensure that the sample collector can complete the sample collection at the sampling point in the corresponding allocated time period.
[0054] The preset sampling rule is a rule for determining the sampling order and the corresponding allocated time period of each sampling point in at least one sampling route according to at least one of the sampling time information, sampling point level and sampling point location information corresponding to the sampling point. In some embodiments, the sampling point level corresponding to the sampling point can be used as a priority factor for generating the sampling route, and the sampling order and allocated time period of each sampling point in the sampling route can be determined in combination with the sampling time information, sampling point location information, etc. corresponding to each sampling point. Since the time requirements of different sampling points may be the same or different, when determining the sampling order of each sampling point in the sampling route, it is necessary to consider whether the allocated time period of each sampling point conflicts with the time in the sampling route, so as to ensure the rationality of the sampling route in time allocation.
[0055] Step 330, based on at least one sampling route and the historical sample collection amounts corresponding to each sampling point, determine the docking information of one or more docking points corresponding to at least one sampling route.
[0056] The docking point refers to the intersection of the sample collection route and the transportation route; it is used for the transportation personnel to obtain specimens from the sample collection personnel and transport them to the specimen testing point according to the transportation route. The docking information includes the docking location and docking time corresponding to the docking point; the docking location refers to the geographical location of the docking point; the docking time is the period when the sample collection personnel and the transportation personnel hand over the specimen at the docking point. The historical sample collection volume corresponding to each sampling point can be the mean or median of the sample collection volume of each sampling point within the target time period.
[0057] Since the capacity of the insulation tool used by the sample collector to store the specimen is limited, after the insulation tool is full, if the collected specimens are not sent to the specimen detection point in time, but continue to go to the sample collection point to collect the specimens, some specimens will not be able to be stored in the insulation tool, so that some collected specimens cannot be stored at a suitable storage temperature, resulting in changes in the physiological structure of the specimen, thereby causing abnormalities in the test results of the specimen. Therefore, it is necessary to set a docking point corresponding to the sample collection route, and before the insulation tool is full, the collected specimens in the insulation tool are transferred to the transportation personnel, and the transportation personnel transport the specimens to the specimen detection point in advance. It can not only ensure that the specimens are stored at a suitable storage temperature, but also enable the collected specimens to arrive at the specimen detection center earlier for detection. The process of handing over specimens by the sample collector and the transportation personnel may include: the transportation personnel transfers the specimens one by one from the insulation tool of the sample collector to the insulation tool of the transportation personnel, or the transportation personnel uses a new insulation tool to exchange with the insulation tool of the sample collector, etc.
[0058] In some embodiments, one sampling route may correspond to one or more docking points, or multiple sampling routes may correspond to one docking point. The correspondence between the sampling routes and the docking points may vary according to actual conditions and is not limited here.
[0059] In some embodiments, the electronic device may obtain the docking information of one or more docking points input by the user, thereby determining the docking information of one or more docking points corresponding to at least one sampling route. The docking information corresponding to the docking point can be determined more quickly through the user input, and there is no need to perform additional calculations on the docking point, which can reduce the amount of calculation of the electronic device, thereby obtaining the transportation route through the docking point more quickly.
[0060] In some embodiments, the electronic device can determine the center position of each first sampling route based on the sampling point position information corresponding to each sampling point contained in at least one first sampling route, and the total sampling quantity corresponding to the first sampling route is less than the sampling quantity threshold; obtain multiple preliminary docking points input by the user, and calculate the distance between the center position of at least one first sampling route and the multiple preliminary docking points to determine the docking point corresponding to at least one first sampling route from the multiple preliminary docking points.
[0061] In some embodiments, the electronic device may calculate the total sample collection corresponding to the sampling route based on the historical sample collection of each income point included in the sampling route; determine at least one first sampling route whose total sample collection is less than the sampling volume threshold; determine the center position corresponding to the first sampling route based on the sampling point location information corresponding to each sampling point included in each first sampling route; cluster the center positions corresponding to all first sampling routes to obtain at least one clustering area, each clustering area including the center position corresponding to at least one first sampling route. The electronic device determines the preparatory docking points in the first clustering area based on multiple preparatory docking points input by the user, and calculates the first distance between each preparatory docking point in the first clustering area and the last sampling point included in each second sampling route; the first clustering area is any clustering area, and the second sampling route is the first sampling route whose center position is in the first clustering area. According to multiple first distances corresponding to the same preparatory docking point, the greatest common divisor corresponding to each preparatory docking point in the first clustering area is calculated; and from each preparatory docking point in the first clustering area, the preparatory docking point with the largest greatest common divisor is determined as the docking point corresponding to each second sampling route; similarly, according to the above method for determining the docking point corresponding to the second sampling route, the docking point corresponding to each first sampling route is determined, thereby obtaining the docking information of the docking points corresponding to multiple first sampling routes.
[0062] Specifically, assuming that there are three second sampling routes with a central position in the first cluster area, namely, second sampling route a, second sampling route b, and second sampling route c, and two preparatory docking points in the first cluster area are preparatory docking point 1 and preparatory docking point 2; then the first distances between each preparatory docking point and the last sampling point included in each second sampling route are (preparatory docking point 1, second sampling route a, 24), (preparatory docking point 1, second sampling route b, 60), (preparatory docking point 1, second sampling route b, 60), and (preparatory docking point 1, second sampling route c, 60). The greatest common denominator corresponding to the preparatory docking point 1 is 12, and the greatest common denominator corresponding to the preparatory docking point 2 is 9. Since the greatest common denominator 12 corresponding to the preparatory docking point 1 is greater than the greatest common denominator 9 corresponding to the preparatory docking point 2, the preparatory docking point 1 is determined to be the docking point corresponding to the second sampling route a, the second sampling route b and the second sampling route c.
[0063] That is to say, if the total sample collection volume is less than the sample collection volume threshold, it means that after the sample collector has completed collecting samples at all sample collection points in the first sample collection route, the insulation tool is not full, that is, there is no need to set up a docking point in the middle of the sample collection points in the first sample collection route. However, since the collected specimens still need to be transported to the specimen testing point, multiple first sample collection routes can be mapped to the same docking point, which can not only transport the collected specimens to the corresponding specimen testing points, but also save the cost of setting up docking points, and also reduce the distance traveled by the transportation personnel to improve the transportation efficiency, thereby improving the efficiency of subsequent specimen testing.
[0064] Step 340, generating at least one transportation route based on the docking information of one or more docking points and the location information of the sample detection point.
[0065] In some embodiments, the electronic device calculates the distance between any two docking points and the distance between each docking point and the testing center based on the docking information of one or more docking points and the location information of the sample testing point; and then generates a transportation route based on the distance between any two docking points, the docking time corresponding to each docking point, and the distance between each docking point and the testing center.
[0066] Specifically, the electronic device can sort each docking point according to the docking time corresponding to each docking point to obtain a time series; determine the time when the transport personnel depart from the specimen detection point in the first transportation route according to the distance between the first docking point and the specimen detection point; according to the order of each docking point in the time series, take the first docking point in the time series as the current docking point, and take the next docking point of the current docking point as the first docking point; determine the estimated time for the transport personnel to arrive at the first docking point according to the distance between the current docking point and the first docking point; determine whether the time difference between the estimated time and the docking time corresponding to the first docking point is less than the docking threshold; if the time difference between the estimated time and the docking time corresponding to the first docking point is not less than the docking threshold, take the next docking point of the first docking point as the new first docking point, and re-execute the time difference according to the distance between the current docking point and the first docking point. The distance between the points is used to determine the estimated time for the transport personnel to arrive at the first docking point; the step of judging whether the time difference between the estimated time and the docking time corresponding to the first docking point is less than the docking threshold, until the first docking point is the last docking point in the time series, and the first transport route is obtained; if the time difference between the estimated time and the docking time corresponding to the first docking point is less than the docking threshold, the first docking point is included in the first transport route, and the first docking point is deleted from the time series, and the first docking point is used as the new current docking point, and the estimated time for the transport personnel to arrive at the first docking point is determined again according to the distance between the current docking point and the first docking point; the step of judging whether the time difference between the estimated time and the docking time corresponding to the first docking point is less than the docking threshold, until the first docking point is the last result point in the time series, and the first transport route is obtained. After obtaining the first transport route, if the time series still contains docking points, continue to execute the steps of taking the first docking point in the time series as the current docking point and the next docking point of the current docking point as the first docking point according to the order of the docking points in the time series; determining the estimated time for the transport personnel to arrive at the first docking point according to the distance between the current docking point and the first docking point; and determining whether the time difference between the estimated time and the docking time corresponding to the first docking point is less than the docking threshold to obtain the second transport route, and so on, until the time series does not contain docking points, then at least one transport route is obtained.
[0067] In the embodiment of the present application, at least one sampling route determined based on the sampling rule according to the sampling point information can take into account various influencing factors in the sampling point information corresponding to each sampling point, so that the at least one sampling route obtained is more reasonable in terms of time arrangement, thereby improving the efficiency of specimen collection; and by setting a docking point, the sampling route and the transportation route are intersected, so that the collected specimens can reach the specimen detection point through the transportation route in advance, and avoid waiting until all sampling points in the sampling route are collected before sending all specimens to the specimen detection point, resulting in a pile of specimens waiting to be detected at the specimen detection point, so that each specimen can arrive at the specimen detection point in time for detection, thereby improving the detection efficiency of the specimens.
[0068] like Figure 4 As shown, in one embodiment, the step of generating at least one sampling route based on the preset sampling rules according to the sampling point information corresponding to each sampling point may include steps 402 to 404.
[0069] Step 402: Obtain the target service duration corresponding to each sampling point.
[0070] The target service time refers to the time taken by the sample collector to collect specimens at each sampling point. The service time used for specimens of different registration types is different; the registration type refers to the way the sample collector registers the specimen information, which may include regular registration and two-way registration. Among them, regular registration means that the hospital has not uploaded the specimen information. When collecting the specimen, the sample collector needs to manually enter the specimen information corresponding to the specimen on the handheld terminal, so as to upload the specimen information to complete the sample collection; two-way registration means that the sample collection point has uploaded the specimen information corresponding to the specimen and pasted the barcode corresponding to the specimen at the specimen location; for specimens registered for two-way registration, the sample collector only needs to use a scanning tool to scan the barcode at the specimen location to complete the sample collection. Therefore, the service time used for two-way registration is less than the service time used for regular registration.
[0071] In some embodiments, specimens are not necessarily stored in a certain department at the sampling point. In addition to registering the specimens, sampling personnel also need to go to various departments at the sampling point. Therefore, the target service time includes not only the time used to register the specimen information, but also the time the sampling personnel perform other services at the sampling point. Generating a sampling route based on the target service time can more accurately consider the length of time spent by the sampling personnel at the sampling point, making the generated sampling route more reasonable in terms of time.
[0072] Optionally, the electronic device may obtain the target service duration by one or more of the following methods:
[0073] Method 1: Obtain the target service duration corresponding to each sampling point input by the user.
[0074] Method 2: Fit the historical sample collection volume and historical service time corresponding to each sampling point into an equation to calculate the target service time corresponding to each sampling point. The historical sample collection volume can be the average sample collection volume of the sampling point during the target time period. The historical service time can refer to the service time of the last sample collection at the sampling point, or it can refer to the average service time of the sampling point during the target time period.
[0075] Method 3: Calculate the average of multiple historical service durations of each sampling point in the target time period to obtain the target service duration corresponding to each sampling point. Specifically, the electronic device can determine the arrival time of the sampling personnel at the sampling location corresponding to the sampling point and the departure time of the sampling personnel leaving the sampling location corresponding to the sampling point according to the location data uploaded by the heat preservation tool at each time; and use the time difference between the arrival time and the departure time as the historical service duration corresponding to the sampling point.
[0076] Optionally, the electronic device may obtain the target service durations corresponding to different sampling points in the same or different ways.
[0077] Step 404: Generate at least one sampling route based on preset sampling rules according to the target service duration corresponding to each sampling point and the sampling point information.
[0078] In some embodiments, the allocated time period corresponding to each sampling point is determined in descending order of the sampling point level according to the target service duration and sampling time information corresponding to each sampling point, and each sampling point is allocated to one or more sampling routes according to the allocated time period corresponding to each sampling point to obtain at least one sampling route.
[0079] In some embodiments, when generating at least one sampling route, the electronic device may set a rest period for the sampling personnel to rest. Specifically, if the target service time corresponding to the sampling point is greater than the working time threshold, a rest period of a preset rest time may be set between the sampling point and the next sampling point.
[0080] In some embodiments, after generating a sampling route, the electronic device may adjust the sampling route and the transportation used by the sampling personnel for sampling according to the total mileage of the sampling route and the traffic parking conditions corresponding to each sampling point included in the sampling route.
[0081] In some embodiments, the electronic device can determine the vehicle corresponding to the third sampling route based on the total mileage of the third sampling route, and can determine the parking ratio of the sampling points in the third sampling route where electric vehicles are allowed to park based on the traffic parking conditions corresponding to each sampling point included in the third sampling route; the sampling points included in the third sampling route can be modified based on the parking ratio corresponding to the third sampling route to make the sampling route more compatible with the vehicle, thereby improving the sampling efficiency. The third sampling route can be any generated sampling route.
[0082] Specifically, if the total mileage of the third sampling route is less than the mileage threshold, it can be determined that the vehicle corresponding to the third sampling route is an electric bicycle; if the total mileage is not less than the mileage threshold, it can be determined that the vehicle corresponding to the third sampling route is an electric car.
[0083] If the total mileage is not less than the mileage threshold, and the parking ratio is not less than the ratio threshold, it can be determined that the vehicle corresponding to the third sampling route can be an electric vehicle. If the total mileage is not less than the mileage threshold, and the parking ratio is less than the ratio threshold, the sampling point where electric vehicles are not allowed to park is deleted from the third sampling route, and between the previous sampling point and the next sampling point where electric vehicles are not allowed to park, a new sampling point that meets the sampling conditions is determined and included in the third sampling route.
[0084] It should be noted that the mileage threshold and the ratio threshold can be set according to actual needs. For example, the mileage threshold can be 70km (kilometers), 80km, 78km, etc., and the ratio threshold can be 90%, 89%, 85%, etc., but is not limited to this.
[0085] Optionally, the sampling conditions may include: calculating the first sum of the distance from the last sampling point to the new sampling point and the distance from the new sampling point to the next sampling point, the second sum of the distance from the last sampling point to the original sampling point and the distance from the original sampling point to the next sampling point, the original sampling point being a sampling point in the third sampling route where electric vehicles are not allowed to be parked, if the difference between the first sum and the second sum is within a preset distance range, then the new sampling point meets the conditions; or, if the difference between the service time of the sampling personnel at the new sampling point and the service time at the original sampling point is less than a service time threshold, then the new sampling point meets the conditions. By considering the total mileage of the sampling route and the traffic parking conditions corresponding to each sampling point included in the sampling route, suitable means of transportation can be provided for the sampling personnel, so that the sampling route and the means of transportation are more matched and more reasonable, thereby improving the work enthusiasm and sampling efficiency of the sampling personnel.
[0086] In an embodiment of the present application, the time spent by the sample collector at each sample collection point is determined by determining the target service time, and the sample collection route is planned in combination with the sample collection time information, the sample collection point level and the sample collection location information of each sample collection point, so that at least one sample collection route obtained is more reasonable in time allocation; at the same time, by setting rest periods, the sample collection work of the sample collector is made more humane, thereby improving the work enthusiasm of the sample collector and thus improving the efficiency of specimen collection.
[0087] like Figure 5 As shown, in some specific embodiments, the steps are in the order of sampling point levels from high to low, and in turn according to the target service duration and sampling time information corresponding to each sampling point, determine the allocated time period corresponding to each sampling point, and allocate each sampling point to one or more sampling routes according to the allocated time period corresponding to each sampling point to obtain at least one sampling route, which may include steps 502 to 524.
[0088] Step 502: sort at least one sampling point in descending order of sampling point level to obtain a sampling point sequence.
[0089] Step 504: The first sampling point in the sampling point sequence is used as the current sampling point.
[0090] The sampling point ranked first in the sampling point sequence is the sampling point with the highest sampling point grade. Therefore, the sampling point ranked first in the sampling point sequence is used as the current sampling point. The sampling point grade corresponding to the sampling point can be used as a priority factor for generating the sampling route, thereby improving the customer service quality corresponding to the sampling point with a high sampling point grade.
[0091] Step 506: Determine the allocated time period corresponding to the current sampling point according to the target service duration and sampling time information corresponding to the current sampling point.
[0092] Specifically, assuming that the target service time corresponding to the current sampling point is 30 minutes, and the time period in the sampling time information is 9:00 to 16:00, the allocated time period corresponding to the current sampling point can be as early as 9:00 to 9:30 and as late as 15:30 to 16:00; any 30 minutes between 9:00 and 16:00 can be used as the allocated time period corresponding to the current sampling point.
[0093] Step 508 , determining whether there is a sampling route to be allocated, if so, executing step 510 ; if not, executing step 520 .
[0094] Step 510, determine whether the allocated time period corresponding to the current sampling point conflicts with the allocated time periods corresponding to the allocated sampling points in the current sampling route to be allocated; if so, execute step 514; if not, execute step 512.
[0095] In some embodiments, if there is a sampling route to be allocated, it is necessary to consider whether the current sampling point can be added to the existing sampling route to be allocated, that is, it is necessary to consider whether the allocation time period corresponding to the current sampling point conflicts with the allocation time period corresponding to each sampling point allocated in the current sampling route to be allocated. If the allocation time period corresponding to the current sampling point does not conflict with the allocation time period corresponding to each sampling point allocated in the current sampling route to be allocated, it means that the current sampling point can be added to the existing sampling route to be allocated; if the allocation time period corresponding to the current sampling point conflicts with the allocation time period corresponding to each sampling point allocated in the current sampling route to be allocated, it means that the current sampling point cannot be added to the existing sampling route to be allocated. This avoids the allocation time period corresponding to the current sampling point affecting the allocation time period corresponding to each sampling point allocated in the current sampling route to be allocated.
[0096] In some embodiments, the electronic device may determine the conflict judgment result between the allocated time period corresponding to the current sampling point and the allocated time period corresponding to each allocated sampling point in the sampling route to be allocated, based on the time differences between the allocated time period corresponding to the current sampling point and the allocated time period corresponding to each allocated sampling point in the sampling route to be allocated.
[0097] Specifically, the electronic device determines whether the allocated time period corresponding to the current sampling point conflicts with the allocated time periods corresponding to the allocated sampling points in the current sampling route to be allocated, which may include the following steps:
[0098] Step 1: Calculate the time differences between the allocated time period corresponding to the current sampling point and the allocated time periods corresponding to the allocated sampling points in the current sampling route to be allocated, and determine whether the time differences are greater than the time threshold. If so, execute step 2; if not, execute step 3.
[0099] Step 2: If all time differences are greater than the time threshold, it is considered that the allocated time period corresponding to the current sampling point does not conflict with the allocated time periods corresponding to the allocated sampling points in the current sampling route to be allocated.
[0100] Step three: If there is a first time difference that is not greater than the time threshold, then according to the sampling point position information corresponding to the current sampling point and the sampling points already allocated in the current sampling route to be allocated, calculate the second distances between the current sampling point and the sampling points already allocated in the current sampling route to be allocated; according to the second distances, determine the journey time between the current sampling point and the sampling points already allocated in the current sampling route to be allocated; if the first time differences are all greater than the journey time, it is considered that the allocated time period corresponding to the current sampling point does not conflict with the allocated time period corresponding to the sampling points already allocated in the current sampling route to be allocated; if there is a first time difference that is not greater than the journey time, it is considered that the allocated time period corresponding to the current sampling point conflicts with the allocated time period corresponding to the sampling points already allocated in the current sampling route to be allocated.
[0101] Step 512 , adding the current sampling point to the sampling route to be allocated, and removing the current sampling point from the sampling point sequence, and executing step 514 .
[0102] In some embodiments, if the allocated time period corresponding to the current sampling point does not conflict with the allocated time period corresponding to each sampling point that has been allocated in the current sampling route to be allocated, it means that incorporating the current sampling point into the current sampling route to be allocated will not affect the allocated time period corresponding to each allocated sampling point. Therefore, the current sampling point is added to the sampling route to be allocated, and since the current sampling point has been allocated to the sampling route, the current sampling point cannot be allocated to other sampling routes, so the current sampling point is removed from the sampling point sequence.
[0103] Step 514 , determining whether the current sampling point is the last sampling point in the sampling point sequence; if so, executing step 516 ; if not, executing step 522 .
[0104] If the allocated time period corresponding to the current sampling point conflicts with the allocated time period corresponding to each sampling point that has been allocated in the current sampling route to be allocated, or after the current sampling point is removed from the sampling point sequence, it can be determined first whether the current sampling point is the last sampling point in the sampling point sequence to determine whether the current sampling route to be allocated has completed allocation.
[0105] Step 516: the sampling routes to be allocated are allocated, and step 518 is executed.
[0106] If the current sampling point is the last sampling point in the sampling point sequence, it means that there is no sampling point in the current sampling point sequence that can be included in the current sampling route to be allocated without affecting the allocation time periods corresponding to the allocated sampling points. Therefore, after the current sampling route to be allocated is allocated, it is necessary to determine whether all sampling points have been allocated to avoid the situation where sampling points are missed and specimens cannot be collected from the missed sampling points.
[0107] Step 518, determining whether the sampling point is included in the sampling point sequence, if so, re-execute step 504; if not, execute step 524 to obtain the allocated sampling routes.
[0108] After the sampling routes to be allocated are allocated, it is necessary to determine whether the sampling points are included in the sampling point sequence, so as to determine that all sampling points have been allocated to each sampling route.
[0109] Step 520 , create a new sampling route to be allocated, add the current sampling point to the sampling route to be allocated, remove the current sampling point from the sampling point sequence, and execute step 518 .
[0110] In some embodiments, if there is currently no sampling route to be allocated, it means that the allocated sampling routes have all been allocated. Therefore, a new sampling route to be allocated needs to be created, and the current sampling point is added to the sampling route to be allocated, and the current sampling point is removed from the sampling point sequence, and it is re-determined whether the sampling point is included in the sampling point sequence to determine whether all sampling points have been allocated to each sampling route.
[0111] Step 522 , taking the next sampling point of the current sampling point as the new current sampling point, and executing step 506 .
[0112] In some embodiments, if the current sampling point is not the last sampling point in the sampling point sequence, it means that there may be sampling points in the sampling point sequence that can be added to the current sampling route to be allocated. Therefore, the next sampling point of the current sampling point is used as the new current sampling point, and the allocation time period corresponding to the current sampling point is determined again according to the target service duration and sampling time information corresponding to the current sampling point; it is determined whether there is a sampling route to be allocated at present, if so, step 510 is executed; if not, step 520 is executed; until all sampling points have been allocated to various sampling routes, and the allocated sampling routes are obtained.
[0113] In the embodiment of the present application, by arranging the sampling points in descending order of their levels, sampling routes and time periods can be allocated preferentially to sampling points with high levels; the allocated time period corresponding to each sampling point is determined by the target service duration and the sampling time information, and then conflict judgment is performed, so that each sampling point can complete the service within the time period included in the sampling time information, thereby ensuring the efficiency and accuracy of the service, and avoiding the overlap of the allocated time periods corresponding to the sampling points on the same sampling route, thereby ensuring the feasibility and rationality of the sampling route, thereby improving the sampling efficiency of the sampling personnel who collect samples according to the sampling route.
[0114] like Figure 6 As shown, in some embodiments, the step of determining the docking information of one or more docking points corresponding to at least one sampling route based on at least one sampling route and the historical sampling volume corresponding to each sampling point may include steps 602 to 612.
[0115] Step 602, according to the sampling order corresponding to each sampling point included in the target sampling route, the historical sampling amount corresponding to the current sampling point is added to the current cumulative sampling amount to calculate the cumulative sampling amount corresponding to the current sampling point.
[0116] The target sampling route is any sampling route that contains more than 1 sampling point.
[0117] Specifically, since the current cumulative revenue corresponding to the first sampling point in the target sampling route is zero, the cumulative sampling amount corresponding to the first sampling point is the historical sampling amount corresponding to the first sampling point; if there is no connecting point between the first sampling point and the second sampling point, the current cumulative sampling amount corresponding to the second sampling point is the cumulative sampling amount corresponding to the first sampling point; if there is a connecting point between the first sampling point and the second sampling point, the current cumulative sampling amount corresponding to the second sampling point is zero, and the cumulative sampling amount corresponding to the second sampling point is the historical sampling amount of the second sampling point, and so on.
[0118] Step 604 , determining whether the accumulated sample quantity corresponding to the current sample collection point is less than the quantity threshold; if so, executing step 606 ; if not, executing step 612 .
[0119] The quantity threshold is determined by the capacity of the insulation tool used by the sample collector to collect samples. The quantity threshold does not exceed the capacity of the insulation tool. The larger the capacity of the insulation tool, the larger the quantity threshold; the smaller the capacity of the insulation tool, the smaller the quantity threshold. This ensures that the current cumulative sample collection volume does not exceed the capacity of the insulation tool, and avoids the situation where some collected specimens become invalid because they cannot be stored in the insulation tool. Therefore, it is necessary to judge whether the cumulative sample collection volume corresponding to the current sampling point is less than the quantity threshold.
[0120] Step 606 , determining whether the current sampling point is the last sampling point of the target sampling route; if so, executing step 608 to use the current sampling point as the connection point; if not, executing step 610 .
[0121] If the cumulative sample collection volume corresponding to the current sampling point is less than the quantity threshold, it means that the current cumulative sample collection volume is less than the capacity of the insulation tool, and all collected specimens are stored in the insulation tool. In other words, the insulation tool can provide a suitable storage temperature for all currently collected specimens, so there is no need to set a connection point between the current point and the previous sampling point.
[0122] In some embodiments, if the cumulative sample collection amount corresponding to the current sampling point is less than the quantity threshold, and the current sampling point is the last sampling point of the target sampling route, it means that after the sampling is completed at the current sampling point, the specimens in the insulation tool need to be sent to the specimen detection point for detection. Therefore, the last sampling point of the target sampling route is used as the docking point.
[0123] Optionally, if the current sampling point is the last sampling point of the target sampling route, the last sampling point of the target sampling route may not be used as a connection point, but the sampling personnel may directly send the collected specimens in the insulation tool to the corresponding specimen testing point.
[0124] Step 610: Use the next sampling point as the new current sampling point and re-execute step 602.
[0125] Optionally, if the cumulative sample volume corresponding to the current sampling point is less than the quantity threshold, and the current sampling point is not the last sampling point in the target sampling route, it means that after the current sampling point completes sampling, the number of specimens in the insulation tool is less than the capacity of the insulation tool, and it is still necessary to continue sampling the next sampling point. Therefore, the next sampling point is used as the new current sampling point, and the historical sample volume corresponding to the current sampling point is added to the current cumulative sample volume according to the sampling order corresponding to each sampling point included in the target sampling route to calculate the cumulative sample volume corresponding to the current sampling point; determine whether the cumulative sample volume corresponding to the current sampling point is less than the quantity threshold; if so, execute step 606; if not, execute step 612.
[0126] Step 612, according to the sampling point position information corresponding to the current sampling point and the previous sampling point, respectively, determines the connection information of the connection point between the current sampling point and the previous sampling point, resets the current cumulative sampling amount to 0, and re-executes step 602.
[0127] In some embodiments, if the cumulative sample collection amount corresponding to the current sample collection point is not less than the quantity threshold, it means that when the sample collector completes sampling at the current sample collection point, the number of collected specimens will exceed the capacity of the insulation tool, resulting in some specimens being unable to be stored in the insulation tool. The insulation tool cannot provide a suitable storage temperature for these specimens, making the specimens invalid. Therefore, the docking information of the docking point between the current sample collection point and the previous sample collection point requires the sample collector to hand over the specimens stored in the insulation tool to the transportation personnel for transportation to the specimen testing point for testing before collecting samples at the current sample collection point, and to empty the insulation tool to ensure that after collecting samples at the current sample collection point, the number of collected specimens exceeds the capacity of the insulation tool.
[0128] In some embodiments, the connection point may be set between the current sampling point and the previous sampling point to reduce the detour and increase the time, thereby improving the sampling efficiency.
[0129] In a specific embodiment, it is assumed that there are six sampling points in the target sampling route, and the sampling points are sampling point 1, sampling point 2, sampling point 3, sampling point 4, sampling point 5 and sampling point 6 in the sampling order, and the historical sampling quantities corresponding to the sampling points are (sampling point 1, 13), (sampling point 2, 21), (sampling point 3, 20), (sampling point 4, 7), (sampling point 5, 11) and (sampling point 6, 17), and the capacity of the staff's incubator is 40, that is, the quantity threshold is 40; then the target is determined. The process of obtaining the docking information corresponding to one or more docking points corresponding to the sampling route is as follows: according to the sampling order, starting from sampling point 1 as the current sampling point, the current cumulative sampling volume is 0, then the cumulative sampling volume corresponding to sampling point 1 is 13<40, then sampling point 2 is used as the current sampling point; the current cumulative sampling volume is 13, and the cumulative sampling volume corresponding to sampling point 2 is 34<40, then sampling point 3 is used as the current sampling point; the current cumulative sampling volume is 34, and the cumulative sampling volume corresponding to sampling point 3 is 54>40, then at the sampling point A connection point is determined between sampling point 2 and sampling point 3, and the current cumulative sampling volume is reset; the current sampling point is sampling point 3, and the current cumulative sampling volume is reset to 0, then the cumulative sampling volume corresponding to sampling point 3 is 20<40, then sampling point 4 is used as the current sampling point; the current cumulative sampling volume is 20, and the cumulative sampling volume corresponding to sampling point 4 is 27<40, then sampling point 5 is used as the current sampling point; the current cumulative sampling volume is 27, and the cumulative sampling volume corresponding to sampling point 5 is 38<40, then sampling point 6 is used as The current sampling point; the current cumulative sample collection volume is 38, and the cumulative sample collection volume corresponding to sampling point 6 is 55>40, so a connection point is determined between sampling point 5 and sampling point 6, and the current cumulative sample collection volume is reset; the current sampling point is still sampling point 6, and the current cumulative sample collection volume is reset to 0, then the cumulative sample collection volume corresponding to sampling point 6 is 17. Since sampling point 6 is the last sampling point of the target sampling route, sampling point 6 can be used as a connection point, or the sampling personnel can directly send 17 samples to the corresponding sample testing point.
[0130] In an embodiment of the present application, when determining one or more docking points corresponding to a sampling route, by looping and resetting the current cumulative sampling amount, it is ensured that in the sampling route, when the cumulative sampling amount reaches or exceeds the quantity threshold, the docking point can be reasonably set to facilitate the transportation or processing of the sample; and the docking information corresponding to the docking point is dynamically determined through the historical sampling amount, which can adaptively adapt to the differences in historical sampling amounts between the sampling points included in different sampling routes, thereby improving the flexibility and efficiency of the sampling work.
[0131] Figure 7The figure is a rendering of a method for planning the transport route of a specimen in one embodiment. In one embodiment, it is assumed that there are three transport routes in area A, that is, in the process of collecting specimens every day, area A transports the collected specimens to the specimen detection point in three trips at different times. Similarly, areas B and C both transport specimens to the specimen detection point in three trips, and area D transports specimens to the specimen detection point in two trips. Figure 7 As shown in the figure, on a certain day, the first trips of Area A, Area B, Area C and Area D delivered the specimens to the specimen detection point at 12 o'clock, the second trips of Area A, Area B, Area C and Area D delivered the specimens to the specimen detection point at 15 o'clock, and the third trips of Area A, Area B and Area C delivered the specimens to the specimen detection point at 18 o'clock. Therefore, it can be seen from the line graph on the right that the load of the specimen detection point increases at 12 o'clock, 15 o'clock and 18 o'clock, respectively, and the peak load appears at 15 o'clock; compared with the effect diagram of specimen transportation using related technologies Figure 1 In comparison, some specimens collected by the sampling routes in each district can arrive at the specimen testing point in advance through the transportation route, and the working hours of the testers are advanced from 18:00 to 23:00 to 12:00 to 20:00. The peak of the specimen testing point is advanced and significantly reduced, so that the specimens arriving at the specimen testing point at the same time are more balanced. The specimens can be tested one after another by the testers at the specimen testing point to avoid the accumulation of specimens waiting for testing. When the number of specimens to be tested is the same, the work pressure of the testers is appropriately reduced, so that the testers can complete the specimen testing faster and earlier, thereby improving the specimen testing efficiency.
[0132] like Figure 8 As shown, in one embodiment, a specimen transportation route planning device 800 is provided, which can be applied to the above electronic device. The specimen transportation route planning device 800 may include a sample collection information acquisition module 810, a sample collection route generation module 820, a connection point determination module 830 and a transportation route generation module 840.
[0133] The sampling information acquisition module 810 is used to acquire sampling point information corresponding to at least one sampling point of the sample to be collected, and the sampling point information includes at least one of sampling time information, sampling point level and sampling point location information.
[0134] The sampling route generating module 820 is used to generate at least one sampling route according to the sampling point information corresponding to each sampling point and based on the preset sampling rules; at least one sampling route covers at least one sampling point.
[0135] The docking point determination module 830 is used to determine the docking information of one or more docking points corresponding to at least one sampling route based on at least one sampling route and the historical sampling volume corresponding to each sampling point. The docking information includes the docking position and docking time corresponding to the docking point.
[0136] The transportation route generation module 840 is used to generate at least one transportation route based on the docking information of one or more docking points and the location information of the sample detection points.
[0137] In some embodiments, the sampling route generation module 820 is further used to obtain the target service duration corresponding to each sampling point; and generate at least one sampling route based on preset sampling rules according to the target service duration corresponding to each sampling point and the sampling point information.
[0138] Optionally, the sampling route generation module 820 is also used to obtain the target service duration corresponding to each sampling point input by the user; or, to fit the historical sampling quantity and historical service duration corresponding to each sampling point into an equation to calculate the target service duration corresponding to each sampling point; or, to calculate the average of multiple historical service durations contained in the target time period for each sampling point to obtain the target service duration corresponding to each sampling point.
[0139] Optionally, the sampling route generation module 820 is also used to determine the allocated time period corresponding to each sampling point in order of the sampling point levels from high to low, according to the target service duration and sampling time information corresponding to each sampling point, and allocate each sampling point to one or more sampling routes according to the allocated time period corresponding to each sampling point, so as to obtain at least one sampling route; wherein the allocated time periods corresponding to each sampling point on each sampling route do not conflict.
[0140] In some embodiments, the sampling route generation module 820 is further used to sort at least one sampling point in descending order of sampling point level to obtain a sampling point sequence; the sampling point ranked first in the sampling point sequence is used as the current sampling point, and the allocation time period corresponding to the current sampling point is determined according to the target service duration and sampling time information corresponding to the current sampling point; if the allocation time period corresponding to the current sampling point does not conflict with the allocation time period corresponding to each sampling point that has been allocated in the current sampling route to be allocated, the current sampling point is added to the sampling route to be allocated, and the current sampling point is removed from the sampling point sequence, and the sampling point ranked first in the sampling point sequence is re-executed as the current sampling point, and the allocation time period corresponding to the current sampling point is determined according to the target service duration and sampling time information corresponding to the current sampling point. The target service duration and sampling time information corresponding to the current sampling point are used to determine the allocated time period corresponding to the current sampling point, until the current sampling point is the last sampling point in the sampling point sequence, and the sampling route to be allocated is allocated; if the allocated time period corresponding to the current sampling point conflicts with the allocated time period corresponding to each sampling point already allocated in the sampling route to be allocated, the next sampling point of the current sampling point is used as the new current sampling point, and the step of determining the allocated time period corresponding to the current sampling point according to the target service duration and sampling time information corresponding to the current sampling point is re-executed, until the current sampling point is the last sampling point in the sampling point sequence, and the sampling route to be allocated is allocated.
[0141] In some embodiments, the sampling route generation module 820 is also used to create a new sampling route to be allocated if there is currently no sampling route to be allocated, and add the current sampling point to the sampling route to be allocated, remove the current sampling point from the sampling point sequence, re-execute the step of taking the sampling point arranged at the first position in the sampling point sequence as the current sampling point, and determine the allocation time period corresponding to the current sampling point according to the target service time and sampling time information corresponding to the current sampling point; if the sampling point is not included in the sampling point sequence, the sampling routes that have been allocated are obtained.
[0142] Optionally, the docking point determination module 830 is further used to add the historical sampling amount corresponding to the current sampling point to the current cumulative sampling amount according to the sampling order corresponding to each sampling point included in the target sampling route, and calculate the cumulative sampling amount corresponding to the current sampling point; the target sampling route is any sampling route containing sampling points with a number greater than 1; if the cumulative sampling amount corresponding to the current sampling point is less than the quantity threshold, the next sampling point is used as the new current sampling point, and the historical sampling amount corresponding to the current sampling point is added to the current cumulative sampling amount again to calculate the cumulative sampling amount corresponding to the current sampling point. The steps of collecting samples are performed until the current sampling point is the last sampling point of the target sampling route; if the cumulative sampling amount corresponding to the current sampling point is not less than the quantity threshold, the connection information of the connection point between the current sampling point and the previous sampling point is determined according to the sampling point position information corresponding to the current sampling point and the previous sampling point respectively, and the current cumulative sampling amount is reset to 0, and the steps of adding the historical sampling amount corresponding to the current sampling point to the current cumulative sampling amount and calculating the cumulative sampling amount corresponding to the current sampling point are re-executed until the current sampling point is the last sampling point of the target sampling route.
[0143] In the embodiment of the present application, at least one of the sampling time information, sampling point level and sampling point location information corresponding to each sampling point can be comprehensively considered to generate at least one sampling route. The at least one sampling route can cover all sampling points, and can make each sampling route more reasonable in terms of sampling time arrangement, etc., to meet the sampling requirements of each sampling point; and by setting a docking point corresponding to the at least one sampling route, the docking point can be used as a transfer station for specimen transportation, so that the specimens collected by the sampling route can reach the specimen detection point in advance through the docking point in the transportation route, thereby avoiding waiting until all the sampling points in the sampling route are collected before sending all the specimens to the specimen detection point, resulting in the accumulation of specimens waiting for detection in the specimen detection point. The sampling route and the transportation route can be dynamically and reasonably generated, which not only meets the sampling requirements of each sampling point, but also reduces the accumulation of specimens at the specimen detection point, thereby improving the detection efficiency of the specimens.
[0144] Fig. 9 FIG. 1 is a block diagram of an electronic device in an embodiment. The electronic device may be a mobile phone, a tablet computer, a smart wearable device, etc. Fig. 9 As shown, the electronic device 900 may include one or more of the following components: a processor 910, and a memory 920 coupled to the processor 910, wherein the memory 920 may store one or more computer programs, and the one or more computer programs may be configured to implement the methods described in the above embodiments when executed by one or more processors 910.
[0145] The processor 910 may include one or more processing cores. The processor 910 uses various interfaces and lines to connect various parts of the entire electronic device 900, and executes various functions and processes data of the electronic device 900 by running or executing instructions, programs, code sets or instruction sets stored in the memory 920, and calling data stored in the memory 920. Optionally, the processor 910 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 910 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 910, but may be implemented separately through a communication chip.
[0146] The memory 920 may include a random access memory (RAM) or a read-only memory (ROM). The memory 920 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 920 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device 900 during use, etc.
[0147] It can be understood that the electronic device 900 may include more or fewer structural elements than those in the above structural block diagram, for example, including a power supply, input buttons, cameras, speakers, screens, RF (Radio Frequency) circuits, Wi-Fi (Wireless Fidelity) modules, Bluetooth modules, sensors, etc., and no limitation is made here.
[0148] An embodiment of the present application discloses a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method described in the above embodiments.
[0149] The embodiments of the present application disclose a computer program product, including a computer program, and the computer program can be executed by a processor to implement the methods described in the above embodiments.
[0150] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM), etc.
[0151] As used herein, any reference to memory, storage, database, or other medium may include nonvolatile and / or volatile memory. Suitable nonvolatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or Flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus direct RAM (RDRAM), and direct memory bus dynamic RAM (DRDRAM).
[0152] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0153] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0154] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0155] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0156] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0157] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.
[0158] The above is a detailed introduction to a method, device, electronic device and storage medium for planning a transport route for a specimen disclosed in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for planning a specimen transportation route, characterized in that: The method comprises: Acquire sampling point information corresponding to at least one sampling point of the sample to be collected, wherein the sampling point information includes at least one of sampling time information, sampling point level and sampling point location information; According to the sampling point information corresponding to each sampling point, at least one sampling route is generated based on a preset sampling rule; the at least one sampling route covers the at least one sampling point; Determine, according to the at least one sampling route and the historical sample collection amounts corresponding to each sampling point, docking information of one or more docking points corresponding to the at least one sampling route, wherein the docking information includes a docking position and a docking time corresponding to the docking point; At least one transportation route is generated based on the docking information of the one or more docking points and the location information of the sample detection points.
2. The method according to claim 1, characterized in that The step of generating at least one sampling route based on the sampling point information corresponding to each sampling point and a preset sampling rule includes: Obtain the target service duration corresponding to each sampling point; At least one sampling route is generated based on preset sampling rules according to the target service durations corresponding to the sampling points and the sampling point information.
3. The method according to claim 2, characterized in that The obtaining of the target service duration corresponding to each sampling point includes: Obtain the target service duration corresponding to each sampling point input by the user; or, Fitting the historical sample volume and historical service duration corresponding to each sampling point with an equation to calculate the target service duration corresponding to each sampling point; or The average of multiple historical service durations included in the target time period of each sampling point is calculated to obtain the target service duration corresponding to each sampling point.
4. The method according to claim 2, characterized in that: The generating at least one sampling route based on a preset sampling rule according to the target service duration corresponding to each sampling point and the sampling point information includes: According to the order of the sampling point levels from high to low, the allocation time period corresponding to each sampling point is determined according to the target service time and sampling time information corresponding to each sampling point, and each sampling point is allocated to one or more sampling routes according to the allocation time period corresponding to each sampling point to obtain at least one sampling route; The allocated time periods corresponding to the sampling points on each sampling route do not conflict with each other.
5. The method according to claim 4, characterized in that The method of determining the allocated time period corresponding to each sampling point according to the target service duration and sampling time information corresponding to each sampling point in descending order of the sampling point level, and allocating each sampling point to one or more sampling routes according to the allocated time period corresponding to each sampling point to obtain at least one sampling route includes: Sorting the at least one sampling point in descending order of sampling point level to obtain a sampling point sequence; The sampling point arranged first in the sampling point sequence is used as the current sampling point, and the allocation time period corresponding to the current sampling point is determined according to the target service duration and sampling time information corresponding to the current sampling point; If the allocated time period corresponding to the current sampling point does not conflict with the allocated time periods corresponding to the allocated sampling points in the current sampling route to be allocated, the current sampling point is added to the sampling route to be allocated, and the current sampling point is removed from the sampling point sequence, and the steps of taking the sampling point arranged at the first position in the sampling point sequence as the current sampling point and determining the allocated time period corresponding to the current sampling point according to the target service duration and sampling time information corresponding to the current sampling point are re-executed, until the current sampling point is the sampling point arranged at the last position in the sampling point sequence, and the sampling route to be allocated is allocated; If the allocated time period corresponding to the current sampling point conflicts with the allocated time period corresponding to each allocated sampling point in the sampling route to be allocated, the next sampling point of the current sampling point is used as the new current sampling point, and the step of determining the allocated time period corresponding to the current sampling point according to the target service duration and sampling time information corresponding to the current sampling point is re-executed until the current sampling point is the last sampling point in the sampling point sequence, and the sampling route to be allocated completes allocation.
6. The method according to claim 5, characterized in that After determining the allocated time period corresponding to the current sampling point according to the target service duration corresponding to the current sampling point and the sampling time information, the method further includes: If there is no sampling route to be allocated currently, a new sampling route to be allocated is created, and the current sampling point is added to the sampling route to be allocated, the current sampling point is removed from the sampling point sequence, and the steps of taking the sampling point arranged at the first position in the sampling point sequence as the current sampling point and determining the allocation time period corresponding to the current sampling point according to the target service duration and sampling time information corresponding to the current sampling point are re-executed; If the sampling point is not included in the sampling point sequence, then all sampling routes that have completed the allocation are obtained.
7. The method according to claim 1, characterized in that Determining the docking information of one or more docking points corresponding to the at least one sampling route according to the at least one sampling route and the historical sampling amounts corresponding to the respective sampling points includes: According to the sampling order corresponding to each sampling point included in the target sampling route, the historical sampling amount corresponding to the current sampling point is added to the current cumulative sampling amount, and the cumulative sampling amount corresponding to the current sampling point is calculated; the target sampling route is any sampling route containing more than 1 sampling point; If the cumulative sample quantity corresponding to the current sampling point is less than the quantity threshold, the next sampling point is used as the new current sampling point, and the steps of adding the historical sample quantity corresponding to the current sampling point to the current cumulative sample quantity and calculating the cumulative sample quantity corresponding to the current sampling point are performed again until the current sampling point is the last sampling point of the target sampling route; If the cumulative sampling quantity corresponding to the current sampling point is not less than the quantity threshold, the connection information of the connection point between the current sampling point and the previous sampling point is determined according to the sampling point position information corresponding to the current sampling point and the previous sampling point respectively, and the current cumulative sampling quantity is reset to 0, and the step of adding the historical sampling quantity corresponding to the current sampling point to the current cumulative sampling quantity and calculating the cumulative sampling quantity corresponding to the current sampling point is re-executed until the current sampling point is the last sampling point of the target sampling route.
8. A specimen transportation route planning device, characterized in that: The device comprises: A sampling information acquisition module, used to acquire sampling point information corresponding to at least one sampling point of the sample to be collected, wherein the sampling point information includes at least one of sampling time information, sampling point level and sampling point location information; A sampling route generation module, configured to generate at least one sampling route based on the sampling point information corresponding to each sampling point and a preset sampling rule; the at least one sampling route covers the at least one sampling point; A docking point determination module, configured to determine docking information of one or more docking points corresponding to the at least one sampling route according to the at least one sampling route and the historical sample collection amounts corresponding to the respective sampling points, wherein the docking information includes a docking position and a docking time corresponding to the docking point; The transportation route generation module is used to generate at least one transportation route based on the docking information of the one or more docking points and the location information of the sample detection points.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
