Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,13 @@ private void Initialize()
_workflowName = Event.TaskPluginArguments[Keys.WorkflowName];
}

if (Event.TaskPluginArguments.ContainsKey(Keys.Notifications))
if (Boolean.TryParse(Event.TaskPluginArguments[Keys.Notifications], out bool result))
{
_notifications = Boolean.TryParse(Event.TaskPluginArguments[Keys.Notifications], out bool result);
_notifications = result;
}
else
{
_notifications = true;
}

if (Event.TaskPluginArguments.ContainsKey(Keys.ReviewedExecutionId))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ public void AssertClinicalReviewEvent(ClinicalReviewRequestEvent clinicalReviewR
clinicalReviewRequestEvent.PatientMetadata.PatientName.Should().Be(GetTaskPluginArguments(taskDispatchEvent, "patient_name"));
clinicalReviewRequestEvent.PatientMetadata.PatientSex.Should().Be(GetTaskPluginArguments(taskDispatchEvent, "patient_sex"));
clinicalReviewRequestEvent.PatientMetadata.PatientDob.Should().Be(GetTaskPluginArguments(taskDispatchEvent, "patient_dob"));
try
if (Boolean.TryParse(GetTaskPluginArguments(taskDispatchEvent, "notifications"), out bool result))
{
var notifications = GetTaskPluginArguments(taskDispatchEvent, "notifications");

clinicalReviewRequestEvent.Notifications.Should().Be(result);
}
catch (Exception ex)
else
{
clinicalReviewRequestEvent.Notifications.Should().Be(true);
}
Expand Down