CN115865882A - Image cloud information based on restful API and DICOM file acquisition method and system thereof - Google Patents

Image cloud information based on restful API and DICOM file acquisition method and system thereof Download PDF

Info

Publication number
CN115865882A
CN115865882A CN202210162109.XA CN202210162109A CN115865882A CN 115865882 A CN115865882 A CN 115865882A CN 202210162109 A CN202210162109 A CN 202210162109A CN 115865882 A CN115865882 A CN 115865882A
Authority
CN
China
Prior art keywords
information
image
pacs
dicom file
api
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.)
Pending
Application number
CN202210162109.XA
Other languages
Chinese (zh)
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.)
Zhejiang Keyi Intelligent Medical Technology Co ltd
Original Assignee
Zhejiang Keyi Intelligent Medical Technology 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 Zhejiang Keyi Intelligent Medical Technology Co ltd filed Critical Zhejiang Keyi Intelligent Medical Technology Co ltd
Priority to CN202210162109.XA priority Critical patent/CN115865882A/en
Publication of CN115865882A publication Critical patent/CN115865882A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a restful API-based image cloud information and a DICOM file acquisition method thereof, which overcome the problems of low image cloud information and DICOM file acquisition efficiency and unsafe data in the prior art, and comprise the following steps: s1: the web terminal initiates a downloading request of image one-time check to the API of the third-party PACS; s2: the third party PACS obtains information from a database of the third party PACS; s3: the third party PACS returns the acquired information to the web terminal; s4: the web terminal downloads image data according to the acquired information; s5: the web terminal displays the downloaded DICOM file. Also provides image cloud information based on restful API and a DICOM file acquisition system thereof. The method reduces the intervention cost with a third-party PACS, improves the project implementation efficiency, and simultaneously provides the security in the network transmission of the PACS.

Description

