PatientApi class

Constructors

PatientApi.new(String _sdkId, Object _dartSdk)

Properties

encrypted PatientEncryptedApi
final
hashCode int
The hash code for this object.
no setterinherited
inGroup PatientInGroupApi
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tryAndRecover PatientTryAndRecoverApi
final

Methods

createDelegationDeAnonymizationMetadata(Patient entity, Set<String> delegates) Future<void>
createPatient(DecryptedPatient patient) Future<DecryptedPatient>
createPatients(List<DecryptedPatient> patients) Future<List<DecryptedPatient>>
createPatientsMinimal(List<DecryptedPatient> patients) Future<List<StoredDocumentIdentifier>>
decrypt(List<EncryptedPatient> patients) Future<List<DecryptedPatient>>
deletePatient(Patient patient) Future<StoredDocumentIdentifier>
deletePatientById(String entityId, String rev) Future<StoredDocumentIdentifier>
deletePatients(List<Patient> patients) Future<List<StoredDocumentIdentifier>>
deletePatientsByIds(List<StoredDocumentIdentifier> entityIds) Future<List<StoredDocumentIdentifier>>
encryptOrValidate(List<Patient> patients) Future<List<EncryptedPatient>>
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<Map<String, Set<EntityReferenceInGroup>>>
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<DecryptedPatient> patients) Future<List<DecryptedPatient>>
modifyPatientsMinimal(List<DecryptedPatient> patients) Future<List<StoredDocumentIdentifier>>
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(List<EncryptedPatient> patients) Future<List<Patient>>
undeletePatient(Patient patient) Future<Patient>
undeletePatientById(String id, String rev) Future<DecryptedPatient>
undeletePatients(List<StoredDocumentIdentifier> 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