You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specification/validated-relationships-service-api.yaml
+91-3Lines changed: 91 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2018,7 +2018,9 @@ components:
2018
2018
type: string
2019
2019
description: The canonical URL of the resource in the entry
2020
2020
resource:
2021
-
$ref: "#/components/schemas/RelatedPerson"
2021
+
oneOf:
2022
+
- $ref: "#/components/schemas/PDSRelatedPerson"
2023
+
- $ref: "#/components/schemas/RPNRelatedPerson"
2022
2024
search:
2023
2025
type: object
2024
2026
properties:
@@ -2067,9 +2069,9 @@ components:
2067
2069
- include
2068
2070
example: match
2069
2071
2070
-
RelatedPerson:
2072
+
PDSRelatedPerson:
2071
2073
type: object
2072
-
description: The proxy's details. This includes their relationship to the referenced patient.
2074
+
description: The proxy's details. This includes their relationship to the referenced patient from PDS.
2073
2075
properties:
2074
2076
resourceType:
2075
2077
type: string
@@ -2153,6 +2155,92 @@ components:
2153
2155
- "Personal relationship with the patient"
2154
2156
- "child"
2155
2157
2158
+
RPNRelatedPerson:
2159
+
type: object
2160
+
description: The proxy's details. This includes their relationship to the referenced patient from RPN.
2161
+
properties:
2162
+
resourceType:
2163
+
type: string
2164
+
description: FHIR resource type.
2165
+
enum: [RelatedPerson]
2166
+
default: RelatedPerson
2167
+
id:
2168
+
type: string
2169
+
description: Unique identifier of the RelatedPerson resource.
2170
+
identifier:
2171
+
type: array
2172
+
description: The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales. Always 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).
2173
+
items:
2174
+
type: object
2175
+
properties:
2176
+
system:
2177
+
type: string
2178
+
description: Codesystem URL for the patient's NHS number.
description: The proxy's NHS number. The primary identifier of a proxy, unique within NHS England and Wales. Always 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).
2198
+
properties:
2199
+
system:
2200
+
type: string
2201
+
description: Codesystem URL for the proxy's NHS number.
2202
+
enum: ["https://fhir.nhs.uk/Id/nhs-number"]
2203
+
value:
2204
+
type: string
2205
+
description: The proxy's NHS number.
2206
+
relationship:
2207
+
type: array
2208
+
description: How the proxy is related to the patient.
0 commit comments