

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

# Utiliser Amazon EventBridge avec HealthImaging
<a name="event-notifications"></a>

Amazon EventBridge est un service sans serveur qui utilise des événements pour connecter les composants de l'application entre eux, ce qui vous permet de créer plus facilement des applications évolutives pilotées par des événements. La base EventBridge est de créer des [règles qui acheminent les](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rules.html) [événements](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html) vers [des cibles](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html). AWS HealthImaging fournit une livraison durable des modifications d'état à EventBridge. Pour plus d'informations, consultez [Qu'est-ce qu'Amazon EventBridge ?](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is.html) dans le *guide de EventBridge l'utilisateur Amazon*.

**Topics**
+ [HealthImaging événements envoyés à EventBridge](#event-notifications-listing)
+ [HealthImaging structure d'événements et exemples](#event-notifications-structure-examples)

## HealthImaging événements envoyés à EventBridge
<a name="event-notifications-listing"></a>

Le tableau suivant répertorie tous les HealthImaging événements envoyés EventBridge pour traitement.

<a name="event-notifications-table"></a>[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/fr_fr/healthimaging/latest/devguide/event-notifications.html)

## HealthImaging structure d'événements et exemples
<a name="event-notifications-structure-examples"></a>

HealthImaging les événements sont des objets dotés d'une structure JSON qui contiennent également des détails sur les métadonnées. Vous pouvez utiliser les métadonnées comme entrée pour recréer un événement ou obtenir plus d'informations. Tous les champs de métadonnées associés sont répertoriés dans un tableau sous les exemples de code dans les menus suivants. Pour plus d'informations, consultez la section [Référence relative à la structure des événements](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events-structure.html) dans le *guide de EventBridge l'utilisateur Amazon*.

**Note**  
L'`source`attribut des structures HealthImaging d'événements est`aws.medical-imaging`.

### Événements liés à la banque de données
<a name="event-notifications-data-store"></a>

------
#### [ Data Store Creating ]

**État - `CREATING`**

```
{
    "version": "0",
    "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
    "detail-type": "Data Store Creating",
    "source": "aws.medical-imaging",
    "account": "111122223333",
    "time": "2024-03-14T00:01:00Z",
    "region": "us-west-2",
    "resources": ["arn:aws:medical-imaging:us-west-2:111122223333:datastore/bbc4f3cccbae4095a34170fddc19b13d"],
    "detail": {
        "imagingVersion": "1.0",
        "datastoreId" : "bbc4f3cccbae4095a34170fddc19b13d",
        "datastoreName": "test",
        "datastoreStatus": "CREATING"     
    }
}
```

------
#### [ Data Store Creation Failed ]

**État - `CREATE_FAILED`**

```
{
    "version": "0",
    "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
    "detail-type": "Data Store Creation Failed",
    "source": "aws.medical-imaging",
    "account": "111122223333",
    "time": "2024-03-14T00:01:00Z",
    "region": "us-west-2",
    "resources": ["arn:aws:medical-imaging:us-west-2:111122223333:datastore/bbc4f3cccbae4095a34170fddc19b13d"],
    "detail": {
        "imagingVersion": "1.0",
        "datastoreId" : "bbc4f3cccbae4095a34170fddc19b13d",
        "datastoreName": "test",
        "datastoreStatus": "CREATE_FAILED"      
    }
}
```

------
#### [ Data Store Created ]

**État - `ACTIVE`**

```
{
    "version": "0",
    "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
    "detail-type": "Data Store Created",
    "source": "aws.medical-imaging",
    "account": "111122223333",
    "time": "2024-03-14T00:01:00Z",
    "region": "us-west-2",
    "resources": ["arn:aws:medical-imaging:us-west-2:111122223333:datastore/bbc4f3cccbae4095a34170fddc19b13d"],
    "detail": {
        "imagingVersion": "1.0",
        "datastoreId" : "bbc4f3cccbae4095a34170fddc19b13d",
        "datastoreName": "test",
        "datastoreStatus": "ACTIVE"     
    }
}
```

------
#### [ Data Store Deleting ]

**État - `DELETING`**

```
{
    "version": "0",
    "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
    "detail-type": "Data Store Deleting",
    "source": "aws.medical-imaging",
    "account": "111122223333",
    "time": "2024-03-14T00:01:00Z",
    "region": "us-west-2",
    "resources": ["arn:aws:medical-imaging:us-west-2:111122223333:datastore/bbc4f3cccbae4095a34170fddc19b13d"],
    "detail": {
        "imagingVersion": "1.0",
        "datastoreId" : "bbc4f3cccbae4095a34170fddc19b13d",
        "datastoreName": "test",
        "datastoreStatus": "DELETING"       
    }
}
```

------
#### [ Data Store Deleted ]

**État - `DELETED`**

```
{
    "version": "0",
    "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
    "detail-type": "Data Store Deleted",
    "source": "aws.medical-imaging",
    "account": "111122223333",
    "time": "2024-03-14T00:01:00Z",
    "region": "us-west-2",
    "resources": ["arn:aws:medical-imaging:us-west-2:111122223333:datastore/bbc4f3cccbae4095a34170fddc19b13d"],
    "detail": {
        "imagingVersion": "1.0",
        "datastoreId" : "bbc4f3cccbae4095a34170fddc19b13d",
        "datastoreName": "test",
        "datastoreStatus": "DELETED"  
    }
}
```

------


**Événements du magasin de données : descriptions des métadonnées**  

| Nom | Type | Description | 
| --- | --- | --- | 
| version | chaîne | Version du schéma d' EventBridge événements. | 
| id | chaîne | L'UUID version 4 généré pour chaque événement. | 
| detail-type | chaîne | Type d'événement envoyé. | 
| source | chaîne | Identifie le service qui a généré l'événement. | 
| account | chaîne | L'ID de compte AWS à 12 chiffres du propriétaire du magasin de données. | 
| time | chaîne | Heure à laquelle l'événement s'est produit. | 
| region | chaîne | Identifie la AWS région du magasin de données. | 
| resources | tableau (chaîne) | Tableau JSON contenant l'ARN du magasin de données. | 
| detail | objet | Un objet JSON qui contient des informations sur l'événement. | 
| detail.imagingVersion | chaîne | L'ID de version qui suit les modifications apportées au HealthImaging schéma détaillé des événements. | 
| detail.datastoreId | chaîne | ID de banque de données associé à l'événement de changement de statut. | 
| detail.datastoreName | chaîne | Le nom du magasin de données. | 
| detail.datastoreStatus | chaîne | État actuel du magasin de données. | 

### Importer des événements professionnels
<a name="event-notifications-import-jobs"></a>

------
#### [ Import Job Submitted ]

**État - `SUBMITTED`**

```
{
    "version": "0",
    "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
    "detail-type": "Import Job Submitted",
    "source": "aws.medical-imaging",
    "account": "111122223333",
    "time": "2024-03-14T00:01:00Z",
    "region": "us-west-2",
    "resources": ["arn:aws:medical-imaging:us-west-2:111122223333:datastore/bbc4f3cccbae4095a34170fddc19b13d"],
    "detail": {
        "imagingVersion": "1.0",
        "datastoreId" : "bbc4f3cccbae4095a34170fddc19b13d",
        "jobId": "a6a1d220f152e7aab6d8925d995d8b76",
        "jobName": "test_only_1",
        "jobStatus": "SUBMITTED",
        "inputS3Uri": "s3://healthimaging-test-bucket/input/",
        "outputS3Uri": "s3://healthimaging-test-bucket/output/"
    }
}
```

------
#### [ Import Job In Progress ]

**État - `IN_PROGRESS`**

```
{
    "version": "0",
    "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
    "detail-type": "Import Job In Progress",
    "source": "aws.medical-imaging",
    "account": "111122223333",
    "time": "2024-03-14T00:01:00Z",
    "region": "us-west-2",
    "resources": ["arn:aws:medical-imaging:us-west-2:111122223333:datastore/bbc4f3cccbae4095a34170fddc19b13d"],
    "detail": {
        "imagingVersion": "1.0",
        "datastoreId" : "bbc4f3cccbae4095a34170fddc19b13d",
        "jobId": "a6a1d220f152e7aab6d8925d995d8b76",
        "jobName": "test_only_1",
        "jobStatus": "IN_PROGRESS",
        "inputS3Uri": "s3://healthimaging-test-bucket/input/",
        "outputS3Uri": "s3://healthimaging-test-bucket/output/"
    }
}
```

------
#### [ Import Job Completed ]

**État - `COMPLETED`**

```
{
    "version": "0",
    "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
    "detail-type": "Import Job Completed",
    "source": "aws.medical-imaging",
    "account": "111122223333",
    "time": "2024-03-14T00:01:00Z",
    "region": "us-west-2",
    "resources": ["arn:aws:medical-imaging:us-west-2:111122223333:datastore/bbc4f3cccbae4095a34170fddc19b13d"],
    "detail": {
        "imagingVersion": "1.0",
        "datastoreId" : "bbc4f3cccbae4095a34170fddc19b13d",
        "jobId": "a6a1d220f152e7aab6d8925d995d8b76",
        "jobName": "test_only_1",
        "jobStatus": "COMPLETED",
        "inputS3Uri": "s3://healthimaging-test-bucket/input/",
        "outputS3Uri": "s3://healthimaging-test-bucket/output/"
    }
}
```

------
#### [ Import Job Failed ]

**État - `FAILED`**

```
{
    "version": "0",
    "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
    "detail-type": "Import Job Failed",
    "source": "aws.medical-imaging",
    "account": "111122223333",
    "time": "2024-03-14T00:01:00Z",
    "region": "us-west-2",
    "resources": ["arn:aws:medical-imaging:us-west-2:111122223333:datastore/bbc4f3cccbae4095a34170fddc19b13d"],
    "detail": {
        "imagingVersion": "1.0",
        "datastoreId" : "bbc4f3cccbae4095a34170fddc19b13d",
        "jobId": "a6a1d220f152e7aab6d8925d995d8b76",
        "jobName": "test_only_1",
        "jobStatus": "FAILED",
        "inputS3Uri": "s3://healthimaging-test-bucket/input/",
        "outputS3Uri": "s3://healthimaging-test-bucket/output/"
    }
}
```

------


**Importer des événements professionnels : descriptions des métadonnées**  

| Nom | Type | Description | 
| --- | --- | --- | 
| version | chaîne | Version du schéma d' EventBridge événements. | 
| id | chaîne | L'UUID version 4 généré pour chaque événement. | 
| detail-type | chaîne | Type d'événement envoyé. | 
| source | chaîne | Identifie le service qui a généré l'événement. | 
| account | chaîne | L'ID de compte AWS à 12 chiffres du propriétaire du magasin de données. | 
| time | chaîne | Heure à laquelle l'événement s'est produit. | 
| region | chaîne | Identifie la AWS région du magasin de données. | 
| resources | tableau (chaîne) | Tableau JSON contenant l'ARN du magasin de données. | 
| detail | objet | Un objet JSON qui contient des informations sur l'événement. | 
| detail.imagingVersion | chaîne | L'ID de version qui suit les modifications apportées au HealthImaging schéma détaillé des événements. | 
| detail.datastoreId | chaîne | Le magasin de données qui a généré l'événement de changement de statut. | 
| detail.jobId | chaîne | ID de tâche d'importation associé à l'événement de changement de statut. | 
| detail.jobName | chaîne | Le nom de la tâche d'importation. | 
| detail.jobStatus | chaîne | Le statut actuel du poste. | 
| detail.inputS3Uri | chaîne | Le chemin du préfixe d'entrée pour le compartiment S3 qui contient les fichiers DICOM à importer. | 
| detail.outputS3Uri | chaîne | Préfixe de sortie du compartiment S3 dans lequel les résultats de la tâche d'importation DICOM seront téléchargés. | 

### Événements liés à une série d'images
<a name="event-notifications-image-sets"></a>

------
#### [ Image Set Created ]

**État - `CREATED`**

```
{
   "version": "0",
   "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
   "detail-type": "Image Set Created",
   "source": "aws.medical-imaging",
   "account": "111122223333",
   "time": "2024-03-14T00:01:00Z",
   "region": "us-west-2",
   "resources": ["arn:aws:medical-imaging:us-west-2:846006145877:datastore/bbc4f3cccbae4095a34170fddc19b13d/imageset/207284eef860ac01c4b2a8de27a6fc11"],
   "detail": {
      "imagingVersion": "1.0",
      "isPrimary": true,
      "imageSetVersion": "1",
      "datastoreId": "bbc4f3cccbae4095a34170fddc19b13d",
      "imagesetId": "5b3a711878c34d40e888253319388649",
      "imageSetState": "ACTIVE",
      "imageSetWorkflowStatus": "CREATED"
   }
}
```

------
#### [ Image Set Copying ]

**État - `COPYING`**

```
{
   "version": "0",
   "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
   "detail-type": "Image Set Copying",
   "source": "aws.medical-imaging",
   "account": "111122223333",
   "time": "2024-03-14T00:01:00Z",
   "region": "us-west-2",
   "resources": ["arn:aws:medical-imaging:us-west-2:846006145877:datastore/bbc4f3cccbae4095a34170fddc19b13d/imageset/207284eef860ac01c4b2a8de27a6fc11"],
   "detail": {
      "imagingVersion": "1.0",
      "isPrimary": true,
      "imageSetVersion": "1",
      "datastoreId": "bbc4f3cccbae4095a34170fddc19b13d",
      "imagesetId": "5b3a711878c34d40e888253319388649",
      "imageSetState": "LOCKED",
      "imageSetWorkflowStatus": "COPYING",
      "sourceImageSetArn": "arn:aws:medical-imaging:us-west-2:147997158357:datastore/c381ee9b9ef34902a45b476dd7be068b/imageset/0309de3674fd551fa7ddd2880b21f990"
   }
}
```

------
#### [ Image Set Copying With Read Only Access ]

**État - `COPYING_WITH_READ_ONLY_ACCESS`**

```
{
   "version": "0",
   "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
   "detail-type": "Image Set Copying With Read Only Access",
   "source": "aws.medical-imaging",
   "account": "111122223333",
   "time": "2024-03-14T00:01:00Z",
   "region": "us-west-2",
   "resources": ["arn:aws:medical-imaging:us-west-2:846006145877:datastore/bbc4f3cccbae4095a34170fddc19b13d/imageset/207284eef860ac01c4b2a8de27a6fc11"],
   "detail": {
      "imagingVersion": "1.0",
      "isPrimary": true,
      "imageSetVersion": "1",
      "datastoreId": "bbc4f3cccbae4095a34170fddc19b13d",
      "imagesetId": "5b3a711878c34d40e888253319388649",
      "imageSetState": "LOCKED",
      "imageSetWorkflowStatus": "COPYING_WITH_READ_ONLY_ACCESS"
   }
}
```

------
#### [ Image Set Copied ]

**État - `COPIED`**

```
{
   "version": "0",
   "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
   "detail-type": "Image Set Copied",
   "source": "aws.medical-imaging",
   "account": "111122223333",
   "time": "2024-03-14T00:01:00Z",
   "region": "us-west-2",
   "resources": ["arn:aws:medical-imaging:us-west-2:846006145877:datastore/bbc4f3cccbae4095a34170fddc19b13d/imageset/207284eef860ac01c4b2a8de27a6fc11"],
   "detail": {
      "imagingVersion": "1.0",
      "isPrimary": true,
      "imageSetVersion": "1",
      "datastoreId": "bbc4f3cccbae4095a34170fddc19b13d",
      "imagesetId": "5b3a711878c34d40e888253319388649",
      "imageSetState": "ACTIVE",
      "imageSetWorkflowStatus": "COPIED"
   }
}
```

------
#### [ Image Set Copy Failed ]

**État - `COPY_FAILED`**

```
{
   "version": "0",
   "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
   "detail-type": "Image Set Copy Failed",
   "source": "aws.medical-imaging",
   "account": "111122223333",
   "time": "2024-03-14T00:01:00Z",
   "region": "us-west-2",
   "resources": ["arn:aws:medical-imaging:us-west-2:846006145877:datastore/bbc4f3cccbae4095a34170fddc19b13d/imageset/207284eef860ac01c4b2a8de27a6fc11"],
   "detail": {
      "imagingVersion": "1.0",
      "isPrimary": true,
      "imageSetVersion": "1",
      "datastoreId": "bbc4f3cccbae4095a34170fddc19b13d",
      "imagesetId": "5b3a711878c34d40e888253319388649",
      "imageSetState": "ACTIVE",
      "imageSetWorkflowStatus": "COPY_FAILED"
   }
}
```

------
#### [ Image Set Updating ]

**État - `UPDATING`**

```
{
   "version": "0",
   "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
   "detail-type": "Image Set Updating",
   "source": "aws.medical-imaging",
   "account": "111122223333",
   "time": "2024-03-14T00:01:00Z",
   "region": "us-west-2",
   "resources": ["arn:aws:medical-imaging:us-west-2:846006145877:datastore/bbc4f3cccbae4095a34170fddc19b13d/imageset/207284eef860ac01c4b2a8de27a6fc11"],
   "detail": {
      "imagingVersion": "1.0",
      "isPrimary": true,
      "imageSetVersion": "1",
      "datastoreId": "bbc4f3cccbae4095a34170fddc19b13d",
      "imagesetId": "5b3a711878c34d40e888253319388649",
      "imageSetState": "LOCKED",
      "imageSetWorkflowStatus": "UPDATING"
   }
}
```

------
#### [ Image Set Updated ]

**État - `UPDATED`**

```
{
   "version": "0",
   "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
   "detail-type": "Image Set Updated",
   "source": "aws.medical-imaging",
   "account": "111122223333",
   "time": "2024-03-14T00:01:00Z",
   "region": "us-west-2",
   "resources": ["arn:aws:medical-imaging:us-west-2:846006145877:datastore/bbc4f3cccbae4095a34170fddc19b13d/imageset/207284eef860ac01c4b2a8de27a6fc11"],
   "detail": {
      "imagingVersion": "1.0",
      "isPrimary": true,
      "imageSetVersion": "1",
      "datastoreId": "bbc4f3cccbae4095a34170fddc19b13d",
      "imagesetId": "5b3a711878c34d40e888253319388649",
      "imageSetState": "ACTIVE",
      "imageSetWorkflowStatus": "UPDATED"
   }
}
```

------
#### [ Image Set Update Failed ]

**État - `UPDATE_FAILED`**

```
{
   "version": "0",
   "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
   "detail-type": "Image Set Update Failed",
   "source": "aws.medical-imaging",
   "account": "111122223333",
   "time": "2024-03-14T00:01:00Z",
   "region": "us-west-2",
   "resources": ["arn:aws:medical-imaging:us-west-2:846006145877:datastore/bbc4f3cccbae4095a34170fddc19b13d/imageset/207284eef860ac01c4b2a8de27a6fc11"],
   "detail": {
      "imagingVersion": "1.0",
      "isPrimary": true,
      "imageSetVersion": "1",
      "datastoreId": "bbc4f3cccbae4095a34170fddc19b13d",
      "imagesetId": "5b3a711878c34d40e888253319388649",
      "imageSetState": "ACTIVE",
      "imageSetWorkflowStatus": "UPDATE_FAILED"
   }
}
```

------
#### [ Image Set Deleting ]

**État - `DELETING`**

```
{
   "version": "0",
   "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
   "detail-type": "Image Set Deleting",
   "source": "aws.medical-imaging",
   "account": "111122223333",
   "time": "2024-03-14T00:01:00Z",
   "region": "us-west-2",
   "resources": ["arn:aws:medical-imaging:us-west-2:846006145877:datastore/bbc4f3cccbae4095a34170fddc19b13d/imageset/207284eef860ac01c4b2a8de27a6fc11"],
   "detail": {
      "imagingVersion": "1.0",
      "isPrimary": true,
      "imageSetVersion": "1",
      "datastoreId": "bbc4f3cccbae4095a34170fddc19b13d",
      "imagesetId": "5b3a711878c34d40e888253319388649",
      "imageSetState": "LOCKED",
      "imageSetWorkflowStatus": "DELETING"
   }
}
```

------
#### [ Image Set Deleted ]

**État - `DELETED`**

```
{
   "version": "0",
   "id": "7cf0fb1c-8720-4d48-baa3-6eb97b35a10e",
   "detail-type": "Image Set Deleted",
   "source": "aws.medical-imaging",
   "account": "111122223333",
   "time": "2024-03-14T00:01:00Z",
   "region": "us-west-2",
   "resources": ["arn:aws:medical-imaging:us-west-2:846006145877:datastore/bbc4f3cccbae4095a34170fddc19b13d/imageset/207284eef860ac01c4b2a8de27a6fc11"],
   "detail": {
      "imagingVersion": "1.0",
      "isPrimary": true,
      "imageSetVersion": "1",
      "datastoreId": "bbc4f3cccbae4095a34170fddc19b13d",
      "imagesetId": "5b3a711878c34d40e888253319388649",
      "imageSetState": "DELETED",
      "imageSetWorkflowStatus": "DELETED"
   }
}
```

------


**Événements liés aux ensembles d'images : descriptions des métadonnées**  

| Nom | Type | Description | 
| --- | --- | --- | 
| version | chaîne | Version du schéma d' EventBridge événements. | 
| id | chaîne | L'UUID version 4 généré pour chaque événement. | 
| detail-type | chaîne | Type d'événement envoyé. | 
| source | chaîne | Identifie le service qui a généré l'événement. | 
| account | chaîne | L'ID de compte AWS à 12 chiffres du propriétaire du magasin de données. | 
| time | chaîne | Heure à laquelle l'événement s'est produit. | 
| region | chaîne | Identifie la AWS région du magasin de données. | 
| resources | tableau (chaîne) | Un tableau JSON qui contient l'ARN du jeu d'images. | 
| detail | objet | Un objet JSON qui contient des informations sur l'événement. | 
| detail.imagingVersion | chaîne | L'ID de version qui suit les modifications apportées au HealthImaging schéma détaillé des événements. | 
| detail.isPrimary | boolean | Indique si les données importées ont été correctement organisées dans la hiérarchie gérée ou si des conflits de métadonnées doivent être résolus. | 
| detail.imageSetVersion | chaîne | La version du jeu d'images sera incrémentée lorsqu'une instance est importée plusieurs fois. La dernière version remplacera toute ancienne version stockée dans un ensemble d'images principal. | 
| detail.datastoreId | chaîne | ID du magasin de données qui a généré l'événement de changement de statut. | 
| detail.imagesetId | chaîne | ID du jeu d'images associé à l'événement de changement de statut. | 
| detail.imageSetState | chaîne | État actuel de la série d'images. | 
| detail.imageSetWorkflowStatus | chaîne | L'image actuelle définit l'état du flux de travail. | 