Skip to content

Commit 6d9f59f

Browse files
[ERSSUP-62776]-[AO/JW]-[OAS finalisation Search for Service Requests]-[FV]
1 parent f0f5cb7 commit 6d9f59f

31 files changed

+641
-327
lines changed
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": "required",
10+
"details": {
11+
"coding": [
12+
{
13+
"system": "https://fhir.nhs.uk/CodeSystem/http-error-codes",
14+
"code": "REC_BAD_REQUEST"
15+
}
16+
]
17+
},
18+
"diagnostics": "Example diagnostics message."
19+
}
20+
]
21+
}
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": "login",
10+
"details": {
11+
"coding": [
12+
{
13+
"system": "https://fhir.nhs.uk/CodeSystem/NHSD-API-ErrorOrWarningCode",
14+
"code": "ACCESS_DENIED"
15+
}
16+
]
17+
},
18+
"diagnostics": "Example diagnostics message."
19+
}
20+
]
21+
}
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": "forbidden",
10+
"details": {
11+
"coding": [
12+
{
13+
"system": "https://fhir.nhs.uk/CodeSystem/http-error-codes",
14+
"code": "REC_FORBIDDEN"
15+
}
16+
]
17+
},
18+
"diagnostics": "Example diagnostics message."
19+
}
20+
]
21+
}
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": "not-found",
10+
"details": {
11+
"coding": [
12+
{
13+
"system": "https://fhir.nhs.uk/CodeSystem/http-error-codes",
14+
"code": "REC_NOT_FOUND"
15+
}
16+
]
17+
},
18+
"diagnostics": "Example diagnostics message."
19+
}
20+
]
21+
}
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": "not-supported",
10+
"details": {
11+
"coding": [
12+
{
13+
"system": "https://fhir.nhs.uk/CodeSystem/http-error-codes",
14+
"code": "REC_NOT_ACCEPTABLE"
15+
}
16+
]
17+
},
18+
"diagnostics": "Example diagnostics message."
19+
}
20+
]
21+
}
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": "throttled",
10+
"details": {
11+
"coding": [
12+
{
13+
"system": "https://fhir.nhs.uk/CodeSystem/NHSD-API-ErrorOrWarningCode",
14+
"code": "TOO_MANY_REQUESTS"
15+
}
16+
]
17+
},
18+
"diagnostics": "Example diagnostics message."
19+
}
20+
]
21+
}
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": "exception",
10+
"details": {
11+
"coding": [
12+
{
13+
"system": "https://fhir.nhs.uk/CodeSystem/http-error-codes",
14+
"code": "REC_SERVER_ERROR"
15+
}
16+
]
17+
},
18+
"diagnostics": "Example diagnostics message."
19+
}
20+
]
21+
}

sandbox/src/mocks/r4/searchServiceRequest/responses/ResponseExample.json

Lines changed: 0 additions & 98 deletions
This file was deleted.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"id": "123e4567-e89b-12d3-a456-426614174002",
3+
"resourceType": "Bundle",
4+
"meta": {
5+
"lastUpdated": "2022-03-01T10:00:00.42Z"
6+
},
7+
"timestamp": "2022-04-06T15:42:00.42Z",
8+
"link": [
9+
{
10+
"relation": "self",
11+
"url": "_baseUrl_/R4/ServiceRequest?identifier=https://fhir.nhs.uk/Id/UBRN%7C000000070001"
12+
}
13+
],
14+
"total": 1,
15+
"type": "searchset",
16+
"entry": [
17+
{
18+
"fullUrl": "_baseUrl_/R4/ServiceRequest/a.86b486e8-13fc-4623-8c25-3c0af85c649f",
19+
"resource": {
20+
"id": "a.86b486e8-13fc-4623-8c25-3c0af85c649f",
21+
"meta": {
22+
"versionId": "5"
23+
},
24+
"resourceType": "ServiceRequest",
25+
"identifier": [
26+
{
27+
"system": "https://fhir.nhs.uk/Id/UBRN",
28+
"value": "000000070001"
29+
}
30+
],
31+
"status": "active",
32+
"intent": "order",
33+
"category": [
34+
{
35+
"coding": [
36+
{
37+
"system": "https://fhir.nhs.uk/CodeSystem/message-category-servicerequest",
38+
"code": "request"
39+
}
40+
]
41+
}
42+
],
43+
"code": {
44+
"coding": [
45+
{
46+
"system": "https://fhir.nhs.uk/CodeSystem/servicerequest-code",
47+
"code": "advice-and-guidance"
48+
}
49+
]
50+
},
51+
"subject": {
52+
"identifier": {
53+
"system": "https://fhir.nhs.uk/Id/nhs-number",
54+
"value": "9912003888"
55+
}
56+
}
57+
},
58+
"search": {
59+
"mode": "match"
60+
}
61+
}
62+
]
63+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"id": "123e4567-e89b-12d3-a456-426614174002",
3+
"resourceType": "Bundle",
4+
"meta": {
5+
"lastUpdated": "2022-03-01T10:00:00.42Z"
6+
},
7+
"timestamp": "2022-04-06T15:42:00.42Z",
8+
"link": [
9+
{
10+
"relation": "self",
11+
"url": "_baseUrl_/R4/ServiceRequest?identifier=https://fhir.nhs.uk/Id/UBRN%7C000000070003"
12+
}
13+
],
14+
"total": 0,
15+
"type": "searchset"
16+
}

0 commit comments

Comments
 (0)