Skip to content

Commit 1e1e4ca

Browse files
committed
NPA-5063 Add RelatedPerson Patient Details Component
1 parent d86bd94 commit 1e1e4ca

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
@@ -1808,7 +1808,7 @@ components:
18081808
An empty bundle suggests that no candidate proxy/patient links were identified.
18091809
items:
18101810
anyOf:
1811-
- $ref: "#/components/schemas/RelatedPersonBundleEntry"
1811+
- $ref: "#/components/schemas/RelatedPersonPatientDetailsBundleEntry"
18121812
- $ref: "#/components/schemas/PatientBundleEntry"
18131813

18141814
ConsentBundle:
@@ -1828,6 +1828,16 @@ components:
18281828
- $ref: "#/components/schemas/PatientBundleEntry"
18291829
- $ref: "#/components/schemas/ConsentBundleEntry"
18301830

1831+
RelatedPersonPatientDetailsBundleEntry:
1832+
type: object
1833+
description: A RelatedPerson bundle entry with patient name and birthDate.
1834+
$ref: "#/components/schemas/RelatedPersonBundleEntry"
1835+
properties:
1836+
name:
1837+
$ref: "#/components/schemas/PDSName"
1838+
birthDate:
1839+
$ref: "#/components/schemas/PDSBirthDate"
1840+
18311841
RelatedPersonBundleEntry:
18321842
type: object
18331843
description: A RelatedPerson bundle entry.
@@ -2338,6 +2348,83 @@ components:
23382348
items:
23392349
type: object
23402350

2351+
PDSName:
2352+
type: array
2353+
description: List of names associated with the patient.
2354+
items:
2355+
type: object
2356+
required:
2357+
- use
2358+
- family
2359+
additionalProperties: false
2360+
properties:
2361+
id:
2362+
type: string
2363+
description: Unique object identifier for this name.
2364+
use:
2365+
type: string
2366+
description: |
2367+
How this name should be used.
2368+
* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.
2369+
* temp - An alias or temporary name. This may also be used for temporary names assigned at birth or in emergency situations.
2370+
* nickname - A name that the patient prefers to be addressed by, but is not part of their usual name.
2371+
* old - This name is no longer in use (or was never correct, but retained for records).
2372+
* 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.
2373+
2374+
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.
2375+
* official - The formal name as registered in an official (government) registry, but which name might not be commonly used. May be called "legal name".
2376+
* anonymous - Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons).
2377+
enum: [usual, temp, nickname, old, maiden]
2378+
period:
2379+
type: object
2380+
description: |
2381+
Business effective period when the name was, is, or will be in use.
2382+
required:
2383+
- start
2384+
properties:
2385+
start:
2386+
type: string
2387+
format: date
2388+
description: Start date of time period, if known, in format `yyyy-mm-dd`. Can be a future date.
2389+
end:
2390+
type: string
2391+
format: date
2392+
description: End date of time period, if known and if not ongoing, in format `yyyy-mm-dd`. Can be a future date.
2393+
given:
2394+
type: array
2395+
maxItems: 5
2396+
description: |
2397+
Given names, including any middle names.
2398+
2399+
Each name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.
2400+
Subsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.
2401+
2402+
items:
2403+
type: string
2404+
maxLength: 35
2405+
family:
2406+
type: string
2407+
maxLength: 35
2408+
description: Family name (often called Surname).
2409+
prefix:
2410+
type: array
2411+
description: Name prefixes, titles, and prenominals.
2412+
items:
2413+
type: string
2414+
suffix:
2415+
type: array
2416+
description: Name suffices and postnominals.
2417+
items:
2418+
type: string
2419+
2420+
PDSBirthDate:
2421+
description: |
2422+
The date on which the patient was born or is officially deemed to have been born.
2423+
2424+
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.
2425+
type: string
2426+
format: date
2427+
23412428
parameters:
23422429
RelatedPersonIdentifier:
23432430
in: query

0 commit comments

Comments
 (0)