Getting DICOM instance metadata from HealthImaging
Use the GetDICOMInstanceMetadata action to retrieve the metadata from a DICOM
instance in a HealthImaging data store by specifying the
Series, Study, and Instance UIDs associated with the resource. The API will only return instance
metadata from primary image sets unless the optional image set
parameter is provided. You can retrieve any instance metadata (from primary or non-primary image sets)
in the data store by specifying the imageSetId as a query parameter.
To get DICOM instance metadata (.json)
-
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. -
Construct a URL for the request using the values for
datastoreId,studyInstanceUID,seriesInstanceUID,sopInstanceUID, andimageSetId. 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/metadata?imageSetId=image-set-id -
Prepare and send your request.
GetDICOMInstanceMetadatauses a HTTP GET request with AWS Signature Version 4 signing protocol. The following code example uses thecurlcommand line tool to get DICOM instance metadata (.jsonfile) from HealthImaging.Note
The Transfer Syntax UID indicated in the metadata matches the Stored Transfer Syntax UID (
StoredTransferSyntaxUID) in HealthImaging.