Skip to content

UpdateImageSetMetadata

Source: src/AWS/MedicalImaging/UpdateImageSetMetadata.ts

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

Adds, updates, or removes DICOM attributes on an image set (each update produces a new version), or reverts the image set to a previous version via revertToVersionId. Provide the implementation with Effect.provide(AWS.MedicalImaging.UpdateImageSetMetadataHttp).

const updateMetadata = yield* MedicalImaging.UpdateImageSetMetadata(datastore);
const updated = yield* updateMetadata({
imageSetId,
latestVersionId,
updateImageSetMetadataUpdates: { revertToVersionId: "1" },
});
// updated.latestVersionId