AWS Health Imaging

2025/09/15 - AWS Health Imaging - 7 updated api methods

Changes  Added support for OpenID Connect (OIDC) custom authorizer

CopyImageSet (updated) Link ¶
Changes (response)
{'destinationImageSetProperties': {'imageSetWorkflowStatus': {'IMPORTED',
                                                              'IMPORTING',
                                                              'IMPORT_FAILED'}},
 'sourceImageSetProperties': {'imageSetWorkflowStatus': {'IMPORTED',
                                                         'IMPORTING',
                                                         'IMPORT_FAILED'}}}

Copy an image set.

See also: AWS API Documentation

Request Syntax

client.copy_image_set(
    datastoreId='string',
    sourceImageSetId='string',
    copyImageSetInformation={
        'sourceImageSet': {
            'latestVersionId': 'string',
            'DICOMCopies': {
                'copiableAttributes': 'string'
            }
        },
        'destinationImageSet': {
            'imageSetId': 'string',
            'latestVersionId': 'string'
        }
    },
    force=True|False,
    promoteToPrimary=True|False
)
type datastoreId:

string

param datastoreId:

[REQUIRED]

The data store identifier.

type sourceImageSetId:

string

param sourceImageSetId:

[REQUIRED]

The source image set identifier.

type copyImageSetInformation:

dict

param copyImageSetInformation:

[REQUIRED]

Copy image set information.

  • sourceImageSet (dict) -- [REQUIRED]

    The source image set.

    • latestVersionId (string) -- [REQUIRED]

      The latest version identifier for the source image set.

    • DICOMCopies (dict) --

      Contains MetadataCopies structure and wraps information related to specific copy use cases. For example, when copying subsets.

      • copiableAttributes (string) -- [REQUIRED]

        The JSON string used to specify a subset of SOP Instances to copy from source to destination image set.

  • destinationImageSet (dict) --

    The destination image set.

    • imageSetId (string) -- [REQUIRED]

      The image set identifier for the destination image set.

    • latestVersionId (string) -- [REQUIRED]

      The latest version identifier for the destination image set.

type force:

boolean

param force:

Providing this parameter will force completion of the CopyImageSet operation, even if there are inconsistent Patient, Study, and/or Series level metadata elements between the sourceImageSet and destinationImageSet.

type promoteToPrimary:

boolean

param promoteToPrimary:

Providing this parameter will configure the CopyImageSet operation to promote the given image set to the primary DICOM hierarchy. If successful, a new primary image set ID will be returned as the destination image set.

rtype:

dict

returns:

Response Syntax

{
    'datastoreId': 'string',
    'sourceImageSetProperties': {
        'imageSetId': 'string',
        'latestVersionId': 'string',
        'imageSetState': 'ACTIVE'|'LOCKED'|'DELETED',
        'imageSetWorkflowStatus': 'CREATED'|'COPIED'|'COPYING'|'COPYING_WITH_READ_ONLY_ACCESS'|'COPY_FAILED'|'UPDATING'|'UPDATED'|'UPDATE_FAILED'|'DELETING'|'DELETED'|'IMPORTING'|'IMPORTED'|'IMPORT_FAILED',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'imageSetArn': 'string'
    },
    'destinationImageSetProperties': {
        'imageSetId': 'string',
        'latestVersionId': 'string',
        'imageSetState': 'ACTIVE'|'LOCKED'|'DELETED',
        'imageSetWorkflowStatus': 'CREATED'|'COPIED'|'COPYING'|'COPYING_WITH_READ_ONLY_ACCESS'|'COPY_FAILED'|'UPDATING'|'UPDATED'|'UPDATE_FAILED'|'DELETING'|'DELETED'|'IMPORTING'|'IMPORTED'|'IMPORT_FAILED',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'imageSetArn': 'string'
    }
}

