Skip to content

Commit 193ab77

Browse files
committed
NPA-5064 Add RelatedPerson Patient Details Component
1 parent 7667530 commit 193ab77

File tree

1 file changed

+89
-2
lines changed

1 file changed

+89
-2
lines changed

specification/validated-relationships-service-api.yaml

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ info:
8989
9090
## Headers
9191
This API is case-insensitive when processing request headers, meaning it will accept headers regardless of the letter casing used. (e.g. X-Request-Id, x-request-id are treated the same). When sending headers back in the response, we preserve the exact casing as received in the original request.
92-
92+
9393
## Errors
9494
We use standard HTTP status codes to show whether an API request succeeded or not. They are usually in the range:
9595
@@ -1802,7 +1802,7 @@ components:
18021802
An empty bundle suggests that no candidate proxy/patient links were identified.
18031803
items:
18041804
anyOf:
1805-
- $ref: "#/components/schemas/RelatedPersonBundleEntry"
1805+
- $ref: "#/components/schemas/RelatedPersonPatientDetailsBundleEntry"
18061806
- $ref: "#/components/schemas/PatientBundleEntry"
18071807

18081808
ConsentBundle:
@@ -1822,6 +1822,16 @@ components:
18221822
- $ref: "#/components/schemas/PatientBundleEntry"
18231823
- $ref: "#/components/schemas/ConsentBundleEntry"
18241824

1825+
RelatedPersonPatientDetailsBundleEntry:
1826+
type: object
1827+
description: A RelatedPerson bundle entry with patient name and birthDate.
1828+
$ref: "#/components/schemas/RelatedPersonBundleEntry"
1829+
properties:
1830+
name:
1831+
$ref: "#/components/schemas/PDSName"
1832+
birthDate:
1833+
$ref: "#/components/schemas/PDSBirthDate"
1834+
18251835
RelatedPersonBundleEntry:
18261836
type: object
18271837
description: A RelatedPerson bundle entry.
@@ -2330,6 +2340,83 @@ components:
23302340
items:
23312341
type: object
23322342

2343+
PDSName:
2344+
type: array
2345+
description: List of names associated with the patient.
2346+
items:
2347+
type: object
2348+
required:
2349+
- use
2350+
- family
2351+
additionalProperties: false
2352+
properties:
2353+
id:
2354+
type: string
2355+
description: Unique object identifier for this name.
2356+
use:
2357+
type: string
2358+
description: |
2359+
How this name should be used.
2360+
* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.
2361+
* temp - An alias or temporary name. This may also be used for temporary names assigned at birth or in emergency situations.
2362+
* nickname - A name that the patient prefers to be addressed by, but is not part of their usual name.
2363+
* old - This name is no longer in use (or was never correct, but retained for records).
2364+
* maiden - Name changed for Marriage. A name used prior to changing name because of marriage. This term is not gender specific. The use of this term does not imply any particular history for a person's name.
2365+
2366+
The following use codes are included in the [name-use](https://www.hl7.org/fhir/valueset-name-use.html) value set, but should not be used and is not be returned as part of a retrieval.
2367+
* official - The formal name as registered in an official (government) registry, but which name might not be commonly used. May be called "legal name".
2368+
* anonymous - Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons).
2369+
enum: [usual, temp, nickname, old, maiden]
2370+
period:
2371+
type: object
2372+
description: |
2373+
Business effective period when the name was, is, or will be in use.
2374+
required:
2375+
- start
2376+
properties:
2377+
start:
2378+
type: string
2379+
format: date
2380+
description: Start date of time period, if known, in format `yyyy-mm-dd`. Can be a future date.
2381+
end:
2382+
type: string
2383+
format: date
2384+
description: End date of time period, if known and if not ongoing, in format `yyyy-mm-dd`. Can be a future date.
2385+
given:
2386+
type: array
2387+
maxItems: 5
2388+
description: |
2389+
Given names, including any middle names.
2390+
2391+
Each name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.
2392+
Subsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.
2393+
2394+
items:
2395+
type: string
2396+
maxLength: 35
2397+
family:
2398+
type: string
2399+
maxLength: 35
2400+
description: Family name (often called Surname).
2401+
prefix:
2402+
type: array
2403+
description: Name prefixes, titles, and prenominals.
2404+
items:
2405+
type: string
2406+
suffix:
2407+
type: array
2408+
description: Name suffices and postnominals.
2409+
items:
2410+
type: string
2411+
2412+
PDSBirthDate:
2413+
description: |
2414+
The date on which the patient was born or is officially deemed to have been born.
2415+
2416+
It is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.
2417+
type: string
2418+
format: date
2419+
23332420
parameters:
23342421
RelatedPersonIdentifier:
23352422
in: query

0 commit comments

Comments
 (0)