Skip to content

ParticipantRole

Describes a participant playing a role in a study, and whether this role isOptional.

Added to a protocol with StudyProtocol.addParticipantRole. Devices and participant data can be assigned to roles with AssignedTo.

Annotations

Constructors

ParticipantRole.fromJson

ParticipantRole.fromJson(
  1. Map<String, dynamic> json
)

ParticipantRole

ParticipantRole(
  1. String role, [
  2. bool isOptional = false
])

Properties

isOptional

bool isOptional
getter/setter pair

Whether the study can run without a participant in this role. Defaults to false.

role

String role
getter/setter pair

The name of the role, e.g. 'Patient' or 'Parent'.

Methods

toJson

Map<String, dynamic> toJson()