Skip to content

Commit fef14c6

Browse files
committed
4XX-imms-delete
1 parent 6bdcf28 commit fef14c6

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

specification/immunisation-fhir-api.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3567,7 +3567,7 @@
35673567
"description": "Delete Immunization operation successful"
35683568
},
35693569
"4XX": {
3570-
"$ref": "#/components/responses/4XX-imms"
3570+
"$ref": "#/components/responses/4XX-imms-delete"
35713571
}
35723572
}
35733573
}
@@ -3739,6 +3739,40 @@
37393739
}
37403740
}
37413741
}
3742+
},
3743+
"4XX-imms-delete": {
3744+
"description": "Below are examples of potential HTTP status codes and their associated error codes, which could be returned in the event of a fault.\n\n| HTTP status | Error code | Description | Example |\n| ----------- | -------------------------- | --------------------------------------------- |--------------------------------------------------------------------------------------|\n| 400 | Bad Request | Missing or invalid id | {\"resourceType\": \"OperationOutcome\", \"id\": \"f400ad2c-62d9-4f98-bc35-a146caf14dee\", \"meta\": {\"profile\": [\"https://simplifier.net/guide/UKCoreDevelopment2/ProfileUKCore-OperationOutcome\"]}, \"issue\": [{\"severity\": \"error\", \"code\": \"invalid\", \"details\": {\"coding\": [{\"system\": \"https://fhir.nhs.uk/Codesystem/http-error-codes\", \"code\": \"INVALID\"}]}, \"diagnostics\": \"the provided event ID is either missing or not in the expected format.\"}]} |\n| 401 | Unauthorized | Authorization is required for the interaction that was attempted | {\"resourceType\":\"OperationOutcome\",\"id\":\"a5abca2a-4eda-41da-b2cc-95d48c6b791d\",\"meta\":{\"profile\":[\"https://simplifier.net/guide/UKCoreDevelopment2/ProfileUKCore-OperationOutcome\"]},\"issue\":[{\"severity\":\"error\",\"code\":\"expired\",\"details\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/Codesystem/http-error-codes\",\"code\":\"SEND_UNAUTHORIZED\"}]},\"diagnostics\":\"The sender has not provided a token or it has expired or is otherwise invalid.\"}]} |\n| 403 | Forbidden | The sender does not have permissions to access this resource | {\"resourceType\":\"OperationOutcome\",\"id\":\"a5abca2a-4eda-41da-b2cc-95d48c6b791d\",\"meta\":{\"profile\":[\"https://simplifier.net/guide/UKCoreDevelopment2/ProfileUKCore-OperationOutcome\"]},\"issue\":[{\"severity\":\"error\",\"code\":\"forbidden\",\"details\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/Codesystem/http-error-codes\",\"code\":\"SEND_UNAUTHORIZED\"}]},\"diagnostics\":\"The sender does not have permissions to access this resource. Please check your credentials and permissions.\"}]} |\n| 403 | Forbidden | The sender does not have permission for the specific operation or vaccine type | {\"resourceType\": \"OperationOutcome\", \"id\": \"1b7eec0a-316f-4f6e-a342-4b37f6705050\", \"meta\": {\"profile\": [\"https://simplifier.net/guide/UKCoreDevelopment2/ProfileUKCore-OperationOutcome\"]}, \"issue\": [{\"severity\": \"error\", \"code\": \"forbidden\", \"details\": {\"coding\": [{\"system\": \"https://fhir.nhs.uk/Codesystem/http-error-codes\", \"code\": \"FORBIDDEN\"}]}, \"diagnostics\": \"Unauthorized request for vaccine type\"}]} |\n| 404 | Not Found | Non existing id in query parameter<br>or<br>Trying to deleted an already deleted record | {\"resourceType\": \"OperationOutcome\", \"id\": \"f772ee3e-3baf-4934-a07a-a13f70b1a50e\", \"meta\": {\"profile\": [\"https://simplifier.net/guide/UKCoreDevelopment2/ProfileUKCore-OperationOutcome\"]}, \"issue\": [{\"severity\": \"error\", \"code\": \"not-found\", \"details\": {\"coding\": [{\"system\": \"https://fhir.nhs.uk/Codesystem/http-error-codes\", \"code\": \"NOT-FOUND\"}]}, \"diagnostics\": \"Immunization resource does not exist. ID: 5a64fa79-9114-49bb-97c9-xxxxxxxx\"}]} |\n",
3745+
"content": {
3746+
"application/fhir+json": {
3747+
"schema": {
3748+
"$ref": "#/components/schemas/OperationOutcome"
3749+
},
3750+
"example": {
3751+
"resourceType":"OperationOutcome",
3752+
"id":"a5abca2a-4eda-41da-b2cc-95d48c6b791d",
3753+
"meta":{
3754+
"profile":[
3755+
"https://simplifier.net/guide/UKCoreDevelopment2/ProfileUKCore-OperationOutcome"
3756+
]
3757+
},
3758+
"issue":[
3759+
{
3760+
"severity":"error",
3761+
"code":"expired",
3762+
"details":{
3763+
"coding":[
3764+
{
3765+
"system":"https://fhir.nhs.uk/Codesystem/http-error-codes",
3766+
"code":"SEND_UNAUTHORIZED"
3767+
}
3768+
]
3769+
},
3770+
"diagnostics":"The sender has not provided a token or it has expired or is otherwise invalid."
3771+
}
3772+
]
3773+
}
3774+
}
3775+
}
37423776
}
37433777
},
37443778
"requestBodies": {

0 commit comments

Comments
 (0)