Skip to content

Commit

Permalink
Merge pull request #27 from NHSDigital/NPA-1868-api-catalogue-fixes
Browse files Browse the repository at this point in the history
NPA 1868 - api catalogue fixes
  • Loading branch information
samuel-hollow1-nhsd authored Mar 6, 2024
2 parents 3d83647 + 8b31f50 commit 96d0d6e
Showing 1 changed file with 30 additions and 19 deletions.
49 changes: 30 additions & 19 deletions specification/validated-relationships-service-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ info:
version: 'Computed and injected at build time by `scripts/set_version.py`'
description: |
## Overview
Use this API to access the Validated Relationships Service - the national electronic database of relationships that have been verified for the purpose of enabling individuals to access healthcare services on behalf of (proxy) those they care for.
Use this API to access the Validated Relationships Service - the national electronic database of relationships
that have been verified for the purpose of enabling individuals to access healthcare services on behalf of
those they care for. This is known as acting as a 'Proxy' for those individuals requesting access on befhalf
of those they care for..
You can:
- search for verified relationships for a given proxy
- search for validated relationships for a given proxy
## Who can use this API
This API can only be used where there is a legal basis to do so. Make sure you have a valid use case before you go too far with your development. You must demonstrate you have a valid use case as part of digital onboarding.
This API can only be used where there is a legal basis to do so. Make sure you have this and a valid use case before
you go too far with your development, by [contacting us](https://digital.nhs.uk/developer/help-and-support)
You must do this before you can go live (see 'Onboarding' below).
## Related APIs
Expand Down Expand Up @@ -55,7 +59,16 @@ info:
There are [libraries and SDKs available](https://digital.nhs.uk/developer/guides-and-documentation/api-technologies-at-nhs-digital#fhir-libraries-and-sdks) to help with FHIR API integration.
### Open source
## Errors
We use standard HTTP status codes to show whether an API request succeeded or not. They are usually in the range:
* 200 to 299 if it succeeded, including code 202 if it was accepted by an API that needs to wait for further action
* 400 to 499 if it failed because of a client error by your application
* 500 to 599 if it failed because of an error on our server
Errors specific to each API are shown in the Endpoints section, under Response. See our [reference guide](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#http-status-codes) for more on errors.
## Open source
You might find the following [open source](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#open-source) resources useful:
| Resource | Description | Links |
Expand Down Expand Up @@ -105,25 +118,23 @@ info:
| Production | `https://api.service.nhs.uk/validated-relationships/FHIR/R4/` |
### Sandbox testing
TO BE COMPLETED
Our [sandbox environment](https://digital.nhs.uk/developer/guides-and-documentation/testing#sandbox-testing)
* is for early developer testing
* only covers a limited set of scenarios
* is open access, so does not allow you to test authorisation
### Integration testing
TO BE COMPLETED

Our [integration test environment](https://digital.nhs.uk/developer/guides-and-documentation/testing#integration-testing)

### Production smoke testing
TO BE COMPLETED
* is for formal integration testing
* includes authorisation with NHS Login

## Onboarding
To be completed.
## Errors
We use standard HTTP status codes to show whether an API request succeeded or not. They are usually in the range:
You must get your software onboarded before it can go live.

* 200 to 299 if it succeeded, including code 202 if it was accepted by an API that needs to wait for further action
* 400 to 499 if it failed because of a client error by your application
* 500 to 599 if it failed because of an error on our server
Errors specific to each API are shown in the Endpoints section, under Response. See our [reference guide](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#http-status-codes) for more on errors.
For more details, contact us at [[email protected]](mailto:[email protected]).

contact:
name: 'Validated Relationships Service API Support'
Expand All @@ -139,7 +150,7 @@ servers:
paths:
/RelatedPerson:
get:
summary: Get relationships.
summary: Get relationships
parameters:
- $ref: "#/components/parameters/BearerAuthorisation"
- $ref: "#/components/parameters/RelatedPersonIdentifier"
Expand Down

0 comments on commit 96d0d6e

Please sign in to comment.