Creado apartir del commit b888de6c92056de294456f581a56e25e734d4ab7 de develop
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using adas_core.Domain.Models.GroupedObservations;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace adas_core.Domain.Models.SignalR;
|
||||
|
||||
public class Message
|
||||
{
|
||||
public long IdMessage { get; set; }
|
||||
|
||||
public MessageData? Data { get; set; }
|
||||
|
||||
public string? Version { get; set; }
|
||||
|
||||
public List<GroupedField>? GroupedFields { get; set; }
|
||||
|
||||
public string OperationStr
|
||||
{
|
||||
get => Operation.ToString("g");
|
||||
set => Operation = (SubscriptionEnum.Type)Enum.Parse(typeof(SubscriptionEnum.Type), value);
|
||||
}
|
||||
|
||||
public SubscriptionEnum.Type Operation { get; set; }
|
||||
|
||||
|
||||
public override string? ToString()
|
||||
{
|
||||
try
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.None,
|
||||
new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore });
|
||||
}
|
||||
catch
|
||||
{
|
||||
return base.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
using adas_core.Domain.Models.GroupedObservations;
|
||||
using adas_core.Domain.Models.Masters;
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.SignalR;
|
||||
|
||||
public class MessageData
|
||||
{
|
||||
public bool IsDemo { get; set; } = false;
|
||||
public LocaleEnum Locale { get; set; }
|
||||
public string? PatientId { get; set; }
|
||||
public string? Section { get; set; }
|
||||
public SectionConfig? SectionConfig { get; set; }
|
||||
public List<PatientLocation> Locations { get; set; } = [];
|
||||
public List<ObjectId> LocationIds { get; set; } = [];
|
||||
|
||||
public bool SectionInfo { get; set; } = true;
|
||||
|
||||
public int Last { get; set; } = 2;
|
||||
|
||||
public bool Pumps { get; set; } = true;
|
||||
|
||||
public bool RecordingAlerts { get; set; } = true;
|
||||
|
||||
public bool Recordings { get; set; } = true;
|
||||
|
||||
public bool Treatments { get; set; } = true;
|
||||
|
||||
public bool Appointments { get; set; } = true;
|
||||
|
||||
public bool Diagnosis { get; set; } = true;
|
||||
|
||||
public bool Relay { get; set; } = true;
|
||||
|
||||
public bool Beacons { get; set; } = true;
|
||||
|
||||
public List<Recording> CurrentRecordings { get; set; } = [];
|
||||
|
||||
public bool Chat { get; set; } = true;
|
||||
|
||||
public string? ChatMessage { get; set; }
|
||||
|
||||
public PatientLocation? ChatMessageToLocation { get; set; }
|
||||
|
||||
public DateTime? ChatMessageDate { get; set; }
|
||||
|
||||
// PointOfCare Subscription
|
||||
public PatientLocation? Location { get; set; }
|
||||
|
||||
public List<Field>? Fields { get; set; }
|
||||
|
||||
public List<Field>? Alarmfields { get; set; }
|
||||
|
||||
public List<GroupedField>? GroupedFields { get; set; }
|
||||
|
||||
public string TimeZoneId { get; set; } = "Romance Standard Time";
|
||||
|
||||
public JwtSecurityToken? Token { get; set; }
|
||||
public string? Action { get; set; }
|
||||
public string? Rol { get; set; }
|
||||
public string? UserName { get; set; }
|
||||
|
||||
#region Display
|
||||
|
||||
public string? DisplayId { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using adas_core.Domain.Enums;
|
||||
|
||||
namespace adas_core.Domain.Models.SignalR;
|
||||
|
||||
public class Recording
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string? PatientId { get; set; }
|
||||
public int RoomId { get; set; }
|
||||
public int? CameraId { get; set; }
|
||||
public string? DiagnosisId { get; set; }
|
||||
public string? ProcedureId { get; set; }
|
||||
public string? ServiceId { get; set; }
|
||||
public int? DiseaseId { get; set; }
|
||||
public int? ThumbnailId { get; set; }
|
||||
public string Sid { get; set; } = null!; //
|
||||
public DateTime Date { get; set; } //
|
||||
public DateTime? EndDate { get; set; } //
|
||||
public string Store { get; set; } = null!; //
|
||||
public string? DiagnosisDescription { get; set; } //
|
||||
public string? ProcedureDescription { get; set; } //
|
||||
public string? Observations { get; set; } //
|
||||
public int Duration { get; set; } //
|
||||
public string Status { get; set; } = StatusEnum.Video.Initialized.ToString(); //
|
||||
public DateTime? UpdateDate { get; set; }
|
||||
public string? DeletedBy { get; set; }
|
||||
public DateTime? StartDate { get; set; }
|
||||
public string? Alarm { get; set; }
|
||||
public int? Retry { get; set; }
|
||||
public string? Alert { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user