Skip to content

Commit 3e9a443

Browse files
authored
Merge pull request #922 from Project-MONAI/AI-183
Ai 183
2 parents f14432a + 1b4851d commit 3e9a443

26 files changed

+698
-55
lines changed

src/Common/Configuration/ConfigurationValidator.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public bool IsTopicsValid(MessageBrokerConfigurationKeys configurationKeys)
5858
valid &= IsStringValueNotNull(nameof(configurationKeys.WorkflowRequest), configurationKeys.WorkflowRequest);
5959
valid &= IsStringValueNotNull(nameof(configurationKeys.ExportRequestPrefix), configurationKeys.ExportRequestPrefix);
6060
valid &= IsStringValueNotNull(nameof(configurationKeys.TaskDispatchRequest), configurationKeys.TaskDispatchRequest);
61+
valid &= IsStringValueNotNull(nameof(configurationKeys.ExportHL7), configurationKeys.ExportHL7);
62+
valid &= IsStringValueNotNull(nameof(configurationKeys.ExportHL7Complete), configurationKeys.ExportHL7Complete);
63+
6164

6265
return valid;
6366
}

src/Common/Configuration/MessageBrokerConfigurationKeys.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ public class MessageBrokerConfigurationKeys
3434
[ConfigurationKeyName("exportComplete")]
3535
public string ExportComplete { get; set; } = "md.export.complete";
3636

37+
/// <summary>
38+
/// Gets or sets the topic for publishing workflow requests.
39+
/// Defaults to `md.export.complete`.
40+
/// </summary>
41+
[ConfigurationKeyName("exportHL7Complete")]
42+
public string ExportHL7Complete { get; set; } = "md.export.hl7complete";
43+
3744
/// <summary>
3845
/// Gets or sets the topic for publishing workflow requests.
3946
/// Defaults to `md.export.request`.
@@ -98,5 +105,20 @@ public class MessageBrokerConfigurationKeys
98105
/// </summary>
99106
[ConfigurationKeyName("externalAppRequest")]
100107
public string ExternalAppRequest { get; set; } = "md.externalapp.request";
108+
109+
/// <summary>
110+
/// Gets or sets the topic for publishing workflow requests.
111+
/// Defaults to `md.export.request`.
112+
/// </summary>
113+
[ConfigurationKeyName("exportHl7")]
114+
public string ExportHL7 { get; set; } = "md.export.hl7";
115+
116+
117+
/// <summary>
118+
/// Gets or sets the topic for publishing export complete requests.
119+
/// Defaults to `md_export_complete`.
120+
/// </summary>
121+
[ConfigurationKeyName("exportHl7Complete")]
122+
public string ExportHl7Complete { get; set; } = "md.export.hl7complete";
101123
}
102124
}

src/Common/Miscellaneous/ValidationConstants.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ public enum NotificationValues
118118
/// </summary>
119119
public const string ExternalAppTaskType = "remote_app_execution";
120120

121+
/// <summary>
122+
/// Key for Hl7 export task type.
123+
/// </summary>
124+
public const string HL7ExportTask = "export_hl7";
125+
121126
/// <summary>
122127
/// Key for the export task type.
123128
/// </summary>
@@ -141,7 +146,8 @@ public enum NotificationValues
141146
ExportTaskType,
142147
DockerTaskType,
143148
Email,
144-
ExternalAppTaskType
149+
ExternalAppTaskType,
150+
HL7ExportTask
145151
};
146152
}
147153
}

src/TaskManager/API/Monai.Deploy.WorkflowManager.TaskManager.API.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@
4343
<PackageReference Include="Mongo.Migration" Version="3.1.4" />
4444
<PackageReference Include="MongoDB.Bson" Version="2.21.0" />
4545
</ItemGroup>
46+
47+
4648
</Project>

src/TaskManager/API/packages.lock.json

100755100644
File mode changed.

src/TaskManager/Database/packages.lock.json

100755100644
File mode changed.

src/TaskManager/TaskManager/Monai.Deploy.WorkflowManager.TaskManager.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,14 @@
7878
<ItemGroup>
7979
<ProjectReference Include="..\..\Common\Configuration\Monai.Deploy.WorkflowManager.Common.Configuration.csproj" />
8080
<ProjectReference Include="..\..\Common\Miscellaneous\Monai.Deploy.WorkflowManager.Common.Miscellaneous.csproj" />
81-
<ProjectReference Include="..\..\Common\Miscellaneous\Monai.Deploy.WorkflowManager.Common.Miscellaneous.csproj" />
8281
<ProjectReference Include="..\API\Monai.Deploy.WorkflowManager.TaskManager.API.csproj" />
8382
<ProjectReference Include="..\Database\Monai.Deploy.WorkflowManager.TaskManager.Database.csproj" />
8483
<ProjectReference Include="..\Plug-ins\AideClinicalReview\Monai.Deploy.WorkflowManager.TaskManager.AideClinicalReview.csproj">
8584
<TreatAsUsed>true</TreatAsUsed>
8685
</ProjectReference>
8786
<ProjectReference Include="..\Plug-ins\Argo\Monai.Deploy.WorkflowManager.TaskManager.Argo.csproj" />
8887
<ProjectReference Include="..\Plug-ins\Docker\Monai.Deploy.WorkflowManager.TaskManager.Docker.csproj" />
89-
<ProjectReference Include="..\Plug-ins\Email\Monai.Deploy.WorkflowManager.TaskManager.Email.csproj" />
88+
<ProjectReference Include="..\Plug-ins\Email\Monai.Deploy.WorkflowManager.TaskManager.Email.csproj"/>
9089
</ItemGroup>
9190

9291
<ItemGroup>

src/TaskManager/TaskManager/appsettings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"aideClinicalReviewCancelation": "aide.clinical_review.cancellation",
7878
"notificationEmailRequest": "aide.notification_email.request",
7979
"notificationEmailCancelation": "aide.notification_email.cancellation",
80+
"exportHl7": "md.export.hl7"
8081
},
8182
"dicomAgents": {
8283
"dicomWebAgentName": "monaidicomweb",

src/WorkflowManager/Contracts/Constants/TaskTypeConstants.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public static class TaskTypeConstants
2020
{
2121
public const string RouterTask = "router";
2222

23-
public const string ExportTask = "export";
23+
public const string DicomExportTask = "export";
2424

2525
public const string ExternalAppTask = "remote_app_execution";
2626

27-
public const string ExportHl7Task = "export_hl7";
27+
public const string HL7ExportTask = "export_hl7";
2828
}
2929
}

src/WorkflowManager/Database/packages.lock.json

100755100644
File mode changed.

0 commit comments

Comments
 (0)