Skip to content

Commit

Permalink
Merge pull request #49 from NHSDigital/release/2023-03-14
Browse files Browse the repository at this point in the history
Release 2023-03-14
  • Loading branch information
nomad3k authored Mar 16, 2023
2 parents adbf4fd + 3b9dc67 commit 821ab40
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
5 changes: 3 additions & 2 deletions proxies/live/apiproxy/proxies/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@
<Message>Missing Header: NHSD-End-User-Organisation-ODS</Message>
</Step>
</Request>
<Condition>request.header.NHSD-End-User-Organisation-ODS = null or request.header.NHSD-End-User-Organisation-ODS = ""</Condition>
<Condition>request.verb != "OPTIONS" and (request.header.NHSD-End-User-Organisation-ODS = null or request.header.NHSD-End-User-Organisation-ODS = "")</Condition>
</Flow>
<Flow name="OptionsPreFlight">
<Flow name="CorsHeaders">
<!-- This must be the last item in the flow -->
<Request/>
<Response>
<Step>
Expand Down
5 changes: 3 additions & 2 deletions proxies/sandbox/apiproxy/proxies/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
<Message>Missing Header: NHSD-End-User-Organisation-ODS</Message>
</Step>
</Request>
<Condition>request.header.NHSD-End-User-Organisation-ODS = null or request.header.NHSD-End-User-Organisation-ODS = ""</Condition>
<Condition>request.verb != "OPTIONS" and (request.header.NHSD-End-User-Organisation-ODS = null or request.header.NHSD-End-User-Organisation-ODS = "")</Condition>
</Flow>
<Flow name="OptionsPreFlight">
<Flow name="CorsHeaders">
<!-- This must be the last item in the flow -->
<Request/>
<Response>
<Step>
Expand Down
39 changes: 31 additions & 8 deletions specification/nrl-consumer-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ info:
url: "https://digital.nhs.uk/developer/help-and-support"
email: [email protected]
servers:
- url: "https://sandbox.api.service.nhs.uk/nrl-consumer-api/FHIR/R4"
- url: https://sandbox.api.service.nhs.uk/nrl-consumer-api/FHIR/R4
description: Sandbox environment.
- url: "https://int.api.service.nhs.uk/nrl-consumer-api/FHIR/R4"
- url: https://int.api.service.nhs.uk/nrl-consumer-api/FHIR/R4
description: Integration test environment.
- url: "https://api.service.nhs.uk/nrl-consumer-api/FHIR/R4"
- url: https://api.service.nhs.uk/nrl-consumer-api/FHIR/R4
description: Production environment.
paths:
/DocumentReference:
Expand All @@ -170,6 +170,7 @@ paths:
- $ref: "#/components/parameters/subject"
- $ref: "#/components/parameters/custodian"
- $ref: "#/components/parameters/type"
- $ref: "#/components/parameters/nextPageToken"
- $ref: "#/components/parameters/odsCode"
- $ref: "#/components/parameters/requestId"
- $ref: "#/components/parameters/correlationId"
Expand Down Expand Up @@ -490,7 +491,7 @@ components:
requestBodies:
DocumentReference:
content:
application/fhir+json:
application/fhir+json;version=1:
schema:
$ref: "#/components/schemas/DocumentReference"
required: true
Expand Down Expand Up @@ -1192,6 +1193,8 @@ components:
$ref: "#/components/schemas/RequestQueryCustodian"
type.identifier:
$ref: "#/components/schemas/RequestQueryType"
next-page-token:
$ref: "#/components/schemas/NextPageToken"
required:
- subject.identifier
RequestQuerySubject:
Expand All @@ -1206,6 +1209,8 @@ components:
type: string
pattern: ^http\:\/\/snomed\.info\/sct\|(\d+)$
example: "http://snomed.info/sct|736253002"
NextPageToken:
type: string
RequestHeaderOdsCode:
type: string
RequestHeaderRequestId:
Expand Down Expand Up @@ -1238,6 +1243,9 @@ components:
$ref: "#/components/schemas/RequestQuerySubject"
required: true
examples:
none:
summary: None
value: ""
valid_1:
summary: "Valid #1"
value: https://fhir.nhs.uk/Id/nhs-number|4409815415
Expand All @@ -1253,6 +1261,9 @@ components:
schema:
$ref: "#/components/schemas/RequestQueryCustodian"
examples:
none:
summary: None
value: ""
valid:
summary: Valid
value: https://fhir.nhs.uk/Id/ods-organization-code|Y05868
Expand All @@ -1265,6 +1276,9 @@ components:
schema:
$ref: "#/components/schemas/RequestQueryType"
examples:
none:
summary: None
value: ""
SNOMED_CODES_MENTAL_HEALTH_CRISIS_PLAN:
summary: Mental Health Crisis Plan
value: http://snomed.info/sct|736253002
Expand All @@ -1280,6 +1294,15 @@ components:
invalid:
summary: Unknown
value: http://snomed.info/sct|410970009
nextPageToken:
name: next-page-token
description: |
A token that can be sent as either a query parameter or in the post body parameter to retrieve the next set of 20 records.
This token is returned in the meta.tag field.
in: query
schema:
$ref: "#/components/schemas/NextPageToken"
odsCode:
name: NHSD-End-User-Organisation-ODS
description: ODS Code for Organisation
Expand All @@ -1290,10 +1313,10 @@ components:
examples:
valid:
summary: Valid
value: https://fhir.nhs.uk/Id/ods-organization-code|Y05868
value: Y05868
invalid:
summary: Unknown
value: https://fhir.nhs.uk/Id/ods-organization-code|XYZ
value: XYZ
requestId:
name: X-Request-ID
description: |
Expand Down Expand Up @@ -1322,13 +1345,13 @@ components:
Success:
description: Success Response
content:
application/fhir+json:
application/fhir+json;version=1:
schema:
$ref: "#/components/schemas/OperationOutcome"
Error:
description: Error Response
content:
application/fhir+json:
application/fhir+json;version=1:
schema:
$ref: "#/components/schemas/OperationOutcome"
headers:
Expand Down

0 comments on commit 821ab40

Please sign in to comment.