Skip to content

Commit bfdad35

Browse files
author
James Taylor
committed
NPA-3543: remove trailing space in yaml andassociated editor config
1 parent 2dda25e commit bfdad35

File tree

15 files changed

+124
-127
lines changed

15 files changed

+124
-127
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ indent_size = 2
1717
[*.postman_collection.json]
1818
indent_style = tab
1919

20-
[*.yaml]
21-
trim_trailing_whitespace = false
22-
2320
[*.js]
2421
ij_javascript_force_semicolon_style = true
2522
ij_javascript_use_semicolon_after_statement = false

specification/examples/requests/POST_QuestionnaireResponse/adult-nominates-adult.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
QuestionnaireResponseAdultNominatesAdultRequest:
22
summary: Adult nominates Adult access request
33
description: |
4-
Example proxy access request from an adult (Jill) with NHS number `9000000006` nominating her husband (Tom) with NHS number `9000000005` to act on her behalf.
5-
4+
Example proxy access request from an adult (Jill) with NHS number `9000000006` nominating her husband (Tom) with NHS number `9000000005` to act on her behalf.
5+
66
Significant things to point out:
77
88
- `source.type` should be `Patient` when a patient is nominating a proxy
99
- `source.identifier.value` should be the NHS number of the user completing the form - this should correlate with the Identity token in the request
1010
- `subject.type` should be `Patient` since it is the patient that is the subject of the application
1111
- `subject.identifier.value` should be the NHS Number of the patient to which the application relates
1212
- `relatedPerson` demographics are present in the request as a result of being provided by the applicant
13-
value:
14-
resourceType: QuestionnaireResponse
13+
value:
14+
resourceType: QuestionnaireResponse
1515
status: "completed"
1616
authored: "2024-07-15T09:43:03.280Z"
1717
source:

specification/examples/requests/POST_QuestionnaireResponse/adult-to-adult-with-capacity.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
QuestionnaireResponseAdultToAdultWithCapacityRequest:
22
summary: Adult > Adult (with capacity) access request
33
description: |
4-
Example proxy access request from an adult (Tom) with NHS number `9000000005` requesting access to act on behalf of his wife (Jill) with NHS number `9000000006`.
5-
4+
Example proxy access request from an adult (Tom) with NHS number `9000000005` requesting access to act on behalf of his wife (Jill) with NHS number `9000000006`.
5+
66
Significant details to point out:
77
88
- `source.type` should be `RelatedPerson` when a proxy is applying
99
- `source.identifier.value` should be the NHS number of the user completing the form - this should correlate with the Identity token in the request
1010
- `subject.type` should be `Patient` since it is the patient that is the subject of the application
1111
- `subject.identifier.value` should be the NHS Number of the patient to which the application relates
1212
- `patient` demographics are present in the request as a result of being provided by the applicant
13-
value:
14-
resourceType: QuestionnaireResponse
13+
value:
14+
resourceType: QuestionnaireResponse
1515
status: "completed"
1616
authored: "2024-07-15T09:43:03.280Z"
1717
source:
1818
type: "RelatedPerson"
19-
identifier:
19+
identifier:
2020
system: "https://fhir.nhs.uk/Id/nhs-number"
2121
value: "9000000005"
2222
subject:
2323
type: "Patient"
24-
identifier:
24+
identifier:
2525
system: "https://fhir.nhs.uk/Id/nhs-number"
2626
value: "9000000006"
2727
questionnaire: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Questionnaire/01dc6813-3421-4d14-948d-a4888241add1"

specification/examples/requests/POST_QuestionnaireResponse/adult-to-adult-without-capacity.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
QuestionnaireResponseAdultToAdultWithoutCapacityRequest:
22
summary: Adult > Adult (without capacity) access request
33
description: |
4-
Example proxy access request from an adult (Danny) with NHS number `9876543210` requesting access to act on behalf of an elderly parent (Florence) without capacity wth NHS number `9000000008`.
5-
4+
Example proxy access request from an adult (Danny) with NHS number `9876543210` requesting access to act on behalf of an elderly parent (Florence) without capacity wth NHS number `9000000008`.
5+
66
Significant details to point out:
77
88
- `source.type` should be `RelatedPerson` when a proxy is applying
99
- `source.identifier.value` should be the NHS number of the user completing the form - this should correlate with the Identity token in the request
1010
- `subject.type` should be `Patient` since it is the patient that is the subject of the application
1111
- `subject.identifier.value` should be the NHS Number of the patient to which the application relates
1212
- `patient` demographics are present in the request as a result of being provided by the applicant
13-
value:
14-
resourceType: QuestionnaireResponse
13+
value:
14+
resourceType: QuestionnaireResponse
1515
status: "completed"
1616
authored: "2024-07-15T09:43:03.280Z"
1717
source:
1818
type: "RelatedPerson"
19-
identifier:
19+
identifier:
2020
system: "https://fhir.nhs.uk/Id/nhs-number"
2121
value: "9876543210"
2222
subject:
2323
type: "Patient"
24-
identifier:
24+
identifier:
2525
system: "https://fhir.nhs.uk/Id/nhs-number"
2626
value: "9000000008"
2727
questionnaire: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Questionnaire/01dc6813-3421-4d14-948d-a4888241add1"

