Creado apartir del commit b888de6c92056de294456f581a56e25e734d4ab7 de develop
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
using adas_core.Domain.Models.Masters;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Admission
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public DateTime AdmissionDate { get; set; }
|
||||
public string Nhc { get; set; } = string.Empty;
|
||||
public ObjectId UnitId { get; set; }
|
||||
public ObjectId? PointOfCareId { get; set; }
|
||||
public Person? Person { get; set; }
|
||||
|
||||
public OptionList? Origin { get; set; }
|
||||
public string? OriginAux { get; set; }
|
||||
|
||||
public OptionList? Diagnosis { get; set; }
|
||||
public string? DiagnosisAux { get; set; }
|
||||
|
||||
public List<OptionList>? Allergies { get; set; }
|
||||
public OptionList? Insulation { get; set; }
|
||||
public List<OptionList>? LanguageBarrier { get; set; }
|
||||
public OptionList? PassiveSitting { get; set; }
|
||||
|
||||
#region UnMap
|
||||
|
||||
public PatientLocation? PatientLocation { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items = [];
|
||||
|
||||
if (!string.IsNullOrEmpty(Nhc)) items.Add($"NHC: {Nhc}");
|
||||
if (Person != null) items.Add($", Person: {Person}");
|
||||
items.Add($"Admission Date: {AdmissionDate}");
|
||||
if (PointOfCareId != null) items.Add($"Location: {PointOfCareId}");
|
||||
if (PatientLocation != null) items.Add($"Location: {PatientLocation}");
|
||||
if (Origin != null) items.Add($", Origin: {Origin.Name}");
|
||||
if (Diagnosis != null) items.Add($", Diagnosis; {Diagnosis.Name}");
|
||||
if (Allergies != null)
|
||||
{
|
||||
items.Add("Allergies:");
|
||||
Allergies.ForEach(a => items.Add($", Allergy; {a.Name}"));
|
||||
}
|
||||
|
||||
return "Admission [" + string.Join(", ", items) + "]";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using adas_core.Domain.Enums;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class AlarmConfig
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public int EndAfter { get; set; } //seconds
|
||||
public AlarmItem? Recording { get; set; }
|
||||
public AlarmItem? Beacon { get; set; }
|
||||
public AlarmItem? OpenDoor { get; set; }
|
||||
public int? Priority { get; set; }
|
||||
public string? Color { get; set; }
|
||||
public AudioConfig? AudioConfig { get; set; }
|
||||
}
|
||||
|
||||
public class AudioConfig
|
||||
{
|
||||
public AlarmEnum.AudioAlarmType Type { get; set; } = AlarmEnum.AudioAlarmType.Off;
|
||||
public string? Path { get; set; }
|
||||
public int? EndAfter { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using adas_core.Domain.Enums;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class AlarmItem
|
||||
{
|
||||
public bool Enabled { get; set; }
|
||||
public int StartBefore { get; set; } // seconds
|
||||
public int EndAfter { get; set; } // seconds overrides
|
||||
|
||||
public string? Color
|
||||
{
|
||||
get => BeaconColor.ToString();
|
||||
set
|
||||
{
|
||||
if (!string.IsNullOrEmpty(value) && Enum.TryParse(value, out AlarmEnum.BeaconColor color))
|
||||
BeaconColor = color;
|
||||
}
|
||||
}
|
||||
|
||||
public AlarmEnum.Severity Severity { get; set; } = AlarmEnum.Severity.None;
|
||||
public AlarmEnum.BeaconColor BeaconColor { get; set; } = AlarmEnum.BeaconColor.None;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items =
|
||||
[
|
||||
$"Enabled: {Enabled}",
|
||||
$"StartBefore: {StartBefore}",
|
||||
$"EndAfter: {EndAfter}",
|
||||
$"Severity: {Severity}",
|
||||
$"BeaconColorEnum: {BeaconColor}"
|
||||
];
|
||||
if (!string.IsNullOrEmpty(Color)) items.Add($"Color: {Color}");
|
||||
|
||||
|
||||
return "AlarmItem[" + string.Join(", ", items) + "]";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Authorization
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
public ObjectId UserId { get; set; }
|
||||
|
||||
public string? Rol { get; set; } = string.Empty;
|
||||
|
||||
public string? DisplayId { get; set; } = string.Empty;
|
||||
public string? UnitId { get; set; } = null;
|
||||
public bool PanelAuthorization { get; set; }
|
||||
public bool CanUpdate { get; set; } = true;
|
||||
|
||||
#region NotMapped
|
||||
|
||||
public Unit? Unit { get; set; }
|
||||
public Display? Display { get; set; }
|
||||
public User? User { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using adas_core.Domain.Models.Observations;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Box
|
||||
{
|
||||
public Person? AttendingDoctor;
|
||||
public string? PointOfCare { get; set; }
|
||||
|
||||
public string? Bed { get; set; }
|
||||
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
public bool IsVisible { get; set; } = true;
|
||||
|
||||
public Dictionary<string, object>? Configuration { get; set; }
|
||||
|
||||
public PatientLocation Location => new(PointOfCare, Bed);
|
||||
|
||||
public bool HasPatient { get; set; }
|
||||
|
||||
public ObjectId? Patientid { get; set; }
|
||||
|
||||
public Patient? Patient { get; set; }
|
||||
|
||||
public StatusEnum.Type Type { get; set; }
|
||||
|
||||
public List<PatientObservation>? Observations { get; set; }
|
||||
|
||||
public List<Medication>? Medication { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Camera
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public string? Name { get; set; } = string.Empty;
|
||||
|
||||
public Stream? Streams { get; set; }
|
||||
|
||||
public bool Ptz { get; set; }
|
||||
|
||||
public string? Driver { get; set; }
|
||||
|
||||
public string? Ip { get; set; }
|
||||
|
||||
public string? Username { get; set; }
|
||||
|
||||
public string? Password { get; set; }
|
||||
public bool InUse { get; private set; }
|
||||
}
|
||||
|
||||
public class Stream
|
||||
{
|
||||
public string? Rtsp { get; set; }
|
||||
public string? Jpeg { get; set; }
|
||||
public string? WebRtc { get; set; }
|
||||
public string? Hls { get; set; }
|
||||
public string? Mp4 { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
using System.Xml.Serialization;
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class ConfigObservation
|
||||
{
|
||||
public Dictionary<string, ConfigObservation>? Grouped;
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
public string? Code { get; set; }
|
||||
|
||||
public string? CodingSystem { get; set; }
|
||||
|
||||
public string? OriginalName { get; set; }
|
||||
|
||||
public string? ParentCode { get; set; }
|
||||
|
||||
public string? ParentCodingSystem { get; set; }
|
||||
|
||||
public string? ParentName { get; set; }
|
||||
|
||||
public string? Name { get; set; }
|
||||
|
||||
public string? Units { get; set; }
|
||||
|
||||
public ObservationEnum.ArrowType ArrowType { get; set; } = ObservationEnum.ArrowType.Default;
|
||||
|
||||
public bool ShowArrow { get; set; } = true;
|
||||
|
||||
public bool ShowValue { get; set; } = true;
|
||||
|
||||
|
||||
public bool ForceUnits { get; set; }
|
||||
|
||||
public double? MinAlert { get; set; }
|
||||
|
||||
public double? MaxAlert { get; set; }
|
||||
|
||||
public double? MaxWarn { get; set; }
|
||||
public double? MinWarn { get; set; }
|
||||
public string? WarnColor { get; set; }
|
||||
public string? AlertColor { get; set; }
|
||||
|
||||
|
||||
public List<object>? AlertValues { get; set; }
|
||||
public List<object>? WarningValues { get; set; }
|
||||
|
||||
|
||||
public bool ForceWarn { get; set; }
|
||||
|
||||
|
||||
public bool ForceAlert { get; set; }
|
||||
public char? Alert { get; set; }
|
||||
public int? Expires { get; set; }
|
||||
|
||||
public bool ShowOnExpired { get; set; }
|
||||
public bool? Persist { get; set; }
|
||||
public string? ColorOnExpired { get; set; }
|
||||
public RetentionPolicy? RetentionPolicy { get; set; }
|
||||
public int? RetentionPolicyValue { get; set; }
|
||||
public string? LevelCondition { get; set; }
|
||||
public Dictionary<string, object>? UiConfiguration { get; set; }
|
||||
public AlarmConfig? Alarm { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public object? RequiredValue { get; set; }
|
||||
public List<ConfigObservation>? Preconditions { get; set; }
|
||||
public bool CheckObservations { get; set; }
|
||||
public List<ConfigObservation>? CreateObservation { get; set; }
|
||||
public ObservationEnum.InsertMode InsertMode { get; set; } = ObservationEnum.InsertMode.Auto;
|
||||
public bool TimeFromMessageTime { get; set; } = false;
|
||||
public List<ColorRange>? ColorRanges { get; set; }
|
||||
public DemoConfig? DemoConfig { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
public class ColorRange
|
||||
{
|
||||
public ObservationEnum.ValueType? ValueType;
|
||||
|
||||
//Para números
|
||||
public double? Min { get; set; }
|
||||
public double? Max { get; set; }
|
||||
|
||||
//Para Strings
|
||||
public string? MatchText { get; set; }
|
||||
|
||||
//Para booleanos
|
||||
public bool? MatchBoolean { get; set; }
|
||||
|
||||
// Para fechas (en formato ISO)
|
||||
public string? MinDate { get; set; }
|
||||
public string? MaxDate { get; set; }
|
||||
|
||||
//Estética
|
||||
public string? Color { get; set; }
|
||||
public string? Label { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class DemoConfig
|
||||
{
|
||||
public int? MaxValue { get; set; }
|
||||
public int? MinValue { get; set; }
|
||||
public object? ValueOption { get; set; }
|
||||
public bool? SetRandomValue { get; set; }
|
||||
public bool? SetInValue { get; set; }
|
||||
public int? RandomCount { get; set; }
|
||||
public bool? ValueIsArray { get; set; }
|
||||
public bool? RequireInitDate { get; set; }
|
||||
public bool? RequireEndDate { get; set; }
|
||||
public int? PriorityAlarm { get; set; }
|
||||
//Campos para el simulador del Admin
|
||||
public int? Periodicity { get; set; }
|
||||
public ObservationEnum.XmlType? XmlType { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using adas_core.Domain.Enums;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class ConfigPumps
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
public List<ConfigPumpItem>? Items { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class ConfigPumpItem
|
||||
{
|
||||
public PumpEnum.AlarmType? AlarmType { get; set; }
|
||||
|
||||
public Dictionary<string, object>? UiConfiguration { get; set; }
|
||||
|
||||
public PumpEnum.PumpMessageType? Type { get; set; }
|
||||
|
||||
public RetentionPolicy? RetentionPolicy { get; set; }
|
||||
public int? RetentionPolicyValue { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class ConfigUnits
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
public List<ConfigUnitItem>? Items { get; set; }
|
||||
}
|
||||
|
||||
public class ConfigUnitItem
|
||||
{
|
||||
public string? Code { get; set; }
|
||||
|
||||
public string? Value { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Device
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public List<ObjectId> PointOfCareIds { get; set; } = new();
|
||||
public DeviceType DeviceType { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
public int? Battery { get; set; }
|
||||
public string? MacAddr { get; set; }
|
||||
public string? SerialNumber { get; set; }
|
||||
public string? Color { get; set; }
|
||||
public bool Connected { get; set; }
|
||||
public bool Ready { get; set; }
|
||||
public string? Uuid { get; set; }
|
||||
public string? Key { get; set; }
|
||||
public DeviceSettings? Settings { get; set; }
|
||||
}
|
||||
|
||||
public class DeviceSettings
|
||||
{
|
||||
public DeviceAction? Action { get; set; }
|
||||
}
|
||||
public class DeviceAction
|
||||
{
|
||||
public DeviceActionType Type { get; set; }
|
||||
public ObjectId ConfigObservationId { get; set; }
|
||||
public string? AlarmName { get; set; }
|
||||
public object? ValueOnSingleClick { get; set; }
|
||||
public object? ValueOnDoubleClick { get; set; }
|
||||
public object? ValueOnHoldClick { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using adas_core.Domain.Models.Masters;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Discharge
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public ObjectId? PointOfCareId { get; set; }
|
||||
public ObjectId? UnitId { get; set; }
|
||||
public DateTime DischargeDate { get; set; }
|
||||
|
||||
public ObjectId PatientId { get; set; }
|
||||
public string? Destination { get; set; }
|
||||
public OptionList? DestinationOption { get; set; }
|
||||
public OptionList? ServiceOption { get; set; }
|
||||
public string? Service { get; set; }
|
||||
public DateTime? MedicalDischarge { get; set; }
|
||||
public DateTime? AdminDischarge { get; set; }
|
||||
public DateTime? NurseDischarge { get; set; }
|
||||
|
||||
#region UnMap
|
||||
|
||||
public Patient? Patient { get; set; }
|
||||
public PatientLocation? PatientLocation { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Display
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public ObjectId UnitId { get; set; }
|
||||
public ObjectId? DisplayConfigId { get; set; }
|
||||
public required string Name { get; set; }
|
||||
public List<ObjectId> PointOfCareIdList { get; set; } = [];
|
||||
|
||||
public DisplayConfigEnums.DisplayType Type { get; set; } = DisplayConfigEnums.DisplayType.Unknown;
|
||||
|
||||
#region Unmap
|
||||
|
||||
public Unit? Unit { get; set; }
|
||||
public List<PointOfCare> PointOfCares { get; set; } = [];
|
||||
public DisplayConfig? DisplayConfig { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
#region HomeConfig
|
||||
|
||||
public class CardConfig
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public List<RowCardConfig>? Rows { get; set; }
|
||||
}
|
||||
|
||||
public class RowCardConfig
|
||||
{
|
||||
// Dynamic cells de nurse y Dynamic Obs de monitoring
|
||||
public List<Cell>? Cells { get; set; }
|
||||
public double? GrowPriority { get; set; }
|
||||
public DisplayConfigEnums.CellType Type { get; set; }
|
||||
public string? Border { get; set; }
|
||||
public string? BorderRadius { get; set; }
|
||||
public string? Title { get; set; }
|
||||
public string? Size { get; set; }
|
||||
public string? MarginTop { get; set; }
|
||||
public string? MarginBottom { get; set; }
|
||||
public string? MarginLeft { get; set; }
|
||||
public string? MarginRight { get; set; }
|
||||
public string? BgColor { get; set; }
|
||||
public string? PaddingTop { get; set; }
|
||||
public string? PaddingBottom { get; set; }
|
||||
public string? PaddingLeft { get; set; }
|
||||
public string? PaddingRight { get; set; }
|
||||
}
|
||||
|
||||
public class Cell
|
||||
{
|
||||
public ChartSettings? ChartSettings { get; set; }
|
||||
public List<ObservationTextRule>? TextRules { get; set; }
|
||||
public DisplayConfigEnums.CellType Type { get; set; }
|
||||
|
||||
public string? SubType { get; set; }
|
||||
public double? Size { get; set; }
|
||||
public List<Cell>? SubObs { get; set; }
|
||||
public bool? HideName { get; set; }
|
||||
public bool? IsStatic { get; set; }
|
||||
public double? GrowPriority { get; set; }
|
||||
public string? Border { get; set; }
|
||||
public string? BorderRadius { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public bool IsVisible { get; set; } = true;
|
||||
public bool? IsColumn { get; set; }
|
||||
public string? BgColor { get; set; }
|
||||
public string? Title { get; set; }
|
||||
|
||||
public string? ValuePathNested { get; set; }
|
||||
public List<string>? ValuePathKey { get; set; }
|
||||
public List<IconValueList>? IconValueList { get; set; }
|
||||
public string? PaddingTop { get; set; }
|
||||
public string? PaddingBottom { get; set; }
|
||||
public string? PaddingLeft { get; set; }
|
||||
public string? PaddingRight { get; set; }
|
||||
public string? Color { get; set; }
|
||||
public string? BackgroundColor { get; set; }
|
||||
public bool? ShowIcon { get; set; }
|
||||
public string? FlexBasis { get; set; }
|
||||
public string? Grow { get; set; }
|
||||
public string? Shrink { get; set; }
|
||||
public bool? ShowTitle { get; set; }
|
||||
public DialogConfig? DialogConfig { get; set; }
|
||||
public bool? IndicatorHorizontal { get; set; }
|
||||
public bool? ShowIndicator { get; set; }
|
||||
public bool? OnlyNumber { get; set; }
|
||||
public bool? ShowArrow { get; set; }
|
||||
public string? GraphConf { get; set; }
|
||||
public List<string>? Names { get; set; }
|
||||
public List<string>? ObservationName { get; set; }
|
||||
public List<List<string>?>? ObservationTitle { get; set; }
|
||||
public DisplayConfigEnums.DirectionEnum? Direction { get; set; }
|
||||
}
|
||||
|
||||
public class ChartSettings
|
||||
{
|
||||
public LegendLayoutConfig? LegendLayoutConfig { get; set; }
|
||||
public decimal? LegendGrowPriority { get; set; }
|
||||
public decimal? ChartGrowPriority { get; set; }
|
||||
}
|
||||
|
||||
public class DialogConfig
|
||||
{
|
||||
public bool? IsDraggable { get; set; }
|
||||
public MedicalConfig? MedicalConfig { get; set; }
|
||||
}
|
||||
|
||||
public class MedicalConfig
|
||||
{
|
||||
public bool HasFinalizeTime { get; set; }
|
||||
public bool HasStartTime { get; set; }
|
||||
}
|
||||
|
||||
public class IconValueList
|
||||
{
|
||||
public double? MinValue { get; set; }
|
||||
public double? MaxValue { get; set; }
|
||||
public float? Width { get; set; }
|
||||
public float? Height { get; set; }
|
||||
public List<string>? IconList { get; set; }
|
||||
}
|
||||
|
||||
public class HomeConfig
|
||||
{
|
||||
public string? MinColumnSize { get; set; }
|
||||
public int ColumnsPerBreakpoint { get; set; }
|
||||
public string? BreakpointSize { get; set; }
|
||||
public string? CardAspectRatioHeight { get; set; }
|
||||
public string? CardAspectRatioWidth { get; set; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -0,0 +1,58 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
#region DetailsConfig
|
||||
|
||||
public class CardDetailsConfig
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public List<SectionBoxLayout>? Header { get; set; }
|
||||
public List<RowDetailsConfig>? NurseRows { get; set; } = [];
|
||||
public List<SectionBoxLayout>? SmartSections { get; set; }
|
||||
}
|
||||
|
||||
public class RowDetailsConfig
|
||||
{
|
||||
// Dynamic cells de nurse y Dynamic Obs de monitoring
|
||||
public List<CellDetails>? Cells { get; set; }
|
||||
public List<RowDetailsConfig>? Rows { get; set; }
|
||||
public double GrowPriority { get; set; }
|
||||
public string? Title { get; set; }
|
||||
public DisplayConfigEnums.RowType Type { get; set; }
|
||||
public DialogConfig? DialogConfig { get; set; }
|
||||
}
|
||||
|
||||
public class CellDetails
|
||||
{
|
||||
public List<ObservationTextRule>? TextRules { get; set; }
|
||||
public DisplayConfigEnums.CellType Type { get; set; }
|
||||
public ChartSettings? ChartSettings { get; set; }
|
||||
public string? SubType { get; set; }
|
||||
public double GrowPriority { get; set; }
|
||||
public List<CellDetails>? Cells { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string? Title { get; set; }
|
||||
public bool IsVisible { get; set; } = true;
|
||||
public string? ValuePathNested { get; set; }
|
||||
public List<string>? ValuePathKey { get; set; }
|
||||
public List<IconValueList>? IconValueList { get; set; }
|
||||
public List<string>? ObservationName { get; set; }
|
||||
public string? PaddingTop { get; set; }
|
||||
public string? PaddingBottom { get; set; }
|
||||
public string? PaddingLeft { get; set; }
|
||||
public string? PaddingRight { get; set; }
|
||||
public string? Color { get; set; }
|
||||
public string? BackgroundColor { get; set; }
|
||||
public bool? ShowIcon { get; set; }
|
||||
public string? FlexBasis { get; set; }
|
||||
public string? FlexDirection { get; set; }
|
||||
public string? Grow { get; set; }
|
||||
public string? Shrink { get; set; }
|
||||
public bool? ShowTitle { get; set; }
|
||||
public bool? IsStatic { get; set; }
|
||||
public DialogConfig? DialogConfig { get; set; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,70 @@
|
||||
using System.Reflection;
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class HistoricalConfigChanges : JsonConverter
|
||||
{
|
||||
public DateTime Time;
|
||||
|
||||
public string Username = string.Empty;
|
||||
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
public DisplayConfigEnums.ConfigTypes? ConfigType { get; set; }
|
||||
|
||||
public string? OldConfig { get; set; }
|
||||
|
||||
public string NewConfig { get; set; } = string.Empty;
|
||||
|
||||
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
|
||||
{
|
||||
if (value != null)
|
||||
{
|
||||
var jo = JObject.FromObject(value);
|
||||
|
||||
AddStringEnumConverterAttribute(value, nameof(ConfigType));
|
||||
jo.WriteTo(writer);
|
||||
}
|
||||
}
|
||||
|
||||
private static void AddStringEnumConverterAttribute(object value, string propertyName)
|
||||
{
|
||||
var prop = value.GetType().GetProperty(propertyName);
|
||||
var attr = new JsonConverterAttribute(typeof(StringEnumConverter));
|
||||
|
||||
if (prop != null)
|
||||
{
|
||||
var attrs = prop.GetCustomAttributes(false);
|
||||
|
||||
// Check if the attribute is not already applied
|
||||
if (Array.Find(attrs, a => a is JsonConverterAttribute) == null)
|
||||
{
|
||||
// Create a new array that includes the existing attributes and the new one
|
||||
var newAttrs = new object[attrs.Length + 1];
|
||||
Array.Copy(attrs, newAttrs, attrs.Length);
|
||||
newAttrs[attrs.Length] = attr;
|
||||
|
||||
// Use reflection to set the new attributes array
|
||||
var field = typeof(PropertyInfo).GetField("m_customAttributes",
|
||||
BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
field?.SetValue(prop, newAttrs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override object ReadJson(JsonReader reader, Type objectType, object? existingValue,
|
||||
JsonSerializer serializer)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override bool CanConvert(Type objectType)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class HistoricalId(DateTime time, Dictionary<string, string> patientIds)
|
||||
{
|
||||
// Propiedades
|
||||
public DateTime? Time { get; set; } = time;
|
||||
|
||||
public Dictionary<string, string> PatientIds { get; set; } =
|
||||
patientIds ?? throw new ArgumentNullException(nameof(patientIds));
|
||||
|
||||
|
||||
public bool IsEmpty()
|
||||
{
|
||||
return Time == default(DateTime) && PatientIds.Count == 0;
|
||||
}
|
||||
|
||||
|
||||
public bool IsFull()
|
||||
{
|
||||
return Time != default(DateTime) && PatientIds.Count > 0;
|
||||
}
|
||||
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var idsString = string.Join(", ", PatientIds);
|
||||
return $"HistoricalId[Time: {Time}, PatientIds: {idsString}]";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class LightBeacon
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public string Type { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public bool InUse { get; private set; }
|
||||
public Options Options { get; set; } = new();
|
||||
}
|
||||
|
||||
public class Options
|
||||
{
|
||||
public string? Url { get; set; }
|
||||
|
||||
public int? Port { get; set; }
|
||||
|
||||
public string? Password { get; set; }
|
||||
|
||||
public bool Emulate { get; set; } = false;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Notice
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public DateTime NoticeDate { get; set; }
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public string NoticeType { get; set; } = string.Empty;
|
||||
public ObjectId DisplayId { get; set; }
|
||||
public List<StaffInfo>? StaffInfoList { get; set; }
|
||||
public bool IsFooterEnabled { get; set; } = true;
|
||||
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items = [];
|
||||
if (NoticeDate != DateTime.MinValue) items.Add($"Date: {NoticeDate}");
|
||||
items.Add($"DisplayId : {DisplayId}");
|
||||
items.Add($"Type: {NoticeType}");
|
||||
items.Add($"Description: {Description}");
|
||||
|
||||
return "Notice [" + string.Join(",", items) + "]";
|
||||
}
|
||||
}
|
||||
|
||||
public class StaffInfo
|
||||
{
|
||||
public required string Role { get; set; }
|
||||
public required string Leader { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using adas_core.Domain.Models.Masters;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Patient
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
public string? PatientNumber { get; set; }
|
||||
|
||||
public string? PatientId { get; set; }
|
||||
|
||||
public DateTime? AdmTime { get; set; }
|
||||
|
||||
//Estado del Alta: Altable, no Altable, Exitus, Transferible
|
||||
public OptionList? DischargeStatus { get; set; }
|
||||
|
||||
public OptionList? Altable { get; set; }
|
||||
|
||||
//Procedencia
|
||||
public OptionList? Origin { get; set; }
|
||||
|
||||
public string? OriginAux { get; set; }
|
||||
|
||||
//Diagnósticos
|
||||
public OptionList? Diagnosis { get; set; }
|
||||
|
||||
public string? DiagnosisAux { get; set; }
|
||||
|
||||
//Visitas
|
||||
public OptionList? Visits { get; set; }
|
||||
|
||||
public OptionList? AccessControl { get; set; }
|
||||
|
||||
//Aislamiento: por defecto No Aislado
|
||||
public OptionList? Insulation { get; set; }
|
||||
|
||||
//NEMS
|
||||
public OptionList? PatientStatus { get; set; }
|
||||
|
||||
//Movilidad: por defecto sin asignar
|
||||
public OptionList? Mobility { get; set; }
|
||||
|
||||
//Techo terapeutico
|
||||
public OptionList? TherapeuticCeiling { get; set; }
|
||||
|
||||
// Intervenciones
|
||||
public List<OptionList>? Procedures { get; set; }
|
||||
|
||||
//Pruebas (tests)
|
||||
public List<OptionList>? Tests { get; set; }
|
||||
|
||||
//Terapias
|
||||
public List<OptionList>? Treatment { get; set; }
|
||||
|
||||
//Facultativos
|
||||
public List<OptionList>? Doctors { get; set; }
|
||||
|
||||
//Alergias
|
||||
public List<OptionList>? Allergies { get; set; }
|
||||
|
||||
public List<OptionList>? LanguageBarrier { get; set; }
|
||||
public OptionList? PassiveSitting { get; set; }
|
||||
|
||||
public DateTime? DisTime { get; set; }
|
||||
|
||||
public Person? Person { get; set; }
|
||||
|
||||
public Person? AttendingDoctor { get; set; }
|
||||
|
||||
public DateTime? LastObservationDate { get; set; }
|
||||
|
||||
public DateTime? CreationDate { get; set; }
|
||||
|
||||
public DateTime? UpdateDate { get; set; }
|
||||
|
||||
public DateTime? ArchiveDate { get; set; }
|
||||
|
||||
public ObjectId? PointOfCareId { get; set; }
|
||||
|
||||
public ObjectId? UnitId { get; set; }
|
||||
|
||||
public List<HistoricalLocation>? HistoricalLocations { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items = [$"id: {Id}"];
|
||||
if (!string.IsNullOrEmpty(UnitString)) items.Add($"pointOfCare: {UnitString}");
|
||||
if (!string.IsNullOrEmpty(Bed)) items.Add($"bed: {Bed}");
|
||||
if (!string.IsNullOrEmpty(PatientNumber)) items.Add($"patientNumber: {PatientNumber}");
|
||||
if (!string.IsNullOrEmpty(PatientId)) items.Add($"patientId: {PatientId}");
|
||||
if (AdmTime.HasValue) items.Add($"admTime: {AdmTime}");
|
||||
if (DisTime.HasValue) items.Add($"disTime: {DisTime}");
|
||||
if (Person != null) items.Add($"patient: {Person}");
|
||||
if (AttendingDoctor != null) items.Add($"attendingDoctor: {AttendingDoctor}");
|
||||
if (LastObservationDate.HasValue) items.Add($"lastObservationDate: {LastObservationDate}");
|
||||
if (CreationDate.HasValue) items.Add($"creationDate: {CreationDate}");
|
||||
if (UpdateDate.HasValue) items.Add($"updateDate: {UpdateDate}");
|
||||
if (ArchiveDate.HasValue) items.Add($"archiveDate: {UpdateDate}");
|
||||
return "person[" + string.Join(", ", items) + "]";
|
||||
}
|
||||
|
||||
public bool IsInActivePoC()
|
||||
{
|
||||
return UnitString != null && !Enum.IsDefined(typeof(VirtualPointOfCare), UnitString);
|
||||
}
|
||||
|
||||
public Patient DeepCopy()
|
||||
{
|
||||
return (Patient)MemberwiseClone();
|
||||
}
|
||||
|
||||
#region UnMap
|
||||
|
||||
public string? Bed { get; set; }
|
||||
public string? Room { get; set; }
|
||||
public string? UnitString { get; set; }
|
||||
public PointOfCare? PointOfCare { get; set; }
|
||||
|
||||
public PatientLocation Location
|
||||
{
|
||||
get => new(UnitString, Bed, Room ?? Bed);
|
||||
set
|
||||
{
|
||||
if (value == null || (UnitString == value.UnitName && Bed == value.Bed))
|
||||
return;
|
||||
|
||||
UnitString = value.UnitName;
|
||||
Bed = value.Bed;
|
||||
HistoricalLocations ??= [];
|
||||
|
||||
var currentUtc = DateTime.UtcNow;
|
||||
|
||||
bool shouldAdd = true;
|
||||
if (HistoricalLocations.Count > 0)
|
||||
{
|
||||
var last = HistoricalLocations[^1];
|
||||
if (last.PatientLocation?.Bed == value.Bed && last.PatientLocation?.UnitName == value.UnitName)
|
||||
{
|
||||
shouldAdd = false;
|
||||
}
|
||||
else if (currentUtc.ToString("o").Equals(last.AdmTime.ToString()))
|
||||
{
|
||||
currentUtc = currentUtc.AddSeconds(1);
|
||||
}
|
||||
}
|
||||
|
||||
if (shouldAdd)
|
||||
{
|
||||
HistoricalLocations.Add(new HistoricalLocation(
|
||||
currentUtc,
|
||||
new PatientLocation(value.UnitName, value.Bed, value.Room)
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
public class PatientIncomeData
|
||||
{
|
||||
public DateTime? AdmTime { get; set; }
|
||||
public OptionList? Origin { get; set; }
|
||||
public string? OriginAux { get; set; }
|
||||
public OptionList? Diagnosis { get; set; }
|
||||
public string? DiagnosisAux { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using adas_core.Domain.Models.Masters;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class PatientCarePlan
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public ObjectId PatientId { get; set; }
|
||||
public ObjectId? PointOfCareId { get; set; }
|
||||
public string? PatientNumber { get; set; }
|
||||
public ObjectId? UserId { get; set; }
|
||||
public OptionList? CarePlan { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public DateTime? Time { get; set; }
|
||||
public ActionsEnum.CrudAction? Action { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class PoCMapping
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public List<PoCMappingItem> PointOfCares { get; set; } = [];
|
||||
}
|
||||
|
||||
public class PoCMappingItem
|
||||
{
|
||||
public string OriginalPoC { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public string NewPoC { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public List<List<string>> Beds { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class PoCSettings
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
public PatientLocation? PatientLocation { get; set; }
|
||||
|
||||
public RelayEnum.Status? ManualRelayStatus { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var result = "Id: " + Id;
|
||||
|
||||
if (PatientLocation != null) result += PatientLocation.ToString();
|
||||
if (ManualRelayStatus != null) result += "Relay Manual Status: " + ManualRelayStatus;
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class PointOfCare
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public string Room { get; set; } = string.Empty;
|
||||
public string Bed { get; set; } = string.Empty;
|
||||
public string? Hall { get; set; } = string.Empty;
|
||||
public ObjectId UnitId { get; set; }
|
||||
public PointOfCareConfiguration? Configuration { get; set; }
|
||||
public StatusEnum.PointOfCare Status { get; set; }
|
||||
public ObjectId? AdmissionId { get; set; }
|
||||
|
||||
#region Unmap
|
||||
|
||||
public string UnitName { get; set; } = string.Empty;
|
||||
public Unit? Unit { get; set; }
|
||||
public PatientLocation Location => new(UnitName, Bed, Room);
|
||||
public List<PatientObservation> Observations { get; set; } = [];
|
||||
public bool? HasPatient { get; set; }
|
||||
public ObjectId? Patientid { get; set; }
|
||||
public Patient? Patient { get; set; }
|
||||
public bool? IsActive { get; set; }
|
||||
public bool? IsVisible { get; set; }
|
||||
public Admission? Admission { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
public class PointOfCareConfiguration
|
||||
{
|
||||
public List<ObjectId>? BeaconIdList { get; set; } = [];
|
||||
public List<ObjectId>? CameraIdList { get; set; } = [];
|
||||
public List<ObjectId>? RelayIdList { get; set; }
|
||||
public List<LightBeacon>? BeaconList { get; private set; }
|
||||
public List<Camera>? CameraList { get; private set; }
|
||||
public List<Relay>? RelayList { get; private set; }
|
||||
public string? Type { get; set; }
|
||||
|
||||
// Esta parte hay que tenerla en cuenta al momento de lanzar las grabaciones automaticas y manuales para la API de OR
|
||||
// OR espera recibir roomId
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class PumpElement
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
public string? Text { get; set; }
|
||||
public string? CodingSystem { get; set; }
|
||||
public object? Value { get; set; }
|
||||
public string? Units { get; set; }
|
||||
public DateTime? Time { get; set; }
|
||||
public char? Result { get; set; }
|
||||
public string? ValueId { get; set; }
|
||||
public string? ValueCodingSystem { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Relay
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
public RelayEnum.Type Type { get; set; } = RelayEnum.Type.Door;
|
||||
|
||||
public string? Driver { get; init; }
|
||||
|
||||
public string Ip { get; init; } = string.Empty;
|
||||
|
||||
public int Port { get; init; }
|
||||
|
||||
public int RelayNumber { get; init; } = 1;
|
||||
|
||||
public string? RelayName { get; init; }
|
||||
|
||||
public int Total { get; init; } = 1;
|
||||
|
||||
public int RefreshTime { get; set; } = 60;
|
||||
|
||||
public bool Open { get; set; }
|
||||
|
||||
public RelayEnum.Status Status { get; set; } = RelayEnum.Status.NotInitialized;
|
||||
|
||||
public string? Username { get; init; }
|
||||
|
||||
public string? Password { get; init; }
|
||||
|
||||
public RelayEnum.Mode Mode { get; set; } = RelayEnum.Mode.OpenedOnClosedOff;
|
||||
|
||||
public int? RebootDelay { get; set; }
|
||||
|
||||
public bool Cache { get; set; } = true;
|
||||
public bool InUse { get; private set; }
|
||||
|
||||
public RelayEnum.Status? ManualRelayStatus { get; set; }
|
||||
|
||||
public bool Equals(Relay other)
|
||||
{
|
||||
return Driver == other.Driver && Ip == other.Ip && Port == other.Port && RelayNumber == other.RelayNumber &&
|
||||
RelayName == other.RelayName && Total == other.Total && Username == other.Username &&
|
||||
Password == other.Password;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Section
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public ObjectId _id { get; set; }
|
||||
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public string? SectionTitle { get; set; }
|
||||
|
||||
|
||||
public string? PointOfCare { get; set; }
|
||||
|
||||
|
||||
public DateTime? LastUpdate { get; set; }
|
||||
|
||||
public Dictionary<string, object> Configuration { get; set; } = [];
|
||||
|
||||
public SectionConfig? SectionConfig { get; set; }
|
||||
public UiFontData? DesignProperties { get; set; }
|
||||
|
||||
public Dictionary<string, List<PointOfCare>> PointOfCareList { get; set; } = new();
|
||||
|
||||
public List<SectionItem> Items { get; set; } = [];
|
||||
|
||||
public StatusEnum.Type? Status { get; set; } = null;
|
||||
|
||||
public bool Equals(Section? other)
|
||||
{
|
||||
return other != null &&
|
||||
Id == other.Id;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "[Section id: " + Id + "]";
|
||||
}
|
||||
|
||||
public class SectionItem
|
||||
{
|
||||
public string? Group { get; set; }
|
||||
public List<Box> Boxes { get; set; } = [];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class ServiceConfig
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
public string StrId { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public List<ServiceConfigService> Service { get; set; } = [];
|
||||
|
||||
|
||||
public ServiceConfigTheme? Theme { get; set; }
|
||||
|
||||
|
||||
public string[]? BoxObservations { get; set; }
|
||||
|
||||
|
||||
public string Score { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class ServiceConfigService
|
||||
{
|
||||
public string Screen { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public List<ServiceConfigServiceSection> Sections { get; set; } = [];
|
||||
}
|
||||
|
||||
public class ServiceConfigServiceSection
|
||||
{
|
||||
public string BoxId { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public string Box { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class ServiceConfigTheme
|
||||
{
|
||||
public string DefaultTheme { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public List<ServiceConfigThemeTimetable> Timetables { get; set; } = [];
|
||||
}
|
||||
|
||||
public class ServiceConfigThemeTimetable
|
||||
{
|
||||
public string Theme { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public string StartDay { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public string EndDay { get; set; } = string.Empty;
|
||||
|
||||
public string StartHour { get; set; } = string.Empty;
|
||||
|
||||
public string EndHour { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
using adas_core.Domain.Enums;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Step
|
||||
{
|
||||
public int? RotationTime { get; set; }
|
||||
|
||||
|
||||
public string? Text { get; set; }
|
||||
|
||||
|
||||
public string? Class { get; set; }
|
||||
|
||||
|
||||
public UiFontData? DesignProperties { get; set; }
|
||||
|
||||
public DisplayConfigEnums.StepType? Type { get; set; } = DisplayConfigEnums.StepType.Standar;
|
||||
}
|
||||
|
||||
public class UiFontData
|
||||
{
|
||||
public double? WidthStepBed { get; set; }
|
||||
|
||||
public double? HeightStepBed { get; set; }
|
||||
|
||||
public double? FontSizeValue { get; set; }
|
||||
|
||||
public double? FontSizeMediumValue { get; set; }
|
||||
|
||||
public double? FontSizeHeaderValue { get; set; }
|
||||
|
||||
public double? FontSizeLittleValue { get; set; }
|
||||
|
||||
public double? FontSizeMicroValue { get; set; }
|
||||
|
||||
public double? FontSizeNanoValue { get; set; }
|
||||
|
||||
public double? FontSizeTextValue { get; set; }
|
||||
|
||||
public double? FontSizeMediumTextValue { get; set; }
|
||||
|
||||
public double? FontSizeLittleTextValue { get; set; }
|
||||
|
||||
public double? FontSizeName { get; set; }
|
||||
|
||||
public double? FontSizeLittleName { get; set; }
|
||||
|
||||
public double? FontSizeUnit { get; set; }
|
||||
|
||||
public string? BorderColor { get; set; }
|
||||
|
||||
public string? BackGroundColor { get; set; }
|
||||
|
||||
public double? BoxMarginTop { get; set; }
|
||||
|
||||
public double? BoxMarginBot { get; set; }
|
||||
|
||||
public double? BoxMarginLeft { get; set; }
|
||||
|
||||
public double? BoxMarginRight { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using adas_core.Domain.Models.Masters;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class Unit
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public string? Title { get; set; }
|
||||
|
||||
public string? Name { get; set; }
|
||||
|
||||
// Ya que la configuración de la unidad (anterior section) se va a poder actualizar
|
||||
// tiene sentido mantener esta propiedad aunque no se está usando en el modelo anterior
|
||||
public DateTime? LastUpdate { get; set; }
|
||||
|
||||
// Anteriormente SectionItem
|
||||
public List<ObjectId>? PointOfCareIds { get; set; }
|
||||
public int PocCount => PointOfCares?.Count ?? 0;
|
||||
|
||||
public StatusEnum.Type? Status { get; set; }
|
||||
public UnitConfiguration Configuration { get; set; } = new();
|
||||
|
||||
public ObjectId? AltableOptionListId { get; set; }
|
||||
public ObjectId? AllergyListId { get; set; }
|
||||
public ObjectId? DestinationListId { get; set; }
|
||||
public ObjectId? InternalDestinationListId { get; set; }
|
||||
public ObjectId? DiagnosisListId { get; set; }
|
||||
public ObjectId? DoctorListId { get; set; }
|
||||
public ObjectId? DoctorTypeListId { get; set; }
|
||||
public ObjectId? InsulationListId { get; set; }
|
||||
public ObjectId? MobilityOptionListId { get; set; }
|
||||
public ObjectId? OriginListId { get; set; }
|
||||
public ObjectId? PatientStatusListId { get; set; }
|
||||
public ObjectId? ProcedureListId { get; set; }
|
||||
public ObjectId? TestListId { get; set; }
|
||||
public ObjectId? ServiceListId { get; set; }
|
||||
public ObjectId? TherapeuticCeilingListId { get; set; }
|
||||
public ObjectId? TreatmentListId { get; set; }
|
||||
public ObjectId? VisitOptionListId { get; set; }
|
||||
public ObjectId? AccessControlListId { get; set; }
|
||||
public ObjectId? LanguageBarrierListId { get; set; }
|
||||
public ObjectId? DischargeStatusListId { get; set; }
|
||||
public ObjectId? PassiveSittingListId { get; set; }
|
||||
public ObjectId? GenericListId { get; set; }
|
||||
|
||||
#region Unmap
|
||||
|
||||
public List<PointOfCare>? PointOfCares { get; set; }
|
||||
public AltableOptionList? AltableOptionList { get; set; }
|
||||
public AllergyList? AllergyList { get; set; }
|
||||
public DestinationList? DestinationList { get; set; }
|
||||
public InternalDestinationList? InternalDestinationList { get; set; }
|
||||
public DiagnosisList? DiagnosisList { get; set; }
|
||||
public DoctorList? DoctorList { get; set; }
|
||||
public DoctorTypeList? DoctorTypeList { get; set; }
|
||||
public InsulationList? InsulationList { get; set; }
|
||||
public MobilityOptionList? MobilityOptionList { get; set; }
|
||||
public OriginList? OriginList { get; set; }
|
||||
public PatientStatusList? PatientStatusList { get; set; }
|
||||
public ProcedureList? ProcedureList { get; set; }
|
||||
public TestList? TestList { get; set; }
|
||||
public ServiceList? ServiceList { get; set; }
|
||||
public TherapeuticCeilingList? TherapeuticCeilingList { get; set; }
|
||||
public TreatmentList? TreatmentList { get; set; }
|
||||
public VisitOptionList? VisitOptionList { get; set; }
|
||||
public AccessControlList? AccessControlList { get; set; }
|
||||
|
||||
public DischargeStatusList? DischargeStatusList { get; set; }
|
||||
public LanguageBarrierList? LanguageBarrierList { get; set; }
|
||||
public PassiveSittingList? PassiveSittingList { get; set; }
|
||||
public GenericList? GenericList { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
public class UnitConfiguration
|
||||
{
|
||||
public bool AutoAdt { get; set; }
|
||||
public bool ManualDischarge { get; set; } = true;
|
||||
public bool ManualAdmit { get; set; } = true;
|
||||
public bool ManualMove { get; set; } = true;
|
||||
public bool ManualEdit { get; set; } = true;
|
||||
public ObjectId? PlanDisplayConfiguration { get; set; }
|
||||
public ObjectId? SmartDisplayConfiguration { get; set; }
|
||||
public ObjectId? StandarDisplayConfiguration { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
public class User
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public DateTime? LockExpirationDate { get; set; }
|
||||
public bool IsEnabled { get; set; } = true;
|
||||
public DateTime? LastLogin { get; set; }
|
||||
public UserEnum.Type Type { get; set; } = UserEnum.Type.Local;
|
||||
|
||||
#region NotMapped
|
||||
|
||||
public List<Authorization>? Authorization { get; set; }
|
||||
public string IpAddress { get; set; } = string.Empty;
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user