dataOwnerRequiresAnonymousDelegation method

Future<bool> dataOwnerRequiresAnonymousDelegation(
  1. CryptoActorStubWithType dataOwner,
  2. String? groupId
)

Specifies if a data owner requires anonymous delegations, i.e. his id should not appear unencrypted in new secure delegations. This should always be the case for patient data owners. @param dataOwner a data owner. @param groupId the id of the data owner's group, or null if the data owner is in the same group as the current user @return true if the delegations for the provided data owner should be anonymous.

Implementation

Future<bool> dataOwnerRequiresAnonymousDelegation(CryptoActorStubWithType dataOwner, String? groupId) {
  return Future.value(dataOwner.type != DataOwnerType.hcp);
}