Skip to content

Commit 8bfb396

Browse files
adds the 422 example
1 parent 86aeb22 commit 8bfb396

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"resourceType": "OperationOutcome",
3+
"meta": {
4+
"lastUpdated": "2022-03-01T10:00:00.42Z"
5+
},
6+
"issue": [
7+
{
8+
"severity": "error",
9+
"code": "invalid",
10+
"details": {
11+
"coding": [
12+
{
13+
"system": "https://fhir.nhs.uk/CodeSystem/http-error-codes",
14+
"code": "PENDING"
15+
}
16+
]
17+
},
18+
"diagnostics": "The file is being scanned and cannot be retrieved. Wait at least 5 minutes before checking its availability again."
19+
}
20+
]
21+
}

specification/components/r4/schemas/endpoints/a042-retrieve-attachment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ responses:
101101
'404':
102102
$ref: '../responses/NotFound.yaml'
103103
'422':
104-
$ref: '../responses/NotFound.yaml'
104+
$ref: '../responses/retrieveAttachment/422Response.yaml'
105105
'429':
106106
$ref: '../responses/TooManyRequests.yaml'
107107
'500':

0 commit comments

Comments
 (0)