Patient
This entity is a root level object. It represents a patient It is serialized in JSON and saved in the underlying icure-patient CouchDB database.

Property
Type
Description
id *
โ€‹Stringโ€‹
the Id of the patient. We encourage using either a v4 UUID or a HL7 Id.
identifier *
โ€‹Listโ€‹
โ€‹
rev
โ€‹Stringโ€‹
the revision of the patient in the database, used for conflict management / optimistic locking.
created
โ€‹Longโ€‹
The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server. format: int64.
modified
โ€‹Longโ€‹
The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server. format: int64.
author
โ€‹Stringโ€‹
The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.
responsible
โ€‹Stringโ€‹
The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.
tags *
โ€‹Listโ€‹
A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags.
codes *
โ€‹Listโ€‹
A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes
endOfLife
โ€‹Longโ€‹
Soft delete (unix epoch in ms) timestamp of the object. format: int64.
deletionDate
โ€‹Longโ€‹
hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called. format: int64.
firstName
โ€‹Stringโ€‹
the firstname (name) of the patient.
lastName
โ€‹Stringโ€‹
the lastname (surname) of the patient. This is the official lastname that should be used for official administrative purposes.
companyName
โ€‹Stringโ€‹
the name of the company this patient is member of.
languages *
โ€‹Listโ€‹
the list of languages spoken by the patient ordered by fluency (alpha-2 code http://www.loc.gov/standards/iso639-2/ascii_8bits.html).
addresses *
โ€‹Listโ€‹
the list of addresses (with address type).
civility
โ€‹Stringโ€‹
Mr., Ms., Pr., Dr. ...
gender
โ€‹Stringโ€‹
the gender of the patient: male, female, indeterminate, changed, changedToMale, changedToFemale, unknown Values: male, female, indeterminate, changed, changedToMale, changedToFemale, unknown
birthSex
โ€‹Stringโ€‹
the birth sex of the patient: male, female, indeterminate, unknown Values: male, female, indeterminate, changed, changedToMale, changedToFemale, unknown
mergeToPatientId
โ€‹Stringโ€‹
The id of the patient this patient has been merged with.
mergedIds *
โ€‹Listโ€‹
The ids of the patients that have been merged inside this patient.
alias
โ€‹Stringโ€‹
An alias of the person, nickname, ...
active *
โ€‹Booleanโ€‹
Is the patient active (boolean).
deactivationReason *
โ€‹Stringโ€‹
When not active, the reason for deactivation. Values: deceased, moved, other_doctor, retired, no_contact, unknown, none
ssin
โ€‹Stringโ€‹
Social security inscription number.
maidenName
โ€‹Stringโ€‹
Lastname at birth (can be different of the current name), depending on the country, must be used to design the patient .
spouseName
โ€‹Stringโ€‹
Lastname of the spouse for a married woman, depending on the country, can be used to design the patient.
partnerName
โ€‹Stringโ€‹
Lastname of the partner, should not be used to design the patient.
personalStatus
โ€‹Stringโ€‹
any of single, in_couple, married, separated, divorced, divorcing, widowed, widower, complicated, unknown, contract, other. Values: single, in_couple, married, separated, divorced, divorcing, widowed, widower, complicated, unknown, contract, other
dateOfBirth
โ€‹Integerโ€‹
The birthdate encoded as a fuzzy date on 8 positions (YYYYMMDD) MM and/or DD can be set to 00 if unknown (19740000 is a valid date). format: int32.
dateOfDeath
โ€‹Integerโ€‹
The date of death encoded as a fuzzy date on 8 positions (YYYYMMDD) MM and/or DD can be set to 00 if unknown (19740000 is a valid date). format: int32.
timestampOfLatestEidReading
โ€‹Longโ€‹
Timestamp of the latest validation of the eID of the person.. format: int64.
placeOfBirth
โ€‹Stringโ€‹
The place of birth.
placeOfDeath
โ€‹Stringโ€‹
The place of death.
deceased
โ€‹Booleanโ€‹
Is the patient deceased.
education
โ€‹Stringโ€‹
The level of education (college degree, undergraduate, phd).
profession
โ€‹Stringโ€‹
The current professional activity.
note
โ€‹Stringโ€‹
A text note (can be confidential, encrypted by default).
administrativeNote
โ€‹Stringโ€‹
An administrative note, not confidential.
nationality
โ€‹Stringโ€‹
The nationality of the patient.
race
โ€‹Stringโ€‹
The race of the patient.
ethnicity
โ€‹Stringโ€‹
The ethnicity of the patient.
preferredUserId
โ€‹Stringโ€‹
The id of the user that usually handles this patient.
picture
โ€‹Byte[]โ€‹
A picture usually saved in JPEG format. format: byte.
externalId
โ€‹Stringโ€‹
An external (from another source) id with no guarantee or requirement for unicity .
insurabilities *
โ€‹Listโ€‹
List of insurance coverages (of class Insurability, see below).
partnerships *
โ€‹Listโ€‹
List of partners, or persons of contact (of class Partnership, see below).
patientHealthCareParties *
โ€‹Listโ€‹
Links (usually for therapeutic reasons) between this patient and healthcare parties (of class PatientHealthcareParty).
financialInstitutionInformation *
โ€‹Listโ€‹
Financial information (Bank, bank account) used to reimburse the patient.
medicalHouseContracts *
โ€‹Listโ€‹
Contracts between the patient and the healthcare entity.
patientProfessions *
โ€‹Listโ€‹
Codified list of professions exercised by this patient.
parameters *
โ€‹Mapโ€‹
Extra parameters
properties *
โ€‹Listโ€‹
Extra properties
hcPartyKeys *
โ€‹Mapโ€‹
For each couple of HcParties (delegator and delegate), this map contains the exchange AES key. The delegator is always this hcp, the key of the map is the id of the delegate. The AES exchange key is encrypted using RSA twice : once using this hcp public key (index 0 in the Array) and once using the other hcp public key (index 1 in the Array). For a pair of HcParties. Each HcParty always has one AES exchange key for himself.
privateKeyShamirPartitions *
โ€‹Mapโ€‹
The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is "thresholdโŽฎpartition in hex" encrypted using the the partition's holder's public RSA key
publicKey
โ€‹Stringโ€‹
The public key of this hcp
secretForeignKeys *
โ€‹Listโ€‹
The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find all contacts for a specific patient. These keys are in clear. You can have several to partition the medical document space.
cryptedForeignKeys *
โ€‹Mapโ€‹
The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find the patient for a specific contact. These keys are the encrypted id (using the hcParty key for the delegate) that can be found in clear inside the patient. ids encrypted using the hcParty keys.
delegations *
โ€‹Mapโ€‹
When a document is created, the responsible generates a cryptographically random master key (never to be used for something else than referencing from other entities). He/she encrypts it using his own AES exchange key and stores it as a delegation. The responsible is thus always in the delegations as well
encryptionKeys *
โ€‹Mapโ€‹
When a document needs to be encrypted, the responsible generates a cryptographically random master key (different from the delegation key, never to appear in clear anywhere in the db. He/she encrypts it using his own AES exchange key and stores it as a delegation
encryptedSelf
โ€‹Stringโ€‹
The base64 encoded data of this object, formatted as JSON and encrypted in AES using the random master key from encryptionKeys.
medicalLocationId
โ€‹Stringโ€‹
The id of the medical location where this entity was created.
Copy link