Skip to content

Commit 7ae68a7

Browse files
committed
Add Hl7 Plugin
Signed-off-by: Neil South <[email protected]>
1 parent 1ce9fbb commit 7ae68a7

File tree

2 files changed

+44
-44
lines changed

2 files changed

+44
-44
lines changed

src/Api/Hl7ApplicationConfigEntity.cs

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,46 +20,46 @@
2020
using System.ComponentModel.DataAnnotations.Schema;
2121
using System.Linq;
2222
using FellowOakDicom;
23-
using Monai.Deploy.InformaticsGateway.Api.Storage;
24-
using Monai.Deploy.InformaticsGateway.Common;
25-
using Newtonsoft.Json;
26-
27-
namespace Monai.Deploy.InformaticsGateway.Api
28-
{
29-
public class Hl7ApplicationConfigEntity : MongoDBEntityBase
30-
{
31-
/// <summary>
32-
/// Gets or sets the name of a Hl7 application entity.
33-
/// This value must be unique.
34-
/// </summary>
35-
[Key, Column(Order = 0)]
36-
public string Name { get; set; } = default!;
37-
38-
/// <summary>
39-
/// Gets or sets the sending identifier.
40-
/// </summary>
41-
[JsonProperty("sending_identifier")]
42-
public StringKeyValuePair SendingId { get; set; } = new();
43-
44-
/// <summary>
45-
/// Gets or sets the data link.
46-
/// Value is either PatientId or StudyInstanceUid
47-
/// </summary>
48-
[JsonProperty("data_link")]
49-
public DataKeyValuePair DataLink { get; set; } = new();
50-
51-
/// <summary>
52-
/// Gets or sets the data mapping.
53-
/// Value is a DICOM Tag
54-
/// </summary>
55-
[JsonProperty("data_mapping")]
56-
public List<StringKeyValuePair> DataMapping { get; set; } = new();
57-
58-
/// <summary>
59-
/// Optional list of data input plug-in type names to be executed by the <see cref="IInputHL7DataPlugInEngine"/>.
60-
/// </summary>
61-
public List<string> PlugInAssemblies { get; set; } = default!;
62-
23+
using Monai.Deploy.InformaticsGateway.Api.Storage;
24+
using Monai.Deploy.InformaticsGateway.Common;
25+
using Newtonsoft.Json;
26+
27+
namespace Monai.Deploy.InformaticsGateway.Api
28+
{
29+
public class Hl7ApplicationConfigEntity : MongoDBEntityBase
30+
{
31+
/// <summary>
32+
/// Gets or sets the name of a Hl7 application entity.
33+
/// This value must be unique.
34+
/// </summary>
35+
[Key, Column(Order = 0)]
36+
public string Name { get; set; } = default!;
37+
38+
/// <summary>
39+
/// Gets or sets the sending identifier.
40+
/// </summary>
41+
[JsonProperty("sending_identifier")]
42+
public StringKeyValuePair SendingId { get; set; } = new();
43+
44+
/// <summary>
45+
/// Gets or sets the data link.
46+
/// Value is either PatientId or StudyInstanceUid
47+
/// </summary>
48+
[JsonProperty("data_link")]
49+
public DataKeyValuePair DataLink { get; set; } = new();
50+
51+
/// <summary>
52+
/// Gets or sets the data mapping.
53+
/// Value is a DICOM Tag
54+
/// </summary>
55+
[JsonProperty("data_mapping")]
56+
public List<StringKeyValuePair> DataMapping { get; set; } = new();
57+
58+
/// <summary>
59+
/// Optional list of data input plug-in type names to be executed by the <see cref="IInputHL7DataPlugInEngine"/>.
60+
/// </summary>
61+
public List<string> PlugInAssemblies { get; set; } = default!;
62+
6363
public DateTime LastModified { get; set; } = DateTime.UtcNow;
6464

6565
public IEnumerable<string> Validate()

tests/Integration.Test/appsettings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"KMS": {
1818
"KeyVaultNamespace": "InformaticsGateway.KeyVault",
1919
"AWS": {
20-
"accessKeyId": "AKIAYYAYMUAQLF7DAQ5L",
21-
"arnKey": "arn:aws:kms:eu-west-2:601346580512:key/cea64bda-b0b6-499b-b068-c99323339b0d",
22-
"roleArnToAssume": "arn:aws:iam::601346580512:role/PseudonymisationAssumerRole",
20+
"accessKeyId": "",
21+
"arnKey": "",
22+
"roleArnToAssume": "",
2323
"region": "eu-west-2",
24-
"secretAccessKey": "P8TqpN2yrhwUr8IFQSfaXyejDrpSy2tte7LJfzwI"
24+
"secretAccessKey": ""
2525
}
2626
}
2727
}

0 commit comments

Comments
 (0)