PatientApiImpl class
- Inheritance
-
- Object
- PatientApi
- PatientApiImpl
Constructors
- PatientApiImpl(MedTechApi _api)
Properties
Methods
-
createOrModifyPatient(
Patient patient) → Future< Patient?> -
Create or update a Patient
override
-
deletePatient(
String patientId) → Future< String?> -
Delete a Patient
override
-
filterPatients(
Filter< Patient> filter, {String? nextPatientId, int? limit, String? startKey}) → Future<PaginatedListPatient?> -
Load patients from the database by filtering them using the provided
filter
.override -
getPatient(
String patientId) → Future< Patient?> -
Get a Patient
override
-
getPatientAndTryDecrypt(
String patientId) → Future< PotentiallyEncryptedPatient?> -
Gets a patient and tries to decrypt its content. If it is not possible to decrypt the content only the unencrypted
data will be available.
This method is useful to allow new patient users to access some of their own data before their doctor actually
gave them access to their own data: instead of giving an error if the data can't be decrypted (like what happens
in getPatient) you will be able to get at least partial information.
override
-
giveAccessTo(
Patient patient, String delegatedTo) → Future< Patient> -
Give access to another dataOwner to the patient
override
-
matchPatients(
Filter filter) → Future< List< String> ?> -
Load patient ids from the database by filtering them using the provided
filter
.override -
modifyEncryptedPatient(
EncryptedPatient modifiedPatient) → Future< EncryptedPatient?> -
Modifies an encrypted patient, ensuring that the modified patient does not include any data which should be
encrypted.
Similarly to getPatientAndTryDecrypt this method is useful when a patient needs to update is own data before
an hcp gave him access to his own encrypted data.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited