Skip to content

Commit 4aa4ab3

Browse files
Merge branch 'develop' into feature/hakh11-NRL-1002-consumerIntegrationTests
2 parents 247a680 + a8a47af commit 4aa4ab3

File tree

27 files changed

+492
-3935
lines changed

27 files changed

+492
-3935
lines changed

.github/workflows/persistent-environment.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@ jobs:
232232
- name: Terraform Apply
233233
run: terraform -chdir=terraform/infrastructure apply tfplan
234234

235+
- name: Update environment config version
236+
run: |
237+
short_commit_ref="$(echo ${{ github.sha }} | cut -c1-8)"
238+
deployed_version="${{ inputs.branch_name }}@${short_commit_ref}"
239+
poetry run python ./scripts/set_env_config.py inactive-version ${deployed_version} ${{ inputs.environment }}
240+
235241
- name: Smoke Test
236242
run: |
237243
account=$(echo '${{ inputs.environment }}' | cut -d '-' -f1)

api/consumer/record-locator/consumer.yaml

Lines changed: 0 additions & 1628 deletions
This file was deleted.

api/consumer/swagger.yaml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@ info:
2828
There is a growing list of health and social care organisations authorised to share records using NRL, and presently
2929
the pointers are classified into the following types:
3030
31-
* [Mental Health Crisis Plan](http://snomed.info/sct/736253002)
31+
* [Mental health crisis plan](http://snomed.info/sct/736253002)
3232
* [Royal College of Physicians NEWS2 (National Early Warning Score 2) chart](http://snomed.info/sct/1363501000000100)
3333
* [ReSPECT (Recommended Summary Plan for Emergency Care and Treatment) form](http://snomed.info/sct/1382601000000107)
3434
* [Contingency plan](http://snomed.info/sct/325691000000100)
3535
* [End of life care plan](http://snomed.info/sct/736373009)
3636
* [End of Life Care Coordination Summary](http://snomed.info/sct/861421000000109)
37-
* [Emergency Health Care Plans](http://snomed.info/sct/887701000000100)
37+
* [Emergency health care plan](http://snomed.info/sct/887701000000100)
38+
* [Lloyd George record folder](http://snomed.info/sct/16521000000101)
39+
* [Advanced care plan](http://snomed.info/sct/736366004)
40+
* [Treatment escalation plan](http://snomed.info/sct/735324008)
41+
* [Summary record]("http://snomed.info/sct|824321000000109")
42+
* [Personalised Care and Support Plan]("http://snomed.info/sct|2181441000000107")
3843
3944
You can also retrieve booking and referal pointers however you can not currently do this by directly integrating with
4045
the National Record Locator, you must instead onboard to the [Booking and Referral - FHIR API](https://digital.nhs.uk/developer/api-catalogue/booking-and-referral-fhir)
@@ -1468,10 +1473,10 @@ components:
14681473
summary: None
14691474
value: ""
14701475
SNOMED_CODES_MENTAL_HEALTH_CRISIS_PLAN:
1471-
summary: Mental Health Crisis Plan
1476+
summary: Mental health crisis plan
14721477
value: http://snomed.info/sct|736253002
14731478
SNOMED_CODES_EMERGENCY_HEALTH_CARE_PLAN:
1474-
summary: Emergency Healthcare Plan
1479+
summary: Emergency health care plan
14751480
value: http://snomed.info/sct|887701000000100
14761481
SNOMED_CODES_END_OF_LIFE_CARE_COORDINATION_SUMMARY:
14771482
summary: End of Life Care Coordination Summary
@@ -1480,14 +1485,29 @@ components:
14801485
summary: ReSPECT form
14811486
value: http://snomed.info/sct|1382601000000107
14821487
SNOMED_CODES_NEWS2_CHART:
1483-
summary: Royal College of Physicians NEWS2
1488+
summary: Royal College of Physicians NEWS2 chart
14841489
value: http://snomed.info/sct|1363501000000100
14851490
SNOMED_CODES_CONTINGENCY_PLAN:
14861491
summary: Contingency plan
14871492
value: http://snomed.info/sct|325691000000100
14881493
SNOMED_CODES_END_OF_LIFE_CARE_PLAN:
14891494
summary: End of life care plan
14901495
value: http://snomed.info/sct|736373009
1496+
SNOMED_CODES_LLOYD_GEORGE_RECORD_FOLDER:
1497+
summary: Lloyd George record folder
1498+
value: http://snomed.info/sct|16521000000101
1499+
SNOMED_CODES_ADVANCED_CARE_PLAN:
1500+
summary: Advanced care plan
1501+
value: http://snomed.info/sct|736366004
1502+
SNOMED_CODES_TREATMENT_ESCALATION_PLAN:
1503+
summary: Treatment escalation plan
1504+
value: http://snomed.info/sct|735324008
1505+
SNOMED_CODES_SUMMARY_RECORD:
1506+
summary: Summary record
1507+
value: http://snomed.info/sct|824321000000109
1508+
SNOME_CODES_PERSONALISED_CARE_AND_SUPPORT_PLAN:
1509+
summary: Personalised Care and Support Plan
1510+
value: http://snomed.info/sct|2181441000000107
14911511
invalid:
14921512
summary: Unknown
14931513
value: http://snomed.info/sct|410970009
@@ -1529,7 +1549,7 @@ components:
15291549
15301550
Mirrored back in a response header.
15311551
in: header
1532-
required: false
1552+
required: true
15331553
schema:
15341554
$ref: "#/components/schemas/RequestHeaderRequestId"
15351555
correlationId:
@@ -1572,4 +1592,4 @@ components:
15721592
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
15731593
example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
15741594
description: |
1575-
The X-Request-ID from the request header, if supplied, mirrored back.
1595+
The X-Request-ID from the request header mirrored back.

api/producer/readDocumentReference/read_document_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def handler(
5959
document_reference = DocumentReference.parse_raw(result.document)
6060
except ValidationError as exc:
6161
logger.log(
62-
LogReference.CONREAD003,
62+
LogReference.PROREAD003,
6363
exc_info=sys.exc_info(),
6464
stacklevel=5,
6565
error=str(exc),

0 commit comments

Comments
 (0)