Data clearing method and device, equipment and medium
By determining the target data in the ultrasonic instrument and checking its index record in the second data storage area, the problem of data residue in the ultrasonic instrument is solved, achieving synchronization of data clearance and saving of disk space.
Patent Information
- Application Number
- CN202310989257.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2025-02-14
AI Technical Summary
When deleting data in ultrasonic instruments, there is a situation where the associated data cannot be deleted simultaneously, resulting in some data remaining and occupying disk space.
By determining the target data in the ultrasonic instrument, if there is no index record corresponding to the target data in the second data storage area and the target data is not called, the ultrasonic inspection data to be cleared is determined from the first data storage area and cleared is performed. .
Without causing an ultrasound instrument exception, clear the residual data, save disk space, and ensure that data clearing is performed without the target data being called.
Smart Images

Figure CN119440388A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data clearing method, device, equipment and medium. Background Art
[0002] Currently, ultrasound equipment stores the generated image files related to ultrasound examination data in one location, and stores data information such as the size and storage location of the image files in another location.
[0003] Since different related data may be stored in different storage areas in the ultrasound instrument, when deleting data in the ultrasound instrument, there is a situation where the related data cannot be deleted synchronously, resulting in some data remaining in the ultrasound instrument and always occupying a certain amount of disk space.
[0004] In summary, how to clear the residual data in the ultrasound instrument without causing abnormalities in the ultrasound instrument to save disk space is a problem that needs to be solved at present. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a data clearing method, device, equipment and medium, which can clear the residual data in the ultrasonic instrument without causing abnormality of the ultrasonic instrument to save disk space. The specific scheme is as follows:
[0006] In a first aspect, the present application discloses a data clearing method, comprising:
[0007] Determine the target data of the ultrasonic instrument in the current first data storage area;
[0008] If there is no index record corresponding to the target data in the current second data storage area and the target data is not currently called, ultrasonic inspection data to be cleared is determined from the first data storage area based on the target data, and the ultrasonic inspection data to be cleared is cleared.
[0009] Optionally, before determining the target data of the ultrasonic instrument in the current first data storage area, the method further includes:
[0010] Determine a current state of the ultrasonic instrument; wherein the current state is a current load state of the ultrasonic instrument;
[0011] If the current state satisfies the preset state condition, the step of determining the target data of the ultrasonic instrument in the current first data storage area is triggered;
[0012] If the current state does not satisfy the preset state condition, the preset waiting operation is executed and then the process jumps back to the step of determining the current state of the ultrasonic instrument.
[0013] Optionally, the target data is a target directory of the first data storage area;
[0014] Accordingly, clearing the ultrasonic inspection data to be cleared includes:
[0015] The target directory in the first data storage area and all ultrasound examination data under the target directory are cleared.
[0016] Optionally, the target directory is any directory under the root directory of the first data storage area.
[0017] Optionally, the data clearing method further includes:
[0018] If an index record corresponding to the target directory currently exists in the second data storage area, or the target directory is currently being called, the step of clearing the target directory in the first data storage area and all ultrasound examination data under the target directory is prohibited.
[0019] Optionally, the target data is target ultrasonic inspection data stored in any leaf directory in the first data storage area;
[0020] Accordingly, clearing the ultrasonic inspection data to be cleared includes:
[0021] The target ultrasonic inspection data in the first data storage area is cleared.
[0022] Optionally, the data clearing method further includes:
[0023] If the index record corresponding to the target ultrasonic inspection data currently exists in the second data storage area, or the target ultrasonic inspection data is currently being called, the step of clearing the target ultrasonic inspection data in the first data storage area is prohibited.
[0024] Optionally, determining the target data of the ultrasonic instrument in the current first data storage area includes:
[0025] Selecting a first-level directory from all the first-level directories that have not been filtered in the current first data storage area as the current target directory to trigger a data clearing process for the current target directory;
[0026] During the data clearing process for the current target directory, if the index record corresponding to the current target directory exists in the current second storage area, or the current target directory is being called, a subdirectory in the current target directory is used as the current target subdirectory to trigger the data clearing process for the current target subdirectory;
[0027] In the data clearing process for the current target subdirectory, if there is an index record corresponding to the current target subdirectory in the second storage area, or the current target subdirectory is being called, and the current target subdirectory is a leaf directory of the current target directory, the ultrasonic inspection data stored in the current target subdirectory is used as the current target ultrasonic inspection data to trigger the data clearing process for the current target ultrasonic inspection data;
[0028] After the data clearing process for the current target ultrasound examination data is completed, the process jumps again to selecting a first-level directory from all the first-level directories that have not been filtered in the current first data storage area as the current target directory until all the first-level directories in the first data storage area have been filtered.
[0029] Optionally, the data clearing method further includes:
[0030] A target index of the target data is generated based on the characteristic information of the target data; wherein, if the target data is a target directory of the first data storage area, the characteristic information is the directory name of the target directory; if the target data is target ultrasonic inspection data stored under any leaf directory in the first data storage area, the characteristic information is the data name corresponding to the target ultrasonic inspection data stored under any leaf directory.
[0031] In a second aspect, the present application discloses a data clearing device, comprising:
[0032] A data determination module, used to determine the target data of the ultrasonic instrument in the current first data storage area;
[0033] a data clearing module, configured to determine the ultrasonic inspection data to be cleared from the first data storage area based on the target data, and clear the ultrasonic inspection data to be cleared if there is no index record corresponding to the target data in the current second data storage area and the target data is not currently called;
[0034] The first data storage area and the second data storage area are respectively used to store ultrasound examination data of the ultrasound examination object and corresponding index records.
[0035] In a third aspect, the present application discloses an electronic device, comprising:
[0036] Memory, used to store computer programs;
[0037] The processor is used to execute the computer program to implement the steps of the aforementioned disclosed data clearing method.
[0038] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed data clearing method are implemented.
[0039] It can be seen that the present application determines the target data of the ultrasonic instrument in the current first data storage area; if there is no index record corresponding to the target data in the current second data storage area, and the target data is not currently called, then the ultrasonic inspection data to be cleared is determined from the first data storage area based on the target data, and the ultrasonic inspection data to be cleared is cleared; wherein the first data storage area and the second data storage area are used to store the ultrasonic inspection data of the ultrasonic inspection object and the corresponding index records, respectively. It can be seen that in the present application, the first data storage area stores the ultrasonic inspection data of the ultrasonic inspection object, and the second data storage area stores the index records corresponding to these data. If the target data of the ultrasonic instrument in the current first data storage area does not have a corresponding index record in the second data storage area, and the target data is not currently called, then the ultrasonic inspection data to be cleared corresponding to the target data in the first data storage area is cleared. That is to say, when there is no corresponding index record in the second data storage area for the target data, and the target data is not currently called, it means that the ultrasonic inspection data to be cleared corresponding to the target data is the residual data in the ultrasonic instrument, and since there is no index record in the second data storage area and it will not be used by the user in the future, after the ultrasonic inspection data to be cleared is determined from the first data storage area based on the target data, the ultrasonic inspection data to be cleared is cleared. In this way, the technical solution of the present application can clear the residual data in the ultrasonic instrument, thereby saving disk space, and the present application clears the target data only when it is not currently called, and will not cause abnormalities in the ultrasonic instrument. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0041] Figure 1 A flow chart of a data clearing method disclosed in this application;
[0042] Figure 2 A schematic diagram of storage of a specific ultrasonic instrument image data disclosed in this application;
[0043] Figure 3A flow chart of a specific target directory clearing method disclosed in this application;
[0044] Figure 4 A schematic diagram of a clearing process of a patient directory disclosed in this application;
[0045] Figure 5 A schematic diagram of a clearing process of an inspection directory disclosed in this application;
[0046] Figure 6 A flowchart of a specific ultrasonic inspection data clearing method disclosed in this application;
[0047] Figure 7 A schematic diagram of a clearing process of image data disclosed in this application;
[0048] Figure 8 A flow chart of a specific data clearing method disclosed in this application;
[0049] Fig. 9 A specific data traversal process diagram disclosed in this application;
[0050] Fig.10 This is a schematic diagram of the structure of a data clearing device disclosed in this application;
[0051] Fig.11 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0053] The embodiments of the present application disclose a data clearing method, device, equipment and medium, which can clear the residual data in an ultrasonic instrument without causing abnormality of the ultrasonic instrument to save disk space.
[0054] See also Figure 1 As shown, the embodiment of the present application discloses a data clearing method, which includes:
[0055] Step S11: Determine the target data of the ultrasonic instrument in the current first data storage area.
[0056] Among them, the target data can be various data related to ultrasonic examination, and can be ultrasonic examination data obtained by ultrasonic examination, such as image files, etc. After generating the target data, the ultrasonic instrument can store the target data in the first data storage area, and synchronously generate corresponding data information, and store the data information in the second data storage area. The data information can be an index record related to the target data generated during the ultrasonic examination process, etc. Since the ultrasonic examination data and the data information are stored in different locations in the ultrasonic instrument, when deleting the data in the ultrasonic instrument, there is a situation where the ultrasonic examination data cannot be deleted synchronously with the data information. Usually when performing the deletion operation, if the ultrasonic examination data is being called by the background at this time, then the ultrasonic examination data cannot be deleted at this time, and only the data information can be deleted. If the ultrasonic examination data is forcibly deleted, it will cause the ultrasonic instrument to be abnormal, so it will cause the ultrasonic examination data to remain in the ultrasonic instrument and will always occupy a certain amount of disk space.
[0057] In this embodiment, it is first necessary to determine the target data of the ultrasound instrument stored in the current first data storage area. It should be noted that the ultrasound examination data of the ultrasound examination object is stored in the first data storage area, and the ultrasound examination object here refers to the patient. And these data are usually stored in the first data storage area in the form of a specific data structure. For example, taking a tree structure as an example, each node in the tree structure can be used as target data. In addition, the above data structure can also be other data structures such as arrays and linked lists, which can be applied to the technical solutions of this application.
[0058] See also Figure 2 As shown, Figure 2 FIG. 1 is a schematic diagram of storing a specific ultrasonic instrument image data disclosed in this application. Figure 2As shown in , the entire file system of the ultrasound instrument is divided into a tree structure on the left and an internal database on the right, wherein the tree structure on the left is equivalent to the first data storage area in the embodiment of the present application, and the internal database is equivalent to the second data storage area in the embodiment of the present application. In the first data storage area, the root node of the tree structure is the patient data directory. When storing the image data of the ultrasound instrument, the data of different patients have independent storage directories, called patient directories, and are located under the patient data directory; further, each time the same patient undergoes an examination, an examination directory will be generated under the patient directory, and all image data obtained from the examination will be stored under the examination directory. The image data here refers to the ultrasound examination data of the ultrasound examination object. The ultrasound examination data is specifically stored in the form of image data, including measurement reports, DICOM (Digital Imaging and Communications in Medicine) files, etc. Another patient may undergo multiple examinations, so there may be multiple examination directories under the patient directory. The directory structures such as the patient directory and the examination directory mentioned above and the image data will have corresponding records in the internal database.
[0059] Step S12: If there is no index record corresponding to the target data in the current second data storage area and the target data is not currently called, ultrasonic inspection data to be cleared is determined from the first data storage area based on the target data, and the ultrasonic inspection data to be cleared is cleared.
[0060] In this embodiment, since the first data storage area stores the relevant data of the ultrasonic instrument, and the second data storage area stores the index records corresponding to these data, and the second data storage area is an index record for recording the corresponding target data as valid data, if the target data of the ultrasonic instrument in the current first data storage area does not have a corresponding index record in the second data storage area, it means that the target data is invalid. If the target data is not currently called, the ultrasonic inspection data to be cleared is determined from the first data storage area based on the target data, and the ultrasonic inspection data to be cleared is cleared. It should be noted that the ultrasonic inspection data to be cleared here refers to the data corresponding to the target data in the first data storage area, and the ultrasonic inspection data to be cleared can be the target data itself, and can also include some data associated with the target data; in addition, the data is called, which mainly refers to being called by the local background function of the ultrasonic instrument. That is to say, when the target data does not have a corresponding index record in the second data storage area, and the target data is not currently called by the background function, it means that the target data is the residual data in the ultrasonic instrument, and since there is no index record in the second data storage area, it will not be used by the user again, so the ultrasonic inspection data to be cleared corresponding to the target data in the first data storage area can be cleared. In this way, the technical solution of the present application can clear the residual data in the ultrasonic instrument, thereby saving disk space, and the present application clears the target data only when it is not currently called, and will not cause abnormalities in the ultrasonic instrument.
[0061] It should be pointed out that the above method also includes: generating a target index of the target data based on the characteristic information of the target data. That is, after determining the target data of the ultrasonic instrument in the current first data storage area, this embodiment can specifically generate a target index of the target data based on the characteristic information of the target data, and then search whether there is an index record corresponding to the target index in the current second data storage area. It can be understood that when the first data storage area stores the image file of the ultrasonic instrument, it will also be recorded in the second data storage area in the form of an index, and the index name is generated based on the characteristic information of these image files. Therefore, by generating the target index again based on the characteristic information of the target data and searching in the second data storage area, it can be determined whether there is an index record corresponding to the target data in the current second data storage area.
[0062] In a specific implementation, the above method also includes: if the target data is the target directory of the first data storage area, the characteristic information is the directory name of the target directory; if the target data is the target ultrasound inspection data stored in any leaf directory in the first data storage area, the characteristic information is the data name corresponding to the target ultrasound inspection data stored in any leaf directory. Taking the data structure of the first data storage area as a tree structure as an example, it can be understood that any node in the tree structure can be used as the target data. Therefore, if the target data is the target directory of the first data storage area, the characteristic information is the directory name of the target directory, and accordingly, the target index is generated according to the directory name; if the target data is the target ultrasound inspection data stored in any leaf directory in the first data storage area, the characteristic information is the data name corresponding to the target ultrasound inspection data stored in any leaf directory, and accordingly, the target index is generated according to the data name.
[0063] It can be seen that the present application determines the target data of the ultrasonic instrument in the current first data storage area; if there is no index record corresponding to the target data in the current second data storage area, and the target data is not currently called, then the ultrasonic inspection data to be cleared is determined from the first data storage area based on the target data, and the ultrasonic inspection data to be cleared is cleared; wherein the first data storage area and the second data storage area are used to store the ultrasonic inspection data of the ultrasonic inspection object and the corresponding index records, respectively. It can be seen that in the present application, the first data storage area stores the ultrasonic inspection data of the ultrasonic inspection object, and the second data storage area stores the index records corresponding to these data. If the target data of the ultrasonic instrument in the current first data storage area does not have a corresponding index record in the second data storage area, and the target data is not currently called, then the ultrasonic inspection data to be cleared corresponding to the target data in the first data storage area is cleared. That is to say, when there is no corresponding index record in the second data storage area for the target data, and the target data is not currently called, it means that the ultrasonic inspection data to be cleared corresponding to the target data is the residual data in the ultrasonic instrument, and since there is no index record in the second data storage area, it will not be used by the user in the future. Therefore, after the ultrasonic inspection data to be cleared is determined from the first data storage area based on the target data, the ultrasonic inspection data to be cleared is cleared. In this way, the technical solution of the present application can clear the residual data in the ultrasonic instrument, thereby saving disk space, and the present application clears the target data only when it is not currently called, and will not cause abnormalities in the ultrasonic instrument.
[0064] See also Figure 3As shown, the embodiment of the present application discloses a specific data clearing method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, it includes:
[0065] Step S21: determining the target data of the ultrasonic instrument in the current first data storage area; the target data is the target directory of the first data storage area.
[0066] In this embodiment, the target data of the ultrasound instrument in the current first data storage area can be specifically a target directory. It is understandable that all directories in the first data storage area can be used as target data, including but not limited to root directories, first-level directories, second-level directories, and leaf directories, etc., and subsequent judgment is made to determine whether to clear the relevant data corresponding to these directories. For example, Figure 2 Taking the tree structure shown in as an example, the target directory may specifically include a patient data directory, a patient directory, and an examination directory.
[0067] However, it should be noted that, in general, the root directory is rarely cleared, so in a specific implementation, the target directory is any directory under the root directory of the first data storage area. That is, in this embodiment, only the patient directory and the examination directory can be cleared.
[0068] Step S22: If there is no index record corresponding to the target directory in the current second data storage area, and the current target directory has not been called, clear the target directory in the first data storage area and all ultrasonic inspection data under the target directory.
[0069] In this embodiment, if the target directory of the ultrasonic instrument in the current first data storage area does not have a corresponding index record in the second data storage area, and the target directory is not currently called, the ultrasonic inspection data to be cleared corresponding to the target directory in the first data storage area is cleared; the ultrasonic inspection data to be cleared here specifically refers to the target directory and all ultrasonic inspection data located under the target directory.
[0070] For example, assuming the target directory is Figure 2 The Patient 1 directory in the . For the clearing process of the Patient 1 directory, please refer to Figure 4 As shown, firstly, a target index is generated according to the directory name of the patient 1 directory, and the target index is searched in the second data storage area. If there is no index record corresponding to the patient 1 directory in the current second data storage area, and the patient 1 directory is not currently called by the background, then the patient 1 directory in the first data storage area is cleared, and all ultrasound examination data under the patient 1 directory are cleared, specifically including Figure 2, and the image 1 data to the image n data under each test directory. If there is an index record corresponding to the patient 1 directory in the current second data storage area, or the patient 1 directory is currently being called by the background, the next patient directory clearing process is executed.
[0071] Also, assuming the target directory is Figure 2 Check 1 directory in the. For the clearing process of Check 1 directory, please refer to Figure 5 As shown, firstly, a target index is generated according to the directory name of the inspection 1 directory, and then the target index is searched in the second data storage area. If there is no index record corresponding to the inspection 1 directory in the current second data storage area, and the inspection 1 directory is not currently called, then the inspection 1 directory in the first data storage area and the image 1 data to the image n data under the inspection 1 directory are cleared. If there is an index record corresponding to the inspection 1 directory in the current second data storage area, or the inspection 1 directory is currently being called, then the clearing process of the next inspection directory is executed.
[0072] Step S23: If an index record corresponding to the target directory currently exists in the second data storage area, or the target directory is currently being called, the step of clearing the target directory in the first data storage area and all ultrasonic examination data under the target directory is prohibited.
[0073] In a specific embodiment, if there is an index record corresponding to the target directory in the current second data storage area, it means that the user may use the target directory later, that is, the target directory is valid, so the step of clearing the target directory in the first data storage area and all ultrasound examination data under the target directory is prohibited.
[0074] In another specific embodiment, if the current target directory is being called by a background function, even if the index record corresponding to the target directory no longer exists in the current second data storage area, in order to avoid forcibly clearing the target directory and causing an abnormality in the ultrasonic instrument, the target directory will not be cleared. That is, the step of clearing the target directory in the first data storage area and all ultrasonic inspection data under the target directory is prohibited.
[0075] It can be seen that in the embodiment of the present application, the target data is the target directory of the first data storage area. Then, when clearing the ultrasonic inspection data to be cleared, the ultrasonic inspection data to be cleared specifically refers to the target directory and all the ultrasonic inspection data under the target directory. In addition, if there is an index record corresponding to the target directory in the current second data storage area, or the current target directory is being called by the background, considering that the user may use the target directory later, and the possibility that the clearing operation at this time may cause an abnormality of the ultrasonic instrument, the steps of clearing the target directory in the first data storage area and all the ultrasonic inspection data under the target directory will be prohibited. In this way, the above scheme can clear the residual directory data in the ultrasonic instrument, thereby saving disk space.
[0076] See also Figure 6 As shown, the embodiment of the present application discloses a specific data clearing method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, it includes:
[0077] Step S31: determining the target data of the ultrasonic instrument in the current first data storage area; the target data is the target ultrasonic inspection data stored in any leaf directory in the first data storage area.
[0078] In this embodiment, the target data of the ultrasonic instrument in the current first data storage area may specifically be the target ultrasonic inspection data stored in any leaf directory, and subsequent judgment is performed to determine whether to clear the ultrasonic inspection data. Figure 2 Taking the tree structure shown in as an example, the target ultrasound inspection data mainly refers to the image data under the inspection directory, that is, the image 1 data to the image n data in the figure.
[0079] Step S32: if there is no index record corresponding to the target ultrasonic inspection data in the current second data storage area, and the target ultrasonic inspection data is not currently called, clearing the target ultrasonic inspection data in the first data storage area.
[0080] In this embodiment, if the target ultrasonic inspection data of the ultrasonic instrument in the current first data storage area does not have a corresponding index record in the second data storage area, and the target ultrasonic inspection data is not currently called, then the ultrasonic inspection data to be cleared corresponding to the ultrasonic inspection data in the first data storage area is cleared; the ultrasonic inspection data to be cleared here is specifically the target ultrasonic inspection data itself, that is, the target ultrasonic inspection data saved under any leaf directory.
[0081] For example, suppose the target ultrasound examination data is Figure 2 The image 1 data in the image 1 data can be cleared by referring to Figure 7As shown, firstly, a target index is generated according to the data name of the image 1 data, and then the target index is searched in the second data storage area. If there is no index record corresponding to the image 1 data in the current second data storage area, and the image 1 data is not currently called by the background, the image 1 data is directly cleared. If there is an index record corresponding to the image 1 data in the current second data storage area, or the image 1 data is currently being called, the next image data clearing process is executed.
[0082] Step S33: If the index record corresponding to the target ultrasonic inspection data currently exists in the second data storage area, or the target ultrasonic inspection data is currently being called, the step of clearing the target ultrasonic inspection data in the first data storage area is prohibited.
[0083] In a specific embodiment, if there is an index record corresponding to the target ultrasound inspection data in the current second data storage area, it means that the user may still use the target ultrasound inspection data later, that is, the target ultrasound inspection data is valid. Therefore, the step of clearing the target ultrasound inspection data in the first data storage area is prohibited.
[0084] In another specific embodiment, if the current target ultrasound inspection data is being called by a background function, even if the index record corresponding to the target ultrasound inspection data no longer exists in the current second data storage area, in order to avoid forcibly clearing the target ultrasound inspection data and causing an abnormality in the ultrasound instrument, the target ultrasound inspection data will not be cleared, that is, the step of clearing the target ultrasound inspection data in the first data storage area is prohibited.
[0085] It can be seen that in the embodiment of the present application, the target data is the target ultrasonic inspection data stored in any leaf directory in the first data storage area. Then, when clearing the ultrasonic inspection data to be cleared, the ultrasonic inspection data to be cleared specifically refers to the target data itself. In addition, if there is an index record corresponding to the target ultrasonic inspection data in the current second data storage area, or the current target ultrasonic inspection data is being called by the background, the step of clearing the target ultrasonic inspection data in the first data storage area will be prohibited because the user may use the target ultrasonic inspection data later and the clearing operation at this time may cause abnormalities in the ultrasonic instrument. In this way, the above scheme can clear the target ultrasonic inspection data remaining in the ultrasonic instrument, thereby saving disk space.
[0086] See also Figure 8 As shown, the embodiment of the present application discloses a specific data clearing method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, it includes:
[0087] Step S41: Determine the current state of the ultrasonic instrument.
[0088] In this embodiment, the current state of the ultrasonic instrument needs to be determined before performing the clearing operation. In a specific implementation, the current state is specifically the current load state of the ultrasonic instrument, and the current load state includes but is not limited to the CPU (Central Processing Unit, i.e., central processing unit) load and the disk IO (Input / Output, i.e., input / output) load.
[0089] Furthermore, it should be noted that the above method also includes: if the current time meets the time condition determined based on the preset time configuration parameter, the step of determining the current state of the ultrasonic instrument is triggered. It can be understood that the embodiment of the present application can pre-configure the time for performing the clearing operation, thereby obtaining the preset time configuration parameter, and before each clearing operation is performed, it is necessary to determine the current load state of the ultrasonic instrument to determine whether the current load can support the clearing operation. Therefore, if the current time meets the time condition determined based on the preset time configuration parameter, the step of determining the current state of the ultrasonic instrument is triggered.
[0090] In a specific implementation, the preset time configuration parameter may be a periodic time parameter, that is, the clearing operation is performed every certain period of time; or it may be a target time point preset by the user. This embodiment does not impose any restrictions on the time conditions represented by the preset time configuration parameter. In addition, this embodiment may also perform the clearing phase processing by starting the background thread of the ultrasonic instrument, that is, when the current time meets the time condition determined based on the preset time configuration parameter, the background thread is started to perform the step of determining the current state of the ultrasonic instrument.
[0091] Step S42: If the current state meets the preset state condition, the step of determining the target data of the ultrasonic instrument in the current first data storage area is triggered; if the current state does not meet the preset state condition, the preset waiting operation is executed and then the step of determining the current state of the ultrasonic instrument is jumped again.
[0092] In this embodiment, if the current state meets the preset state condition, the step of determining the target data of the ultrasonic instrument in the current first data storage area is triggered, otherwise the preset waiting operation is executed and the step of determining the current state of the ultrasonic instrument is re-jumped. Taking the current state as the current load state as an example, the corresponding preset state condition is the load threshold. If the current load is less than the load threshold, the step of determining the target data of the ultrasonic instrument in the current first data storage area is triggered. If the current load is not less than the load threshold, the preset waiting operation is executed and the step of determining the current state of the ultrasonic instrument is re-jumped, that is, after waiting for a period of time, the current load state of the ultrasonic instrument is re-determined and compared with the load threshold. It should be pointed out that when the current load is large, no work of clearing the remaining data files is done, because clearing data will use the disk, which is a relatively time-consuming process and may cause the ultrasonic instrument to freeze, thereby affecting user use; and when the current load is small, subsequent cleaning work is performed.
[0093] Step S43: Determine the target data of the ultrasonic instrument in the current first data storage area.
[0094] In a specific embodiment, the above-mentioned determination of the target data of the ultrasonic instrument in the current first data storage area includes: selecting a first-level directory from all the first-level directories that have not been filtered in the current first data storage area as the current target directory to trigger a data clearing process for the current target directory; during the data clearing process for the current target directory, if there is an index record corresponding to the current target directory in the current second storage area, or the current target directory is being called, then the subdirectory in the current target directory is used as the current target subdirectory to trigger the data clearing process for the current target subdirectory; during the data clearing process for the current target subdirectory, if there is an index record corresponding to the current target subdirectory in the current second storage area, or the current target subdirectory is being called, and the current target subdirectory is a leaf directory of the current target directory, then the ultrasonic inspection data stored in the current target subdirectory is used as the current target ultrasonic inspection data to trigger a data clearing process for the current target ultrasonic inspection data; after the data clearing process for the current target ultrasonic inspection data is completed, jump again to the selection of a first-level directory from all the first-level directories that have not been filtered in the current first data storage area as the current target directory until all the first-level directories in the first data storage area are filtered.
[0095] In this embodiment, it can be understood that when determining the target data in the ultrasonic instrument, the traversal can be performed in the order of the directory structure, so as to ensure that all residual data in the ultrasonic instrument can be cleared without omission. Specifically, the traversal order in this embodiment starts from the first-level directory, and firstly selects a first-level directory from all the first-level directories that have not been screened in the current first data storage area as the current target directory to trigger the data clearing process for the current target directory; it should be noted that each time the first-level directory is reselected, it can be traversed one by one according to the numbering order of the first-level directories, or it can be traversed randomly, and this embodiment does not limit this. Further, in the data clearing process for the current target directory, if there is an index record corresponding to the current target directory in the current second storage area, or the current target directory is being called, then continue to traverse the next-level directory, that is, the subdirectory in the current target directory is used as the current target subdirectory to trigger the data clearing process for the current target subdirectory; it should be noted that if there are multiple subdirectories of the first-level directory, the data clearing operation can be performed on each subdirectory in parallel, or the clearing operation can be performed one by one according to the numbering order of the subdirectories, and this embodiment does not limit this. Further, in the data clearing process for the current target subdirectory, if there is an index record corresponding to the current target subdirectory in the current second storage area, or the current target subdirectory is being called, then continue to traverse the next level directory, if the current target subdirectory is already a leaf directory of the current target directory, then the ultrasonic inspection data stored in the current target subdirectory is used as the current target ultrasonic inspection data to trigger the data clearing process for the current target ultrasonic inspection data. After the data clearing process for the current target ultrasonic inspection data is completed, jump again to the step of selecting a first-level directory from all the first-level directories that have not been screened in the current first data storage area as the current target directory, until all the first-level directories in the first data storage area have been screened, and the entire traversal process is completed. It should be pointed out that before jumping again to the step of selecting a first-level directory from all the first-level directories that have not been screened in the current first data storage area as the current target directory, it is also possible to judge whether the current load state of the ultrasonic instrument at this time meets the preset state condition. If the current load state at this time meets the preset state condition, the step of selecting a first-level directory from all the first-level directories that have not been screened in the current first data storage area as the current target directory is executed.
[0096] Step S44: If there is no index record corresponding to the target data in the current second data storage area and the target data is not currently called, ultrasonic inspection data to be cleared is determined from the first data storage area based on the target data, and the ultrasonic inspection data to be cleared is cleared.
[0097] In this embodiment, if there is no index record corresponding to the current target directory in the current second data storage area and the current target directory has not been called, the current target directory in the first data storage area and all data under the current target directory are cleared; if there is no index record corresponding to the current target subdirectory in the current second data storage area and the current target subdirectory has not been called, the current target subdirectory in the first data storage area and all ultrasound inspection data under the current target subdirectory are cleared; if there is no index record corresponding to the current target ultrasound inspection data in the current second data storage area and the current target ultrasound inspection data has not been called, the current target ultrasound inspection data in the first data storage area is cleared.
[0098] It can be seen that in the embodiment of the present application, before executing the clearing operation, it is necessary to determine the current state of the ultrasonic instrument, and the current state is specifically the current load state of the ultrasonic instrument. If the current load is less than the load threshold, the step of determining the target data of the ultrasonic instrument in the current first data storage area is triggered. If the current load is not less than the load threshold, the preset waiting operation is performed and then the step of jumping back to the current state of the ultrasonic instrument is determined. In this way, when the load is large, no work of clearing the residual data files can be done to avoid causing the ultrasonic instrument to freeze, thereby affecting the user's use. In addition, the embodiment of the present application can pre-configure the time for executing the clearing operation, so as to obtain the preset time configuration parameter. When the current time meets the time condition determined based on the preset time configuration parameter, the step of determining the current state of the ultrasonic instrument is triggered. When determining the target data in the ultrasonic instrument, the present application can be traversed in the order of the directory structure, that is, starting from the first-level directory in the first data storage area, traversing the sub-directories under the first-level directory in turn, and the next-level directory of the sub-directory, until the last ultrasonic inspection data is traversed, so as to ensure that all residual data in the ultrasonic instrument can be cleared without omission.
[0099] See also Fig. 9 As shown, the embodiment of the present application discloses a specific data traversal process, which specifically includes:
[0100] Before executing the clearing operation, the current load of the disk or CPU is obtained first, and it is determined whether the current load is greater than the preset threshold. If it is less than the preset threshold, the operation of clearing the residual data is started; if it is not less than the preset threshold, it is necessary to wait for a certain period of time and then jump to the step of obtaining the current load of the disk or CPU at this time, until the current load is less than the preset threshold, and then the operation of clearing the residual data is executed. In this way, it is possible to avoid executing the clearing operation when the load is large, thereby causing the ultrasound instrument to freeze and affecting the user's use.
[0101] After determining to perform the clearing operation, first determine the patient directory of a patient to be processed under the root directory node storing all patient data. The patient to be processed here refers to the patient whose relevant data has not been cleared in the clearing process executed on each data under the root node in this round. Then generate the corresponding index according to the patient directory, and then determine whether the index exists in the internal database, that is, query the internal database with the index. If the result can be queried, it means that the patient directory and all or part of the data under the patient directory are valid, and the user can browse and call it back later. In this case, it is also necessary to determine whether the data of each examination of the patient is cleared, that is, to determine whether each examination directory under the patient directory is valid; if the result cannot be queried, then determine whether the background function is using the patient directory. If the background does not use the patient directory, then the patient directory is invalid and needs to be cleared, so the entire patient directory is cleared, that is, the patient directory and all the data under the patient directory.
[0102] Furthermore, when determining whether each examination directory under the patient directory needs to be cleared, a corresponding index is generated according to each examination directory, and then the index is used to query the internal database. If there is no examination directory to be processed under the patient directory, it means that the data clearing operation for the current patient has been completed. Furthermore, if the index can query the result in the internal database, it means that the examination directory and all or part of the data under the examination directory are valid. In this case, it is also necessary to determine whether the data under each examination directory needs to be cleared, that is, to determine whether each image data under the examination directory is valid. If the result cannot be queried, it is determined whether the background function is using the examination directory. If the background does not use the examination directory, then the examination directory is invalid and needs to be cleared, so the entire examination directory is cleared, that is, the examination directory and all the data under the examination directory.
[0103] Furthermore, when determining whether each image data in the examination directory needs to be cleared, a corresponding index is generated according to each image data, and then the index is used to query the internal database. If there is no image data to be processed in the examination directory, it means that the data clearing operation of the current patient has been completed. Furthermore, if the index can query the result in the internal database, it means that the image data is valid, and the clearing process is not performed; if the result cannot be queried, it is determined whether the background function is using the image data. If the background does not use the image data, then the image data is invalid and needs to be cleared. Therefore, the corresponding image data is directly cleared.
[0104] At this point, the clearing process of the relevant data of one patient is completed. Before clearing the relevant data of the next patient, it is necessary to obtain the current load of the disk or CPU again, and determine whether the current load is greater than the preset threshold. If the current load is less than the preset threshold, the clearing process of the next patient directory is executed, that is, the above process is repeated. In this way, through the above scheme, all the data under the root node can be traversed, that is, the data of all patients can be processed, and all remaining useless data can be cleared to achieve the purpose of saving disk space. In addition, in the above process, the target data is cleared only when it is not currently used by the background function, so it does not affect the background function that is using the data, and will not cause abnormalities in the ultrasound instrument.
[0105] See also Fig.10 As shown, the embodiment of the present application discloses a data clearing device, which includes:
[0106] A data determination module 11 is used to determine the target data of the ultrasonic instrument in the current first data storage area;
[0107] The data clearing module 12 is used to determine the ultrasound inspection data to be cleared from the first data storage area based on the target data, and clear the ultrasound inspection data to be cleared if there is no index record corresponding to the target data in the current second data storage area and the current target data has not been called; wherein the first data storage area and the second data storage area are respectively used to store the ultrasound inspection data of the ultrasound inspection object and the corresponding index records.
[0108] It can be seen that the present application determines the target data of the ultrasonic instrument in the current first data storage area; if there is no index record corresponding to the target data in the current second data storage area, and the target data is not currently called, then the ultrasonic inspection data to be cleared is determined from the first data storage area based on the target data, and the ultrasonic inspection data to be cleared is cleared; wherein the first data storage area and the second data storage area are used to store the ultrasonic inspection data of the ultrasonic inspection object and the corresponding index records, respectively. It can be seen that in the present application, the first data storage area stores the ultrasonic inspection data of the ultrasonic inspection object, and the second data storage area stores the index records corresponding to these data. If the target data of the ultrasonic instrument in the current first data storage area does not have a corresponding index record in the second data storage area, and the target data is not currently called, then the ultrasonic inspection data to be cleared corresponding to the target data in the first data storage area is cleared. That is to say, when there is no corresponding index record in the second data storage area for the target data, and the target data is not currently called, it means that the ultrasonic inspection data to be cleared corresponding to the target data is the residual data in the ultrasonic instrument, and since there is no index record in the second data storage area, it will not be used by the user in the future. Therefore, after the ultrasonic inspection data to be cleared is determined from the first data storage area based on the target data, the ultrasonic inspection data to be cleared is cleared. In this way, the technical solution of the present application can clear the residual data in the ultrasonic instrument, thereby saving disk space, and the present application clears the target data only when it is not currently called, and will not cause abnormalities in the ultrasonic instrument.
[0109] In some specific implementations, the data clearing device may further include:
[0110] A state determination unit, used to determine the current state of the ultrasonic instrument; wherein the current state is the current load state of the ultrasonic instrument;
[0111] A first execution unit, configured to trigger the step of determining the target data of the ultrasonic instrument in the current first data storage area if the current state satisfies a preset state condition;
[0112] The second execution unit is used to execute a preset waiting operation and then jump to the step of determining the current state of the ultrasonic instrument if the current state does not meet the preset state condition.
[0113] In some specific implementations, in the data clearing device, the target data is a target directory of the first data storage area;
[0114] Accordingly, the data clearing module 12 may specifically include:
[0115] A first clearing unit is used to clear the target directory in the first data storage area and all ultrasonic inspection data located under the target directory.
[0116] In some specific implementations, the target directory is any directory under the root directory of the first data storage area.
[0117] In some specific implementations, the data clearing device may further include:
[0118] The first execution prohibition unit is used to prohibit the step of clearing the target directory in the first data storage area and all ultrasound examination data under the target directory if there is an index record corresponding to the target directory in the second data storage area or the target directory is currently being called.
[0119] In some specific implementations, in the data clearing device, the target data is target ultrasonic inspection data stored in any leaf directory in the first data storage area;
[0120] Accordingly, the data clearing module 12 may specifically include:
[0121] The second clearing unit is configured to clear the target ultrasonic inspection data in the first data storage area.
[0122] In some specific implementations, the data clearing device may further include:
[0123] The second execution prohibition unit is used to prohibit the step of clearing the target ultrasonic inspection data in the first data storage area if the index record corresponding to the target ultrasonic inspection data currently exists in the second data storage area, or the target ultrasonic inspection data is currently being called.
[0124] In some specific implementations, the data determination module 11 may specifically include:
[0125] A first-level directory determining unit, used to select a first-level directory from all the first-level directories that have not been screened in the current first data storage area as a current target directory to trigger a data clearing process for the current target directory;
[0126] a subdirectory determining unit, configured to, during a data clearing process for a current target directory, use a subdirectory in the current target directory as a current target subdirectory to trigger a data clearing process for the current target subdirectory if an index record corresponding to the current target directory currently exists in the second storage area or the current target directory is being called;
[0127] An ultrasonic inspection data determination unit, used for, during a data clearing process for a current target subdirectory, if an index record corresponding to the current target subdirectory exists in the second storage area, or the current target subdirectory is being called and the current target subdirectory is a leaf directory of the current target directory, using the ultrasonic inspection data stored in the current target subdirectory as the current target ultrasonic inspection data to trigger a data clearing process for the current target ultrasonic inspection data;
[0128] The jump unit is used to jump again to select a first-level directory as the current target directory from all the first-level directories that have not been filtered in the current first data storage area after the data clearing process for the current target ultrasound examination data is completed, until all the first-level directories in the first data storage area have been filtered.
[0129] In some specific implementations, the data clearing device may further include:
[0130] An index generation unit is used to generate a target index of the target data based on the characteristic information of the target data; wherein, if the target data is a target directory of the first data storage area, the characteristic information is the directory name of the target directory; if the target data is target ultrasonic inspection data stored under any leaf directory in the first data storage area, the characteristic information is the data name corresponding to the target ultrasonic inspection data stored under any leaf directory.
[0131] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Specifically, it may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the data clearing method performed by the electronic device disclosed in any of the aforementioned embodiments.
[0132] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0133] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0134] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0135] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the data clearing method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data received by the electronic device and transmitted from an external device, the data 223 can also include data collected by its own input and output interface 25, etc.
[0136] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the method steps performed in the data clearing process disclosed in any of the aforementioned embodiments are implemented.
[0137] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0138] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0139] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0140] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0141] The above is a detailed introduction to a data clearing method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a person skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A data clearing method, characterized in that: include: Determine the target data of the ultrasonic instrument in the current first data storage area; If there is no index record corresponding to the target data in the current second data storage area, and the target data is not currently called, determining the ultrasonic inspection data to be cleared from the first data storage area based on the target data, and clearing the ultrasonic inspection data to be cleared; The first data storage area and the second data storage area are respectively used to store ultrasound examination data of the ultrasound examination object and corresponding index records.
2. The data clearing method according to claim 1, characterized in that: Before determining the target data of the ultrasonic instrument in the current first data storage area, the method further includes: Determine a current state of the ultrasonic instrument; wherein the current state is a current load state of the ultrasonic instrument; If the current state satisfies the preset state condition, the step of determining the target data of the ultrasonic instrument in the current first data storage area is triggered; If the current state does not satisfy the preset state condition, the preset waiting operation is executed and then the process jumps back to the step of determining the current state of the ultrasonic instrument.
3. The data clearing method according to claim 1, characterized in that: The target data is a target directory of the first data storage area; Accordingly, clearing the ultrasonic inspection data to be cleared includes: The target directory in the first data storage area and all ultrasound examination data under the target directory are cleared.
4. The data clearing method according to claim 3, characterized in that: The target directory is any directory under the root directory of the first data storage area.
5. The data clearing method according to claim 3, characterized in that: Also includes: If an index record corresponding to the target directory currently exists in the second data storage area, or the target directory is currently being called, the step of clearing the target directory in the first data storage area and all ultrasound examination data under the target directory is prohibited.
6. The data clearing method according to claim 1, characterized in that: The target data is target ultrasonic inspection data stored in any leaf directory in the first data storage area; Accordingly, clearing the ultrasonic inspection data to be cleared includes: The target ultrasonic inspection data in the first data storage area is cleared.
7. The data clearing method according to claim 6, characterized in that: Also includes: If the index record corresponding to the target ultrasonic inspection data currently exists in the second data storage area, or the target ultrasonic inspection data is currently being called, the step of clearing the target ultrasonic inspection data in the first data storage area is prohibited.
8. The data clearing method according to claim 1, characterized in that: The step of determining the target data of the ultrasonic instrument in the current first data storage area comprises: Selecting a first-level directory from all the first-level directories that have not been filtered in the current first data storage area as the current target directory to trigger a data clearing process for the current target directory; During the data clearing process for the current target directory, if the index record corresponding to the current target directory exists in the current second storage area, or the current target directory is being called, a subdirectory in the current target directory is used as the current target subdirectory to trigger the data clearing process for the current target subdirectory; In the data clearing process for the current target subdirectory, if there is an index record corresponding to the current target subdirectory in the second storage area, or the current target subdirectory is being called, and the current target subdirectory is a leaf directory of the current target directory, the ultrasonic inspection data stored in the current target subdirectory is used as the current target ultrasonic inspection data to trigger the data clearing process for the current target ultrasonic inspection data; After the data clearing process for the current target ultrasound examination data is completed, the process jumps again to selecting a first-level directory from all the first-level directories that have not been filtered in the current first data storage area as the current target directory until all the first-level directories in the first data storage area have been filtered.
9. The data clearing method according to any one of claims 1 to 8, characterized in that: Also includes: generating a target index of the target data based on the characteristic information of the target data; wherein, if the target data is a target directory of the first data storage area, the characteristic information is a directory name of the target directory; If the target data is target ultrasonic inspection data stored in any leaf directory in the first data storage area, the characteristic information is the data name corresponding to the target ultrasonic inspection data stored in any leaf directory.
10. A data clearing device, characterized in that: include: A data determination module, used to determine the target data of the ultrasonic instrument in the current first data storage area; a data clearing module, configured to determine the ultrasonic inspection data to be cleared from the first data storage area based on the target data, and clear the ultrasonic inspection data to be cleared if there is no index record corresponding to the target data in the current second data storage area and the target data is not currently called; The first data storage area and the second data storage area are respectively used to store ultrasound examination data of the ultrasound examination object and corresponding index records.
11. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the data clearing method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the data clearing method according to any one of claims 1 to 9 are implemented.