ContactApi class

Constructors

ContactApi(String _sdkId)

Properties

encrypted EncryptedContactApi
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 TryAndRecoverContactApi
final

Methods

createContact(DecryptedContact entity) Future<DecryptedContact>
createContacts(List<DecryptedContact> entities) Future<List<DecryptedContact>>
createDelegationDeAnonymizationMetadata(Contact entity, Set<String> delegates) Future<void>
decrypt(EncryptedContact contact) Future<DecryptedContact>
decryptPatientIdOf(Contact contact) Future<Set<String>>
decryptService(EncryptedService service) Future<DecryptedService>
deleteContact(Contact contact) Future<DocIdentifier>
deleteContactById(String entityId, String rev) Future<DocIdentifier>
deleteContacts(List<Contact> contacts) Future<List<DocIdentifier>>
deleteContactsByIds(List<IdWithMandatoryRev> entityIds) Future<List<DocIdentifier>>
filterContactsBy(FilterOptions<Contact> filter) Future<PaginatedListIterator<DecryptedContact>>
filterContactsBySorted(SortableFilterOptions<Contact> filter) Future<PaginatedListIterator<DecryptedContact>>
filterServicesBy(FilterOptions<Service> filter) Future<PaginatedListIterator<DecryptedService>>
filterServicesBySorted(SortableFilterOptions<Service> filter) Future<PaginatedListIterator<DecryptedService>>
getContact(String entityId) Future<DecryptedContact>
getContacts(List<String> entityIds) Future<List<DecryptedContact>>
getEncryptionKeysOf(Contact contact) Future<Set<HexString>>
getService(String serviceId) Future<DecryptedService>
getServiceCodesOccurrences(String codeType, int minOccurrences) Future<List<LabelledOccurence>>
getServices(List<String> entityIds) Future<List<DecryptedService>>
hasWriteAccess(Contact contact) Future<bool>
matchContactsBy(FilterOptions<Contact> filter) Future<List<String>>
matchContactsBySorted(SortableFilterOptions<Contact> filter) Future<List<String>>
matchServicesBy(FilterOptions<Service> filter) Future<List<String>>
matchServicesBySorted(SortableFilterOptions<Service> filter) Future<List<String>>
modifyContact(DecryptedContact entity) Future<DecryptedContact>
modifyContacts(List<DecryptedContact> entities) Future<List<DecryptedContact>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purgeContact(Contact contact) Future<void>
purgeContactById(String id, String rev) Future<void>
shareWith(String delegateId, DecryptedContact contact, {ContactShareOptions? options}) Future<DecryptedContact>
shareWithMany(DecryptedContact contact, Map<String, ContactShareOptions> delegates) Future<DecryptedContact>
subscribeToEvents(Set<SubscriptionEventType> events, FilterOptions<Contact> filter, {EntitySubscriptionConfiguration? subscriptionConfig}) Future<EntitySubscription<EncryptedContact>>
subscribeToServiceCreateOrUpdateEvents(FilterOptions<Service> filter, {EntitySubscriptionConfiguration? subscriptionConfig}) Future<EntitySubscription<EncryptedService>>
toString() String
A string representation of this object.
inherited
tryDecrypt(EncryptedContact contact) Future<Contact>
tryDecryptService(EncryptedService service) Future<Service>
undeleteContact(Contact contact) Future<DecryptedContact>
undeleteContactById(String id, String rev) Future<DecryptedContact>
withEncryptionMetadata(DecryptedContact? base, Patient patient, {User? user, Map<String, AccessLevel> delegates = const {}, SecretIdUseOption secretId = SecretIdUseOption.UseAnySharedWithParent}) Future<DecryptedContact>

Operators

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