CN113609074A - Method and related device for warehousing and archiving medical image file - Google Patents
Method and related device for warehousing and archiving medical image file Download PDFInfo
- Publication number
- CN113609074A CN113609074A CN202110931540.1A CN202110931540A CN113609074A CN 113609074 A CN113609074 A CN 113609074A CN 202110931540 A CN202110931540 A CN 202110931540A CN 113609074 A CN113609074 A CN 113609074A
- Authority
- CN
- China
- Prior art keywords
- file
- temporary
- medical image
- files
- information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 239000000872 buffer Substances 0.000 claims description 23
- 238000012545 processing Methods 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 5
- 238000009825 accumulation Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 230000001788 irregular Effects 0.000 description 2
- 238000012887 quadratic function Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 229920006395 saturated elastomer Polymers 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/113—Details of archiving
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/20—ICT specially adapted for the handling or processing of medical images for handling medical images, e.g. DICOM, HL7 or PACS
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Epidemiology (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The present disclosure provides a method and related hardware device for archiving medical image files in a warehouse, the method includes reading key information of each medical image file in a network port file queue, generating an archive file of the medical image file according to the key information, storing the archive file in a preset file, acquiring saving path information of the archived file, generating a temporary file based on the saving path information and the key information, distributing the temporary files to a preset number of created cache regions according to the key information, and in each cache region, analyzing the medical image file through the temporary file to obtain analysis information of the medical image file, therefore, the file is filed firstly, and the medical image file is analyzed according to the temporary file through the temporary cache areas, so that the efficiency of analyzing and warehousing the file is improved.
Description
Technical Field
The present disclosure relates to the field of medical image file processing technologies, and in particular, to a method and a related apparatus for archiving medical image files in a warehouse.
Background
The medical image file is generally received into the network port file queue through a network protocol, and is analyzed in the network port file queue and then is stored and filed.
Because the network port file queue can receive a large number of medical image files with different file sizes at irregular time, if the medical image files cannot be filed and analyzed in time, as the transmission frequency of the network files is higher, more and more files can be accumulated in folders in the network port file queue, the efficiency of circularly traversing and reading the files is lower and lower, and the data cannot be processed in time, so that more and more time is consumed.
Disclosure of Invention
In view of the above, the present disclosure provides a method and a related apparatus for archiving a medical image file.
Based on the above purpose, the present disclosure provides a method for archiving a medical image file in a warehouse, comprising:
reading key information of each medical image file in a network port file queue;
generating an archive file of the medical image file based on the key information, and storing the archive file in a preset file;
acquiring saving path information of the archived file, and generating a temporary file based on the saving path information and the key information;
distributing the temporary files to a preset number of created cache regions based on the key information, and analyzing the medical image files in each cache region through the temporary files to obtain analysis information of the medical image files;
and storing the analysis information into a database to finish warehousing and filing of the medical image file.
Correspondingly, the present disclosure also provides an electronic device, which includes a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor executes the program to implement the method for archiving and warehousing medical image files as described above.
Accordingly, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for medical image file warehousing archiving described above.
As can be seen from the above, the method for archiving medical image files in storage according to the present disclosure reads key information of each medical image file in a network port file queue, generates an archive file of the medical image file according to the key information, stores the archive file in a preset document, obtains storage path information of the archive file, generates a temporary file based on the storage path information and the key information, distributes the temporary file to a preset number of created cache areas based on the key information, analyzes the medical image file in each cache area through the temporary file to obtain analysis information of the medical image file, stores the analysis information in a database to complete archiving of the medical image file, and archives the file first, and the medical image files are analyzed through the temporary cache areas according to the temporary files, so that the file analyzing and warehousing efficiency is improved, the medical image files in the network port file queue are further quickly processed, and the situation that the processing efficiency is lower and lower due to file accumulation is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for archiving medical image files in storage according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a method for archiving medical image files in storage according to the prior art;
fig. 3 is a schematic flow chart illustrating another method for archiving medical image files according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a specific electronic device according to an embodiment of the disclosure.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
It is to be noted that technical terms or scientific terms used in the embodiments of the present disclosure should have a general meaning as understood by those having ordinary skill in the art to which the present disclosure belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the disclosure is not intended to indicate any order, quantity, or importance, but rather to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
As described in the background art, since the network port file queue may receive a large number of medical image files with different file sizes at irregular time, in the prior art, referring to fig. 2, after the network port file queue receives the medical image files, the medical image files are generally parsed one by one in the network port file queue (a 0), and after the parsing is completed, the files are archived and saved (a1), and the parsing information is saved in the database. However, in this method, the sizes of the files are different, so the parsing speeds of the files are different, and the efficiency of traversal reading is lower as the number of the files in the same folder is larger, for example, one file is found from 10000 files for reading and one file is found from 100 files for reading, the reading speeds are completely different, and in addition, the same file is easy to generate an IO conflict problem in the multithread IO operation process, so that additional processing time is increased, and meanwhile, when the number of the cache files in the port file queue reaches a certain number, the overall file migration time is geometrically increased. In view of the above problems, the present disclosure converts an original unequal-size original file into an equal-size temporary file, which is much smaller than the original file, and can realize fast reading and writing under the same hardware condition; meanwhile, a file processing flow is changed, a file is rapidly filed, a network port file queue is rapidly emptied, then the converted temporary files with the same size are placed into a plurality of different temporary cache areas, each thread reads one temporary cache area in a multithreading mode, after the temporary files are read, the filing path of the real file is found through the temporary files, the real large file is analyzed, and finally the analyzed file is analyzed and stored in a warehouse through multithreading, so that the processing speed and the service efficiency are improved.
Referring to fig. 1, a schematic flow chart of a method for archiving a medical image file in a storage mode according to an embodiment of the present disclosure is shown, where the method includes:
s101, reading key information of each medical image file in the network port file queue.
In this step, the key information of each medical file is read from the network port file queue, and the key information belongs to a small part of information of each medical file and is mainly used for simply classifying each medical file. Alternatively, the key information may include examination time, patient number ID base field, and other simple information.
It should be noted that dicom (digital Imaging and Communications in medicine), which is an international standard for medical images and related information, is an international standard (ISO 12052). It defines a medical image format that can be used for data exchange with a quality that meets clinical needs. After the medical examination of the general patient, the generated medical image file is sent to the designated network port file queue through the network, and after each network port file queue receives the medical image file, the file is filed and put in storage. In the prior art, all information of each medical image file needs to be read, then analysis, classification and filing are carried out, and analysis information is stored in a database. In the step, only a small part of key information of each file is needed to be read in the network port file queue, and the whole information of each file is not needed to be read, so that the time for reading the files is shortened.
S102, generating an archive file of the medical image file based on the key information, and storing the archive file in a preset file.
In this step, after the key information of each medical image file is acquired, the archive file of the medical image file is generated according to the key information, and optionally, the archive file is obtained after the medical image files are classified and named according to the key information. The method includes the steps that after a filing file is obtained, the filing file is stored in a preset file, so that the medical image file in a network port file queue can be quickly filed and stored, accumulation of the file is avoided, optionally, the preset file can be set through requirements, optionally, the preset file can be set in a local disk, optionally, the preset file can be set in disks of other hardware devices, and file transmission can be conducted through a network. Optionally, the preset document may also be set in a mobile hard disk or a usb disk. The specific position for setting the preset document is not limited herein.
S103, obtaining the saving path information of the archived file, and generating a temporary file based on the saving path information and the key information.
In this step, when the archive file generated by each medical image file is saved in a preset document, the saving path information of the archive file is acquired, and a temporary file is generated through the saving path and the key information of each medical image file, optionally, the temporary file is a 1KB file or a temporary file with other size.
S104, distributing the temporary files to a preset number of created cache regions based on the key information, and analyzing the medical image files in each cache region through the temporary files to obtain analysis information of the medical image files.
In this step, after the temporary file is generated, a preset number of cache regions are created, the temporary file is distributed to the created preset number of cache regions according to the key information, in each cache region, a storage path of the archive file corresponding to the medical image file is obtained through the temporary file, and the medical image file can be analyzed by accessing the path, so that the analysis information of the medical image file is obtained.
It should be noted that, because a plurality of created cache regions may be provided, each cache region performs file parsing independently, and the total speed of file parsing is further increased. The original medical image file can be analyzed through the storage path information in the temporary file, so that the medical image file can be filed and stored firstly and then analyzed, the files in the network port file queue can be emptied quickly, and file accumulation is avoided.
In some embodiments, the preset number of created cache regions may be set as needed, and in general, the larger the preset number is set, the faster the total speed of parsing the medical image file is, without considering the performance and efficiency of the hardware device. However, as the number of cache regions increases, the processing speed of each thread is affected as the number of open threads increases because each thread of the computer processes a file of one cache region independently. The preset number can be set in consideration of the processing workload and the hardware device. Optionally, the preset number may be set through an experiment, that is, the preset number is set from small to large, the total speed of the analyzed files at this time is detected, and when the total speed of the data volume of the analyzed files corresponding to a certain preset number just starts to decrease, the preset number is set as the final target preset number.
To further improve the efficiency of determining the preset number and to ensure that the overall speed of parsing the medical image file is maximized, in some embodiments, the preset number is determined by the following formula:
-kx 2 + V 0 *x – V general assembly =0;
Wherein,V general assemblyRepresenting the total speed of processing the medical image file by the current computer,xthe preset number is represented by a number of bits,V 0 representing the speed of the computer processing the medical image file when the preset number is 1,krepresenting the efficiency coefficient of the current computer.
Specifically, the above formula for determining the predetermined number is a quadratic function, and the opening of the quadratic function faces downward, that is, there is a maximum value in the first coordinate system, and the ordinate of the maximum value corresponds to the ordinate of the maximum valueV General assemblyThe abscissa of the maximum value corresponds toxThe optimal solution of (1). Optionally, k represents an efficiency coefficient of the current computer, and is specifically related to the performance of the computer, and can be obtained through experiments. The above formula can be modified intox*(V 0 - kx)= V General assembly 。
Wherein,kxIndicating the amount by which the resolution speed per buffer decreases with an increase in the preset number.
In some embodiments, the key information includes patient name information; distributing the temporary file to a preset number of cache regions based on the key information, including:
acquiring patient name information of the temporary file;
determining whether patient name information identical to the patient name information exists in each cache region;
in response to determining that the same patient name information exists in a first target cache of the respective caches, distributing the temporary file to the first target cache.
Specifically, in order to achieve that data of the same patient can be completely processed at one time and subsequent consultation is facilitated, the key information comprises patient name information, when distributing temporary files, the patient name information of each temporary file is obtained first, then whether the patient name information identical to the patient name information exists in each cache region or not is judged, and if yes, the temporary files are distributed to a first target cache region where the patient name information identical to the patient name information exists.
In order to avoid file confusion when different patients have different names, in some embodiments, the key information of the medical image file further includes patient number information, the patient number information is different, and when the patient name information of the medical image file is the same, whether the patient number information is the same or not is further compared, so that the condition that different patients have the same names and cannot be distinguished only through the patient name information is avoided. Further judgment is performed by the patient number information, and different patients among the patients with the same name can be identified. Optionally, in order to further improve the efficiency of determining the patient's rename, the patient name information may further include name information and number information, and at this time, when determining whether the same patient name information exists in the first target cache region in each cache region, it is only necessary to compare whether the patient name information is consistent. For example, when medical image detection is performed on a patient with the first name of zhang san, the patient name information is registered as zhang san 001, wherein zhang san belongs to the name information and 001 belongs to the number information. When the second patient with the third name is subjected to medical image examination, the patient name information is registered as "zhang san 002" to distinguish it from the first patient with the third name. Optionally, the identification number can be used to distinguish whether the different patients have the phenomenon of duplication.
To quickly determine whether the same patient name information exists in each of the buffers, in some embodiments, determining whether the same patient name information exists in each of the buffers includes:
creating a mark file for each cache region, acquiring the patient name information of the received temporary file when each cache region receives the temporary file, and recording the patient name information of the received temporary file in the mark file;
determining whether the same patient name information exists in each of the buffers by accessing the markup file.
Specifically, a tag file is created for each cache region, and the tag file is used for recording all patient name information existing in each cache region, so that when judging whether the same patient name information exists in each cache region or not, all temporary files in each cache region do not need to be compared one by one. Meanwhile, as each patient may have a plurality of medical image files, the name information of the patient is counted by marking the files, and the repeated comparison of the same name information of the patient is avoided.
In some embodiments, distributing the temporary file to a preset number of created buffers based on the key information includes:
in response to determining that the same patient name information does not exist in all the cache regions, distributing the temporary files to a preset number of created cache regions based on a third number of temporary files to be parsed in each of the cache regions.
Specifically, when it is determined that the same patient name information does not exist in all the cache regions, it is indicated that the temporary file at this time is a temporary file corresponding to a medical image file of a new patient, and at this time, the temporary file is distributed to the created cache regions of the preset number according to the third number of the temporary files to be analyzed in each cache region. Optionally, the temporary file is preferentially distributed to which cache region by judging which cache region has less data of the temporary file to be analyzed.
In some embodiments, determining the third number comprises:
when each cache region receives the temporary files, updating the first quantity of the temporary files which are currently accumulated and received by each cache region, and determining the third quantity according to the first quantity and the second quantity of the temporary files which are currently accumulated and analyzed by each cache region.
Specifically, the third number of the temporary files to be analyzed in each cache region is determined according to the first number of the temporary files which are received in each cache region in an accumulated manner and the second number of the temporary files which are analyzed in the accumulated manner. Optionally, the third number of the temporary files to be analyzed in each cache region may also be directly counted, which is not limited herein. Optionally, in order to prevent each data statistic from crossing the boundary and causing a system error, a preset boundary value is set, and in response to determining that any one of the first number, the second number, and the third number is greater than the preset boundary value, any data greater than the boundary value is cleared.
In some embodiments, distributing the temporary file to a preset number of created buffers based on a third number of temporary files to be parsed in each of the buffers includes:
in response to determining that the first number of all of the buffers is greater than the second number, distributing the temporary file into the third smallest number of buffers;
in response to determining that the first number of cache regions equal to the second number exists, distributing the temporary file into the first number of cache regions equal to the second number.
Specifically, in a general case, when all the cache regions are in the parsing state, that is, there are temporary files to be parsed, at this time, the first number of all the cache regions is greater than the second number, and at this time, the temporary files are distributed to the cache region with the smallest third number, so that the temporary file regions to be parsed of each cache region are equal. And when the first number of the existing cache regions is equal to the second number, namely the existing cache regions are in an idle state, sending the temporary file to the idle cache regions. Optionally, when there are multiple idle cache regions, the allocation may be performed randomly, or a third target cache region with the highest resolution speed in the multiple idle cache regions may be determined through a history resolution record, and the temporary file is distributed to the third target cache region.
To further improve parsing efficiency, in some embodiments, distributing the temporary file to the third smallest number of buffers includes:
in response to determining that the third number of the smallest cache regions is multiple and the number of the medical image files in the network port file queue is greater than a preset value within a preset time, determining a fourth number of largest second target cache regions of the temporary files which are analyzed within the preset time from the multiple third number of the smallest cache regions;
and distributing the temporary file to the second target cache region.
Specifically, when the number of the cache regions with the minimum third number is multiple, that is, the third number of at least two cache regions is equal, a cache region with the highest resolution speed needs to be further selected for preferential distribution. At this time, the workload of each buffer area in the preset time is ensured to be saturated through the fact that the number of the medical image files in the network port file queue is greater than the preset value in the preset time, namely no buffer area has idle time, and then the second target buffer area with the largest fourth number of the analyzed temporary files in the preset time is the buffer area with the fastest analysis speed in the plurality of buffer areas with the smallest number. Optionally, when the third minimum number of cache regions is multiple, the temporary file may be randomly distributed from the cache regions, which all belong to the protection scope of the present application.
And S105, storing the analysis information into a database to finish warehousing and filing of the medical image file.
In this step, the analysis information of the medical image file is obtained and stored in the database, thereby completing the warehousing and filing of the medical image file.
Referring to fig. 3, a schematic flow chart of another method for archiving medical image files according to an embodiment of the present disclosure is shown, the method first monitors whether the medical image file is received in the network port file queue, when the medical image file is received in the network port file queue, the key information of the file is analyzed, the file refers to a medical image file, if the analysis is unsuccessful, the file is indicated as an abnormal file, if the analysis is successful, the key information is read, and optionally, the key information includes the name and file ID of the patient, and the medical image file is filed and stored according to the key information, and at the same time, a temporary file is generated, the size of the optional temporary file is 1KB, the temporary file comprises a storage path of the medical image file and key information thereof, and the temporary file is distributed to each cache region, namely the cache region 1 to the cache region n, through the key information. Each cache region corresponds to one thread, and each thread independently analyzes. And each thread analyzes the original medical image file through the storage path information in the temporary file, and stores the analyzed information into the database after analysis, thereby finishing the archiving and warehousing of the medical image file.
The method for archiving the medical image files in storage comprises the steps of reading key information of each medical image file in a network port file queue, generating an archived file of the medical image file according to the key information, storing the archived file in a preset file, obtaining storage path information of the archived file, generating a temporary file based on the storage path information and the key information, distributing the temporary file to a preset number of established cache regions based on the key information, analyzing the medical image file in each cache region through the temporary file to obtain analysis information of the medical image file, storing the analysis information into a database to finish warehousing and archiving the medical image file, archiving the file firstly, analyzing the medical image file according to the temporary file through a plurality of temporary cache regions simultaneously, the file analyzing and warehousing efficiency is improved, the medical image files in the network port file queue are further processed quickly, and the situation that the processing efficiency is lower and lower due to file accumulation is avoided.
It should be noted that the method of the embodiments of the present disclosure may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the devices may only perform one or more steps of the method of the embodiments of the present disclosure, and the devices may interact with each other to complete the method.
It should be noted that the above describes some embodiments of the disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, corresponding to the method of any embodiment, the present disclosure further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the method for archiving the medical image file according to any embodiment is implemented.
Fig. 4 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the above embodiment is used to implement the method for archiving the medical image file in storage according to any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method for archiving medical image files according to any of the above embodiments, corresponding to any of the above embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the method for archiving the medical image file in a warehouse as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the present disclosure, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the disclosure. Furthermore, devices may be shown in block diagram form in order to avoid obscuring embodiments of the present disclosure, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the present disclosure are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that the embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The disclosed embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalents, improvements, and the like that may be made within the spirit and principles of the embodiments of the disclosure are intended to be included within the scope of the disclosure.
Claims (10)
1. A method for warehousing and archiving medical image files comprises the following steps:
reading key information of each medical image file in a network port file queue;
generating an archive file of the medical image file based on the key information, and storing the archive file in a preset file;
acquiring saving path information of the archived file, and generating a temporary file based on the saving path information and the key information;
distributing the temporary files to a preset number of created cache regions based on the key information, and analyzing the medical image files through the temporary files in each cache region to obtain analysis information of the medical image files;
and storing the analysis information into a database to finish warehousing and filing of the medical image file.
2. The method of claim 1, wherein the key information includes patient name information; distributing the temporary file to a preset number of created cache regions based on the key information, including:
acquiring patient name information of the temporary file;
determining whether patient name information identical to that of the temporary file exists in each cache region;
in response to determining that the same patient name information exists in a first target cache of the respective caches, distributing the temporary file into the first target cache.
3. The method of claim 2, wherein distributing the temporary file into a preset number of created buffers based on the critical information comprises:
in response to determining that the same patient name information does not exist in all the cache regions, distributing the temporary files to a preset number of created cache regions based on a third number of temporary files to be parsed in each of the cache regions.
4. The method of claim 2 or 3, wherein determining whether the same patient name information is present in each of the buffers comprises:
creating a mark file for each cache region, acquiring the patient name information of the received temporary file when each cache region receives the temporary file, and recording the patient name information of the received temporary file in the mark file;
determining whether the same patient name information exists in each of the buffers by accessing the markup file.
5. The method of claim 3, wherein determining the third number of processes comprises:
when each cache region receives the temporary files, updating the first quantity of the temporary files which are currently accumulated and received by each cache region, and determining the third quantity according to the first quantity and the second quantity of the temporary files which are currently accumulated and analyzed by each cache region.
6. The method of claim 5, wherein distributing the temporary file to a preset number of created buffers based on a third number of temporary files to be parsed in each of the buffers comprises:
in response to determining that the first number of all of the buffers is greater than the second number, distributing the temporary file into the third smallest number of buffers;
in response to determining that the first number of cache regions equal to the second number exists, distributing the temporary file into the first number of cache regions equal to the second number.
7. The method of claim 6, wherein distributing the temporary file into the third minimum number of buffers comprises:
in response to determining that the third minimum number of cache regions is multiple and the number of the medical image files in the network port file queue is greater than a preset value within a preset time, determining a second target cache region with the maximum number of temporary files which are analyzed within the preset time from the multiple third minimum number of cache regions;
and distributing the temporary file to the second target cache region.
8. The method of claim 1, wherein the preset number is determined by the formula:
-kx 2 + V 0 *x – V general assembly =0 ;
Wherein,V general assemblyRepresenting the total speed of processing the medical image file by the current computer,xthe preset number is represented by a number of bits,V 0 representing the speed of the computer processing the medical image file when the preset number is 1,krepresenting the efficiency coefficient of the current computer.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable by the processor, the processor implementing the method of any one of claims 1 to 8 when executing the program.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110931540.1A CN113609074B (en) | 2021-08-13 | 2021-08-13 | Method and related device for warehousing and archiving medical image file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110931540.1A CN113609074B (en) | 2021-08-13 | 2021-08-13 | Method and related device for warehousing and archiving medical image file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113609074A true CN113609074A (en) | 2021-11-05 |
CN113609074B CN113609074B (en) | 2022-03-15 |
Family
ID=78340687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110931540.1A Active CN113609074B (en) | 2021-08-13 | 2021-08-13 | Method and related device for warehousing and archiving medical image file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113609074B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114119988A (en) * | 2021-11-24 | 2022-03-01 | 四川大学华西医院 | MR scanning data storage method, DICOM router and system |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1535444A (en) * | 2001-02-12 | 2004-10-06 | Method for producing documented medical image information | |
US20140169645A1 (en) * | 2012-12-14 | 2014-06-19 | Advanced Medical Imaging Development S.R.L. | Method and system for medical imaging data management |
CN104346328A (en) * | 2013-07-23 | 2015-02-11 | 同程网络科技股份有限公司 | Vertical intelligent crawler data collecting method based on webpage data capture |
CN106250465A (en) * | 2016-07-29 | 2016-12-21 | 沈阳华创风能有限公司 | A kind of method and device improving database filing efficiency |
JP2017072965A (en) * | 2015-10-07 | 2017-04-13 | 株式会社バッファロー | Archive system, archive device, and computer program for archive |
CN107945852A (en) * | 2018-01-03 | 2018-04-20 | 王其景 | Method, cloud platform and the system of medical imaging data sharing |
US20190121865A1 (en) * | 2017-10-20 | 2019-04-25 | Bank Of America Corporation | System for synchronous document captures into an asynchronous archive and document-level archiving reconciliation |
CN110767291A (en) * | 2019-10-15 | 2020-02-07 | 武汉联影医疗科技有限公司 | Medical image processing method, apparatus and storage medium |
CN111246314A (en) * | 2020-01-14 | 2020-06-05 | 深圳市华曦达科技股份有限公司 | Time-shifting live broadcast method, server device, client device and live broadcast system |
CN111415726A (en) * | 2020-03-13 | 2020-07-14 | 远影医疗信息科技(北京)有限公司 | Medical data information digital image data cloud storage method |
US20210090719A1 (en) * | 2018-04-05 | 2021-03-25 | Jaap Teeuwen | Digital image transfer system |
-
2021
- 2021-08-13 CN CN202110931540.1A patent/CN113609074B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1535444A (en) * | 2001-02-12 | 2004-10-06 | Method for producing documented medical image information | |
US20140169645A1 (en) * | 2012-12-14 | 2014-06-19 | Advanced Medical Imaging Development S.R.L. | Method and system for medical imaging data management |
CN104346328A (en) * | 2013-07-23 | 2015-02-11 | 同程网络科技股份有限公司 | Vertical intelligent crawler data collecting method based on webpage data capture |
JP2017072965A (en) * | 2015-10-07 | 2017-04-13 | 株式会社バッファロー | Archive system, archive device, and computer program for archive |
CN106250465A (en) * | 2016-07-29 | 2016-12-21 | 沈阳华创风能有限公司 | A kind of method and device improving database filing efficiency |
US20190121865A1 (en) * | 2017-10-20 | 2019-04-25 | Bank Of America Corporation | System for synchronous document captures into an asynchronous archive and document-level archiving reconciliation |
CN107945852A (en) * | 2018-01-03 | 2018-04-20 | 王其景 | Method, cloud platform and the system of medical imaging data sharing |
US20210090719A1 (en) * | 2018-04-05 | 2021-03-25 | Jaap Teeuwen | Digital image transfer system |
CN110767291A (en) * | 2019-10-15 | 2020-02-07 | 武汉联影医疗科技有限公司 | Medical image processing method, apparatus and storage medium |
CN111246314A (en) * | 2020-01-14 | 2020-06-05 | 深圳市华曦达科技股份有限公司 | Time-shifting live broadcast method, server device, client device and live broadcast system |
CN111415726A (en) * | 2020-03-13 | 2020-07-14 | 远影医疗信息科技(北京)有限公司 | Medical data information digital image data cloud storage method |
Non-Patent Citations (3)
Title |
---|
尤超: "DICOM文件头信息读取及解析", 《微型电脑应用》 * |
曹奕雯等: "PACS关键技术及国内应用", 《医疗卫生装备》 * |
赵玉兰等: "区域医疗影像数据中心的设计与建设", 《信息技术》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114119988A (en) * | 2021-11-24 | 2022-03-01 | 四川大学华西医院 | MR scanning data storage method, DICOM router and system |
CN114119988B (en) * | 2021-11-24 | 2023-04-11 | 四川大学华西医院 | MR scanning data storage method, DICOM router and system |
Also Published As
Publication number | Publication date |
---|---|
CN113609074B (en) | 2022-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10826980B2 (en) | Command process load balancing system | |
RU2673694C2 (en) | Modified memory compression | |
US9881015B2 (en) | Method and system for previewing file information | |
US20170308369A1 (en) | Data processing method and device of preset application after upgrading | |
US8161128B2 (en) | Sharing of data across disjoint clusters | |
EP2570912A1 (en) | Storage method and device based on data content identification | |
CN110311973B (en) | Multi-tenant-oriented image cloud service system and method | |
US20160179565A1 (en) | Device Remote Access Method, Thin Client, and Virtual Machine | |
US11765469B2 (en) | Image capturing apparatus, device, control method, and computer-readable storage medium | |
CN103632092A (en) | Method and system for file scanning | |
CN113609074B (en) | Method and related device for warehousing and archiving medical image file | |
US10346700B1 (en) | Object recognition in an adaptive resource management system | |
US9380126B2 (en) | Data collection and distribution management | |
CN107515724B (en) | Method and apparatus for reproducing input and output of storage system | |
US11347551B2 (en) | Methods, systems, articles of manufacture and apparatus to manage memory allocation | |
CN111414337B (en) | File reading method and device, computing equipment and storage medium | |
US20220108427A1 (en) | Method and an electronic device for detecting and removing artifacts/degradations in media | |
CN115470190A (en) | Multi-storage-pool data classification storage method and system and electronic equipment | |
CN112748854B (en) | Optimized access to a fast storage device | |
US20150277784A1 (en) | Storage device, information processing device, data access method and program | |
EP3048541A1 (en) | File access method and device | |
CN117762335B (en) | Writing method, device, equipment and storage medium for Ceph object | |
CN112306901B (en) | Disk refreshing method and device based on layered storage system, electronic equipment and medium | |
KR101367062B1 (en) | Direct file access system and method using disk interface command in computer foresic process | |
US20240330374A1 (en) | Paginated Listing with Partial Pages |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information |
Inventor after: Zhai Rui Inventor after: Wang Hongli Inventor before: Zhai Rui |
|
CB03 | Change of inventor or designer information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |