Skip to content

GetImageFrame

Source: src/AWS/MedicalImaging/GetImageFrame.ts

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

Streams the pixel data of a single image frame (HTJ2K- or JPEG2000-encoded, per the data store’s losslessStorageFormat). Image frame ids come from the image set metadata blob read with GetImageSetMetadata. Provide the implementation with Effect.provide(AWS.MedicalImaging.GetImageFrameHttp).

const getImageFrame = yield* MedicalImaging.GetImageFrame(datastore);
const frame = yield* getImageFrame({
imageSetId,
imageFrameInformation: { imageFrameId },
});
// frame.imageFrameBlob (streaming body), frame.contentType