PatientApi class

Constructors

PatientApi(String _sdkId)

Properties

encrypted EncryptedPatientApi
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tryAndRecover TryAndRecoverPatientApi
final

Methods

createDelegationDeAnonymizationMetadata(Patient entity, Set<String> delegates) Future<void>
createPatient(DecryptedPatient patient) Future<DecryptedPatient>
createPatients(List<DecryptedPatient> patientDtos) Future<List<IdWithRev>>
decrypt(EncryptedPatient patient) Future<DecryptedPatient>
deletePatient(Patient patient) Future<DocIdentifier>
deletePatientById(String entityId, String rev) Future<DocIdentifier>
deletePatients(List<Patient> patients) Future<List<DocIdentifier>>
deletePatientsByIds(List<IdWithMandatoryRev> entityIds) Future<List<DocIdentifier>>
ensureEncryptionMetadataForSelfIsInitialized({Map<String, AccessLevel> sharingWith = const {}}) Future<EncryptedPatient>
filterPatientsBy(FilterOptions<Patient> filter) Future<PaginatedListIterator<DecryptedPatient>>
filterPatientsBySorted(SortableFilterOptions<Patient> filter) Future<PaginatedListIterator<DecryptedPatient>>
forceInitializeExchangeDataToNewlyInvitedPatient(String patientId) Future<bool>
getConfidentialSecretIdsOf(Patient patient) Future<Set<String>>
getDataOwnersWithAccessTo(Patient patient) Future<EntityAccessInformation>
getEncryptionKeysOf(Patient patient) Future<Set<HexString>>
getPatient(String entityId) Future<DecryptedPatient>
getPatientResolvingMerges(String patientId, int? maxMergeDepth) Future<DecryptedPatient>
getPatients(List<String> patientIds) Future<List<DecryptedPatient>>
getSecretIdsOf(Patient patient) Future<Set<String>>
hasWriteAccess(Patient patient) Future<bool>
initializeConfidentialSecretId(DecryptedPatient patient) Future<DecryptedPatient>
matchPatientsBy(FilterOptions<Patient> filter) Future<List<String>>
matchPatientsBySorted(SortableFilterOptions<Patient> filter) Future<List<String>>
mergePatients(Patient from, DecryptedPatient mergedInto) Future<DecryptedPatient>
modifyPatient(DecryptedPatient entity) Future<DecryptedPatient>
modifyPatients(List<EncryptedPatient> patientDtos) Future<List<IdWithRev>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purgePatient(Patient patient) Future<void>
purgePatientById(String id, String rev) Future<void>
shareAllDataOfPatient(String patientId, Map<String, Set<ShareAllPatientDataOptionsTag>> delegatesWithShareType) Future<ShareAllPatientDataOptionsResult>
shareWith(String delegateId, DecryptedPatient patient, {PatientShareOptions? options}) Future<DecryptedPatient>
shareWithMany(DecryptedPatient patient, Map<String, PatientShareOptions> delegates) Future<DecryptedPatient>
subscribeToEvents(Set<SubscriptionEventType> events, FilterOptions<Patient> filter, {EntitySubscriptionConfiguration? subscriptionConfig}) Future<EntitySubscription<EncryptedPatient>>
toString() String
A string representation of this object.
inherited
tryDecrypt(EncryptedPatient patient) Future<Patient>
undeletePatient(Patient patient) Future<Patient>
undeletePatientById(String id, String rev) Future<DecryptedPatient>
undeletePatients(List<IdWithMandatoryRev> ids) Future<List<DecryptedPatient>>
withEncryptionMetadata(DecryptedPatient? base, {User? user, Map<String, AccessLevel> delegates = const {}}) Future<DecryptedPatient>

Operators

operator ==(Object other) bool
The equality operator.
inherited