withEncryptionMetadata method

Future<DecryptedHealthElement> withEncryptionMetadata(
  1. DecryptedHealthElement? base,
  2. Patient patient, {
  3. User? user,
  4. Map<String, AccessLevel> delegates = const {},
  5. SecretIdUseOption secretId = SecretIdUseOption.UseAnySharedWithParent,
})

Implementation

Future<DecryptedHealthElement> withEncryptionMetadata(DecryptedHealthElement? base, Patient patient, { User? user, Map<String, AccessLevel> delegates = const {}, SecretIdUseOption secretId = SecretIdUseOption.UseAnySharedWithParent }) async {
	return await CardinalSdkPlatformInterface.instance.apis.healthElement.withEncryptionMetadata(
		_sdkId,
		base,
		patient,
		user,
		delegates,
		secretId,
	);
}