Skip to content

Commit

Permalink
parking for now
Browse files Browse the repository at this point in the history
Signed-off-by: Neil South <[email protected]>
  • Loading branch information
neildsouth committed Sep 6, 2023
1 parent 6a7587c commit 81cd5f8
Show file tree
Hide file tree
Showing 15 changed files with 784 additions and 5 deletions.
Empty file modified src/Api/Storage/FileStorageMetadata.cs
100644 → 100755
Empty file.
12 changes: 10 additions & 2 deletions src/Api/Storage/Payload.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using System.Diagnostics;
using System.Linq;
using Ardalis.GuardClauses;
using Monai.Deploy.InformaticsGateway.Common;
using Monai.Deploy.Messaging.Events;

namespace Monai.Deploy.InformaticsGateway.Api.Storage
Expand All @@ -40,7 +41,12 @@ public enum PayloadState
/// <summary>
/// Payload is ready to be published to the message broker.
/// </summary>
Notify
Notify,

/// <summary>
/// Payload has been finished with.
/// </summary>
UploadComplete
}

public const int MAX_RETRY = 3;
Expand Down Expand Up @@ -86,6 +92,8 @@ public TimeSpan Elapsed

public int FilesFailedToUpload { get => Files.Count(p => p.IsUploadFailed); }

public PatientDetails? PatientDetails { get; set; }

public Payload(string key, string correlationId, string? workflowInstanceId, string? taskId, DataOrigin dataTrigger, uint timeout)
{
Guard.Against.NullOrWhiteSpace(key, nameof(key));
Expand Down Expand Up @@ -158,4 +166,4 @@ public void Dispose()
GC.SuppressFinalize(this);
}
}
}
}
48 changes: 48 additions & 0 deletions src/Common/PatientDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright 2022 MONAI Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

using System;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Monai.Deploy.InformaticsGateway.Common
{
public class PatientDetails
{
[JsonPropertyName("patient_id")]
public string? PatientId { get; set; }

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / analyze

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / unit-test

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / docs

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 26 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Analyze

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

[JsonPropertyName("patient_name")]
public string? PatientName { get; set; }

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / analyze

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / unit-test

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / docs

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 29 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Analyze

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

[JsonPropertyName("patient_sex")]
public string? PatientSex { get; set; }

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / analyze

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / unit-test

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / docs

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 32 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Analyze

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

[JsonPropertyName("patient_dob")]
public DateTime? PatientDob { get; set; }

[JsonPropertyName("patient_age")]
public string? PatientAge { get; set; }

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / analyze

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / unit-test

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / docs

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 38 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Analyze

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

[JsonPropertyName("patient_hospital_id")]
public string? PatientHospitalId { get; set; }

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, ef)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, mongodb)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / analyze

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / unit-test

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / docs

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 41 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Analyze

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

public override string ToString()
{
return JsonSerializer.Serialize(this);

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, ef)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, ef)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, ef)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, mongodb)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, ef)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, ef)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, mongodb)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, mongodb)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebStow, mongodb)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (HealthLevel7, ef)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomWebExport, mongodb)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (RemoteAppExecutionPlugIn, ef)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (Fhir, ef)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (AcrApi, mongodb)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScu, mongodb)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / integration-test (DicomDimseScp, mongodb)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / analyze

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / unit-test

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / docs

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.

Check warning on line 45 in src/Common/PatientDetails.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Analyze

Using member 'System.Text.Json.JsonSerializer.Serialize<Monai.Deploy.InformaticsGateway.Common.PatientDetails>(Monai.Deploy.InformaticsGateway.Common.PatientDetails, System.Text.Json.JsonSerializerOptions?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
}
}
}
29 changes: 29 additions & 0 deletions src/InformaticsGateway/Logging/Log.6000.DicomService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using Microsoft.Extensions.Logging;

namespace Monai.Deploy.InformaticsGateway.Logging
{
public static partial class Log
{
[LoggerMessage(EventId = 6000, Level = LogLevel.Error, Message = "Failed to get DICOM tag {dicomTag} in bucket {bucketId}. Payload: {payloadId}")]
public static partial void FailedToGetDicomTagFromPayload(this ILogger logger, string payloadId, string dicomTag, string bucketId, Exception ex);

[LoggerMessage(EventId = 6001, Level = LogLevel.Information, Message = "Attempted to retrieve Patient Name from DCM file, result: {name}")]
public static partial void GetPatientName(this ILogger logger, string name);

[LoggerMessage(EventId = 6002, Level = LogLevel.Information, Message = "Unsupported Type '{vr}' {vrFull} with value: {value} result: '{result}'")]
public static partial void UnsupportedType(this ILogger logger, string vr, string vrFull, string value, string result);

[LoggerMessage(EventId = 6003, Level = LogLevel.Information, Message = "Decoding supported type '{vr}' {vrFull} with value: {value} result: '{result}'")]
public static partial void SupportedType(this ILogger logger, string vr, string vrFull, string value, string result);

[LoggerMessage(EventId = 6004, Level = LogLevel.Error, Message = "Failed trying to cast Dicom Value to string {value}")]
public static partial void UnableToCastDicomValueToString(this ILogger logger, string value, Exception ex);

[LoggerMessage(EventId = 6005, Level = LogLevel.Debug, Message = "Dicom export marked as succeeded with {fileStatusCount} files marked as exported.")]
public static partial void DicomExportSucceeded(this ILogger logger, string fileStatusCount);

[LoggerMessage(EventId = 6006, Level = LogLevel.Debug, Message = "Dicom export marked as failed with {fileStatusCount} files marked as exported.")]
public static partial void DicomExportFailed(this ILogger logger, string fileStatusCount);
}
}
1 change: 1 addition & 0 deletions src/InformaticsGateway/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ internal static IHostBuilder CreateHostBuilder(string[] args) =>
services.AddScoped<IOutputDataPlugInEngine, OutputDataPlugInEngine>();
services.AddScoped<IDataPlugInEngineFactory<IInputDataPlugIn>, InputDataPlugInEngineFactory>();
services.AddScoped<IDataPlugInEngineFactory<IOutputDataPlugIn>, OutputDataPlugInEngineFactory>();
services.AddScoped<IDicomService, DicomService>();
services.AddMonaiDeployStorageService(hostContext.Configuration.GetSection("InformaticsGateway:storage:serviceAssemblyName").Value, Monai.Deploy.Storage.HealthCheckOptions.ServiceHealthCheck);
Expand Down
Loading

0 comments on commit 81cd5f8

Please sign in to comment.