Guide d'implémentation AP-HP Core
0.13.5 - ci-build
Guide d'implémentation AP-HP Core - Downloaded Version 0.13.5 See the Directory of published versions
| Official URL: https://interop.aphp.fr/ig/fhir/core/OperationDefinition/transaction-status | Version: 0.13.5 | |||
| Active as of 2026-11-24 | Computable Name: TransactionStatus | |||
Consultation du statut d'une transaction asynchrone.
L'opération $transaction-status permet de suivre l'avancement d'une transaction initiée de manière asynchrone, en interrogeant périodiquement le serveur (polling) à partir de l'id de la transaction, jusqu'à obtention d'un statut terminal.
Lorsque transaction asynchrone est initiée, le serveur renvoit au client une Content-Location sous la forme :
```http
HTTP/1.1 202 Accepted
Content-Location: /[base]/$transaction-status?id=[id]
La Content-Location peut être interrogée périodiquement par le client pour obtenir le résultat de la transaction :
GET /[base]/$transaction-status?id=[id] HTTP/1.1
Accept: application/fhir+json
🔖 Réponse - Traitement en cours
HTTP/1.1 202 Accepted
Content-Type: application/fhir+json
🔖 Réponse - Polling en erreur
HTTP/1.1 404 Not Found
Content-Type: application/fhir+json
{
"resourceType": "OperationOutcome",
...
}
🔖 Réponse - Traitement terminé avec succès
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "transaction-response",
"entry": [
{
"response": {
"status": "200 OK"
},
"resource": {
...
}
},
...
]
}
🔖 Réponse - Traitement terminé avec erreur
HTTP/1.1 200 OK
Content-Type: application/fhir+json
{
"resourceType": "Bundle",
"type": "transaction-response",
"entry": [
{
"response": {
"status": "504 Time-out",
"outcome": {
"resourceType": "OperationOutcome",
...
}
}
}
]
}
URL : [base]/$transaction-status
| Utilisation | Nom | Périmètre | Cardinalité | Type | Binding | Documentation |
| IN | id | 1..1 | id | L'identifiant de la transaction à suivre | ||
| OUT | return | 0..1 | Bundle | Le résultat de la transaction | ||
| OUT | outcome | 0..1 | OperationOutcome | Journaux sur le traitement |