Sample detection task execution method and device, computer device, and storage medium
By prioritizing and repositioning tasks according to their type, the problem of untimely task execution in traditional sample testing is solved, thus improving testing efficiency and effectiveness.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-15
- Publication Date
- 2026-04-07
AI Technical Summary
In traditional sample testing methods, untimely task execution can lead to sample failure or poor testing results.
Based on the priority order of the detection task types, it is determined whether there are any tasks to be executed in the task queue. Then, the sample position of the target detection task is transformed to the task execution position through the sample position transformer, and the corresponding task operation is executed.
It improves the timeliness and effectiveness of task execution, reduces the occurrence of sample failures or poor detection results, and prioritizes high-priority tasks.
Smart Images

Figure CN114636829B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of detection technology, and in particular to a method, apparatus, computer equipment, and storage medium for performing sample detection tasks. Background Technology
[0002] With the development of science and technology, it is necessary to test samples in many situations. For example, in the medical field, fecal testing can be performed by dropping feces onto a glass slide or test paper, placing the glass slide on the stage of a microscope for testing, or performing quantitative or qualitative analysis on the test paper.
[0003] In traditional techniques, samples can be moved according to a preset movement method during detection. When they move to their corresponding task execution position, the task operation corresponding to the target detection task is executed at the task execution position. However, there are often cases where the task cannot be executed in time, resulting in sample failure or poor detection effect, i.e., poor task execution effect. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, and storage medium for performing sample detection tasks to address the aforementioned technical problems.
[0005] A method for executing a sample detection task includes: receiving a sample detection instruction; responding to the sample detection instruction, sequentially determining whether there are any tasks to be executed in the task queues corresponding to each detection task type according to the priority order of each detection task type in a set of detection task types; if there are tasks to be executed in the current detection task type, then taking the tasks to be executed as target detection tasks; controlling a sample position transformer to perform position transformation according to the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position, and executing the task operation corresponding to the target detection task at the task execution position.
[0006] A sample detection task execution device includes: a sample detection instruction receiving module for receiving sample detection instructions; a judgment module for responding to the sample detection instructions and sequentially judging whether there are any tasks to be executed in the task queues corresponding to each detection task type according to the priority order of each detection task type in a detection task type set; a target detection task acquisition module for taking the task to be executed as the target detection task if there is a task to be executed in the current detection task type; and a position transformation module for controlling a sample position transformer to perform position transformation according to the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position, and the task operation corresponding to the target detection task is executed at the task execution position.
[0007] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of a sample detection task execution method.
[0008] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of a sample detection task execution method.
[0009] The aforementioned sample detection task execution method, apparatus, computer equipment, and storage medium, upon receiving a sample detection instruction, can sequentially determine whether there are any tasks to be executed in the task queue corresponding to each detection task type according to the priority order of each detection task type in the detection task type set. If there are tasks to be executed in the current detection task type, the tasks to be executed are taken as target detection tasks. The sample position transformer is controlled to perform position transformation according to the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position. The task operation corresponding to the target detection task is executed at the task execution position. Therefore, high-priority tasks can be executed first, so that high-priority tasks can be processed in a timely manner, reducing the situation of sample failure or poor detection effect, and improving the task execution effect. Attached Figure Description
[0010] Figure 1 This is a diagram illustrating the application environment of the sample detection task execution method in some embodiments;
[0011] Figure 2 This is a flowchart illustrating the sample detection task execution method in some embodiments;
[0012] Figure 3 This is a schematic diagram of the turntable in some embodiments;
[0013] Figure 4 This is a flowchart illustrating the step in some embodiments where a sample position transformer is controlled to perform position transformation based on the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position.
[0014] Figure 5 The diagram shows a flowchart illustrating the control of the sample introduction platform in some embodiments.
[0015] Figure 6 The diagram shows the flowchart corresponding to the scanning timing in some embodiments;
[0016] Figure 7 The diagram shows flowcharts corresponding to the dilution and mixing tasks in some embodiments;
[0017] Figure 8 The diagram shown is a control schematic of the sample introduction platform in some embodiments;
[0018] Figure 9 The diagram shows a flowchart of the card insertion control for the detection card, i.e., the carrier, in the card compartment in some embodiments;
[0019] Figure 10 The diagram shows flowcharts of sample detection task execution methods in some embodiments;
[0020] Figure 11A The diagram shows flowcharts of dry chemistry tasks in some embodiments;
[0021] Figure 11B The diagram shows a flowchart of the dry chemical timing process in some embodiments;
[0022] Figure 12 The diagram shows flowcharts of microscopic examination tasks in some embodiments;
[0023] Figure 13A The diagram shows a flowchart of the sampling task in some embodiments;
[0024] Figure 13B The diagram shows a flowchart of the sampling timing in some embodiments;
[0025] Figure 14 The following are flowcharts of the card entry task in some embodiments;
[0026] Figure 15 This is a structural block diagram of the sample detection task execution device in some embodiments;
[0027] Figure 16 This is a diagram showing the internal structure of a computer device in some embodiments. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0029] The sample detection task execution method provided in this application can be applied to, for example... Figure 1In the application environment shown, the sample detection platform includes a sample introduction platform 102, a sample addition platform 104, a turntable platform 106, and a microscopic examination platform 108. A control device 110 is communicatively connected to the sample detection platform. The control device 110 can control each sub-platform of the sample detection platform using the sample detection task execution method provided in this embodiment, thereby realizing sample detection. Sample introduction refers to inputting the sample to be tested into the sample detection platform. The sample is the object to be tested, such as feces, for example, if chemical testing of the feces is required. The sample introduction platform is used for sample introduction; feces can be placed in a test tube, and the sample is introduced by moving the test tube. Sample addition refers to adding the sample to a carrier, such as adding feces from a test tube to a carrier, which can be test paper or a glass slide. The turntable is used to change the position of the test card, which has a glass slide or test paper on it. When a test card carrier needs to have a sample added, the turntable platform can be used to change the position of the test card to the sample addition position to perform the sample addition step. After sample addition is complete, the turntable is rotated according to the task to be performed, so that the turntable platform rotates to the task execution position. The task execution position can be, for example, the microscopic examination position. The glass slide with the sample is input into the microscopic examination platform through the microscopic examination position of the turntable, and the sample is observed under a microscope on the microscopic examination platform. This can be done manually or by acquiring images under the microscope and using artificial intelligence-based image recognition algorithms to identify information in the images, such as calculating the number of bacteria.
[0030] In some embodiments, such as Figure 2 As shown, a method for executing a sample detection task is provided, which can be applied to... Figure 1 Taking the control equipment in the example, the explanation includes the following steps:
[0031] Step 202: Receive sample testing instructions.
[0032] Here, a sample refers to the object being tested, such as feces or blood. A sample testing command instructs the user to perform a sample test, for example, to test for the number of bacteria in feces. Sample testing commands can be automatically triggered, for example, automatically triggering the test command for the next sample after each sample test is completed. Sample testing commands can also be manually triggered; for example, the control device's display interface can show a corresponding test command trigger control, and the sample testing command is triggered when a trigger operation is received on the control interface.
[0033] Specifically, the control device can generate sample detection commands in response to the operation of the detection command trigger control, and the control device can also receive automatically triggered sample detection commands.
[0034] Step 204: In response to the sample detection instruction, determine in turn whether there are any tasks to be executed in the task queue corresponding to each detection task type according to the priority order of each detection task type in the detection task type set.
[0035] The detection task types can include dry chemistry tasks, microscopic examination tasks, sample loading tasks, and card loading tasks. Dry chemistry tasks involve dry chemical analysis, as opposed to wet chemistry techniques. This involves adding a sample, such as a liquid sample, to a test strip, using the sample's moisture as a solvent to induce a specific chemical reaction, and then analyzing the result based on this reaction; for example, analyzing urine protein or urine glucose. Microscopic examination tasks involve detection using a microscope, either through manual observation or by acquiring images under a microscope and performing image recognition to obtain the results. Sample loading tasks involve adding a sample to a carrier, such as adding fecal matter to a glass slide or test strip. Card loading tasks involve placing a carrier into a position-changing device, such as a turntable. Once card loading is complete, sample loading can proceed.
[0036] The set of detection tasks includes multiple detection task types. "Multiple" means at least two. The priority order of detection task types can be pre-set, for example, based on at least one of the task execution order or the urgency of the task types. The urgency of a detection task type can be determined by its time requirements; the higher the time requirement, the higher the urgency, i.e., a positive correlation between time requirement and urgency. When determining the priority order, it can be based on the reverse order of sample detection. When sample detection orders are the same, the priority order is determined by the urgency of the task types. For example, for dry chemistry, microscopy, sample loading, and card loading tasks, the detection order for a sample is card loading first, then sample loading. After successful loading, the need for dry chemistry or microscopy analysis depends on the sample's detection requirements. Therefore, card loading tasks have the lowest priority, and sample loading tasks have a higher priority than card loading tasks. For dry chemistry tasks and microscopy tasks, since there is no specific order of execution, priority is determined by the urgency of the task. Because dry chemistry tasks require reaction with the test strip and may need to be analyzed promptly once the chemical reaction reaches a certain stage, dry chemistry tasks are more urgent than microscopy tasks. The priority decreases in the following order: dry chemistry tasks, microscopy tasks, sample loading tasks, and card insertion tasks.
[0037] Specifically, upon receiving a sample testing instruction, the control device can determine whether there are any pending tasks in the task queue corresponding to each testing task type, according to the priority order of each testing task type in the testing task type set, until a pending task is found within that testing task type. For example, if the priorities of the dry chemistry task type, microscopic examination task type, sample loading task type, and card loading task type decrease sequentially, it can first determine whether there are any pending tasks in the dry chemistry task type; if so, the determination stops. If not, it then determines whether there are any pending tasks in the microscopic examination task type.
[0038] In some embodiments, the detection task type is categorized based on the sample detection task process. Detection tasks can be divided into multiple types according to the task flow corresponding to the position changing device. For example, if the position changing device is a turntable, and the corresponding task flow in the turntable includes sample loading, card insertion, dry chemical detection, and microscopic examination, then the detection task type can include dry chemical task type, microscopic examination task type, sample loading task type, and card insertion task type.
[0039] In some embodiments, the detection task type is determined based on the task execution position corresponding to the position changing device. For example, the turntable may include a card insertion / examination position, a card rejection position, a CCD (charge coupled device) position, a sample loading position, and a card insertion position. The microscopy position is used to move the carrier onto the microscope for detection; the carrier can also be called a card. The CCD position corresponds to dry chemical analysis, where the carrier can be sent to the corresponding position for dry chemical analysis. The card rejection position is the position where the carrier is removed from the turntable after sample detection is completed. The sample loading position allows the carrier to be moved to the sample loading location for sample loading, or sample loading can be performed at the sample loading position. The carrier enters the turntable through the card insertion position. Therefore, the task type can be divided into microscopy task type, card rejection task type, dry chemical analysis task type, sample loading task type, and card insertion task type. Determining the detection task type based on the task execution position makes the task division clear and the task execution orderly. Moreover, when determining the target detection task, the corresponding task execution position can be determined according to the task type corresponding to the target detection task, which is efficient and fast.
[0040] Step 206: If there is a task to be executed in the current detection task type, then the task to be executed will be used as the target detection task.
[0041] Specifically, the current detection task type refers to whether there are any tasks to be executed in the task queue corresponding to the current detection task type. For example, when first determining whether there are any tasks to be executed for the dry chemistry task type, the dry chemistry task type is the current detection task type.
[0042] Specifically, if there are tasks to be executed in the current detection task type, the step of determining whether there are tasks to be executed in the task queue corresponding to each detection task type is stopped. If there is only one task to be executed in the current detection task type, then that task can be taken as the target detection task. If there are multiple tasks to be executed in the current detection task type, then the task ranked first can be taken as the target detection task.
[0043] In some embodiments, determining whether there is a task to be executed in the task queue corresponding to each detection task type according to the priority order of each detection task type in the detection task type set includes: checking whether there is a first task in the first task queue corresponding to the first task type; if yes, then taking the first task in the first task queue as the target detection task to be executed; if no, then checking whether there is a second task in the second task queue corresponding to the second task type, where the priority of the first task type is higher than the priority of the second task type.
[0044] Specifically, the first and second task types can be set according to actual conditions. For example, the first task type could be a dry chemistry task type, and the second task type could be a microscopic examination task type. If there is a first task to be executed in the task queue corresponding to the dry chemistry task type, then that first task is taken as the target inspection task. If there is no first task to be executed in the task queue corresponding to the dry chemistry task type, then it can be determined whether there is a task to be executed in the task queue corresponding to the microscopic examination task type. It can be understood that if there is a third task, and there is no task to be executed in the second task, then it can be further determined whether there is a task to be executed in the task queue corresponding to the third task.
[0045] Step 208: Control the sample position transformer to perform position transformation according to the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position, and perform the task operation corresponding to the target detection task at the task execution position.
[0046] The sample position changer is a device used to change the position of the sample; for example, it can be a turntable. The turntable includes multiple positions for placing carriers such as glass slides or test strips. By rotating the turntable, the position of the carriers can be changed, thereby changing the position of the sample accordingly. For example, as... Figure 3 The diagram shows a turntable. The turntable can include 24 positions, each where a glass slide or test strip can be placed. When the turntable rotates to... Figure 3As shown, position 1 is the card insertion position, position 5 is the sample application position, position 8 is the card rejection position and CCD position, and position 11 is the microscopic examination position. The positions of the microscopic examination position, card rejection position, CCD position, sample application position, and card insertion position remain unchanged. By rotating the turntable, these positions correspond to different carriers, thereby enabling the detection of the sample.
[0047] The task execution position is the location related to task execution. For example, it could be the microscopic examination position, the card discard position, the CCD position, the sample loading position, or the card loading position. These positions enable the target detection task to be executed.
[0048] The task operation performed at the task execution position could be, for example, outputting the carrier corresponding to the target detection task to the detection position corresponding to that task, such as inputting a glass slide into the microscope at position 11. The target detection sample refers to the sample to be detected corresponding to the target detection task. The target detection task can be characterized by the position of the sample to be detected on the turntable.
[0049] Specifically, the control device can obtain the task execution position corresponding to the target detection task, and control the sample position changer to perform position transformation according to the task execution position. The endpoint of the position transformation is the task execution position, thereby moving the carrier carrying the target detection sample to the task execution position.
[0050] In some embodiments, the task type corresponding to the target detection task can be obtained; based on the task type, the task execution position corresponding to the target detection task can be determined. For example, when the detection task type is determined based on the task execution position corresponding to the position transformation device, then when the target task type is a dry chemistry task type, the corresponding task execution position can be determined as follows: Figure 3 The position corresponding to position 8 shown.
[0051] It is understandable that when the task operation is completed, the process of checking whether there are any tasks to be executed in the task queue corresponding to each detection task type in the detection task type set can be repeated according to the priority order of each detection task type until the detection tasks corresponding to each detection task type are completed.
[0052] In the above sample detection task execution method, after receiving the sample detection instruction, the system sequentially checks whether there are any tasks to be executed in the task queue corresponding to each detection task type, according to the priority order of each detection task type in the detection task type set. If there are tasks to be executed in the current detection task type, then the task to be executed is taken as the target detection task. The sample position transformer is controlled to perform position transformation according to the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position, and the task operation corresponding to the target detection task is executed at the task execution position. Therefore, high-priority tasks can be executed first, so that high-priority tasks can be processed in a timely manner, reducing the situation of sample failure or poor detection effect, and improving the task execution effect.
[0053] In some embodiments, detection modes can be preset, including a first mode where tasks are executed in priority order and a second mode where tasks are executed in position. In the first mode, the process proceeds by sequentially determining whether there are any tasks to be executed in the task queue corresponding to each detection task type in the detection task type set, according to their priority order. In the second mode, it is determined whether the carrier corresponding to each task execution position needs to execute the task corresponding to that position. If so, the sample detection task corresponding to that carrier is determined as the target detection task. For example, in the second mode, assuming the carrier corresponding to sample A has moved to the microscopic examination position, it is determined whether sample A needs to be examined under a microscope. If so, the target detection task is determined to be examining sample A under a microscope. If not, the turntable can continue to move by a preset increment, such as moving one position at a time, to determine whether the next carrier needs to be examined under a microscope. The first and second modes can be switched according to a mode switching operation.
[0054] In some embodiments, such as Figure 4 As shown, the sample position transformer is controlled to perform position transformation according to the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position, including:
[0055] Step 402: Obtain the current position of the target detection sample corresponding to the target detection task on the sample position transformer.
[0056] Specifically, the current position of the target detection sample on the sample position transformer can be represented by an index, for example, for Figure 3 In the turntable, assuming the target detection sample is at position 15, the current position is position 15. After determining the target detection task, the control device acquires the target detection sample to be detected by the task and determines the position of the target detection sample on the turntable as the current position.
[0057] Step 404: Obtain the task execution location corresponding to the target detection task.
[0058] Specifically, the task execution location can also be represented by a sequence number, for example, for Figure 3 In the turntable, assuming the object detection task is a microscopic inspection task, the task execution position is the position corresponding to position 11.
[0059] Step 406: Control the sample position transformer to perform position transformation according to the current position and the task execution position, so that the target detection sample corresponding to the target detection task is located at the task execution position.
[0060] Specifically, after obtaining the current position and the task execution position, the control device can control the converter to rotate, so that the target detection sample moves from the current position to the task execution position, for example, from the position corresponding to position 15 to the position corresponding to position 11.
[0061] In this embodiment, by controlling the sample position transformer to perform position transformation based on the current position and the task execution position, the target detection sample can quickly reach the corresponding task execution position, thereby improving the task execution efficiency.
[0062] In some embodiments, controlling the sample position transformer to perform position transformation based on the current position and the task execution position, so that the target detection sample corresponding to the target detection task is located at the task execution position, includes: determining the shortest path from the current position to the task execution position, obtaining the position transformation direction and position transformation distance corresponding to the shortest path; controlling the sample position transformer to move the position transformation distance according to the position transformation direction, so that the target detection sample corresponding to the target detection task is located at the task execution position.
[0063] The shortest path is the shortest path from the current position to the task execution position. The position change direction refers to the direction of the position change, and the position change distance refers to the distance the target detection sample is displaced during the position change. The position change distance can be represented by the difference in index. For example, if there are 24 positions on the turntable, rotating one position is called rotating one unit. Therefore, rotating from position 15 to position 11 requires rotating 4 units. The turntable can be controlled to rotate 4 units. During this rotation, the control device does not perform the step of determining whether the sample at the task execution position needs to execute the corresponding task, thus improving detection efficiency. For example, when moving from position 15 to the position corresponding to position 11, the shortest path is a counter-clockwise movement of 4 units, with each movement being one unit. Therefore, when moving one unit, i.e., when the task execution position becomes the position corresponding to position 12, the control device does not perform the step of determining whether the sample in position 12 needs microscopic examination. Instead, it continues to move until the target sample from position 15 reaches the position corresponding to position 11. At this position, a slide with the target sample is dropped onto the microscope stage. In this embodiment, by reaching the task execution position via the shortest path, sample detection efficiency can be improved.
[0064] In some embodiments, the sample position transformation device is a turntable, and determining the shortest path from the current position to the task execution position includes: determining the clockwise distance, which is the distance from the current position to the task execution position in the clockwise direction; determining the counterclockwise distance, which is the distance from the current position to the task execution position in the counterclockwise direction; and selecting the path corresponding to the smaller distance between the clockwise and counterclockwise distances as the shortest path.
[0065] Specifically, the turntable can be a circular disk that can move clockwise or counterclockwise. Therefore, we can obtain the distance to the task execution position by rotating clockwise, and use that distance as the clockwise distance; and obtain the distance to the task execution position by rotating counterclockwise, and use that distance as the counterclockwise distance. If the clockwise distance is smaller than the counterclockwise distance, the shortest path is determined to be the clockwise path. If the counterclockwise distance is smaller than the clockwise distance, the shortest path is determined to be the counterclockwise path.
[0066] In some embodiments, performing the task operation corresponding to the target detection task at the task execution location includes: when the target detection task is a sampling task, determining the target sampling type corresponding to the target detection task; controlling the sampler to perform sampling according to the target sampling type; when it is determined that the sampling is completed, determining the subsequent task type according to the target sampling type, and adding the detection task corresponding to the sample of the subsequent task type to the task queue corresponding to the subsequent task type.
[0067] The sample loading type can be set as needed, such as colloidal gold card loading or microscopic card loading. Colloidal gold card loading refers to loading the sample onto a colloidal gold card, while microscopic card loading refers to loading the sample onto a glass slide. The pipette is the device used for loading the sample, such as a robotic arm. The subsequent task type refers to the next task type corresponding to the target loading type. The next task type for each target loading type can be preset, so after obtaining the target loading type, the next task type can be determined. For example, for the colloidal gold card loading type, the corresponding next task type is a dry chemistry task type. For the microscopic card loading type, the corresponding next task type is a microscopic examination task type.
[0068] Specifically, when the target detection task is determined to be a sample addition task, the control device can determine whether the target detection task is a colloidal gold card addition type or a microscopic examination card addition type. If it is a colloidal gold card addition type, the sample is dropped onto the test strip; if it is a microscopic examination card addition type, the sample is dropped onto the glass slide. When the addition is completed, if it is a colloidal gold card addition type, the subsequent task type is determined to be a dry chemistry task type, and the corresponding dry chemistry task for that sample is generated. If it is a microscopic examination card addition type, the subsequent task type is determined to be a microscopic examination task type, and the corresponding microscopic examination task for that sample is generated.
[0069] In some embodiments, when it is determined that the sample addition is complete, determining the subsequent task type based on the target sample addition type and adding the detection task corresponding to the subsequent task type includes: when it is determined that the sample addition is complete, determining whether the target sample addition type is a microscopic card sample addition type; if yes, then using the microscopic task type as the subsequent task type, adding the microscopic task corresponding to the sample of the target detection task to the task queue corresponding to the microscopic task type; if no, then using the dry chemistry task type as the subsequent task type, adding the dry chemistry task corresponding to the sample of the target detection task to the task queue corresponding to the dry chemistry task type.
[0070] Specifically, the sample loading types are microscopic examination card loading and colloidal gold card loading. Therefore, it can be determined whether it is a microscopic examination card loading type. If so, the subsequent task type is a microscopic examination task, and a task for microscopic examination of the target sample can be added to the queue corresponding to the microscopic examination task type. If it is not a microscopic examination card loading type, it indicates that the target task type is colloidal gold card loading, and a task for dry chemical analysis of the target sample can be added to the queue corresponding to the dry chemistry task type.
[0071] In some embodiments, controlling the sampler to add samples according to the target sample type includes: determining whether the target sample type is a colloidal gold card sample type; if it is not a colloidal gold card sample type, determining whether a staining agent needs to be added; if a staining agent needs to be added, adding the target detection sample corresponding to the target detection task into the stainer to add the staining agent to the target detection sample; after the staining agent is successfully added, performing a microscopic sample addition operation on the target detection sample.
[0072] Staining agents are used to stain samples to facilitate dry chemical analysis. For example, a certain substance in the sample can bind with the staining agent, exhibiting a specific color, thus facilitating chemical analysis. A staining apparatus is a vessel used for staining. Microscopic sample loading refers to placing a sample onto a glass slide for observation under a microscope.
[0073] Specifically, the target sample can be added to a staining vessel, and then a staining agent can be added to the vessel. After successful addition, the stained target sample can be added to a glass slide. In this embodiment, by determining whether the target sample addition type is a colloidal gold card sample addition type, different sample addition steps are performed according to different determination results, which can make the sample addition steps match the target sample addition type and improve the efficiency of sample addition.
[0074] In some embodiments, such as Figure 5 The diagram shown illustrates the process of controlling the sample introduction platform in some embodiments, including the following steps:
[0075] Step 501a: Check if a test tube rack exists on the sample injection platform. If it exists, proceed to step 501b. It is understood that if it does not exist, no further action is needed, and the testing can continue.
[0076] Step 501b: Update the status of the sample injection platform to "working".
[0077] Step 501c: Perform the test tube rack pushing action in the Y-axis direction.
[0078] Step 501d: Check if the test tube rack is pushed into place. If yes, update the test tube rack status to show it exists, and then proceed to step 502. If no, report a push failure fault, monitor the application layer to clear the fault, and continue to step 501c after the fault is cleared.
[0079] The sample injection platform can be equipped with a test tube rack, which serves as a support for the test tubes. The rack includes multiple slots for placing the test tubes. Checking whether the test tube rack is pushed into place is equivalent to checking whether it has been advanced into the sample injection path.
[0080] Step 502: Check if the bit detection test tube exists. If not, proceed to step 504. If yes, proceed to step 506.
[0081] The detection station is a station set up on the sample injection platform. Subsequent processing of the test tube is only necessary after the test tube has been detected at the detection station.
[0082] Step 504: Advance the test tube rack along the X-axis, increment the position of the test tube rack by 1, and increment the position of each hole on the test tube rack by 1.
[0083] It is understandable that after executing step 504, it is possible to return to executing step 502 to continue detecting whether a test tube exists at the detection position.
[0084] Step 506: Set the presence information of the test tube at the detection position to "present" and trigger the card insertion cache to insert the test card according to the current project.
[0085] Step 508: Advance the test tube rack along the X-axis, increment the position of the test tube rack by 1, and increment the position of each hole on the test tube rack by 1.
[0086] This can be understood as adding 1 to the recorded test tube rack position and adding 1 to the recorded position of each hole on the test tube rack.
[0087] Step 510: Check if the test tube rack after advancement has reached the sample injection end position. If yes, proceed to step 528; otherwise, trigger steps 512 and 514 in parallel.
[0088] Step 512: Check if a test tube is present at the scanning position.
[0089] The barcode scanning station is a workstation set up on the sample injection platform for scanning the barcodes on arriving test tubes. That is, if a test tube reaches the barcode scanning station, the station can scan the QR code on the test tube.
[0090] Step 514: Check if a test tube exists at the dilution and mixing sampling site.
[0091] If test tubes are present at both the barcode scanning position and the dilution mixing sampling position, then the barcode scanning task for the test tubes at the barcode scanning position and the dilution mixing task for the test tubes at the dilution mixing sampling position are triggered in parallel. Step 516 is executed in the barcode scanning task thread corresponding to the barcode scanning task, and steps 518 to 524 are executed in the sampling task thread corresponding to the dilution mixing task. The barcode scanning task thread and the dilution mixing task thread are executed in parallel.
[0092] Step 516: Execute the scanning task according to the scanning sequence and check whether the scanning task has been completed.
[0093] It is understandable that data updates can be performed after the scanning task is completed according to the scanning sequence. The flowchart corresponding to the scanning sequence can be as follows: Figure 6 As shown. When performing barcode scanning according to the scanning sequence, the scanning action can be executed, and the scanning process can be checked to see if it is completed. If it is completed, the scanning process ends (i.e., the scanning task is completed). If it is not completed, the scanning process continues to be checked to see if it is completed.
[0094] Step 518: Perform the photo-taking task according to the color photo-taking sequence, and check whether the photo-taking task has been completed.
[0095] Step 520: Perform the dilution and mixing task according to the dilution and mixing sequence, and check whether the dilution and mixing task has been completed.
[0096] The flowchart for the dilution and mixing task can be as follows: Figure 7 As shown, when performing dilution and mixing according to the dilution and mixing sequence, the sample solution in the test tube can be diluted first according to the test tube information, and the dilution can be checked to see if it is complete. If not, the dilution can be checked again to see if it is complete. If it is, the mixing device on the injection platform can be controlled to perform the mixing operation and check if the mixing is complete. If not, the mixing can be checked again to see if it is complete. If it is complete, the dilution and mixing process ends.
[0097] Step 522: Update the data to confirm that the dilution and mixing for the test tubes is complete.
[0098] Step 524: Perform the sample addition process and check whether the sample addition is complete.
[0099] Step 526: Check if the barcode scanning and sample addition are complete. If yes, return to step 502 for loop control.
[0100] Step 528: Advance the test tube rack forward along the X-axis twice consecutively.
[0101] It is understandable that after two consecutive pushes, the foremost hole on the test tube rack can reach the last position on the sample injection platform.
[0102] Step 530: Check if the waste sample area is full. If not, proceed to step 532. If it is full, report a fault indicating that the waste sample area is full. After the fault is detected and cleared, continue to check if the waste sample area is full.
[0103] Step 532: Unpack the test tube rack.
[0104] This is understandable; it involves pushing the test tube rack out from the sample introduction platform. For example... Figure 8The diagram shows a control schematic of the sample injection platform in some embodiments. Assume there are 25 positions along the sample injection path. These 25 numbers represent the 25 positions along the injection path. Assume a test tube rack has 10 wells, each well occupying one position. Therefore, after the test tube rack is advanced into the injection path, the wells on the rack will occupy positions 1 through 10. Figure 2The curly braces indicate the positions occupied by the holes as the test tube rack moves to different locations. The foremost hole of the test tube rack (i.e., the foremost hole with the direction indicated by the injection path as a reference) is located at the 10th position in the injection path. Since the detection position is also located at the 10th position, the detection position can detect whether there is a test tube at that detection position. That is, it checks whether there is a test tube at the foremost hole of the test tube rack. If there is, it can trigger corresponding processing, such as setting the test tube information at the detection position to present and triggering the addition of a detection card to the card buffer, and then moving the entire test tube rack forward one position. Then, the foremost hole of the test tube rack is located at the 11th position in the injection path, and the second hole of the test tube rack reaches the 10th position in the injection path. Then, the system can simultaneously trigger checks for test tubes at the barcode scanning position and the dilution mixing sampling position. Clearly, when the frontmost hole of the test tube rack is only at position 11, there are no test tubes at the barcode scanning position (position 12) or the dilution mixing sampling position (position 13). Since these two checks can be skipped, the system can return to the detection position to continue checking for test tubes. Specifically, it checks for test tubes at the second hole of the test tube rack. If a test tube is present, the corresponding processing is triggered, and the test tube rack is moved forward one position. At this point, the frontmost hole of the test tube rack reaches position 12, and the third hole is at the detection position. This simultaneously triggers checks for test tubes at the barcode scanning position and the dilution mixing sampling position, and proceeds with subsequent steps, and so on. For example, when the frontmost hole of the test tube rack is advanced to position 14, meaning the holes on the rack occupy positions 5 through 14 sequentially, test tubes can be detected simultaneously at both the scanning and dilution / mixing sampling positions. This triggers the first task at the scanning position and the second task at the dilution / mixing sampling position, which are executed concurrently. After the tasks are completed, the detection position continues to check for test tubes. In this way, the total processing time at the scanning and dilution / mixing sampling positions after each advancement is not the sum of the processing times at these two positions, but rather the maximum of the individual processing times, significantly reducing the total processing time after each advancement. Following this method, the test tube rack is advanced step-by-step along the sample feeding path, and each position processes each test tube accordingly. If position 23 is the end of the sample injection process, then when the foremost hole of the test tube rack reaches position 23, the holes on the rack will sequentially occupy positions 14 through 23. It can be observed that each hole on the test tube rack has passed through each station on the injection platform; that is, the test tube at each hole has undergone processing at each station. Therefore, the test tube rack can be continuously pushed forward until the foremost hole reaches position 25 (the last position on the injection platform), at which point the test tube rack can be pushed off the injection platform. This is understandable. Figure 2The term "sample injection" indicates the position occupied by the test tube rack when it is pushed into the sample injection path. "sample discharge" indicates the position of the test tube rack when it is pushed into the sample injection platform (i.e., the position of the test tube rack when it is about to discharge the sample).
[0105] In some embodiments, before step 501a, the method may further include: initializing the test tube data mapping information in the sample injection platform; detecting whether the state of the sample injection platform is idle; if it is idle, updating the data and executing step 501a; if it is not idle, continuing to detect whether the sample injection platform is idle. It can be understood that in this embodiment, after executing step 532 to push the test tube rack out of the sample injection platform, the state of the sample injection platform can be updated to idle, and the process can return to the step of continuing to detect whether the state of the sample injection platform is idle.
[0106] The above-described sample injection platform control steps control the detection position on the sample injection platform to check if a test tube is present. If so, after triggering the corresponding processing, the test tube rack on the sample injection platform is advanced forward along the sample injection path by a preset distance. This is equivalent to advancing the test tube detected by the detection position so that the subsequent workstation can process the test tube accordingly. If no hole in the test tube rack reaches the sample injection end position after advancement, it indicates that sample dispensing processing of the test tube rack is not required. Therefore, the presence of test tubes at the barcode scanning position and the dilution mixing sampling position of the sample injection platform is checked in parallel. If test tubes are present at both the barcode scanning position and the dilution mixing sampling position, the barcode scanning task for the test tube at the barcode scanning position and the dilution mixing task for the test tube at the dilution mixing sampling position are triggered concurrently. The barcode scanning task and the dilution mixing task are executed in parallel. By triggering and executing the tasks at the barcode scanning position and the dilution mixing sampling position in parallel, processing efficiency can be improved. After the task is completed, the system can return to the detection position on the sample injection platform to check if there are test tubes at the detection position to continue execution until a test tube rack hole is reached, at which point the sample is discharged. By controlling the sample injection platform in an orderly manner and by triggering and executing tasks at the workstations in parallel, the processing efficiency of the sample injection platform is improved.
[0107] Figure 9 This is a simplified flowchart illustrating the process of controlling the insertion of the detection card (carrier) into the card compartment in some embodiments, specifically including the following steps:
[0108] Step 902: Check if there is no card in the target card slot of the location conversion device. If no card is found, proceed to step 904; if a card is found, change the target card slot and repeat step 902.
[0109] Specifically, the test cards are stored in a card compartment, which is a repository for providing sample test cards. This compartment may contain test strips and glass slides, among other things.
[0110] Step 904: Check if the record in the card input cache queue is not empty. If it is not empty, proceed to step 906; if it is empty, trigger the addition of a card input task to the card cache queue and re-execute step 904.
[0111] Step 906: Check if the target's card entry status is "waiting to enter". If yes, proceed to step 908; otherwise, continue monitoring the target's card entry status.
[0112] Step 908: Determine the card entry mode corresponding to the first card entry task in the card entry cache queue.
[0113] If the card input mode includes the microscopy card mode, then after confirming entry into the microscopy card mode, proceed to steps 910a to 916a. If the card input mode includes the fecal occult blood colloidal gold test strip sub-mode within the colloidal gold test strip mode, then after confirming entry into the fecal occult blood colloidal gold test strip mode, proceed to steps 910b to 916b. If the card input mode includes the transferrin colloidal gold test strip sub-mode within the colloidal gold test strip mode, then after confirming entry into the transferrin colloidal gold test strip mode, proceed to steps 910c to 916c.
[0114] It is understandable that if the card input mode is all modes, this includes the microscopic examination card mode, the fecal occult blood colloidal gold test strip mode within the colloidal gold test strip mode, and the transferrin colloidal gold test strip mode. Therefore, for these multiple modes, we can follow the control sequence, entering one mode first, and then entering another mode after one mode has been completed. For example, first enter the microscopic examination card mode, executing steps 910a to 916a, then enter the fecal occult blood colloidal gold test strip mode, executing steps 910b to 916b, and then enter the transferrin colloidal gold test strip mode, executing steps 910b to 916b. Figure 9 The dashed box ALL in the diagram indicates the steps to be performed in all modes, and the dashed arrows indicate the processing order among the various card input modes.
[0115] Step 910a: Check if the microscopy card compartment exists. If it exists, proceed to step 912a; if it does not exist, report a "no microscopy card fault," generating an interrupt. After the application layer clears the fault, re-execute step 910a.
[0116] It is understandable that the microscopic examination card compartment can serve as a microscopic examination slide library.
[0117] Step 912a: Control the position conversion device to move the target entry position to dock with the microscopic examination card compartment.
[0118] Step 914a: Obtain the microscopic slide containing the sample solution from the microscopic slide card compartment and perform a card insertion process on the microscopic slide.
[0119] Step 916a: Check if the card insertion was successful. If successful, the process ends after updating the target card insertion position status to "card insertion completed". If unsuccessful, a "card insertion failure report!" message is displayed. After the application layer clears the fault, step 916a is re-executed.
[0120] Step 910b: Check if the fecal occult blood colloidal gold test strip library exists. If it exists, proceed to step 912b; if it does not exist, perform a "no fecal occult blood colloidal gold test strip fault report," generating an interrupt. After the application layer clears the fault, step 910b is re-executed.
[0121] It is understandable that the fecal occult blood colloidal gold test strip library is the card compartment of the fecal occult blood colloidal gold test strip.
[0122] Step 912b: Control the position switching device to move the target entry position and align the target entry position with the fecal occult blood colloidal gold test strip library.
[0123] Step 914b: Obtain the fecal occult blood colloidal gold test strip to be loaded with sample solution from the fecal occult blood colloidal gold test strip library, and perform card loading processing on the fecal occult blood colloidal gold test strip.
[0124] Step 916b: Check if the card insertion was successful. If successful, the process ends after updating the status of the target card insertion slot to "card insertion completed". If unsuccessful, a "Failure to insert fecal occult blood colloidal gold test strip fault report!" is initiated. After the application layer resolves the fault, step 916b is re-executed.
[0125] Step 910c: Check if the fecal occult blood colloidal gold test strip library exists. If it exists, proceed to step 912c; if it does not exist, perform a "no fecal occult blood colloidal gold test strip fault report," generating an interrupt. After the application layer clears the fault, step 910c is re-executed.
[0126] It is understandable that the transferrin colloidal gold test strip library is the cartridge of the transferrin colloidal gold test strip.
[0127] Step 912c: Control the position conversion device to move the target entry position and align the target entry position with the transferrin colloidal gold test strip library.
[0128] Step 914c: Obtain the transferrin colloidal gold test strip to be loaded with sample solution from the transferrin colloidal gold test strip library, and perform card loading processing on the transferrin colloidal gold test strip.
[0129] Step 916c: Check if the card insertion was successful. If successful, the process ends after updating the status of the target card insertion slot to "card insertion completed". If unsuccessful, a "Failure to insert transferrin colloidal gold test strip fault report!" is initiated. After the application layer clears the fault, step 916c is re-executed.
[0130] The card loading process of the card storage platform provided in this application embodiment is compatible with a variety of detection cards and achieves multi-mode compatibility. Therefore, it can perform detection on a variety of detection task types, improving the flexibility of detection.
[0131] Figure 10 This is a simplified flowchart illustrating the sample detection task execution method in some embodiments. Specifically, it includes the following steps:
[0132] Step 1002: Perform data initialization.
[0133] Specifically, at startup, each parameter can be adjusted to the initial data state.
[0134] Step 1004: Is it in a stop sequence?
[0135] Specifically, it can be determined whether there is a stop sequence notification before the start of the detection cycle. If not, proceed to step 3; otherwise, stop the execution of the task.
[0136] Step 1006: Is it in a pause sequence?
[0137] Specifically, determine whether a pause timing notification has arrived; if not, proceed to step 1008; otherwise, listen for and wait for a start notification.
[0138] Step 1008: Is the dry chemistry task queue empty?
[0139] Specifically, if the dry chemistry task queue is empty, proceed to step 1010; otherwise, proceed to step 1016.
[0140] Step 1010: Check if the microscopic inspection task queue is empty;
[0141] Specifically, if the dry chemistry task queue is empty, proceed to step 1012; otherwise, proceed to step 1018.
[0142] Step 1012: Is the sampling task queue empty?
[0143] Specifically, if the sample addition task queue is empty, proceed to step 1014; otherwise, proceed to step 1020.
[0144] Step 1014: Is the card entry task queue empty?
[0145] When the task queue is empty, proceed to step 1004, thus entering the loop mechanism; otherwise, proceed to step 1022.
[0146] Step 1016: Perform the dry chemistry task.
[0147] like Figure 11AThe diagram illustrates the execution flow of a dry chemistry task. The control device determines whether the dry chemistry execution conditions are met. If so, it adjusts the platform resource usage status, calculates the shortest distance the turntable needs to travel to the task execution position, and then controls the turntable to rotate—that is, executes the turntable timing sequence—to reach the task execution position. Once the task execution position is reached, the dry chemistry timing sequence is executed. After the dry chemistry timing sequence is executed and returns, platform resources are released, and data is updated, such as updating the task status. Figure 11B This is the execution flow for the dry chemistry sequence. First, confirm that the CCD lamp is on. If on, take a picture. Once taking the picture is confirmed, confirm that the CCD lamp is off. If so, end the dry chemistry sequence. If not, report an error. Here, "sequence" refers to the order in which the steps are executed.
[0148] Step 1018: Perform the microscopic examination task.
[0149] Specifically, such as Figure 12 The diagram illustrates the execution flow of a microscopy task. When the execution conditions for the microscopy task are met, the platform resource occupancy status can be changed, the shortest distance for the turntable to reach the task execution position can be calculated, and the turntable can be controlled to rotate, i.e., the turntable timing can be executed. After the microscopy timing is completed and returns, the platform resources are released, and data updates can be performed.
[0150] Step 1020: Perform the sample addition task.
[0151] Specifically, such as Figure 13A The diagram illustrates the execution flow of a sample loading task. When the conditions for executing the sample loading task are met, the platform resource usage status is changed, the shortest distance the turntable needs to travel to the task execution position is calculated, and the turntable is controlled to rotate—that is, the turntable timing is executed. After the sample loading timing is executed and returns, the data is updated. For example, if the sample loading type is a microscopic examination card loading type, a new microscopic examination task corresponding to that sample is created; otherwise, a new dry chemistry task corresponding to that sample is created. Figure 13B The flowchart for the sample loading sequence is as follows: The control device determines whether the target sample loading type is colloidal gold card loading type; if it is not colloidal gold card loading type, it determines whether staining agent needs to be added; if staining agent needs to be added, the target detection sample corresponding to the target detection task is added to the stainer to add staining agent to the target detection sample; after the staining agent is successfully added, the microscopic inspection sample loading operation is performed on the target detection sample.
[0152] Step 1022: Execute the card entry task.
[0153] Specifically, such as Figure 14The diagram illustrates the execution flow of the card entry task. When the card entry task execution conditions are met, the platform resource occupancy status is changed, the shortest distance for the turntable to reach the task execution position is calculated, and the turntable is controlled to rotate, i.e., the turntable timing is executed. After the card entry timing is executed and returns, the data is updated and transferred to the newly created sample addition task queue corresponding to the sample, and the platform resources are released.
[0154] The sample detection method provided in this application can improve detection efficiency. For example, the sample detection speed can be increased from 25-30 samples per hour to 85-90 samples per hour.
[0155] like Figure 15 As shown, in some embodiments, a sample detection task execution apparatus is provided, the apparatus comprising:
[0156] The sample detection instruction receiving module 1502 is used to receive sample detection instructions;
[0157] The judgment module 1504 is used to respond to the sample detection command and, according to the priority order of each detection task type in the detection task type set, sequentially determine whether there are any tasks to be executed in the task queue corresponding to each detection task type.
[0158] The target detection task acquisition module 1506 is used to take the task to be executed as the target detection task if there is a task to be executed in the current detection task type.
[0159] The position transformation module 1508 is used to control the sample position transformer to perform position transformation according to the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position, and the task operation corresponding to the target detection task is performed at the task execution position.
[0160] In some embodiments, the position transformation module is used to: obtain the current position of the target detection sample corresponding to the target detection task on the sample position transformer; obtain the task execution position corresponding to the target detection task; and control the sample position transformer to perform position transformation according to the current position and the task execution position, so that the target detection sample corresponding to the target detection task is located at the task execution position.
[0161] In some embodiments, the position transformation module is used to: determine the shortest path from the current position to the task execution position, obtain the position transformation direction and position transformation distance corresponding to the shortest path; and control the sample position transformer to move the position transformation distance according to the position transformation direction, so that the target detection sample corresponding to the target detection task is located at the task execution position.
[0162] In some embodiments, the determination module is used to: detect whether there is a first task in the first task queue corresponding to the first task type; if so, take the first task in the first task queue as the target detection task to be executed; if not, detect whether there is a second task in the second task queue corresponding to the second task type, wherein the priority of the first task type is higher than the priority of the second task type.
[0163] In some embodiments, the position transformation module is used to: when the target detection task is a sampling task, determine the target sampling type corresponding to the target detection task; control the sampler to perform sampling according to the target sampling type; when it is determined that the sampling is completed, determine the subsequent task type according to the target sampling type, and add the detection task corresponding to the subsequent task type to the task queue corresponding to the subsequent task type.
[0164] In some embodiments, the position transformation module is used to: when it is determined that the sample addition is completed, determine whether the target sample addition type is a microscopic card sample addition type; if so, then use the microscopic task type as the backward task type, and add the microscopic task corresponding to the target detection sample to the task queue corresponding to the microscopic task type; if not, then use the dry chemistry task type as the backward task type, and add the dry chemistry task corresponding to the target detection sample to the task queue corresponding to the dry chemistry task type.
[0165] In some embodiments, the position transformation module is used to: determine whether the target sample addition type is colloidal gold card sample addition type; if it is not colloidal gold card sample addition type, determine whether it is necessary to add staining agent; if it is necessary to add staining agent, add the target detection sample corresponding to the target detection task into the stainer to add staining agent to the target detection sample; after the staining agent is successfully added, perform microscopic sample addition operation on the target detection sample.
[0166] Specific limitations regarding the sample detection task execution device can be found in the limitations of the sample detection task execution method described above, and will not be repeated here. Each module in the aforementioned sample detection task execution device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0167] In some embodiments, a computer device is provided, which may be a terminal, such as a computer, and its internal structure diagram may be as follows: Figure 16As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a sample detection task execution method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device casing, or an external keyboard, touchpad, or mouse.
[0168] Those skilled in the art will understand that Figure 16 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0169] In some embodiments, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement a sample detection task execution method.
[0170] In some embodiments, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements a sample detection task execution method.
[0171] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (RAM) or dynamic random access memory (DRAM), etc.
[0172] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification. The above embodiments only illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those skilled in the art, several modifications and improvements can be made without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for executing a sample detection task, characterized in that, The method includes: Receive sample testing instructions; The detection task types in the detection task type set are determined based on the task process of sample detection or the task execution position corresponding to the sample position changer; the detection task types include dry chemistry task type, microscopic examination task type, sample loading task type, and card loading task type. The priority order of each detection task type is determined by reversing the sample detection order corresponding to each detection task type. If the sample detection order is the same, the priority order is determined according to the urgency of each detection task type. The urgency is determined based on the task execution time requirements of each detection task type. The card loading task type has the lowest priority, and the sample loading task type has a higher priority than the card loading task type. The urgency of the dry chemistry task type is higher than that of the microscopic examination task type. In response to the sample detection instruction, according to the priority order of each detection task type in the detection task type set, it is determined whether there are any tasks to be executed in the task queue corresponding to each detection task type. If there are tasks to be executed in the current detection task type, then the tasks to be executed will be used as target detection tasks; The sample position transformer is controlled to perform position transformation according to the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position, and the task operation corresponding to the target detection task is performed at the task execution position.
2. The method according to claim 1, characterized in that, The step of controlling the sample position transformer to perform position transformation according to the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position, includes: Obtain the current position of the target detection sample corresponding to the target detection task on the sample position transformer; Obtain the task execution position corresponding to the target detection task; The sample position transformer is controlled to perform position transformation based on the current position and the task execution position, so that the target detection sample corresponding to the target detection task is located at the task execution position.
3. The method according to claim 2, characterized in that, The step of controlling the sample position transformer to perform position transformation based on the current position and the task execution position, so that the target detection sample corresponding to the target detection task is located at the task execution position, includes: Determine the shortest path from the current position to the task execution position, and obtain the position change direction and position change distance corresponding to the shortest path; The sample position changer is controlled to move by the position change distance in the position change direction, so that the target detection sample corresponding to the target detection task is located at the task execution position.
4. The method according to claim 1, characterized in that, The step of determining whether there are any tasks to be executed in the task queue corresponding to each detection task type in the detection task type set according to the priority order of each detection task type includes: Check if a first task exists in the first task queue corresponding to the first task type; If so, then the first task in the first task queue will be the target detection task to be executed. If not, check if there is a second task in the second task queue corresponding to the second task type, where the priority of the first task type is higher than that of the second task type.
5. The method according to claim 1, characterized in that, The task operation corresponding to the target detection task performed at the task execution location includes: When the target detection task is a sampling task, determine the target sampling type corresponding to the target detection task; The sampler is controlled to add samples according to the target sample type. When it is determined that the sampling is completed, the subsequent task type is determined according to the target sampling type, and the detection task corresponding to the subsequent task type is added to the task queue corresponding to the subsequent task type.
6. The method according to claim 5, characterized in that, When it is determined that the sampling is complete, the subsequent task type is determined according to the target sampling type, and the detection task corresponding to the subsequent task type is added, including: When it is confirmed that the sample addition is complete, determine whether the target sample addition type is a microscopic card sample addition type; If so, the microscopic examination task type will be used as the backward task type, and the microscopic examination task corresponding to the target detection sample will be added to the task queue corresponding to the microscopic examination task type. If not, the dry chemistry task type will be used as the backward task type, and the dry chemistry task corresponding to the target detection sample will be added to the task queue corresponding to the dry chemistry task type.
7. The method according to claim 5, characterized in that, The step of controlling the sampler to add samples according to the target sample type includes: Determine whether the target sample addition type is a colloidal gold card sample addition type; If it is not a colloidal gold card sample loading type, determine whether a staining agent needs to be added; If staining agent is required, the target detection sample corresponding to the target detection task is added to the stainer to add staining agent to the target detection sample; After the staining agent is successfully added, a microscopic examination and sample loading operation is performed on the target detection sample.
8. A sample detection task execution device, characterized in that, The device includes: The sample testing instruction receiving module is used to receive sample testing instructions; The judgment module is used to determine each detection task type in the detection task type set based on the task process of sample detection or the task execution position corresponding to the sample position changer. The detection task types include dry chemistry task types, microscopic examination task types, sample loading task types, and card insertion task types. The priority order of each detection task type is determined according to the reverse order of the sample detection sequence. If the sample detection sequence is the same, the priority order is determined according to the urgency of the detection task type. The urgency is determined based on the task execution time requirements of the detection task type. The card insertion task type has the lowest priority, and the sample loading task type has a higher priority than the card insertion task type. The urgency of the dry chemistry task type is higher than that of the microscopic examination task type. In response to the sample detection instruction, the module sequentially judges whether there are any tasks to be executed in the task queue corresponding to each detection task type according to the priority order of each detection task type in the detection task type set. The target detection task acquisition module is used to select a task to be executed as a target detection task if there is a task to be executed in the current detection task type. The position transformation module is used to control the sample position transformer to perform position transformation according to the task execution position corresponding to the target detection task, so that the target detection sample corresponding to the target detection task is located at the task execution position, and the task operation corresponding to the target detection task is performed at the task execution position.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the 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, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Chemiluminescence detector, control method and system of chemiluminescence detector
CN109975567A
Automatic analyzer
JP2014009972A