Response Structure

  • (dict) --

    • datastoreId (string) --

      The data store identifier.

    • sourceImageSetProperties (dict) --

      The properties of the source image set.

      • imageSetId (string) --

        The image set identifier for the copied source image set.

      • latestVersionId (string) --

        The latest version identifier for the copied source image set.

      • imageSetState (string) --

        The image set state of the copied source image set.

      • imageSetWorkflowStatus (string) --

        The workflow status of the copied source image set.

      • createdAt (datetime) --

        The timestamp when the source image set properties were created.

      • updatedAt (datetime) --

        The timestamp when the source image set properties were updated.

      • imageSetArn (string) --

        The Amazon Resource Name (ARN) assigned to the source image set.

    • destinationImageSetProperties (dict) --

      The properties of the destination image set.

      • imageSetId (string) --

        The image set identifier of the copied image set properties.

      • latestVersionId (string) --

        The latest version identifier for the destination image set properties.

      • imageSetState (string) --

        The image set state of the destination image set properties.

      • imageSetWorkflowStatus (string) --

        The image set workflow status of the destination image set properties.

      • createdAt (datetime) --

        The timestamp when the destination image set properties were created.

      • updatedAt (datetime) --

        The timestamp when the destination image set properties were last updated.

      • imageSetArn (string) --

        The Amazon Resource Name (ARN) assigned to the destination image set.

CreateDatastore (updated) Link ¶
Changes (request)
{'lambdaAuthorizerArn': 'string'}

Create a data store.

See also: AWS API Documentation

Request Syntax

client.create_datastore(
    datastoreName='string',
    clientToken='string',
    tags={
        'string': 'string'
    },
    kmsKeyArn='string',
    lambdaAuthorizerArn='string'
)
type datastoreName:

string

param datastoreName:

The data store name.

type clientToken:

string

param clientToken:

[REQUIRED]

A unique identifier for API idempotency.

This field is autopopulated if not provided.

type tags:

dict

param tags:

The tags provided when creating a data store.

  • (string) --

    • (string) --

type kmsKeyArn:

string

param kmsKeyArn:

The Amazon Resource Name (ARN) assigned to the Key Management Service (KMS) key for accessing encrypted data.

type lambdaAuthorizerArn:

string

param lambdaAuthorizerArn:

The ARN of the authorizer's Lambda function.

rtype:

dict

returns:

Response Syntax

{
    'datastoreId': 'string',
    'datastoreStatus': 'CREATING'|'CREATE_FAILED'|'ACTIVE'|'DELETING'|'DELETED'
}

Response Structure

  • (dict) --

    • datastoreId (string) --

      The data store identifier.

    • datastoreStatus (string) --

      The data store status.

DeleteImageSet (updated) Link ¶
Changes (response)
{'imageSetWorkflowStatus': {'IMPORTING', 'IMPORTED', 'IMPORT_FAILED'}}

Delete an image set.

See also: AWS API Documentation

Request Syntax

client.delete_image_set(
    datastoreId='string',
    imageSetId='string'
)
type datastoreId:

string

param datastoreId:

[REQUIRED]

The data store identifier.

type imageSetId:

string

param imageSetId:

[REQUIRED]

The image set identifier.

rtype:

dict

returns:

Response Syntax

{
    'datastoreId': 'string',
    'imageSetId': 'string',
    'imageSetState': 'ACTIVE'|'LOCKED'|'DELETED',
    'imageSetWorkflowStatus': 'CREATED'|'COPIED'|'COPYING'|'COPYING_WITH_READ_ONLY_ACCESS'|'COPY_FAILED'|'UPDATING'|'UPDATED'|'UPDATE_FAILED'|'DELETING'|'DELETED'|'IMPORTING'|'IMPORTED'|'IMPORT_FAILED'
}

Response Structure

  • (dict) --

    • datastoreId (string) --

      The data store identifier.

    • imageSetId (string) --

      The image set identifier.

    • imageSetState (string) --

      The image set state.

    • imageSetWorkflowStatus (string) --

      The image set workflow status.

GetDatastore (updated) Link ¶
Changes (response)
{'datastoreProperties': {'lambdaAuthorizerArn': 'string'}}

Get data store properties.

See also: AWS API Documentation

Request Syntax

client.get_datastore(
    datastoreId='string'
)
type datastoreId:

string

param datastoreId:

[REQUIRED]

The data store identifier.

rtype:

dict

returns:

Response Syntax

