Sample allocation method and device, equipment and storage medium
By acquiring sample information and the current occupancy path, determining the second detection device and determining the sample allocation path, the problem of complex sample allocation strategies in the prior art is solved, and the efficiency and adaptability of sample allocation are improved.
Patent Information
- Application Number
- CN202411936463.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-25
AI Technical Summary
When the number of sample detection devices increases, the sample allocation strategy is complex and it is difficult to effectively cover all situations, resulting in inefficient sample allocation.
By obtaining the sample information of the sample to be allocated and the current occupation path of the allocation channel, the second detection device is determined, and the sample allocation path is determined based on the distribution address information and the second address information, so as to automatically adapt to the sample allocation of different numbers of detection devices.
The efficiency of sample distribution is improved, the distribution of test tubes can be managed simply and efficiently, and the number of detection devices can be automatically adapted to different numbers.
Smart Images

Figure CN119881351A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a sample distribution method, device and storage medium. Background Art
[0002] In an assembly-line sample testing instrument, a plurality of or multiple testing instruments are usually provided, and the plurality of / multiple instruments intelligently distribute samples to corresponding testing instruments through a sample distribution module.
[0003] In the existing sample allocation method, the sample allocation strategy is related to the specific number of sample detection devices. As the number of sample detection devices increases, the number of sample allocation rules will increase exponentially, which will make the sample allocation strategy more and more complicated and difficult to effectively cover all situations. As a result, it is impossible to simply and effectively manage the distribution of test tubes, making the sample allocation inefficient. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a sample allocation method, device, equipment and storage medium to improve the efficiency of sample allocation.
[0005] In a first aspect, the present application provides a method for obtaining sample information of a sample to be distributed and a currently occupied path of a distribution channel, wherein the currently occupied path is a path determined according to distribution address information corresponding to a distribution node and first address information corresponding to a plurality of first detection devices; the distribution address information and the first address information are obtained by addressing the distribution node and the plurality of first detection devices in advance in sequence;
[0006] Determining a second detection device according to the sample information and the currently occupied path;
[0007] determining, according to the second detection device, second address information corresponding to the second detection device;
[0008] A sample distribution path is determined according to the distribution address information and the second address information.
[0009] Optionally, the method further includes: acquiring a device detection type of the first detection device;
[0010] The determining of the second detection device according to the sample information and the currently occupied path includes:
[0011] Based on the sample information and the device detection type, determining a first detection device matching the sample information;
[0012] According to the current occupied path, a second detection device is determined from the first detection devices matching the sample information.
[0013] Optionally, determining the sample distribution path according to the distribution address information and the second address information includes:
[0014] The sample distribution path is determined according to a path distribution rule, the distribution address information and the second address information, wherein the path distribution rule includes a shortest path principle.
[0015] Optionally, the method further includes:
[0016] Get a request to add a detection device;
[0017] Based on the detection device adding request, the new first detection device is addressed in sequence based on the distribution address information and the first address information.
[0018] Optionally, the method further includes: acquiring a current detection quantity of the first detection device;
[0019] The determining of the second detection device according to the sample information and the currently occupied path includes:
[0020] A second detection device is determined according to the current detection quantity, the sample information and the current occupied path.
[0021] In a second aspect, the present application provides a sample dispensing device, the device comprising:
[0022] An acquisition unit, used to acquire sample information of a sample to be allocated and a currently occupied path of a distribution channel, wherein the currently occupied path is a path determined according to distribution address information corresponding to a distribution node and first address information corresponding to a plurality of first detection devices; the distribution address information and the first address information are obtained by addressing the distribution node and the plurality of first detection devices in advance in sequence;
[0023] a determining unit, configured to determine a second detection device according to the sample information and the currently occupied path;
[0024] The determining unit is used to determine, according to the second detection device, second address information corresponding to the second detection device;
[0025] The determining unit is used to determine a sample distribution path according to the distribution address information and the second address information.
[0026] Optionally, the acquisition unit is further used to acquire the detection type of the first detection device;
[0027] The determining unit comprises:
[0028] a determination subunit, configured to determine a first detection device matching the sample information based on the sample information and the detection type;
[0029] The determination subunit is used to determine the second detection device from the first detection devices matching the sample information according to the current occupied path.
[0030] Optionally, the determining unit includes:
[0031] The determination subunit is specifically used to determine the sample distribution path according to the path distribution rule, the distribution address information and the second address information, and the path distribution rule includes the shortest path principle.
[0032] In a third aspect, the present application provides a sample dispensing device, comprising:
[0033] Memory for storing computer programs;
[0034] A processor is used to execute the computer program stored in the memory to implement the steps of the sample allocation method as described in the first aspect.
[0035] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the steps of the sample allocation method as described in the first aspect.
[0036] It can be seen that the sample allocation method, device, equipment and storage medium disclosed in the embodiment of the present application, in a sample allocation method, obtain the sample information of the sample to be allocated and the currently occupied path of the allocation channel, the currently occupied path is the path determined according to the distribution address information corresponding to the distribution node and the first address information corresponding to the multiple first detection devices; the distribution address information and the first address information are obtained by addressing the distribution node and the multiple first detection devices in sequence in advance; according to the sample information and the currently occupied path, determine the second detection device; according to the second detection device, determine the second address information corresponding to the second detection device; determine the sample allocation path according to the distribution address information and the second address information. The above method, by addressing different numbers of detection devices, can quickly realize the determination of the sample allocation path through address information, can automatically adapt to different numbers of detection devices, and improve the distribution efficiency of samples. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
[0038] Figure 1 It is a flow chart of a sample allocation method provided in an embodiment of the present application;
[0039] Figure 2 It is a schematic diagram of a mathematical model for addressing based on a sample allocation method provided in an embodiment of the present application;
[0040] Figure 3 It is a structural schematic diagram of a sample distribution device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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 belong to the scope of protection of this application.
[0042] To facilitate understanding of the technical solution provided by the present application, a sample allocation method provided by the present application will be described below in conjunction with the accompanying drawings. Figure 1 , which is a flow chart of a sample allocation method provided in an embodiment of the present application, such as Figure 1 As shown, the method includes S101-S104.
[0043] S101: Obtain sample information of samples to be distributed and a currently occupied path of a distribution channel, where the currently occupied path is a path determined based on distribution address information corresponding to a distribution node and first address information corresponding to a plurality of first detection devices; the distribution address information and the first address information are obtained by pre-addressing the distribution node and a plurality of first detection devices in sequence.
[0044] In the embodiment of the present application, the sample to be allocated refers to a sample that needs to be distributed to the detection device for detection. The present application does not limit the specific content of the sample to be allocated. As an example, the present application can be applied to the field of automatic detection of medical samples. The sample to be allocated can be a blood sample, urine sample, etc. that needs to be detected. The present application does not limit the specific content of the information of the sample to be allocated. The sample information of the sample to be allocated can include the sample detection type, and the sample detection type is used to indicate what type of detection the sample to be detected needs to undergo.
[0045] The present application will pre-address the distribution node and the plurality of first detection devices in order. For example, Figure 2 As shown, Figure 2 A schematic diagram of a mathematical model for addressing based on a sample allocation method provided for an embodiment of the present application. The present application can address the distribution node and multiple first detection devices in order, such as uniformly addressing from small to large, to obtain the distribution address information of the distribution node and the first address information of multiple first detection devices, wherein the distribution node is used as the initial node, and these addresses are mapped to the X-axis to form points X0-XN on the X-axis, where X0 represents the distribution address information of the distribution node, and X1-XN represents the first address information of multiple detection devices, and the X-axis represents the distribution channel.
[0046] In the present application, the distribution node can distribute the sample to be distributed to any first detection device, and any detection device can also distribute the sample to be distributed to any subsequent first detection device, thereby forming a test tube travel path. The currently occupied path of the distribution channel means the travel path where the sample is currently being transmitted, for example Figure 2 The currently occupied paths include: the path of X0-X2-X3 and the path of X0-X4-XN.
[0047] S102: Determine a second detection device according to the sample information and the currently occupied path.
[0048] In the embodiment of the present application, after obtaining the sample information and the current occupied path, the second detection device can be determined according to the sample information and the current occupied path. It can be understood that the second detection device is a device selected from multiple first detection devices and is used to receive the sample to be assigned for detection.
[0049] The present application does not limit the specific method of determining the second detection device based on the sample information and the currently occupied path. As an example, a sample allocation method provided by the present application also includes: obtaining the device detection type of the first detection device.
[0050] Then S102 determines the second detection device according to the sample information and the currently occupied path, including the following steps A1-A2:
[0051] A1: Based on the sample information and the device detection type, determine a first detection device that matches the sample information.
[0052] In an embodiment of the present application, the sample information of a sample to be detected may correspond to one or more device detection types. It is understandable that the device detection types required for different samples to be allocated may be different. Some samples to be allocated need to be detected by detection devices of multiple different device detection types, and some samples to be allocated only need to be detected by detection devices of one device detection type. It is understandable that the device detection type indicates the functional type to be detected. The present application can match the sample detection type in the sample information with the device detection type to determine the first detection device that successfully matches.
[0053] A2: According to the current occupied path, determine a second detection device from the first detection devices matching the sample information.
[0054] In the embodiment of the present application, there may be multiple first detection devices that are successfully matched. The present application needs to combine the currently occupied path to determine a transmission path that does not overlap and interfere with the currently occupied path. Specifically, the present application can determine the first detection device required in the currently occupied path, and remove the first detection device required in the currently occupied path from the first detection device that matches the sample information, and then the second detection device can be obtained.
[0055] S103: Determine, according to the second detection device, second address information corresponding to the second detection device.
[0056] In the embodiment of the present application, after the second detection device is determined, the second address information can be determined in combination with the first address information obtained by addressing. The second address information is information corresponding to the second detection device.
[0057] S104: Determine a sample distribution path according to the distribution address information and the second address information.
[0058] In the embodiment of the present application, the distribution node is used as the initial node, and the second address information is used as the subsequent node, so as to determine the sample distribution path.
[0059] As a possible implementation manner, determining the sample allocation path according to the distribution address information and the second address information includes: determining the sample allocation path according to a path allocation rule, the distribution address information and the second address information, wherein the path allocation rule includes a shortest path principle.
[0060] It can be understood that there may be multiple second detection devices selected by the present application for detection, so that there are multiple sample distribution paths determined according to the distribution address information and the second address information. According to the shortest path principle of the present application, among multiple sample distribution paths, the sample distribution path with the shortest path distance is selected as the optimal path, so that the sample distribution can be completed more quickly and effectively, thereby improving the sample distribution efficiency.
[0061] In the above method, by addressing different numbers of detection devices, when multiple samples are moving forward at a certain moment, multiple sample travel paths are formed. This application will automatically find other available sample distribution paths for sample distribution through address information, thereby achieving the purpose of simple and efficient management, and can automatically adapt to different numbers of detection devices to improve sample distribution efficiency.
[0062] As a possible implementation, the sample allocation method provided in the present application further includes the following steps B1-B2:
[0063] B1: Get a request to add a detection device.
[0064] B2: Based on the detection device adding request, address the new first detection device in sequence based on the distribution address information and the first address information.
[0065] It is understandable that when a new first detection device needs to be added, the present application will also obtain a detection device addition request. The present application does not limit the specific content of the detection device addition request. As an example, the detection device addition request may include the device detection type of the new first detection device. The present application may only need to address the new first detection device in sequence based on the above-mentioned distribution address information and the first address information. For example, when there is address information of X0-XN, the present application may address the new first detection device starting from XN+1.
[0066] In the present application, if a detection device is to be added to the assembly line, the newly added detection devices only need to be uniformly addressed in sequence without changing the sample allocation strategy. This method can quickly and automatically adapt to different numbers of detection devices, thereby improving the sample distribution efficiency.
[0067] As a possible implementation manner, a sample allocation method provided in the present application further includes: obtaining a current detection quantity of the first detection device.
[0068] Then S102 determines a second detection device according to the sample information and the current occupied path, including: determining a second detection device according to the current detection quantity, the sample information and the current occupied path.
[0069] It is understandable that once the sample to be allocated is successfully allocated, it will be detected by the detection device. A detection device will have a buffer so that it can receive multiple samples, but the number of samples that each detection device can receive is also limited. When the current detection quantity of the first detection device is greater than or equal to the quantity threshold, the first detection device can no longer receive excess samples. This application does not limit the specific value of the quantity threshold, which can be determined according to actual needs.
[0070] In an embodiment of the present application, by obtaining the current detection quantity of the first detection device, on the basis of determining the second detection device according to the sample information and the currently occupied path, the second detection device whose current detection quantity is greater than or equal to the quantity threshold is excluded, so that the second detection device that can receive the sample to be allocated can be determined, thereby ensuring the distribution of the sample and improving the distribution efficiency of the sample.
[0071] A sample distribution device provided in an embodiment of the present application is introduced below. The device described below and the sample distribution method described above can refer to each other.
[0072] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of a sample distribution device provided in an embodiment of the present application. The device includes an acquisition unit 301 and a determination unit 302.
[0073] The acquisition unit 301 is used to acquire sample information of the sample to be allocated and a currently occupied path of the allocation channel, wherein the currently occupied path is a path determined according to the distribution address information corresponding to the distribution node and the first address information corresponding to the plurality of first detection devices; the distribution address information and the first address information are obtained by addressing the distribution node and the plurality of first detection devices in advance in sequence;
[0074] A determination unit 302, configured to determine a second detection device according to the sample information and the currently occupied path;
[0075] The determining unit 302 is used to determine, according to the second detection device, second address information corresponding to the second detection device;
[0076] The determining unit 302 is configured to determine a sample distribution path according to the distribution address information and the second address information.
[0077] As a possible implementation manner, the acquisition unit is further used to acquire the detection type of the first detection device;
[0078] The determining unit 302 includes:
[0079] a determination subunit, configured to determine a first detection device matching the sample information based on the sample information and the detection type;
[0080] The determination subunit is used to determine the second detection device from the first detection devices matching the sample information according to the current occupied path.
[0081] As a possible implementation manner, the determining unit 302 includes:
[0082] The determination subunit is specifically used to determine the sample distribution path according to the path distribution rule, the distribution address information and the second address information, and the path distribution rule includes the shortest path principle.
[0083] As a possible implementation manner, the device further includes:
[0084] The acquisition unit 301 is further used to acquire a detection device adding request;
[0085] An addressing unit is used to address the new first detection device in sequence based on the distribution address information and the first address information based on the detection device addition request.
[0086] As a possible implementation manner, the device further includes:
[0087] The acquisition unit 301 is further configured to acquire the current detection quantity of the first detection device;
[0088] The determining unit 302 is specifically configured to determine a second detection device according to the current detection quantity, the sample information and the current occupied path.
[0089] It should be noted that a sample distribution device provided in an embodiment of the present application has the technical effects of any of the above embodiments, and the embodiments of the present application are not described in detail here.
[0090] The present application also provides a sample allocation device, which may include a memory and a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the sample allocation method described in the above embodiment is implemented.
[0091] It should be noted that a sample distribution device provided in an embodiment of the present application has the technical effects of any of the above embodiments, and the embodiments of the present application are not described in detail here.
[0092] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0093] It should be noted that a computer-readable storage medium provided in an embodiment of the present application has the technical effects of any of the above embodiments, and the embodiments of the present application are not described in detail here.
[0094] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0095] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0096] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A sample allocation method, characterized in that: The method comprises: Acquire sample information of the sample to be distributed and a currently occupied path of the distribution channel, wherein the currently occupied path is a path determined according to distribution address information corresponding to the distribution node and first address information corresponding to a plurality of first detection devices; the distribution address information and the first address information are obtained by addressing the distribution node and the plurality of first detection devices in advance in sequence; Determining a second detection device according to the sample information and the currently occupied path; determining, according to the second detection device, second address information corresponding to the second detection device; A sample distribution path is determined according to the distribution address information and the second address information.
2. The method according to claim 1, characterized in that The method further includes: obtaining a device detection type of the first detection device; The determining of the second detection device according to the sample information and the currently occupied path includes: Based on the sample information and the device detection type, determining a first detection device matching the sample information; According to the current occupied path, a second detection device is determined from the first detection devices matching the sample information.
3. The method according to claim 2, characterized in that The determining the sample distribution path according to the distribution address information and the second address information includes: The sample distribution path is determined according to a path distribution rule, the distribution address information and the second address information, wherein the path distribution rule includes a shortest path principle.
4. The method according to claim 1, characterized in that The method further comprises: Get a request to add a detection device; Based on the detection device adding request, the new first detection device is addressed in sequence based on the distribution address information and the first address information.
5. The method according to claim 1, characterized in that The method further comprises: obtaining the current detection quantity of the first detection device; The determining of the second detection device according to the sample information and the currently occupied path includes: A second detection device is determined according to the current detection quantity, the sample information and the current occupied path.
6. A sample distribution device, characterized in that: The device comprises: An acquisition unit, used to acquire sample information of a sample to be allocated and a currently occupied path of a distribution channel, wherein the currently occupied path is a path determined according to distribution address information corresponding to a distribution node and first address information corresponding to a plurality of first detection devices; the distribution address information and the first address information are obtained by addressing the distribution node and the plurality of first detection devices in advance in sequence; a determining unit, configured to determine a second detection device according to the sample information and the currently occupied path; The determining unit is used to determine, according to the second detection device, second address information corresponding to the second detection device; The determining unit is used to determine a sample distribution path according to the distribution address information and the second address information.
7. The method according to claim 6, characterized in that The acquisition unit is further used to acquire the detection type of the first detection device; The determining unit comprises: a determination subunit, configured to determine a first detection device matching the sample information based on the sample information and the detection type; The determination subunit is used to determine the second detection device from the first detection devices matching the sample information according to the current occupied path.
8. The method according to claim 7, characterized in that The determining unit comprises: The determination subunit is specifically used to determine the sample distribution path according to the path distribution rule, the distribution address information and the second address information, and the path distribution rule includes the shortest path principle.
9. A sample dispensing device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program stored in the memory to implement the steps of the sample distribution method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the steps of the sample distribution method according to any one of claims 1 to 7.
