Disclosure of Invention
The invention provides a method and a system for measuring and calculating the working saturation of equipment, corresponding equipment and a storage medium, which can be used for conveniently and accurately measuring and calculating the working saturation of the equipment based on limited basic data.
In a first aspect of the present invention, there is provided a method for measuring and calculating the saturation of operation of a device, the method comprising:
Acquiring the doctor's advice project request ending time of the equipment;
determining an order item execution interval time based on the order item request end time;
determining a standard time consumption average value and a standard time consumption upper limit of each type of medical advice project based on the execution interval time of the medical advice project;
For the execution interval time of each type of medical advice item, replacing the execution interval time exceeding the upper limit of the standard time consumption with the average time consumption of the corresponding medical advice item;
Determining a daily actual operating time of the device based on the replaced execution interval time;
The operating saturation of the device is measured based on the daily actual operating time and a predetermined daily available operating time of the device.
In a second aspect of the present invention, there is provided a system for measuring and calculating the saturation of operation of a device, the system comprising:
the request ending time acquisition module is used for acquiring the request ending time of the doctor's advice item of the equipment;
The execution interval time determining module is used for determining the execution interval time of the medical advice project based on the medical advice project request ending time;
The standard time-consuming mean value and upper limit determining module is used for determining the standard time-consuming mean value and the standard time-consuming upper limit of each type of medical advice project based on the execution interval time of the medical advice project;
The replacement module is used for replacing the execution interval time exceeding the upper limit of the standard time consumption with the average time consumption of the corresponding medical advice items for the execution interval time of each type of medical advice items;
The actual working time length determining module is used for determining the daily actual working time length of the equipment based on the replaced execution interval time;
the working saturation measuring module is used for measuring the working saturation of the equipment based on the daily actual working time and the preset daily available working time of the equipment.
In a third aspect of the invention there is provided a computer device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect of the invention or implements the functions of the system according to the second aspect of the invention when the computer program is executed by the processor.
According to a fourth aspect of the present invention there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method according to the first aspect of the present invention or performs the functions of the system according to the second aspect of the present invention.
According to the method and the device, the order item request end time of the device is acquired, the order item execution interval time is determined based on the order item request end time, the standard time consumption average value and the standard time consumption upper limit of the type of order items are determined based on the execution interval time of each type of order items, the execution interval time exceeding the standard time consumption upper limit is replaced by the average time consumption of the corresponding order item for the execution interval time of each type of order items, the daily actual working time of the device is determined based on the replaced execution interval time, the working saturation of the device is calculated based on the daily actual working time and the preset daily available working time of the device, so that the idle waiting time in the actual working of the device can be accurately removed only by using the order item name and the request end time in the log record generated by the PACS system, the actual working saturation of the device is accurately determined, the convenience and the working saturation of the device are improved, and the method and the device can be applied to wide application and measurement.
Other features and advantages of the present invention will become more apparent from the following detailed description of embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Detailed Description
Embodiments and examples of the present invention will be described in detail below with reference to the accompanying drawings.
The scope of applicability of the present invention will become apparent from the detailed description given hereinafter. It should be understood, however, that the detailed description and specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only.
Fig. 1 shows a flow chart of a preferred embodiment of a method for measuring and calculating the operating saturation of a device according to the present invention.
At step S102, the end time is requested from the PACS system for the order item of the device. The PACS system may provide limited data records, and through the PACS system, device job record data, such as device number, request number, order item name, request end time, for each order item operation may be generally obtained. The request end time represents completion of one order item, after which a request for an examination of another order item of another patient may be accepted. The order item name in combination with the corresponding request end time may then determine the order item request end time.
In step S104, a physician order item execution interval time is determined based on the physician order item request end time. In an embodiment, PACS records of the device may be ordered according to the request end time, and the execution interval time of the current order item may be obtained by subtracting the request end time of the previous order item from the request end time of the current order item, and the order item category to which the execution interval time belongs may be known. Obviously, the resulting order item execution interval time may include a certain or even a significant amount of idle waiting time. Then, the obtained execution interval time can be classified according to the category of the medical advice items, and the time spent by each category of medical advice items is greatly different, so that the follow-up processing of the medical advice items according to the category of the medical advice items is beneficial to improving the accuracy of measuring and calculating the working saturation of the equipment.
In step S106, a standard time-consuming mean and a standard time-consuming upper limit for each type of order item are determined based on the execution interval time of the type of order item.
In an embodiment, for each type of order item, the corresponding standard time-consuming mean and standard time-consuming upper limit may be determined by:
and taking the determined execution interval time as the first data set, and calculating the mean value and standard deviation of the execution interval time of the first data set. The mean value is the mean value of all execution intervals in the first data set, and the standard deviation is the standard deviation in the conventional sense;
And removing the execution interval time of the first data set exceeding the execution interval time of the outlier detection threshold of the first data set to obtain a second data set, wherein the outlier detection threshold=mean+alpha is standard deviation, alpha is an outlier coefficient, and the larger alpha is, the less data is removed. Alpha is for example between 2 and 3, such as 2, 2.2, 2.5, 3, etc. Typically, at a2, the data is removed is about 5% and at a 3, the data is removed is less than 1%;
Calculating the mean value and standard deviation of the execution interval time of the second data set;
it is determined whether the rate of change of the mean of the second and first data sets is less than a predetermined rate of change. If so, determining a standard time-consuming mean, a final standard deviation and a standard time-consuming upper limit; otherwise, the execution interval time of the second data set, in which the execution interval time exceeds the outlier detection threshold of the second data set, is removed to obtain a third data set, and whether the average change rate of the third data set and the second data set is smaller than a preset change rate is determined. If so, determining a standard time-consuming mean, a final standard deviation and a standard time-consuming upper limit; otherwise, continuing the above mean and standard deviation calculation step and the outlier removal step for the third dataset, and so on until the mean change rate of the two previous and subsequent datasets is less than the predetermined change rate. In an embodiment, the predetermined rate of change is between 5% and 15%, such as 5%, 10%, 15%, etc. The predetermined rate of change is the maximum rate of change of the average time-consuming error acceptable to the user, and when the outlier coefficient alpha is relatively large, the value of the predetermined rate of change can be a little smaller;
And determining a standard time consumption average value, a final standard deviation and a standard time consumption upper limit of the execution interval time of the corresponding class of medical advice items based on the finally obtained data set, wherein the standard time consumption upper limit=the standard time consumption average value+alpha is the final standard deviation.
In step S108, for each type of order item execution interval time, the execution interval time in which the upper limit of the standard time consumption is exceeded is replaced with the average time consumption of the corresponding order item. That is, the execution interval time of the doctor's advice item in each record is judged, if the execution interval time is larger than the upper limit of the standard time consumption, the abnormal interval time is considered (the device can have more waiting in the execution process), and the average time consumption is used for replacing the abnormal interval time. If the standard time consumption upper limit is smaller than or equal to the standard time consumption upper limit, the normal execution time is considered, and no modification is performed.
In step S110, the daily actual operating time of the device is determined based on the replaced execution interval time. And using the accumulated value of the execution interval time of the equipment medical advice item replaced on the same day to count the total daily working time of the equipment, and summarizing the total daily working time of the equipment on the equipment id to obtain the total daily actual working time of the current equipment.
In step S112, the operating saturation of the device is measured based on the daily actual operating time period and the predetermined daily available operating time period of the device. In an embodiment, device operational saturation = daily actual operational duration of the device/predetermined daily available operational duration of the device.
Because of the complexity of the usage scenario of the medical devices, the daily available working time length of each device needs to be collected from the department staff alone, and certain execution difficulty exists in the analysis of the actual devices. The invention adopts the big data principle, selects the maximum value from the daily working time of the equipment in the past whole year, and uses the maximum value as the daily working time of the equipment after manual examination, and the maximum value is not representative of the actual daily working time of the equipment, but can be very close to the daily working time of the equipment along with the enough big data quantity.
According to the method, based on the fact that the time consumption of the same medical advice items is relatively close, the working time length of each medical advice item of the equipment every day is judged, if the time length is higher than the upper limit of the standard time consumption, the equipment idle waiting time is considered to be included with high probability, and the average value of the medical advice items is used for replacing the working time length of the equipment idle waiting time; if the time length is lower than the upper limit of standard time consumption, the reasonable working time length is considered, and no treatment is carried out. The idle waiting time in the working process of the equipment is detected by using an algorithm for correcting the average execution time of the medical advice items, so that the obtained actual working time length of the equipment on the same day approximates to a true value, and the accuracy of measuring and calculating the working saturation of the equipment is improved. Moreover, only two data of the doctor's advice project name and the request ending time are needed, so that the application scene of the method is very wide and the limitation is small.
FIG. 2 shows a block diagram of a preferred embodiment of a device operating saturation measuring system according to the present invention, the system comprising:
A request ending time obtaining module 202, configured to obtain a request ending time of an order item of the device;
An execution interval time determination module 204 for determining an order item execution interval time based on the order item request end time;
The standard time-consuming mean and upper limit determining module 206 is configured to determine a standard time-consuming mean and a standard time-consuming upper limit of each type of medical advice item based on the execution interval time of the medical advice item;
A replacing module 208, configured to replace, for each type of execution interval time of the order items, the execution interval time exceeding the upper limit of the standard time consumption with the average time consumption of the corresponding order items;
an actual working time length determining module 210, configured to determine a daily actual working time length of the device based on the replaced execution interval time;
The working saturation measuring module 212 is configured to measure the working saturation of the device based on the actual working time period and the predetermined daily available working time period of the device.
In an embodiment, the standard time-consuming mean and upper limit determination module 206 is configured to:
For each type of medical advice item, taking the determined execution interval time as a first data set, and calculating the mean value and standard deviation of the execution interval time of the first data set;
Removing the execution interval time of which the execution interval time exceeds the outlier detection threshold in the first data set to obtain a second data set, wherein the outlier detection threshold=mean+alpha is standard deviation, alpha is an outlier coefficient, and the larger alpha is, the less data is removed;
Repeating the above calculation and removal steps for the second data set to obtain a third data set, and so on until the average change rate of the two previous and subsequent data sets is smaller than a preset change rate;
and determining a standard time consumption mean, a final standard deviation and a standard time consumption upper limit of the execution interval time of the corresponding class of medical advice items based on the finally obtained data set.
In another embodiment, the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method embodiment or other corresponding method embodiments described in connection with fig. 1 or implements the functions of the system embodiment or other corresponding system embodiments described in connection with fig. 2, which are not described herein.
In another embodiment, the present invention provides a computer device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the method embodiment or other corresponding method embodiment described in connection with fig. 1 or implements the functions of the system embodiment or other corresponding system embodiment described in connection with fig. 2 when the processor executes the computer program, which is not described herein.
The various embodiments described herein, or particular features, structures, or characteristics thereof, may be combined as suitable in one or more embodiments of the invention. In addition, in some cases, the order of steps described in the flowcharts and/or flow-line processes may be modified as appropriate and need not be performed in exactly the order described. Additionally, various aspects of the invention may be implemented using software, hardware, firmware, or a combination thereof and/or other computer-implemented modules or devices that perform the described functions. A software implementation of the present invention may include executable code stored in a computer readable medium and executed by one or more processors. The computer-readable medium may include a computer hard drive, ROM, RAM, flash memory, a portable computer storage medium such as CD-ROM, DVD-ROM, flash drives and/or other devices having a Universal Serial Bus (USB) interface, and/or any other suitable tangible or non-transitory computer-readable medium or computer memory on which executable code may be stored and executed by a processor. The invention may be used in connection with any suitable operating system.
As used herein, the singular forms "a", "an" and "the" include plural referents (i.e., having the meaning of "at least one") unless otherwise indicated. It will be further understood that the terms "has," "comprises," "including" and/or "comprising," when used in this specification, specify the presence of stated features, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and/or groups thereof. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
While the foregoing is directed to some preferred embodiments of the present invention, it should be emphasized that the present invention is not limited to these embodiments, but may be embodied in other forms within the scope of the inventive subject matter. Various changes and modifications may be made by one skilled in the art without departing from the spirit of the invention, and these changes or modifications still fall within the scope of the invention.