-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathConfigDTO.cs
More file actions
114 lines (102 loc) · 3.52 KB
/
ConfigDTO.cs
File metadata and controls
114 lines (102 loc) · 3.52 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// Copyright (c) 2022, UW Medicine Research IT, University of Washington
// Developed by Nic Dobbins and Cliff Spital, CRIO Sean Mooney
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
using System;
using Model.Options;
namespace API.DTO.Config
{
public class ConfigDTO
{
public AuthenticationConfigDTO Authentication { get; set; }
public AttestationConfigDTO Attestation { get; set; }
public CohortConfigDTO Cohort { get; set; }
public ClientOptionsDTO Client { get;set; }
public VersionConfigDTO Version { get; set; }
}
public class AuthenticationConfigDTO
{
public AuthenticationMechanism Mechanism { get; set; }
public int InactivityTimeoutMinutes { get; set; }
public LogoutConfigDTO Logout { get; set; }
public class LogoutConfigDTO
{
public bool Enabled { get; set; }
public string URI { get; set; }
public LogoutConfigDTO() { }
public LogoutConfigDTO(LogoutOptions opts)
{
Enabled = opts.Enabled;
if (Enabled)
{
URI = opts.URI.ToString();
}
}
}
}
public class CohortConfigDTO
{
public int CacheLimit { get; set; }
public int ExportLimit { get; set; }
public int LowCellMaskingThreshold { get; set; }
public bool DeidentificationEnabled { get; set; }
}
public class AttestationConfigDTO
{
public bool Enabled { get; set; }
public bool SkipModeSelection { get; set; }
public string[] Text { get; set; }
public CustomAttestationType Type { get; set; }
public AttestationCreditsDTO Credits { get; set; }
public class AttestationCreditsDTO
{
public bool Enabled { get; set; }
public string[] Logos { get; set; }
public string Text { get; set; }
}
}
public class ClientOptionsDTO
{
public FindPatientsDTO FindPatients = new FindPatientsDTO();
public MapOptionsDTO Map = new MapOptionsDTO();
public VisualizeOptionsDTO Visualize = new VisualizeOptionsDTO();
public TimelinesOptionsDTO Timelines = new TimelinesOptionsDTO();
public PatientListOptionsDTO PatientList = new PatientListOptionsDTO();
public HelpOptionsDTO Help = new HelpOptionsDTO();
public class FindPatientsDTO
{
public bool AllowEmptyConcepts { get; set; }
}
public class MapOptionsDTO
{
public bool Enabled { get; set; }
public string TileURI { get; set; }
}
public class VisualizeOptionsDTO
{
public bool Enabled { get; set; }
public bool ShowFederated { get; set; }
}
public class TimelinesOptionsDTO
{
public bool Enabled { get; set; }
}
public class PatientListOptionsDTO
{
public bool Enabled { get; set; }
}
public class HelpOptionsDTO
{
public bool Enabled { get; set; }
public bool AutoSend { get; set; }
public string Email { get; set; }
public string URI { get; set; }
}
}
public class VersionConfigDTO
{
public string Server { get; set; }
public string Db { get; set; }
}
}