StudyDeployment constructor
StudyDeployment(
- StudyProtocol protocol, [
- String? studyDeploymentId
Create a new StudyDeployment based on a StudyProtocol.
studyDeploymentId
specify the study deployment id.
If not specified, an UUID v1 id is generated.
Implementation
StudyDeployment(StudyProtocol protocol, [String? studyDeploymentId]) {
_studyDeploymentId = studyDeploymentId ?? const Uuid().v1;
_protocol = protocol;
_creationDate = DateTime.now();
_status = StudyDeploymentStatus(studyDeploymentId: _studyDeploymentId);
}