Skip to content

Commit d8d4a0a

Browse files
committed
NPA-5003: Update RelatedPerson for RPN
1 parent 3bf5643 commit d8d4a0a

File tree

1 file changed

+91
-3
lines changed

1 file changed

+91
-3
lines changed

specification/validated-relationships-service-api.yaml

Lines changed: 91 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,9 @@ components:
20182018
type: string
20192019
description: The canonical URL of the resource in the entry
20202020
resource:
2021-
$ref: "#/components/schemas/RelatedPerson"
2021+
oneOf:
2022+
- $ref: "#/components/schemas/PDSRelatedPerson"
2023+
- $ref: "#/components/schemas/RPNRelatedPerson"
20222024
search:
20232025
type: object
20242026
properties:
@@ -2067,9 +2069,9 @@ components:
20672069
- include
20682070
example: match
20692071

2070-
RelatedPerson:
2072+
PDSRelatedPerson:
20712073
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.
20732075
properties:
20742076
resourceType:
20752077
type: string
@@ -2153,6 +2155,92 @@ components:
21532155
- "Personal relationship with the patient"
21542156
- "child"
21552157

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.
2179+
enum:
2180+
[
2181+
"https://fhir.nhs.uk/Id/nhs-number",
2182+
"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier",
2183+
]
2184+
value:
2185+
type: string
2186+
description: The patient's NHS number.
2187+
patient:
2188+
type: object
2189+
description: A reference to the proxy.
2190+
properties:
2191+
type:
2192+
type: string
2193+
description: FHIR resource type.
2194+
enum: ["Patient"]
2195+
identifier:
2196+
type: object
2197+
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.
2209+
items:
2210+
type: object
2211+
properties:
2212+
coding:
2213+
type: array
2214+
description: FHIR coding array.
2215+
items:
2216+
type: object
2217+
properties:
2218+
system:
2219+
type: string
2220+
description: FHIR codesystem.
2221+
default: "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
2222+
enum:
2223+
[
2224+
"http://terminology.hl7.org/CodeSystem/v3-RoleCode",
2225+
"https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole",
2226+
]
2227+
code:
2228+
type: string
2229+
description: FHIR relationship type code.
2230+
enum:
2231+
- "MTH"
2232+
- "PRN"
2233+
- "Personal"
2234+
- "CHILD"
2235+
display:
2236+
type: string
2237+
description: FHIR relationship type.
2238+
enum:
2239+
- "mother"
2240+
- "parent"
2241+
- "Personal relationship with the patient"
2242+
- "child"
2243+
21562244
Patient:
21572245
type: object
21582246
description: The patient's details.

0 commit comments

Comments
 (0)