Image cloud information based on restful API and DICOM file acquisition method and system thereof
Technical Field
The invention relates to the technical field of medical image informatization, in particular to image cloud information based on restful API and a DICOM file acquisition method and system thereof.
Background
The image cloud is a technology for realizing classification filing management, multifunctional retrieval analysis and large-range barrier-free data sharing of massive medical image data through cloud computing technology transmission, storage, analysis and management. DICOM (Digital Imaging and Communications in Medicine) is an international standard for medical images and related information (ISO 12052) that defines a format for medical images that can be used for data exchange with quality meeting clinical needs. API Interface (English: application Programming Interface [1 ]), a computing Interface, defines the interactions between software intermediaries and the types of calls (calls) or requests (requests) that can be made.
In the conventional DICOM communication, there are two main standard DICOM acquisition methods:
1. query and Retrieve mode (Query uses c-find method in DICOM protocol to obtain checking information in PACS, retrieve uses c-move or c-get method in DICOM protocol to obtain DICOM image information)
And firstly acquiring a patient list through c-find, and then sending an image request to acquire an image file. This approach has the following disadvantages:
A. a third party PACS manufacturer is required to support a Query and Retrieve protocol with higher threshold, which is not beneficial to interface butt joint among manufacturers;
B. for synchronous transmission, there is a precedence order, which is less efficient than asynchronous transmission;
C. the dependence on the request format is large, and image acquisition fails immediately once the request format is wrong.
2. WADO mode (Web Access to DICOM Persistent Object, part of DICOM standard)
A mechanism is provided for accessing and rendering DICOM objects from HTML pages or XML documents via HTTP or HTTPS protocols and using DICOM identifiers to address accessing DICOM objects in an Internet environment. The main problems with this approach are as follows:
A. a third party PACS is required to support a QR protocol;
B. the SCP address of each SERVER needs to be maintained in WADO SERVER;
C. if the number of the accessed images is large, multiple requests need to be sent;
D. the request data is in plaintext and is unsafe.
Disclosure of Invention
The invention aims to solve the problems of calculation in the prior art, and provides a restful API-based image cloud information and a DICOM file acquisition method and system thereof, which reduce the intervention cost with a third-party PACS, improve the project implementation efficiency, and provide the security in network transmission of the PACS.
In order to achieve the purpose, the invention adopts the following technical scheme: an image cloud information and DICOM file acquisition method based on restful API is characterized by comprising the following steps:
s1: the web terminal initiates a downloading request of image one-time check to the API of the third-party PACS;
s2: the third party PACS obtains information from a database of the third party PACS;
s3: the third party PACS returns the acquired information to the web terminal;
s4: and the web terminal downloads the image data according to the acquired information.
The PASC is a medical image archiving and communication system, and is a computer or network system dedicated to storing, acquiring, sending and displaying medical images. The Web front end comprises various WEB servers such as nginx, IIS, tomcat and the like. The invention mainly interacts with the API of the PACS of the third party, and the API can be realized by various WEB servers such as nginx, IIS, tomcat and the like; read-write separation, which separates information acquisition from image acquisition to achieve asynchronous function, thus greatly improving efficiency; the invention only needs to accord with the restful communication protocol, so that windows, linux, unix and MacOS operating systems can be supported.
Preferably, the method further comprises the following steps: step S5: the web terminal displays the downloaded DICOM file. The standard protocol of the DICOM is not required to be realized, the standardization of the DICOM file is not verified, and the threshold is low.
Preferably, in step S1, the format of the initiated download request is: http:// xxx/tudyUID =1.2.410.2xxxx &token = xxxx. Wherein x represents a variable; the token is a special frame capable of controlling a site to occupy a medium so as to distinguish a data frame from other control frames, and the token is a basis for verifying whether the data frame is downloadable or not and is authorized to be verified when the data frame is retrieved through the token.
Preferably, the step S2 is further expressed as:
the API service of the third party PACS needs to verify whether the token in the downloading request is legal or not, and the third party PACS can go to the own database to acquire information if the token is legal. The token information can be integrated to complete authorization verification when requested, and the security is high.
Preferably, in step S2: the acquired information includes information of the examination and an image download address. And acquiring basic information of the PACS image through a restful interface, and downloading the image through an http address. And all the image basic information and the image downloading addresses which are checked once can be downloaded by one request without initiating multiple requests, so that the acquisition performance is high. Meanwhile, if the PACS of the third party does not support the Query and Retrieve modes, the data source can be conveniently provided according to the restful protocol to complete the butt joint, and the integration is high.
Preferably, the step S3 is further expressed as:
and coding the checked information and the image downloading address into a json file which accords with a restful interface and returning the json file to the web terminal. The security of the PACS in network transmission is improved by the PACS image information acquisition and the DICOM file acquisition based on the restful mode. JSON (JavaScript Object Notation) is a lightweight data exchange language conceived and designed by douglas-crookford that is based on easily readable text for transmitting data objects consisting of attribute values or sequential values.
A image cloud information and DICOM file acquisition system based on restful API comprises: the system comprises a front-end UI module, a display layer module, a third-party PACS api module, a PACS service module, a database module and an operation module which are sequentially connected. The display layer module comprises a template engine rendering unit and a restful interaction unit, wherein the restful interaction unit comprises a POST request and a GET request, the POST request and the GET request are two most common HTTP methods, and the GET represents data requested from a specified resource; the POST indicates that the data to be processed is committed to the specified resource. The PACS service module is used for storing basic image information and providing DICOM image downloading service.
Preferably, the running module is a Windows host, a Linux host or a Unix host. The Linux host is a host configured by a server operating system based on a Linux kernel, and is a www, email and FTP server which is configured by subdividing the hard disk of a UNIX system complete machine and configuring each subdivided hard disk space into a www, email and FTP server with an independent domain name and an IP address. The invention can support windows, linux, unix and MacOS operating systems only by conforming to the restful communication protocol.
Therefore, the invention has the following beneficial effects: 1. the integration is convenient, the safety is strong, and the token information can be integrated during the request to complete the authorization verification; 2. read-write separation, which separates information acquisition from image acquisition to achieve asynchronous function, thus greatly improving efficiency; 3. the threshold is low, cross-platform support is achieved, and acquisition capacity is high.
Drawings
FIG. 1 is a flow chart of the operation of the method of the present invention;
FIG. 2 is a block diagram of the system of the present invention;
1. a front end UI module; 2. a display layer module; 3. a template engine rendering unit; 4. a restful interaction unit; 5. a third party PACS api module; 6. a PACS service module; 7. a database module; 8. and operating the module.
Detailed Description
The invention is described in further detail below with reference to the following detailed description and accompanying drawings:
in the embodiment shown in fig. 1, an image cloud information based on restful API and a DICOM file acquiring method thereof can be seen, and the operation flow thereof is as follows: step one, a web terminal initiates a downloading request of image one-time check to an API of a third party PACS; step two, the third party PACS obtains information from a database of the third party PACS; step three, the third party PACS returns the acquired information to the web terminal; step four, the web terminal downloads image data according to the acquired information; and step five, displaying the downloaded DICOM file by the web terminal. The invention mainly interacts with the API of the PACS of the third party, and the API can be realized by various WEB servers such as nginx, IIS, tomcat and the like; read-write separation, which separates information acquisition from image acquisition to achieve asynchronous function, thus greatly improving efficiency; the invention only needs to accord with the restful communication protocol, so that windows, linux, unix and MacOS operation systems can be supported.
A image cloud information and DICOM file acquisition system based on restful API is shown in figure 2 and comprises a front-end UI module 1, a display layer module 2, a third-party PACS API module 5, a PACS service module 6, a database module 7 and an operation module 8 which are connected in sequence. The front-end UI module comprises a TOKEN, computer languages such as Html, CSS and jQuery, and pictures. The presentation layer module comprises a template engine rendering unit 3 and a restful interaction unit 4, wherein the restful interaction unit comprises a POST request and a GET request, the POST request and the GET request are two most common HTTP methods, and the GET represents data requested from a specified resource; POST represents the submission of data to be processed to a specified resource. The third party PACS api module may verify that the token is legitimate. The PACS service module is used for storing basic image information and providing DICOM image downloading service. The running module is a Windows host, a Linux host or a Unix host. The Linux host is a host configured by a server operating system based on a Linux kernel, and is a www, email and FTP server which is configured by subdividing the hard disk of a UNIX system complete machine and configuring each subdivided hard disk space into a www, email and FTP server with an independent domain name and an IP address. The invention can support windows, linux, unix and MacOS operating systems as long as the invention accords with the restful communication protocol.
According to the invention, through PACS image information acquisition and DICOM file acquisition based on the restful mode, if a third-party PACS does not support the Query and Retrieve mode, a data source can be provided according to the restful protocol conveniently to complete butt joint, and the integration is convenient; information acquisition and image acquisition are separated, so that an asynchronous function is achieved, and efficiency is greatly improved.
The following further illustrates the technical solutions and effects of the present invention by means of specific examples.
The first step is as follows: API for web terminal to initiate downloading request of image one-time check to third party PACS
The format is as follows: http:// xxx/tudyUID =1.2.410.2xxxx &token =xxxx, wherein token is a basis for verifying whether the file can be downloaded, and authorization verification is performed through the token when the file is read.
The second step: third party PACS gets information from its own database
The API service of the third party PACS verifies whether the token is legal or not, and if so, the API service of the third party PACS goes to the own database to obtain the information and the image downloading address of the check.
The third step: the third party PACS returns the acquired information to the web terminal
And coding the checked information and the image downloading address into a json file which accords with a restful interface and returning the json file to the web terminal. And acquiring basic information of the PACS image through a restful interface.
The fourth step: the web terminal downloads image data according to the acquired information
And the terminal images and stores http service downloading data according to the http downloading address received from the API, and downloads the image through the http address.
The fifth step: web terminal display downloaded DICOM files
The invention mainly interacts with the API of the PACS of a third party, the API can be realized by various WEB servers such as nginx, IIS, tomcat and the like, template rendering and Restful interaction are used as display layers, and the access token is used as the authorization permission when the API is retrieved. The method reduces the intervention cost with the third-party PACS, improves the project implementation efficiency and improves the security in the network transmission of the PACS.
The above-described embodiments are only preferred embodiments of the present invention, and are not intended to limit the present invention in any way, and other variations and modifications may be made without departing from the spirit of the invention as set forth in the claims.

