/
ExtractFileMessage.cs
37 lines (30 loc) · 1.27 KB
/
ExtractFileMessage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Newtonsoft.Json;
namespace Smi.Common.Messages.Extraction
{
/// <summary>
/// Describes a single image which should be extracted and anonymised using the provided anonymisation script
/// </summary>
public class ExtractFileMessage : ExtractMessage, IFileReferenceMessage
{
/// <summary>
/// The file path where the original dicom file can be found, relative to the FileSystemRoot
/// </summary>
[JsonProperty(Required = Required.Always)]
public string DicomFilePath { get; set; } = null!;
/// <summary>
/// The subdirectory and dicom filename within the ExtractionDirectory to extract the identifiable image (specified by <see cref="DicomFilePath"/>) into. For example
/// "Series132\1234-an.dcm"
/// </summary>
[JsonProperty(Required = Required.Always)]
public string OutputPath { get; set; } = null!;
/// <summary>
/// The modality of the specified file
/// </summary>
[JsonProperty(Required = Required.AllowNull)]
public string Modality { get; set; } = null!;
[JsonConstructor]
public ExtractFileMessage() { }
public ExtractFileMessage(ExtractionRequestMessage request)
: base(request) { }
}
}