Skip to content

Commit d701f62

Browse files
neildsouthmocsharp
authored andcommitted
fixing up errors
Signed-off-by: Neil South <[email protected]>
1 parent 4c7499b commit d701f62

File tree

8 files changed

+123
-10
lines changed

8 files changed

+123
-10
lines changed

src/Api/Storage/RemoteAppExecution.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
using System;
1+
/*
2+
* Copyright 2021-2023 MONAI Consortium
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
using System;
218
using System.Collections.Generic;
319
using FellowOakDicom;
420
using Monai.Deploy.Messaging.Events;

src/Database/Api/Repositories/IRemoteAppExecutionRepository.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-

1+
/*
2+
* Copyright 2021-2023 MONAI Consortium
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
217
using Monai.Deploy.InformaticsGateway.Api.Storage;
318

419
namespace Monai.Deploy.InformaticsGateway.Database.Api.Repositories

src/Database/EntityFramework/Repositories/RemoteAppExecutionRepository.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 MONAI Consortium
2+
* Copyright 2021-2023 MONAI Consortium
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
1718
using Ardalis.GuardClauses;
1819
using Microsoft.EntityFrameworkCore;
1920
using Microsoft.Extensions.DependencyInjection;

src/Database/MongoDB/Repositories/RemoteAppExecutionRepository.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
using Ardalis.GuardClauses;
1+
/*
2+
* Copyright 2021-2023 MONAI Consortium
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
using Ardalis.GuardClauses;
218
using Microsoft.Extensions.DependencyInjection;
319
using Microsoft.Extensions.Logging;
420
using Microsoft.Extensions.Options;

src/InformaticsGateway/ExecutionPlugins/ExternalAppIncoming.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
using System;
1+
/*
2+
* Copyright 2021-2023 MONAI Consortium
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
using System;
218
using System.Threading.Tasks;
319
using FellowOakDicom;
420
using Microsoft.Extensions.DependencyInjection;

src/InformaticsGateway/ExecutionPlugins/ExternalAppOutgoing.cs

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
using System;
1+
/*
2+
* Copyright 2021-2023 MONAI Consortium
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
using System;
218
using System.Threading;
319
using System.Threading.Tasks;
420
using FellowOakDicom;
@@ -40,9 +56,10 @@ public ExternalAppOutgoing(
4056

4157
foreach (var tag in tags)
4258
{
43-
if (tag.Equals(DicomTag.StudyInstanceUID) is false)
59+
if (tag.Equals(DicomTag.StudyInstanceUID) is false &&
60+
dicomFile.Dataset.TryGetString(tag, out var value))
4461
{
45-
remoteAppExecution.OriginalValues.Add(tag, dicomFile.Dataset.GetString(tag));
62+
remoteAppExecution.OriginalValues.Add(tag, value);
4663
dicomFile.Dataset.AddOrUpdate(tag, DicomUIDGenerator.GenerateDerivedFromUUID());
4764
}
4865
}

src/InformaticsGateway/ExecutionPlugins/Log.1000.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
using Microsoft.Extensions.Logging;
1+
/*
2+
* Copyright 2021-2023 MONAI Consortium
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
using Microsoft.Extensions.Logging;
218

319
namespace Monai.Deploy.InformaticsGateway.ExecutionPlugins
420
{

src/InformaticsGateway/Test/Services/Common/ExternalAppPluginTest.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
using System;
1+
/*
2+
* Copyright 2021-2023 MONAI Consortium
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
using System;
218
using System.Collections.Generic;
319
using FellowOakDicom;
420
using Microsoft.Extensions.DependencyInjection;

0 commit comments

Comments
 (0)