{
    'datastoreProperties': {
        'datastoreId': 'string',
        'datastoreName': 'string',
        'datastoreStatus': 'CREATING'|'CREATE_FAILED'|'ACTIVE'|'DELETING'|'DELETED',
        'kmsKeyArn': 'string',
        'lambdaAuthorizerArn': 'string',
        'datastoreArn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • datastoreProperties (dict) --

      The data store properties.

      • datastoreId (string) --

        The data store identifier.

      • datastoreName (string) --

        The data store name.

      • datastoreStatus (string) --

        The data store status.

      • kmsKeyArn (string) --

        The Amazon Resource Name (ARN) assigned to the Key Management Service (KMS) key for accessing encrypted data.

      • lambdaAuthorizerArn (string) --

        The ARN of the authorizer's Lambda function.

      • datastoreArn (string) --

        The Amazon Resource Name (ARN) for the data store.

      • createdAt (datetime) --

        The timestamp when the data store was created.

      • updatedAt (datetime) --

        The timestamp when the data store was last updated.

GetImageSet (updated) Link ¶
Changes (response)
{'imageSetWorkflowStatus': {'IMPORTING', 'IMPORTED', 'IMPORT_FAILED'}}

Get image set properties.

See also: AWS API Documentation

Request Syntax

client.get_image_set(
    datastoreId='string',
    imageSetId='string',
    versionId='string'
)
type datastoreId:

string

param datastoreId:

[REQUIRED]

The data store identifier.

type imageSetId:

string

param imageSetId:

[REQUIRED]

The image set identifier.

type versionId:

string

param versionId:

The image set version identifier.

rtype:

dict

returns:

Response Syntax

{
    'datastoreId': 'string',
    'imageSetId': 'string',
    'versionId': 'string',
    'imageSetState': 'ACTIVE'|'LOCKED'|'DELETED',
    'imageSetWorkflowStatus': 'CREATED'|'COPIED'|'COPYING'|'COPYING_WITH_READ_ONLY_ACCESS'|'COPY_FAILED'|'UPDATING'|'UPDATED'|'UPDATE_FAILED'|'DELETING'|'DELETED'|'IMPORTING'|'IMPORTED'|'IMPORT_FAILED',
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'deletedAt': datetime(2015, 1, 1),
    'message': 'string',
    'imageSetArn': 'string',
    'overrides': {
        'forced': True|False
    },
    'isPrimary': True|False
}

Response Structure

  • (dict) --

    • datastoreId (string) --

      The data store identifier.

    • imageSetId (string) --

      The image set identifier.

    • versionId (string) --

      The image set version identifier.

    • imageSetState (string) --

      The image set state.

    • imageSetWorkflowStatus (string) --

      The image set workflow status.

    • createdAt (datetime) --

      The timestamp when image set properties were created.

    • updatedAt (datetime) --

      The timestamp when image set properties were updated.

    • deletedAt (datetime) --

      The timestamp when the image set properties were deleted.

    • message (string) --

      The error message thrown if an image set action fails.

    • imageSetArn (string) --

      The Amazon Resource Name (ARN) assigned to the image set.

    • overrides (dict) --

      This object contains the details of any overrides used while creating a specific image set version. If an image set was copied or updated using the force flag, this object will contain the forced flag.

      • forced (boolean) --

        Providing this parameter will force completion of the CopyImageSet and UpdateImageSetMetadata actions, even if metadata is inconsistent at the Patient, Study, and/or Series levels.

    • isPrimary (boolean) --

      The flag to determine whether the image set is primary or not.

ListImageSetVersions (updated) Link ¶
Changes (response)
{'imageSetPropertiesList': {'ImageSetWorkflowStatus': {'IMPORTED',
                                                       'IMPORTING',
                                                       'IMPORT_FAILED'}}}

List image set versions.

See also: AWS API Documentation

Request Syntax

client.list_image_set_versions(
    datastoreId='string',
    imageSetId='string',
    nextToken='string',
    maxResults=123
)
type datastoreId:

string

param datastoreId:

[REQUIRED]

The data store identifier.

type imageSetId:

string

param imageSetId:

[REQUIRED]

The image set identifier.

type nextToken:

string

param nextToken:

The pagination token used to request the list of image set versions on the next page.

type maxResults:

integer

param maxResults:

The max results count.

rtype:

dict

returns:

Response Syntax

{
    'imageSetPropertiesList': [
        {
            'imageSetId': 'string',
            'versionId': 'string',
            'imageSetState': 'ACTIVE'|'LOCKED'|'DELETED',
            'ImageSetWorkflowStatus': 'CREATED'|'COPIED'|'COPYING'|'COPYING_WITH_READ_ONLY_ACCESS'|'COPY_FAILED'|'UPDATING'|'UPDATED'|'UPDATE_FAILED'|'DELETING'|'DELETED'|'IMPORTING'|'IMPORTED'|'IMPORT_FAILED',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'deletedAt': datetime(2015, 1, 1),
            'message': 'string',
            'overrides': {
                'forced': True|False
            },
            'isPrimary': True|False
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • imageSetPropertiesList (list) --

      Lists all properties associated with an image set.

      • (dict) --

        The image set properties.

        • imageSetId (string) --

          The image set identifier.

        • versionId (string) --

          The image set version identifier.

        • imageSetState (string) --

          The image set state.

        • ImageSetWorkflowStatus (string) --

          The image set workflow status.

        • createdAt (datetime) --

          The timestamp when the image set properties were created.

        • updatedAt (datetime) --

          The timestamp when the image set properties were updated.

        • deletedAt (datetime) --

          The timestamp when the image set properties were deleted.

        • message (string) --

          The error message thrown if an image set action fails.

        • overrides (dict) --

          Contains details on overrides used when creating the returned version of an image set. For example, if forced exists, the forced flag was used when creating the image set.

          • forced (boolean) --

            Providing this parameter will force completion of the CopyImageSet and UpdateImageSetMetadata actions, even if metadata is inconsistent at the Patient, Study, and/or Series levels.

        • isPrimary (boolean) --

          The flag to determine whether the image set is primary or not.

    • nextToken (string) --

      The pagination token used to retrieve the list of image set versions on the next page.

UpdateImageSetMetadata (updated) Link ¶
Changes (response)
{'imageSetWorkflowStatus': {'IMPORTING', 'IMPORTED', 'IMPORT_FAILED'}}

Update image set metadata attributes.

See also: AWS API Documentation

Request Syntax

client.update_image_set_metadata(
    datastoreId='string',
    imageSetId='string',
    latestVersionId='string',
    force=True|False,
    updateImageSetMetadataUpdates={
        'DICOMUpdates': {
            'removableAttributes': b'bytes',
            'updatableAttributes': b'bytes'
        },
        'revertToVersionId': 'string'
    }
)
type datastoreId:

string

param datastoreId:

[REQUIRED]

The data store identifier.

type imageSetId:

string

param imageSetId:

[REQUIRED]

The image set identifier.

type latestVersionId:

string

param latestVersionId:

[REQUIRED]

The latest image set version identifier.

type force:

boolean

param force:

Setting this flag will force the UpdateImageSetMetadata operation for the following attributes:

  • Tag.StudyInstanceUID, Tag.SeriesInstanceUID, Tag.SOPInstanceUID, and Tag.StudyID

  • Adding, removing, or updating private tags for an individual SOP Instance

type updateImageSetMetadataUpdates:

dict

param updateImageSetMetadataUpdates:

[REQUIRED]

Update image set metadata updates.

  • DICOMUpdates (dict) --

    The object containing removableAttributes and updatableAttributes.

    • removableAttributes (bytes) --

      The DICOM tags to be removed from ImageSetMetadata.

    • updatableAttributes (bytes) --

      The DICOM tags that need to be updated in ImageSetMetadata.

  • revertToVersionId (string) --

    Specifies the previous image set version ID to revert the current image set back to.

rtype:

dict

returns:

Response Syntax

{
    'datastoreId': 'string',
    'imageSetId': 'string',
    'latestVersionId': 'string',
    'imageSetState': 'ACTIVE'|'LOCKED'|'DELETED',
    'imageSetWorkflowStatus': 'CREATED'|'COPIED'|'COPYING'|'COPYING_WITH_READ_ONLY_ACCESS'|'COPY_FAILED'|'UPDATING'|'UPDATED'|'UPDATE_FAILED'|'DELETING'|'DELETED'|'IMPORTING'|'IMPORTED'|'IMPORT_FAILED',
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'message': 'string'
}

Response Structure

  • (dict) --

    • datastoreId (string) --

      The data store identifier.

    • imageSetId (string) --

      The image set identifier.

    • latestVersionId (string) --

      The latest image set version identifier.

    • imageSetState (string) --

      The image set state.

    • imageSetWorkflowStatus (string) --

      The image set workflow status.

    • createdAt (datetime) --

      The timestamp when image set metadata was created.

    • updatedAt (datetime) --

      The timestamp when image set metadata was updated.

    • message (string) --

      The error message thrown if an update image set metadata action fails.