CN104346102A - Automatic data deleting method based on DICOM - Google Patents

Automatic data deleting method based on DICOM Download PDF

Info

Publication number
CN104346102A
CN104346102A CN201310340619.2A CN201310340619A CN104346102A CN 104346102 A CN104346102 A CN 104346102A CN 201310340619 A CN201310340619 A CN 201310340619A CN 104346102 A CN104346102 A CN 104346102A
Authority
CN
China
Prior art keywords
data
data record
disk
field
dicom
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310340619.2A
Other languages
Chinese (zh)
Other versions
CN104346102B (en
Inventor
马润霞
宋文兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai United Imaging Healthcare Co Ltd
Original Assignee
Shanghai United Imaging Healthcare Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai United Imaging Healthcare Co Ltd filed Critical Shanghai United Imaging Healthcare Co Ltd
Priority to CN201310340619.2A priority Critical patent/CN104346102B/en
Publication of CN104346102A publication Critical patent/CN104346102A/en
Application granted granted Critical
Publication of CN104346102B publication Critical patent/CN104346102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an automatic data deleting method based on DICOM. The method comprises the following steps: step 1, detecting the capacity of a disk space, carrying out step 2 if the available space of the disk space is smaller than a first threshold valve, and otherwise, enabling the system to operate normally; step 2, accessing a database, searching data records confirming to deleting conditions and acquiring the storage path of a data file corresponding to the searched data records in the disk space; step 3, carrying out deleting operation on the data file stored in the disk space according to the storage path; step 4, detecting the capacity of the disk space again, stopping data deleting operation if the capacity of the available space is greater than a second threshold valve, and otherwise, carrying out step 2 again. When the technical scheme provided by the invention is used for deleting data in medical equipment, the situation that data is deleted mistakenly or is not deleted completely can be avoided.

Description

A kind of data auto-deleted method based on DICOM
Technical field
The present invention relates to medical image data processing technology field, particularly relate to a kind of data auto-deleted method based on DICOM.
Background technology
Large medical equipment in use can produce a large amount of data files, and stores the very large disk space of these data files needs.For PET system, the raw data that pet scanner obtains is the photo-event being buried in oblivion generation by positron and negatron obtained by a series of detector.Under normal circumstances, a PET scanning produces data volume and just can reach millions of events, stores these data and will take very large disk space.If can not clear up disk in time, when carrying out scanning next time, just likely occur because disk space makes the situation that scanning cannot be carried out not.
At present, the method of automatic deletion data is used for mobile device terminal, be CN200510083023.4 in the patent No., patent name is in the Chinese patent of the automatic short message deleting method of communication terminal, by presetting erasing time, then utilize a terminal timer to trigger deletion action.Be CN200680008989.4 in the patent No., patent name is in the Chinese patent of direct file data programing in flash memory and deletion, provides a kind of catalogue result by unique identification document location, performs deletion.The application of method in large medical equipment of automatic deletion data is also less, and the strategy deleting dependence in such scheme is less, if be applied in medical supply, cannot meet and not delete by mistake, do not leak the requirement of deleting.
Summary of the invention
The problem to be solved in the present invention is to provide a kind of data auto-deleted method based on DICOM, the method is applied in Medical Devices, and doctor, when deleting medical data, there will not be the situation of leaking and deleting or deleting by mistake.
For solving the problem, the invention provides a kind of data auto-deleted method based on DICOM, comprising the following steps:
Step 1, detects disk space capacity, if disk free space is less than the first threshold values, performs step 2, otherwise system continues normal operation;
Step 2, accessing database, searches the data record meeting deletion condition, the store path of data file in disk that the data record found described in acquisition is corresponding;
Step 3, according to the store path obtained, performs deletion action to the data file be stored in disk;
Step 4, detects disk space capacity again, if disk free space capacity is greater than the second threshold values, then and end data deletion action, otherwise return execution step 2.
Further, before described step 1, further comprising the steps of: the cycle automatically detecting disk space capacity is set; In described step 1, according to the cycle pre-set, periodic detection disk space capacity.
Further, in described step 2, described in search in the step of the data record meeting deletion condition, further comprising the steps:
Step 21, in described database, every bar data record comprises multiple field, searches the data record with the first field according to field information in the data list of the first storage level;
Step 22, in described database, every bar data record has uniquely tagged symbol, to comprise the marker character of the data record of the first field as external key, stores in the data list of level search the data record comprising the second field second;
Step 23, using the described marker character comprising the data record of the second field as external key, stores in the data list of level the 3rd and searches all data records.
Further, between described step 22 and described step 23, further comprising the steps of:
The all data records comprising the second field found were sorted according to the time;
Search storage time the earliest one and comprise the data record of the second field.
Further, after described step 3, further comprising the steps of: deletion action is performed to the data record of the deletion condition that meets of searching acquisition.
Further, after described step 3, further comprising the steps of: to send data by Information to user and delete information.
Technical solution of the present invention contrast prior art has following beneficial effect: the data auto-deleted method based on DICOM provided by the invention, according to search strategy accessing database, search the data record comprising specific field, and obtain the store path of data file corresponding to this data record in disk, after finding data file, deletion action is carried out to it, meet Medical Devices and data are not deleted by mistake, does not leak the requirement of deleting; In addition, pre-configured disk space is reserved threshold values and is automatically detected the cycle of disk, and when disk free space is not enough, system will start data delete program automatically, logarithm factually time delete.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the data auto-deleted method based on DICOM of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, are described in detail the specific embodiment of the present invention below in conjunction with drawings and Examples.
Fig. 1 is the process flow diagram of the data auto-deleted method based on DICOM of the present invention.Please refer to Fig. 1, the described data auto-deleted method based on DICOM, comprises the following steps:
Step 1, detects disk space capacity, if disk free space is less than pre-set threshold value, performs step 2, otherwise system continues normal operation;
Step 2, accessing database, searches the data record meeting deletion condition, the store path of data file in disk that the data record found described in acquisition is corresponding;
Step 3, according to the store path obtained, performs deletion action to the data file be stored in disk;
Step 4, detects disk space capacity again, if disk free space is greater than the second threshold values, then and end data deletion action, otherwise return execution step 2.
As described in step 1, detect disk space capacity, if disk free space is less than pre-set threshold value, perform step 2, otherwise system continues normal operation.
Detect the disk space capacity of store data file, if disk free space is greater than pre-set threshold value, detection of end; If disk free space is less than pre-set threshold value, then start the automatic delete program of data; Preferably, pre-set the cycle detecting disk space capacity, according to the cycle pre-set, system at regular intervals detects disk space capacity.
As described in step 2, accessing database, searches the data record meeting deletion condition, find described in acquisition the store path of data file in disk corresponding to data record.
Data record stores in a database according to DICOM accumulation layer level structure, and accessing database, according to search strategy, successively searches, and just can find the data record meeting deletion condition.Described search strategy comprises the following steps: in described database, every bar data record comprises multiple field, searches the data record comprising the first field according to field information in the data list of the first storage level; In described database, every bar data record has uniquely tagged symbol, to comprise the marker character of the data record of the first field as external key, stores in the data list of level search the data record comprising the second field second; To comprise the marker character of the data record of the second field as external key, store in the data list of level the 3rd and search all data records.In this step, to comprise the marker character of the data record of the first field as external key, search the data record comprising the second field in the data list of the second storage level after, all data records comprising the second field found can also be sorted according to the time; Find wherein storage time the earliest one to comprise the data record of the second field, then the deletion action as described in step 3 is performed to this data record.
As described in step 3, according to the store path obtained, deletion action is performed to the data file be stored in disk.
What store in database is only data records, data file corresponding to every bar data record is actual to be stored in disk, after finding the data record meeting erasure request in a database, the store path information of data file in disk corresponding to this data record comprised in every bar data record, finds corresponding data file and performs deletion action in disk.After deleting the data file in disk, the data record in delete database corresponding to these data files.In addition, after deletion action is performed to the data file on disk and the data record in database, data can also be sent by the Information of user interface to user and delete information, so that user understands data in time delete information.
For understanding embodiments of the present invention better, below in conjunction with specific embodiment, the principle of work of technical solution of the present invention based on the data auto-deleted method of DICOM is described in detail.
Embodiment one
Detect the disk space capacity of store data file, namely can detect after system boot, also can pre-set sense cycle, system automatic periodic detection disk space capacity.Arrange the first threshold values of disk free space as required, if disk free space is less than the first threshold values, system will start data delete program, otherwise system continues normal operation.
After system start-up data delete program, be first accessing database, search the data record comprising specific field.Store level first and search the data record comprising " completing inspection " field.Then using a marker character comprising the data record of " completing inspection " field as external key, store in the data list of level second and search the data record comprising " protection " field.It should be noted that, for the medical data base based on DICOM accumulation layer level structure, when generating data record, for every bar data record arranges uniquely tagged symbol, all data records of next level associated by this data record can be found according to the marker character of a data record.When first stores in level, when comprising more than one of the data record of " completing inspection " field, respectively using the marker character of pieces of data record as external key, store in the data list of level second and search the data record comprising " protection " field.Store in all data records of level search acquisition second and search the data record comprising " protection " field; then sort according to the time; find wherein storage time a data record the earliest; last using the marker character of this data record as external key, store in the data list of level the 3rd and search all data records.Store in the pieces of data record of level the search acquisition the 3rd and include the store path information of the data file corresponding with it in disk, obtain the store path of data file corresponding to these data records in disk.Then, according to the store path obtained, deletion action is performed to these data files be stored in disk.While performing deletion action to the data in disk, the data record corresponding in a database to deleted data file is also deleted.According to the search strategy of technical solution of the present invention, successively search the data record meeting erasure request in a database, and then in disk, find corresponding data file and perform deletion action, avoid and occur that the generation of the situation of deleting is deleted by mistake and leaked to data file.
After a deletion action is carried out to the data file of searching acquisition, again detect disk space capacity.If disk free space is greater than the second threshold values, then accessing database again, searches the data record comprising specific field as previously mentioned, and performs deletion action to the data file be stored in disk of its correspondence.Circulation like this, until disk free space is no longer greater than the second threshold values, then terminates this secondary data deletion action.In addition, data delete beginning, data are deleted and terminated and these information of disk space size before and after data deletion, can be sent by message hurdle to user interface, understand data in magnetic disk deletion situation in real time to facilitate user.
In sum, data auto-deleted method based on DICOM provided by the invention, pre-set the reserved threshold values of disk space and automatically detect the cycle of disk, according to the storage organization feature of medical data when generating the data record in database, for every bar data record arranges uniquely tagged symbol, then successively search according to search strategy the store path information of data file in disk obtaining satisfied deletion condition, delete in real time, meet in medical diagnostic equipment and do not delete by mistake, do not leak the requirement of deleting.
Although the present invention discloses as above with preferred embodiment; so itself and be not used to limit the present invention, any those skilled in the art, without departing from the spirit and scope of the present invention; when doing a little amendment and perfect, therefore protection scope of the present invention is when being as the criterion of defining with claims.

Claims (6)

1., based on a data auto-deleted method of DICOM, it is characterized in that, comprise the following steps:
Step 1, detects disk space capacity, if disk free space is less than the first threshold values, performs step 2, otherwise system continues normal operation;
Step 2, accessing database, searches the data record meeting deletion condition, the store path of data file in disk that the data record found described in acquisition is corresponding;
Step 3, according to the store path obtained, performs deletion action to the data file be stored in disk;
Step 4, detects disk space capacity again, if disk free space capacity is greater than the second threshold values, then and end data deletion action, otherwise return execution step 2.
2., as claimed in claim 1 based on the data auto-deleted method of DICOM, it is characterized in that, before described step 1, further comprising the steps of: the cycle automatically detecting disk space capacity is set; In described step 1, according to the cycle pre-set, periodic detection disk space capacity.
3., as claimed in claim 1 based on the data auto-deleted method of DICOM, it is characterized in that, in described step 2, described in search in the step of the data record meeting deletion condition, further comprising the steps:
Step 21, in described database, every bar data record comprises multiple field, searches the data record comprising the first field according to field information in the data list of the first storage level;
Step 22, in described database, every bar data record has uniquely tagged symbol, to comprise the marker character of the data record of the first field as external key, stores in the data list of level search the data record comprising the second field second;
Step 23, using the described marker character comprising the data record of the second field as external key, stores in the data list of level the 3rd and searches all data records.
4., as claimed in claim 3 based on the data auto-deleted method of DICOM, it is characterized in that, between described step 22 and described step 23, further comprising the steps of:
The all data records comprising the second field found were sorted according to the time;
Search storage time the earliest one and comprise the data record of the second field.
5., as claimed in claim 1 based on the data auto-deleted method of DICOM, it is characterized in that, after described step 3, further comprising the steps of: deletion action is performed to the described data record searching the deletion condition that meets of acquisition.
6., as claimed in claim 1 based on the data auto-deleted method of DICOM, it is characterized in that, after described step 3, further comprising the steps of: to send data by Information to user and delete information.
CN201310340619.2A 2013-08-06 2013-08-06 A kind of data auto-deleted method based on DICOM Active CN104346102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310340619.2A CN104346102B (en) 2013-08-06 2013-08-06 A kind of data auto-deleted method based on DICOM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310340619.2A CN104346102B (en) 2013-08-06 2013-08-06 A kind of data auto-deleted method based on DICOM

Publications (2)

Publication Number Publication Date
CN104346102A true CN104346102A (en) 2015-02-11
CN104346102B CN104346102B (en) 2018-09-21

Family

ID=52501825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310340619.2A Active CN104346102B (en) 2013-08-06 2013-08-06 A kind of data auto-deleted method based on DICOM

Country Status (1)

Country Link
CN (1) CN104346102B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357520A (en) * 2016-05-10 2017-11-17 群联电子股份有限公司 Housekeeping instruction processing method, memorizer control circuit unit and its storage device
US9990718B2 (en) 2016-02-29 2018-06-05 Shanghai United Imaging Healthcare Co., Ltd. System and method for reconstructing ECT image
CN109254736A (en) * 2018-10-25 2019-01-22 北京鼎好鑫源科技有限公司 A kind of system of condition monitoring and data self-sizing storage method
CN112416254A (en) * 2020-11-27 2021-02-26 天地伟业技术有限公司 Optimization method for use efficiency of disk space
CN113268475A (en) * 2021-06-01 2021-08-17 广州欢网科技有限责任公司 Self-clearing method for clickhouse database
CN113821503A (en) * 2021-09-23 2021-12-21 北京金山云网络技术有限公司 Medical data processing method and device and edge server

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333079A (en) * 2011-02-25 2012-01-25 北京兴宇中科科技开发股份有限公司 Method for clearing disk space

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333079A (en) * 2011-02-25 2012-01-25 北京兴宇中科科技开发股份有限公司 Method for clearing disk space

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9990718B2 (en) 2016-02-29 2018-06-05 Shanghai United Imaging Healthcare Co., Ltd. System and method for reconstructing ECT image
US10535166B2 (en) 2016-02-29 2020-01-14 Shanghai United Imaging Healthcare Co., Ltd. System and method for reconstructing ECT image
US11557067B2 (en) 2016-02-29 2023-01-17 Shanghai United Imaging Healthcare Co., Ltd. System and method for reconstructing ECT image
CN107357520A (en) * 2016-05-10 2017-11-17 群联电子股份有限公司 Housekeeping instruction processing method, memorizer control circuit unit and its storage device
CN107357520B (en) * 2016-05-10 2020-12-01 群联电子股份有限公司 Finishing instruction processing method, memory control circuit unit and memory device thereof
CN109254736A (en) * 2018-10-25 2019-01-22 北京鼎好鑫源科技有限公司 A kind of system of condition monitoring and data self-sizing storage method
CN112416254A (en) * 2020-11-27 2021-02-26 天地伟业技术有限公司 Optimization method for use efficiency of disk space
CN113268475A (en) * 2021-06-01 2021-08-17 广州欢网科技有限责任公司 Self-clearing method for clickhouse database
CN113821503A (en) * 2021-09-23 2021-12-21 北京金山云网络技术有限公司 Medical data processing method and device and edge server

Also Published As

Publication number Publication date
CN104346102B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN104346102A (en) Automatic data deleting method based on DICOM
CN103246595B (en) Application management method, device, server and terminating unit
CN107015985B (en) Data storage and acquisition method and device
CN105868122A (en) Data processing method and device for quick flashing storage equipment
CN103092664A (en) Processing method and device of data file of android system
CN103559276A (en) Method and device for clearing useless files
CN107247722B (en) File scanning method and device and intelligent terminal
EP3438845A1 (en) Data updating method and device for a distributed database system
CN103886059A (en) Method and device for cleaning up files
CN104350478A (en) System and method for object deletion in persistent memory using bitmap windows
CN113282799B (en) Node operation method, node operation device, computer equipment and storage medium
US9104567B2 (en) Memory-leak identification
CN114089915B (en) File additional writing operation method and device based on FLASH memory
CN104102516A (en) Application program unloading method and device
CN102541969A (en) File protection method and system based on file allocation table (FAT) file system, and memory
CN111367869A (en) Mirror image file processing method and device, storage medium and electronic equipment
US20120233226A1 (en) Electronic device and file management method
CN105404551A (en) Processing method and system for switching application between foreground and background of mobile terminal and mobile terminal
CN103116729B (en) A kind of portable device data derives method and system automatically
CN107526816B (en) Stream distribution record storage method and device and electronic equipment
CN103886028A (en) Method and apparatus for copying files from storage device to advertisement machine
CN104636248A (en) Automatic testing auxiliary recognition method based on code injection
CN103309993A (en) Keyword extraction method and device
CN111143294B (en) Data retrieval method and device for power acquisition terminal and electronic equipment
CN104424223A (en) Input method-based APP (Application) search and fast boot method and related input method system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 201815 No. 1180 Xingxian Road, Jiading Industrial Zone, Jiading District, Shanghai

Patentee after: Shanghai Lianying Medical Technology Co., Ltd

Address before: 201815 No. 1180 Xingxian Road, Jiading Industrial Zone, Jiading District, Shanghai

Patentee before: SHANGHAI UNITED IMAGING HEALTHCARE Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 201807 2258 Chengbei Road, Jiading District, Shanghai

Patentee after: Shanghai Lianying Medical Technology Co.,Ltd.

Address before: 201815 No. 1180 Xingxian Road, Jiading Industrial Zone, Jiading District, Shanghai

Patentee before: Shanghai Lianying Medical Technology Co.,Ltd.