Skip to content

Commit

Permalink
Add Hl7 Plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Neil South <neil.south@answerdigital.com>
  • Loading branch information
neildsouth committed Dec 7, 2023
1 parent 1ce9fbb commit 7ae68a7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
80 changes: 40 additions & 40 deletions src/Api/Hl7ApplicationConfigEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,46 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using FellowOakDicom;
using Monai.Deploy.InformaticsGateway.Api.Storage;
using Monai.Deploy.InformaticsGateway.Common;
using Newtonsoft.Json;

namespace Monai.Deploy.InformaticsGateway.Api
{
public class Hl7ApplicationConfigEntity : MongoDBEntityBase
{
/// <summary>
/// Gets or sets the name of a Hl7 application entity.
/// This value must be unique.
/// </summary>
[Key, Column(Order = 0)]
public string Name { get; set; } = default!;

/// <summary>
/// Gets or sets the sending identifier.
/// </summary>
[JsonProperty("sending_identifier")]
public StringKeyValuePair SendingId { get; set; } = new();

/// <summary>
/// Gets or sets the data link.
/// Value is either PatientId or StudyInstanceUid
/// </summary>
[JsonProperty("data_link")]
public DataKeyValuePair DataLink { get; set; } = new();

/// <summary>
/// Gets or sets the data mapping.
/// Value is a DICOM Tag
/// </summary>
[JsonProperty("data_mapping")]
public List<StringKeyValuePair> DataMapping { get; set; } = new();

/// <summary>
/// Optional list of data input plug-in type names to be executed by the <see cref="IInputHL7DataPlugInEngine"/>.
/// </summary>
public List<string> PlugInAssemblies { get; set; } = default!;

using Monai.Deploy.InformaticsGateway.Api.Storage;
using Monai.Deploy.InformaticsGateway.Common;
using Newtonsoft.Json;

namespace Monai.Deploy.InformaticsGateway.Api
{
public class Hl7ApplicationConfigEntity : MongoDBEntityBase
{
/// <summary>
/// Gets or sets the name of a Hl7 application entity.
/// This value must be unique.
/// </summary>
[Key, Column(Order = 0)]
public string Name { get; set; } = default!;

/// <summary>
/// Gets or sets the sending identifier.
/// </summary>
[JsonProperty("sending_identifier")]
public StringKeyValuePair SendingId { get; set; } = new();

/// <summary>
/// Gets or sets the data link.
/// Value is either PatientId or StudyInstanceUid
/// </summary>
[JsonProperty("data_link")]
public DataKeyValuePair DataLink { get; set; } = new();

/// <summary>
/// Gets or sets the data mapping.
/// Value is a DICOM Tag
/// </summary>
[JsonProperty("data_mapping")]
public List<StringKeyValuePair> DataMapping { get; set; } = new();

/// <summary>
/// Optional list of data input plug-in type names to be executed by the <see cref="IInputHL7DataPlugInEngine"/>.
/// </summary>
public List<string> PlugInAssemblies { get; set; } = default!;

public DateTime LastModified { get; set; } = DateTime.UtcNow;

public IEnumerable<string> Validate()
Expand Down
8 changes: 4 additions & 4 deletions tests/Integration.Test/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"KMS": {
"KeyVaultNamespace": "InformaticsGateway.KeyVault",
"AWS": {
"accessKeyId": "AKIAYYAYMUAQLF7DAQ5L",
"arnKey": "arn:aws:kms:eu-west-2:601346580512:key/cea64bda-b0b6-499b-b068-c99323339b0d",
"roleArnToAssume": "arn:aws:iam::601346580512:role/PseudonymisationAssumerRole",
"accessKeyId": "",
"arnKey": "",
"roleArnToAssume": "",
"region": "eu-west-2",
"secretAccessKey": "P8TqpN2yrhwUr8IFQSfaXyejDrpSy2tte7LJfzwI"
"secretAccessKey": ""
}
}
}
Expand Down

0 comments on commit 7ae68a7

Please sign in to comment.