Getting DICOM instance frames from HealthImaging
Use the GetDICOMInstanceFrames action to retrieve single or batch image frames
(multipart request) from a DICOM instance in a HealthImaging data store by specifying the Series UID, Study UID, Instance
UIDs, and frame numbers associated with a resource. You can specify the image set from which instance frames should be retrieved by
providing the image set ID as a query parameter. The API will only return instance frames from
primary image sets unless the optional image set parameter
is provided. You can retrieve any instance frame (from primary or non-primary image sets) in the
data store by specifying the imageSetId as a query parameter.
DICOM data can be retrieved in either its stored transfer syntax or as uncompressed (ELE) format.
To get DICOM instance frames (multipart)
-
Collect HealthImaging
datastoreIdandimageSetIdparameter values. -
Use the
GetImageSetMetadataaction with thedatastoreIdandimageSetIdparameter values to retrieve associated metadata values forstudyInstanceUID,seriesInstanceUID, andsopInstanceUID. For more information, see Getting image set metadata. -
Determine the image frames to retrieve from the associated metadata to form the
frameListparameter. TheframeListparameter is a comma-separated list of one or more non-duplicate frame numbers, in any order. For example, the first image frame in the metadata will be frame 1.-
Single-frame request:
/frames/1 -
Multi-frame request:
/frames/1,2,3,4
-
-
Construct a URL for the request using the values for
datastoreId,studyInstanceUID,seriesInstanceUID,sopInstanceUID,imageSetId, andframeList. To view the entire URL path in the following example, scroll over the Copy button. The URL is of the form:GET https://dicom-medical-imaging.region.amazonaws.com/datastore/datastore-id/studies/study-instance-uid/series/series-instance-uid/instances/sop-instance-uid/frames/1?imageSetId=image-set-id -
Prepare and send your request.
GetDICOMInstanceFramesuses a HTTP GET request with AWS Signature Version 4 signing protocol. The following code example uses thecurlcommand line tool to get image frames in amultipartresponse from HealthImaging.Note
The
transfer-syntaxUID is optional and defaults to Explicit VR Little Endian if not included. Supported transfer syntaxes include:-
Explicit VR Little Endian (ELE) -
1.2.840.10008.1.2.1(default for lossless image frames) -
High-Throughput JPEG 2000 with RPCL Options Image Compression (Lossless Only) -
1.2.840.10008.1.2.4.202- if the instance is stored in HealthImaging as1.2.840.10008.1.2.4.202 -
JPEG 2000 Lossless -
1.2.840.10008.1.2.4.90- if the instance is stored in HealthImaging as lossless. -
JPEG Baseline (Process 1): Default Transfer Syntax for Lossy JPEG 8-bit Image Compression -
1.2.840.10008.1.2.4.50- if the instance is stored in HealthImaging as1.2.840.10008.1.2.4.50 -
JPEG 2000 Image Compression -
1.2.840.10008.1.2.4.91- if the instance is stored in HealthImaging as1.2.840.10008.1.2.4.91 -
High-Throughput JPEG 2000 Image Compression -
1.2.840.10008.1.2.4.203- if the instance is stored in HealthImaging as1.2.840.10008.1.2.4.203 -
Instances stored in HealthImaging with one or more image frames encoded in the MPEG family of Transfer Syntaxes (which includes MPEG2, MPEG-4 AVC/H.264 and HEVC/H.265) may be retrieved with the corresponding transfer-syntax UID. For example,
1.2.840.10008.1.2.4.100if the instance is stored as MPEG2 Main Profile Main Level.
For more information, see Supported transfer syntaxes and Image frame decoding libraries for AWS HealthImaging.
-