Skip to content

Commit bc00d50

Browse files
committed
Merge branch 'feature/PI-589-publish_swagger_fix' into release/2024-10-31
2 parents c9f68be + dbf1b5d commit bc00d50

File tree

105 files changed

+3655
-5265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+3655
-5265
lines changed

.github/workflows/_deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ jobs:
152152
- uses: actions/checkout@v4
153153
with:
154154
ref: ${{ needs.get-branch-from-workflow-file.outputs.branch_name }}
155-
# change below to (env.ACCOUNT == 'int') || (env.ACCOUNT == 'prod') when ready for prod
156-
- if: (${{ env.SCOPE == 'per_workspace'}}) && (${{ env.ACCOUNT == 'int' }})
155+
- if: ${{ env.SCOPE == 'per_workspace' && env.ACCOUNT == 'int' }}
157156
uses: ./.github/actions/make/
158157
with:
159158
command: swagger--publish

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ dist
7777
.downloads
7878
openapi
7979

80-
src/layers/domain/fhir/r4/*models.py
8180
postman-collection.json
8281
token_cache.json
8382
cpm.cdx.json

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
4. [Other helpful commands](#other-helpful-commands)
1212
2. [Tests](#tests)
1313
3. [Workflow](#workflow)
14-
4. [FHIR, Swagger and FHIR Pydantic models](#fhir-swagger-and-fhir-pydantic-models)
14+
4. [Swagger](#swagger)
1515
5. [ETL](#etl)
1616

1717
---
@@ -257,9 +257,9 @@ This command will also:
257257
- Update the version in `pyproject.toml` with the release branch version.
258258
- Update the VERSION file with the release branch version number.
259259

260-
## FHIR, Swagger and FHIR Pydantic models
260+
## Swagger
261261

262-
This is all done by `make build`. For more details on how to update the Swagger and FHIR Pydantic models, please see [the swagger README](infrastructure/swagger/README.md).
262+
This is all done by `make build`. For more details on how to update the Swagger, please see [the swagger README](infrastructure/swagger/README.md).
263263

264264
## Setting Lambda permissions
265265

docs/public_swagger/swagger.yaml

Lines changed: 0 additions & 2860 deletions
This file was deleted.
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# Fields from the autogenerated swagger to clear out
2-
servers: null
3-
info:
4-
version: null
5-
contact: null
6-
title: null
7-
description: null
8-
9-
# Place fields not in the autogenerated swagger to the top of the file
1+
openapi: 3.0.3
102
x-nhsd-apim:
113
x-definitions:
12-
13-
# Fields from the autogenerated swagger to "silence" for easier debugging
14-
x-ibm-configuration: null
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
servers:
3-
- url: https://sandbox.api.service.nhs.uk/connecting-party-manager/FHIR/R4
3+
- url: https://sandbox.api.service.nhs.uk/connecting-party-manager
44
description: Sandbox environment.
5-
- url: https://int.api.service.nhs.uk/connecting-party-manager/FHIR/R4
5+
- url: https://int.api.service.nhs.uk/connecting-party-manager
66
description: Integration test environment.
7-
- url: https://api.service.nhs.uk/connecting-party-manager/FHIR/R4
7+
- url: https://api.service.nhs.uk/connecting-party-manager
88
description: Production environment.

infrastructure/swagger/02_info.yaml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
info:
33
version: 1.0.0
4-
title: Connecting Party Manager - FHIR API
4+
title: Connecting Party Manager
55
contact:
66
name: NHS Digital API Management
77
url: "https://digital.nhs.uk/developer/help-and-support"
@@ -36,20 +36,6 @@ info:
3636
3737
This API is [RESTful](https://digital.nhs.uk/developer/guides-and-documentation/our-api-technologies#basic-rest).
3838
39-
It conforms to the [FHIR](https://digital.nhs.uk/developer/guides-and-documentation/our-api-technologies#fhir) global standard for health care data exchange, specifically to [FHIR R4 (v4.0.1)](https://hl7.org/fhir/r4/), except that it does not support the [capabilities](http://hl7.org/fhir/R4/http.html#capabilities) interaction.
40-
41-
It includes some country-specific FHIR extensions, which conform to [FHIR UK Core](https://digital.nhs.uk/services/fhir-uk-core), specifically [fhir.r4.ukcore.stu1 0.5.1](https://simplifier.net/packages/fhir.r4.ukcore.stu1/0.5.1).
42-
43-
You do not need to know much about FHIR to use this API - FHIR APIs are just RESTful APIs that follow specific rules.
44-
45-
In particular:
46-
47-
* resource names are capitalised and singular, and use US spellings, for example `Organization` not `organisations`
48-
* array names are singular, for example `entry` not `entries` for address lines
49-
* data items that are country-specific and thus not included in the FHIR global base resources are usually wrapped in an `extension` object
50-
51-
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.
52-
5339
## Network access
5440
5541
This API is available on the internet and, indirectly, on the [Health and Social Care Network (HSCN)](https://digital.nhs.uk/services/health-and-social-care-network).
@@ -87,9 +73,9 @@ info:
8773
8874
| Environment | Base URL |
8975
| ----------------- | --------------------------------------------------------------------------- |
90-
| Sandbox | `https://sandbox.api.service.nhs.uk/connecting-party-manager/FHIR/R4/` |
91-
| Integration | `https://int.api.service.nhs.uk/connecting-party-manager/consumer/FHIR/R4/` |
92-
| Production | `https://api.service.nhs.uk/connecting-party-manager/consumer/FHIR/R4/` |
76+
| Sandbox | `https://sandbox.api.service.nhs.uk/connecting-party-manager/` |
77+
| Integration | `https://int.api.service.nhs.uk/connecting-party-manager/consumer/` |
78+
| Production | `https://api.service.nhs.uk/connecting-party-manager/consumer/` |
9379
9480
### Sandbox and Integration environments
9581

infrastructure/swagger/04_apigee.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
openapi: 3.0.3
32
x-nhsd-apim:
43
temporary: ${ terraform_output("workspace_type.value") != "PERSISTENT" }
54
access:

0 commit comments

Comments
 (0)