File tree Expand file tree Collapse file tree 8 files changed +123
-10
lines changed
EntityFramework/Repositories Expand file tree Collapse file tree 8 files changed +123
-10
lines changed Original file line number Diff line number Diff line change 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 ;
2
18
using System . Collections . Generic ;
3
19
using FellowOakDicom ;
4
20
using Monai . Deploy . Messaging . Events ;
Original file line number Diff line number Diff line change 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
+
2
17
using Monai . Deploy . InformaticsGateway . Api . Storage ;
3
18
4
19
namespace Monai . Deploy . InformaticsGateway . Database . Api . Repositories
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2022 MONAI Consortium
2
+ * Copyright 2021-2023 MONAI Consortium
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
14
14
* limitations under the License.
15
15
*/
16
16
17
+
17
18
using Ardalis . GuardClauses ;
18
19
using Microsoft . EntityFrameworkCore ;
19
20
using Microsoft . Extensions . DependencyInjection ;
Original file line number Diff line number Diff line change 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 ;
2
18
using Microsoft . Extensions . DependencyInjection ;
3
19
using Microsoft . Extensions . Logging ;
4
20
using Microsoft . Extensions . Options ;
Original file line number Diff line number Diff line change 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 ;
2
18
using System . Threading . Tasks ;
3
19
using FellowOakDicom ;
4
20
using Microsoft . Extensions . DependencyInjection ;
Original file line number Diff line number Diff line change 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 ;
2
18
using System . Threading ;
3
19
using System . Threading . Tasks ;
4
20
using FellowOakDicom ;
@@ -40,9 +56,10 @@ public ExternalAppOutgoing(
40
56
41
57
foreach ( var tag in tags )
42
58
{
43
- if ( tag . Equals ( DicomTag . StudyInstanceUID ) is false )
59
+ if ( tag . Equals ( DicomTag . StudyInstanceUID ) is false &&
60
+ dicomFile . Dataset . TryGetString ( tag , out var value ) )
44
61
{
45
- remoteAppExecution . OriginalValues . Add ( tag , dicomFile . Dataset . GetString ( tag ) ) ;
62
+ remoteAppExecution . OriginalValues . Add ( tag , value ) ;
46
63
dicomFile . Dataset . AddOrUpdate ( tag , DicomUIDGenerator . GenerateDerivedFromUUID ( ) ) ;
47
64
}
48
65
}
Original file line number Diff line number Diff line change 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 ;
2
18
3
19
namespace Monai . Deploy . InformaticsGateway . ExecutionPlugins
4
20
{
Original file line number Diff line number Diff line change 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 ;
2
18
using System . Collections . Generic ;
3
19
using FellowOakDicom ;
4
20
using Microsoft . Extensions . DependencyInjection ;
You can’t perform that action at this time.
0 commit comments