specification/examples/requests/POST_QuestionnaireResponse/mother-child.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
QuestionnaireResponseMotherChildRequest:
22
summary: Mother > Child access request
33
description: |
4-
Example proxy access request from a mother (Martha) with NHS number `9000000001` requesting access to act on behalf of their child (Timmy) with NHS number `9000000002`.
5-
4+
Example proxy access request from a mother (Martha) with NHS number `9000000001` requesting access to act on behalf of their child (Timmy) with NHS number `9000000002`.
5+
66
Significant details to point out:
77
88
- `source.type` should be `RelatedPerson` when a proxy is applying
99
- `source.identifier.value` should be the NHS number of the user completing the form - this should correlate with the Identity token in the request
1010
- `subject.type` should be `Patient` since it is the patient that is the subject of the application
1111
- `subject.identifier.value` should be the NHS Number of the patient to which the application relates
1212
- `patient` demographics are present in the request as a result of being provided by the applicant
13-
value:
14-
resourceType: QuestionnaireResponse
13+
value:
14+
resourceType: QuestionnaireResponse
1515
status: "completed"
1616
authored: "2024-07-15T09:43:03.280Z"
1717
source:

specification/examples/responses/GET_Consent/adults-consenting.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ConsentAdultsConsentingBundle:
2424
- coding:
2525
- system: "https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole"
2626
code: Personal
27-
display: "Personal relationship with the patient"
27+
display: "Personal relationship with the patient"
2828
search:
2929
mode: include
3030
- fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/DFCC67F5"
@@ -50,7 +50,7 @@ ConsentAdultsConsentingBundle:
5050
birthDate: "1995-10-22"
5151
generalPractitioner:
5252
- type: "Organization"
53-
identifier:
53+
identifier:
5454
value: "ODS12345"
5555
system: "https://fhir.nhs.uk/Id/ods-organization-code"
5656
search:

specification/examples/responses/GET_Consent/mixed.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ConsentMixedBundle:
5757
birthDate: "2022-10-22"
5858
generalPractitioner:
5959
- type: "Organization"
60-
identifier:
60+
identifier:
6161
value: "ODS12345"
6262
system: "https://fhir.nhs.uk/Id/ods-organization-code"
6363
search:
@@ -111,7 +111,7 @@ ConsentMixedBundle:
111111
- coding:
112112
- system: "https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole"
113113
code: Personal
114-
display: "Personal relationship with the patient"
114+
display: "Personal relationship with the patient"
115115
search:
116116
mode: include
117117
- fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/DFCC67F5"
@@ -137,7 +137,7 @@ ConsentMixedBundle:
137137
birthDate: "1995-10-22"
138138
generalPractitioner:
139139
- type: "Organization"
140-
identifier:
140+
identifier:
141141
value: "ODS12345"
142142
system: "https://fhir.nhs.uk/Id/ods-organization-code"
143143
search:

specification/examples/responses/GET_Consent/mother-child.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ConsentMotherChildBundle:
5656
birthDate: "2022-10-22"
5757
generalPractitioner:
5858
- type: "Organization"
59-
identifier:
59+
identifier:
6060
value: "ODS12345"
6161
system: "https://fhir.nhs.uk/Id/ods-organization-code"
6262
search:

specification/examples/responses/GET_RelatedPerson/errors/invalid-identifier.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ RelatedPersonInvalidIdentifierError:
33
description: Error raised due to an invalid RelatedPerson identifier request parameter being specified.
44
value:
55
resourceType: "OperationOutcome"
6-
issue:
6+
issue:
77
- severity: error
88
code: invalid
9-
diagnostics: "Not a valid NHS Number provided for the 'identifier' parameter"
9+
diagnostics: "Not a valid NHS Number provided for the 'identifier' parameter"
1010
expression: "RelatedPerson.identifier"
1111
details:
1212
coding:

specification/examples/responses/GET_RelatedPerson/include-patients.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ RelatedPersonIncludePatients:
22
summary: With patient '_include'
33
description: |
44
Example response containing the details of a single matched candidate proxy relationship between a birth mother and her child.
5-
6-
The FHIR Bundle contains a `RelatedPerson` and a `Patient` resource per relationship verified against authoritative sources.
7-
5+
6+
The FHIR Bundle contains a `RelatedPerson` and a `Patient` resource per relationship verified against authoritative sources.
7+
88
`Patient` resources are included in the bundle when the `_include=RelatedPerson:patient` query parameter is specified.
99
value:
1010
resourceType: Bundle

0 commit comments

Comments
 (0)