[base] anglicized and expanded /patient/base

EH/population-statistics-authorisation
Reinier Zwitserloot 3 years ago
parent bc29fa615e
commit f024debf68
No known key found for this signature in database
GPG Key ID: DADEDCAA42950296

@ -50,6 +50,7 @@ paths:
tags: tags:
- core - core
summary: Available springboard apps summary: Available springboard apps
description: WorkInProgress
responses: responses:
'200': '200':
description: List of available apps description: List of available apps
@ -95,104 +96,117 @@ paths:
If unknown or left blank, will be 9 zeroes. If unknown or left blank, will be 9 zeroes.
type: string type: string
example: 123456789 example: 123456789
naam: name:
description: All relevant info about the patient's name. description: All relevant info about the patient's name.
type: object type: object
properties: properties:
voornaam: firstname:
description: |- description: |-
Patient's first name(s), separated by spaces. Patient's first name(s), separated by spaces.
It's possible that no first names are known and instead only initials are known; in that case, It's possible that no first names are known and instead only initials are known; in that case,
the initials are provided with dots (`.`) in between the letters, e.g. `"J.M."`. the initials are provided with dots (`.`) in between the letters, e.g. `"J.M."`.
type: string type: string
example: Marie Antoinnette example: Marie Antoinnette
voorvoegsel_achternaam: initials:
description: |-
Patient's initials, with no separators.
Initials might be derived from a patient's first name if initials weren't explicitly provided by
the source HIS.
type: string
example: MA
infix_own:
description: |- description: |-
The prefix of the patient's own last name (what they were born with; not the name inherited from The prefix of the patient's own last name (what they were born with; not the name inherited from
a spouse): `van`, `de`, `van der` - a mostly uniquely dutch aspect to last names. a spouse): `van`, `de`, `van der` - a mostly uniquely dutch aspect to last names.
type: string type: string
example: de example: de
achternaam: own_lastname:
description: |- description: |-
The patient's own last name without a prefix (what they were born with; not the name inherited from The patient's own last name without a prefix (what they were born with; not the name inherited from
a spouse). a spouse).
type: string type: string
example: Villepin example: Villepin
voorvoegsel_geslachtsnaam_partner: infix_partner:
description: |- description: |-
The prefix of the patient's (ex-)spouse's last name; not all patients that are married go by their spouse's last name and often, if they don't, this field will be blank. The prefix of the patient's (ex-)spouse's last name; not all patients that are married go by their spouse's last name and often, if they don't, this field will be blank.
type: string type: string
example: van der example: van der
geslachtsnaam_partner: partner_lastname:
description: |- description: |-
The the patient's (ex-)spouse's last name without prefix; not all patients that are married go by their spouse's last name and often, if they don't, this field will be blank. The the patient's (ex-)spouse's last name without prefix; not all patients that are married go by their spouse's last name and often, if they don't, this field will be blank.
type: string type: string
example: Dussen example: Dussen
geslacht: gender:
description: Patient's gender. description: |-
Patient's gender. `M` = male, `V` = female, `O` = other/unknown.
Follows [NHG-table-4](https://referentiemodel.nhg.org/sites/default/files/NHG-Tabel%204-Geslacht-versie-5-Inkijkexemplaar_1.pdf).
type: string type: string
example: man example: V
enum: enum:
- man - M
- vrouw - V
- anders - O
geboortedatum: dob:
description: |- description: |-
Patient's birth date. Patient's date of birth.
Note that by convention, patients whose birthdate is unknown pick a date and tend to pick either `xxxx-01-01` or `xxxx-07-01`. Can, in rare cases, be blank - if birth date is not known. Note that by convention, patients whose birthdate is unknown pick a date and tend to pick either `xxxx-01-01` or `xxxx-07-01`. Can, in rare cases, be blank - if birth date is not known.
type: string type: string
format: date format: date
example: 1970-07-01 example: 1970-07-01
adres: address:
description: Patient's address (where they live). description: Patient's address (where they live).
type: object type: object
properties: properties:
straat: street:
description: Full name of the street; can be blank if not known or not provided, and excludes hous number. description: Full name of the street; can be blank if not known or not provided, and excludes house number.
type: string type: string
example: Lange Geer example: Lange Geer
huisnummer: hn:
description: |- description: |-
A combination of house number (digits) and 'house number addition'. If an addition is present, the Just the house number; 0 if unknown or in the exotic case where no house number exists. This does
entry is formatted as `12 ABC` where the digits representing house number are always at the front, then not include any addendums such as 'A' or 'room 15'. Guaranteed to be non-negative.
a space, then the remainder is the 'house number addition'; if no addition, no space is included. type: integer
example: 4
A number is always present; possibly 0 to indicate no known house number or the extremely rare case of hn_suffix:
a house without a house number. description: |-
Often empty, the string that follows the numeric part of the address house number. For example, `"A"`, or
`"k22"`.
type: string type: string
example: 4 A example: A
postcode: postcode:
description: The post code, in `1234AB` format. If not known, blank. description: The post code, in `1234AB` format. If not known, blank.
type: string type: string
example: 2611PV example: 2611PV
plaats: city:
description: The city or town. description: The city or town.
type: string type: string
example: Delft example: Delft
contact: contact:
type: object type: object
properties: properties:
mobiel_telefoonnummer: tel:
description: |- description: |-
Patient's mobile number; if not known, a blank string, otherwise, in `+316...` format: A plus, followed by the country code, followed by the phone number. Patient's phone number(s). By convention, the mobile number, if available, is always listed first.
type: string Phone numbers are always in international format (they start with a `+` symbol).
example: +316123456789 If no phone numbers are available or patient has no phone, an empty list is returned.
vast_telefoonnummer: type: array
description: |- example: ["+31612345678", "+31701234567"]
Patient's landline number; if not known, a blank string, otherwise, in `'+3115...` format: A plus, followed by the country code, followed by the phone number. items:
type: string type: string
example: +31701234567
email: email:
description: |- description: |-
Patient's email address. If not known, a blank string. Patient's email address(es); first one returned is indicated as preferred.
If no emails are known or available, or patient has no email, an empty list is returned.
type: array
items:
type: string type: string
example: info@zorgoporde.nl example: ["info@zorgoporde.nl"]
verzekering: insurance:
type: object type: object
properties: properties:
verzekeringsnummer: policy_number:
description: |- description: |-
Patient's insurance registration number. If not known or not insured, a blank string. Patient's insurance registration number (dutch: _polisnummer_). If not known or not insured, a blank string.
type: string type: string
example: 123456789012345 example: 123456789012345
uzovi: uzovi:
@ -201,6 +215,65 @@ paths:
4 digits exactly, 0-left-padded if needed. If unknown or not insured, 4 zeroes. 4 digits exactly, 0-left-padded if needed. If unknown or not insured, 4 zeroes.
type: string type: string
example: 3331 example: 3331
patid:
description: |-
Patient's "public" ID, as used and shown on the HIS patient page. Not necessarily unique,
and not necessarily present; 0 indicates no patid is known or this HIS does not use (numeric)
public IDs.
type: number
example: 1234
pat_unid:
description: |-
Patient's unique and persistent ID in HIS. Usually identical to `patid` but certain HISes may
use UUID, or has globally unique keys (e.g. very large numbers). Can be blank, but only
if supplying HIS does not send them.
type: string
example: 1234
start_date:
type: string
format: date
description: |-
Date patient joined the practice (dutch: _inschrijf datum_). If blank, patient joined a
long time ago. By convention if programming a system that requires a value, a sentinel
value of `"1900-01-01"` is suggested for this case. (when reading from this API, map
the empty string onto that date if you prefer not having blank/NULL values).
example: 1994-08-20
end_date:
type: string
format: date
description: |-
If not blank, patient has exited the practice on this date. (dutch: _uitschrijf datum_).
example: ""
end_reason:
description: |-
Reason patient left the practice (dutch: _reden vertrek_).
This will always be blank if `end_date` is blank. Otherwise, this value _might_ contain
a non-blank letter as per [NHG-table-9](https://referentiemodel.nhg.org/sites/default/files/NHG-Tabel%209-Reden%20vertrek-versie-5-Inkijkexemplaar_1.pdf):
- `A` = To other practice
- `V` = Moved
- `O` = died
- `T` = Temporary
- `I` = Care home / institution
- `Q` = unknown
- `X` = Other
type: string
example: ""
doctor:
description: |-
If known, the AGB code of the primary care GP (dutch: _Inschrijf arts_). Value 0 indicates
this HIS or practice doesn't assign patients to individual GPs, or this information isn't
known.
type: number
example: 1051234
category:
description: |-
The status of the patient's registration within this practice.
As per [NHG-table-5](https://referentiemodel.nhg.org/sites/default/files/NHG-Tabel%205-Categorie%20pati%C3%ABnt-versie-5-Inkijkexemplaar_1.pdf):
- `V` = Standard patient, part of the GP's population (dutch: _vast_).
- `T` = Temporary patient (likely do _not_ treat as part of GP's population).
- `P` = Opportunity patient (dutch: _passant_ - patient is not signed up with this GP. For example: tourist).
type: string
example: V
'400': '400':
description: The request is invalid; for example, it doesn't contain the required `BSN` parameter. description: The request is invalid; for example, it doesn't contain the required `BSN` parameter.
'401': '401':

Loading…
Cancel
Save