Claims (8)

1. An image cloud information and DICOM file acquisition method based on restful API is characterized by comprising the following steps:
s1: the web terminal initiates a downloading request of the primary image inspection to an API of a third-party PACS;
s2: the third party PACS obtains information from a database of the third party PACS;
s3: the third party PACS returns the acquired information to the web terminal;
s4: and the web terminal downloads the image data according to the acquired information.
2. The image cloud information and DICOM file acquiring method based on restful API as claimed in claim 1, further comprising:
step S5: the web terminal displays the downloaded DICOM file.
3. The image cloud information and DICOM file acquiring method based on restful API as claimed in claim 1, wherein in step S1, the format of the initiated download request is:
http://xxx/tudyUID=1.2.410.2xxxx&toke=xxxx。
4. the image cloud information and DICOM file acquiring method based on restful API as claimed in claim 3, wherein the step S2 further comprises:
the API service of the third party PACS needs to verify whether the token in the downloading request is legal or not, and the third party PACS can go to the own database to acquire information if the token is legal.
5. The image cloud information and DICOM file acquiring method based on restful API as claimed in claim 1 or 4, wherein in step S2: the acquired information includes the information of the examination and the image download address.
6. The image cloud information and DICOM file acquiring method according to claim 1 or 2, wherein the step S3 further includes:
and coding the checked information and the image downloading address into a json file which accords with a restful interface and returning the json file to the web terminal.
7. The image cloud information and DICOM file acquisition system based on the restful API is applied to any one of claims 1 to 6 and is characterized by comprising a front-end UI module, a display layer module, a third-party PACS API module, a PACS service module, a database module and an operation module which are sequentially connected.
8. The image cloud information and DICOM file acquisition system based on restful API as claimed in claim 7, wherein the operation module is Windows host, linux host or Unix host.
CN202210162109.XA 2022-02-22 2022-02-22 Image cloud information based on restful API and DICOM file acquisition method and system thereof Pending CN115865882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210162109.XA CN115865882A (en) 2022-02-22 2022-02-22 Image cloud information based on restful API and DICOM file acquisition method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210162109.XA CN115865882A (en) 2022-02-22 2022-02-22 Image cloud information based on restful API and DICOM file acquisition method and system thereof

