getInformedConsentByRole method

Future<InformedConsentInput?> getInformedConsentByRole([
  1. String? roleName
])

Get the informed consent uploaded by a participant with roleName in this study deployment with studyDeploymentId.

If roleName is not specified, the role of the participant in the current deployment is used.

Returns null if not available.

Implementation

Future<InformedConsentInput?> getInformedConsentByRole(
        [String? roleName]) async =>
    (await getInformedConsent())[getParticipantRoleName(roleName)];