Skip to content

GetImageSetMetadata

Source: src/AWS/MedicalImaging/GetImageSetMetadata.ts

Runtime binding for the GetImageSetMetadata operation (IAM action medical-imaging:GetImageSetMetadata), scoped to one Datastore.

Streams the DICOM JSON metadata blob of an image set (gzip-encoded — check contentEncoding). The metadata carries the patient/study/series DICOM attributes plus the image frame ids used with GetImageFrame. Provide the implementation with Effect.provide(AWS.MedicalImaging.GetImageSetMetadataHttp).

const getMetadata = yield* MedicalImaging.GetImageSetMetadata(datastore);
const metadata = yield* getMetadata({ imageSetId });
// metadata.imageSetMetadataBlob (streaming body), metadata.contentEncoding === "gzip"