Publications (1)

Publication Number Publication Date
CN115865882A true CN115865882A (en) 2023-03-28

Family

ID=85659981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210162109.XA Pending CN115865882A (en) 2022-02-22 2022-02-22 Image cloud information based on restful API and DICOM file acquisition method and system thereof

Country Status (1)

Country Link
CN (1) CN115865882A (en)

Similar Documents

Publication Publication Date Title
US8572023B2 (en) Data services framework workflow processing
US10108628B2 (en) Access control for unprotected data storage system endpoints
US7653935B2 (en) File server for translating user identifier
JP2019012529A (en) Document management and collaboration system
US20110153351A1 (en) Collaborative medical imaging web application
US20150156190A1 (en) Dynamically mapping users to groups
US20110110568A1 (en) Web enabled medical image repository
TW201407374A (en) An integrated storage platform system and method thereof
WO2013143403A1 (en) Method and system for accessing website
US10476936B1 (en) Plugin-based file transfer systems and/or methods
EP3891690B1 (en) Intelligent meta pacs system and server
US10789375B2 (en) Unified storage management
US10854328B2 (en) Universal web service for DICOM objects
RU2597518C2 (en) Dynamic image result stitching
WO2012012075A1 (en) System for replication and delivery of remote data and accumulated metadata with enhanced display
US11743320B2 (en) File storage and retrieval
US20050177577A1 (en) Accessing data on remote storage servers
WO2020224108A1 (en) Url interception and conversion method, device, and computer apparatus
CN115865882A (en) Image cloud information based on restful API and DICOM file acquisition method and system thereof
CN110827955A (en) File lookup method and device, computer-readable storage medium and electronic equipment
US8285759B2 (en) Techniques to support disparate file systems
US8453166B2 (en) Data services framework visibility component
CN113783883A (en) Network picture authority control method, medium and device
US11449512B2 (en) Value help functionality in distributed cloud environment
WO2023230797A1 (en) Cross-system test method and apparatus

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