Creado apartir del commit b888de6c92056de294456f581a56e25e734d4ab7 de develop
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class ActionsEnum
|
||||
{
|
||||
public enum Actions
|
||||
{
|
||||
View,
|
||||
Write
|
||||
}
|
||||
|
||||
public enum CrudAction
|
||||
{
|
||||
Create,
|
||||
Read,
|
||||
Update,
|
||||
Delete,
|
||||
Archive
|
||||
}
|
||||
|
||||
public enum ResourceAction
|
||||
{
|
||||
Add,
|
||||
Update,
|
||||
Delete
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class AlarmEnum
|
||||
{
|
||||
public enum AudioAlarmType
|
||||
{
|
||||
Continuous,
|
||||
Off,
|
||||
OnStart
|
||||
}
|
||||
|
||||
public enum AudioVideoState
|
||||
{
|
||||
Paused,
|
||||
Off,
|
||||
Enabled,
|
||||
Disabled
|
||||
}
|
||||
|
||||
public enum BeaconColor
|
||||
{
|
||||
Blue,
|
||||
Yellow,
|
||||
Red,
|
||||
None
|
||||
}
|
||||
|
||||
public enum EventPhase
|
||||
{
|
||||
Tpoint,
|
||||
Start,
|
||||
Continue,
|
||||
End,
|
||||
Update,
|
||||
Escalate,
|
||||
Deescalate,
|
||||
Reset,
|
||||
Inactivation
|
||||
}
|
||||
|
||||
public enum Name
|
||||
{
|
||||
[Description("CÓDIGO AZUL")] Blue,
|
||||
[Description("Hemofiltro")] Hemo,
|
||||
[Description("PEEP baja")] Peep,
|
||||
|
||||
[Description("Límite superior de presión del respirador vía aerea")]
|
||||
Pico,
|
||||
[Description("Presión intracraneal")] Picm,
|
||||
|
||||
[Description("Fuga Respirador")] VniLeak,
|
||||
|
||||
[Description("Superación de Límites FR")]
|
||||
EventFr,
|
||||
|
||||
[Description("Superación de Límites FC")]
|
||||
EventFc,
|
||||
|
||||
[Description("Superación de Límites PAm")]
|
||||
EventPam,
|
||||
|
||||
[Description("Superación de Límites ARTm")]
|
||||
EventArtm,
|
||||
|
||||
[Description("Superación de Límites SpO2")]
|
||||
EventSpo2,
|
||||
|
||||
[Description("Superación de Límites PEEP")]
|
||||
EventPeep,
|
||||
|
||||
[Description("Límite FC Alto")] EventFcHi,
|
||||
[Description("Límite FR Alto")] EventFrHi,
|
||||
[Description("Límite SPO2 Alto")] EventSpo2Hi,
|
||||
[Description("Límite PaM Alto")] EventPamHi,
|
||||
[Description("Límite PICm Alto")] EventPicmHi,
|
||||
[Description("Límite PEEPt Alto")] EventPeeptHi,
|
||||
[Description("Límite MVexp Alto")] EventMvexpHi,
|
||||
[Description("Límite ARTm Alto")] EventArtmHi,
|
||||
|
||||
|
||||
[Description("Límite PEEP Bajo")] EventPeepLo,
|
||||
[Description("Límite FC Bajo")] EventFcLo,
|
||||
[Description("Límite FR Bajo")] EventFrLo,
|
||||
[Description("Límite SPO2 Bajo")] EventSpo2Lo,
|
||||
[Description("Límite PaM Bajo")] EventPamLo,
|
||||
[Description("Límite PICm Bajo")] EventPicmLo,
|
||||
[Description("Límite PEEPt Bajo")] EventPeeptLo,
|
||||
[Description("Límite VMExp Bajo")] EventVmexpLo,
|
||||
[Description("Límite ARTm Bajo")] EventArtmLo,
|
||||
|
||||
[Description("Parada flujo de sangre Hemofiltro")]
|
||||
EventAlarmFlow,
|
||||
|
||||
[Description("Evento extremo")] ExtremeEvent,
|
||||
|
||||
[Description("Bradicardia extrema")] ExtremeBradi,
|
||||
[Description("Taquicardia extrema")] ExtremeTaqui,
|
||||
[Description("Desaturación extrema")] ExtremeDesat,
|
||||
|
||||
[Description("Alerta de volumen minuto respirador")]
|
||||
VolMin,
|
||||
|
||||
[Description("TAm alta extrema")] EvtExtrPamHi,
|
||||
[Description("TAm baja extrema")] EvtExtrPamLo,
|
||||
[Description("Límite VMExp Bajo")] EvtExtrVmexpLo,
|
||||
|
||||
[Description("Apnea")] Apnea,
|
||||
[Description("Respiratorio")] Respiration,
|
||||
|
||||
//separar en varias
|
||||
[Description("Alerta bomba")] Pump,
|
||||
|
||||
//Tipo para hacer pruebas
|
||||
[Description("Alerta Test")] Test,
|
||||
|
||||
[Description("NEWS RED")] NewsAlert,
|
||||
|
||||
[Description("NEWS YELLOW")] NewsWarning,
|
||||
|
||||
[Description("NEWS OFF")] NewsOff
|
||||
}
|
||||
|
||||
public enum ObservationAlarmCode
|
||||
{
|
||||
AdvisoryAlert,
|
||||
SoftInop
|
||||
}
|
||||
|
||||
public enum ObservationAlarmPriority
|
||||
{
|
||||
Ph,
|
||||
Pm,
|
||||
Pl
|
||||
}
|
||||
|
||||
public enum ObservationAlarmState
|
||||
{
|
||||
Inactive,
|
||||
Active,
|
||||
Latched
|
||||
}
|
||||
|
||||
public enum ObservationAlarmType
|
||||
{
|
||||
Sp,
|
||||
St,
|
||||
Sa
|
||||
}
|
||||
|
||||
public enum Severity
|
||||
{
|
||||
None,
|
||||
Blue,
|
||||
Red,
|
||||
Yellow
|
||||
}
|
||||
|
||||
public enum Type
|
||||
{
|
||||
Manual,
|
||||
Auto
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum AuthorizeUserByServiceType
|
||||
{
|
||||
Display,
|
||||
Discharge,
|
||||
Admission,
|
||||
PointOfCare,
|
||||
ConfigDisplay,
|
||||
MasterList,
|
||||
Notice,
|
||||
Patient,
|
||||
Unit
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class CacheEnum
|
||||
{
|
||||
|
||||
public enum Mode
|
||||
{
|
||||
None = 0, // No cachear
|
||||
Cache = 1, // CacheService (memoria)
|
||||
Redis = 2 // RedisService
|
||||
}
|
||||
|
||||
|
||||
public enum EntityType
|
||||
{
|
||||
Unknown,
|
||||
Patients,
|
||||
Displays,
|
||||
PumpObservations,
|
||||
Appointments,
|
||||
PontOfCare,
|
||||
GroupedObservations,
|
||||
PatientObservations,
|
||||
ConfigObservations
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum ClickType
|
||||
{
|
||||
Unknown,
|
||||
SingleClick,
|
||||
DoubleClick,
|
||||
Hold,
|
||||
Release
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum DeviceActionType
|
||||
{
|
||||
Unknown,
|
||||
SendAlarm,
|
||||
SendObs,
|
||||
All
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum DeviceType
|
||||
{
|
||||
Unknown,
|
||||
Button
|
||||
}
|
||||
@@ -0,0 +1,301 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class DisplayConfigEnums
|
||||
{
|
||||
public enum AxisPosition
|
||||
{
|
||||
Top,
|
||||
Bottom,
|
||||
Left,
|
||||
Right
|
||||
}
|
||||
|
||||
public enum AxisType
|
||||
{
|
||||
Time,
|
||||
Value
|
||||
}
|
||||
|
||||
public enum BannerType
|
||||
{
|
||||
Inputs,
|
||||
InputsFull,
|
||||
Outputs,
|
||||
OutputsText,
|
||||
Slots,
|
||||
Notices,
|
||||
Status
|
||||
}
|
||||
|
||||
public enum CellType
|
||||
{
|
||||
BoxNumber,
|
||||
BoxNumberStatus,
|
||||
BeaconColor,
|
||||
Simple,
|
||||
Alert,
|
||||
Alarm,
|
||||
ObsGraphList,
|
||||
GraphCompose,
|
||||
GraphTitle,
|
||||
Lab,
|
||||
Plus,
|
||||
ObsText,
|
||||
Triple,
|
||||
TripleData,
|
||||
UciDays,
|
||||
Predict,
|
||||
TableBox,
|
||||
TableDate,
|
||||
TableCell,
|
||||
TripleDataFormatted,
|
||||
Sensors,
|
||||
SensorAwair,
|
||||
SensorObs,
|
||||
Default,
|
||||
FullIcon,
|
||||
List,
|
||||
Text,
|
||||
TableText,
|
||||
TableRepeated,
|
||||
TableInsulation,
|
||||
TableDropdown,
|
||||
TableBoxRepeated,
|
||||
TableAge,
|
||||
Icon,
|
||||
TableIcon,
|
||||
TableGender,
|
||||
Admission,
|
||||
Demographic,
|
||||
DemographicNoDiagnosis,
|
||||
Intervention,
|
||||
InterventionSection,
|
||||
Isolation,
|
||||
DetailCard,
|
||||
DetailHeader,
|
||||
DetailHeaderText,
|
||||
PreviewCard,
|
||||
PatientStatus,
|
||||
Physicians,
|
||||
Test,
|
||||
TherapeuticCeiling,
|
||||
Mobility,
|
||||
Therapies,
|
||||
DoctorCell,
|
||||
CellDivider,
|
||||
RowDivider,
|
||||
VisitIcon,
|
||||
AltableDestinationIcon,
|
||||
LenguageBarrier,
|
||||
DemographicCell,
|
||||
DaysCalendarCell,
|
||||
ObsCell,
|
||||
ObsCellIcon,
|
||||
AdmDateCellIcon,
|
||||
NurseDateCellIcon,
|
||||
MedicalDateCellIcon,
|
||||
AllergyCell,
|
||||
AltableInfo,
|
||||
AltableInfoText,
|
||||
TherapiesSection,
|
||||
TestSection,
|
||||
PhysiciansSection,
|
||||
PatientStatusSection,
|
||||
WrapperSection,
|
||||
WrapperSectionCell,
|
||||
DropDown,
|
||||
TherapeuticCeilingDropDown,
|
||||
IncomingDate,
|
||||
AccessIconComponent,
|
||||
FullAccessIconComponent,
|
||||
IncomingSection,
|
||||
WrapperObsCell,
|
||||
SubHeader,
|
||||
PatientInfo,
|
||||
ObsGa,
|
||||
TextObs,
|
||||
ObsIcon,
|
||||
DynamicText,
|
||||
ObsMultiIcon,
|
||||
ObsIconText,
|
||||
WeightObs,
|
||||
PlainIconText,
|
||||
ObsBoolean,
|
||||
CellWrapper,
|
||||
Filler,
|
||||
ObsMultiText,
|
||||
LifeTime,
|
||||
ObsIsolation,
|
||||
BirthObs,
|
||||
WrapperCell,
|
||||
Language,
|
||||
ObsTextIfMatch,
|
||||
SensorWrapper
|
||||
}
|
||||
|
||||
public enum ConfigTypes
|
||||
{
|
||||
SectionCfg,
|
||||
ObservationCfg,
|
||||
PumpCfg
|
||||
}
|
||||
|
||||
public enum DirectionEnum
|
||||
{
|
||||
Row,
|
||||
Column,
|
||||
RowReverse,
|
||||
ColumnReverse
|
||||
}
|
||||
|
||||
public enum DisplayType
|
||||
{
|
||||
DisplayNurse,
|
||||
SmartDisplay,
|
||||
StandarDisplay,
|
||||
PumpDisplay,
|
||||
Unknown
|
||||
}
|
||||
|
||||
public enum ELegendIconType
|
||||
{
|
||||
Circle,
|
||||
Square,
|
||||
Triangle,
|
||||
Diamond,
|
||||
Cross,
|
||||
Star,
|
||||
HorizontalLine,
|
||||
VerticalLine,
|
||||
DashedLine,
|
||||
DottedLine
|
||||
}
|
||||
|
||||
public enum HospitalCustomizeEnum
|
||||
{
|
||||
Test,
|
||||
Vdh,
|
||||
Trueta,
|
||||
Ryc,
|
||||
Chuo,
|
||||
Gregorio,
|
||||
H12O
|
||||
}
|
||||
|
||||
public enum LabelFormat
|
||||
{
|
||||
Hour,
|
||||
Second,
|
||||
Minute,
|
||||
HourExact,
|
||||
Default,
|
||||
FullDateExact,
|
||||
FixPercentage,
|
||||
Custom
|
||||
}
|
||||
|
||||
public enum LineType
|
||||
{
|
||||
Solid,
|
||||
Dashed,
|
||||
Dotted
|
||||
}
|
||||
|
||||
public enum MarkerIcon
|
||||
{
|
||||
Kangaroo,
|
||||
Bath,
|
||||
Hand,
|
||||
None
|
||||
}
|
||||
|
||||
public enum RotatingLayoutMode
|
||||
{
|
||||
Default,
|
||||
Equitable,
|
||||
FixedImageTime
|
||||
}
|
||||
|
||||
|
||||
public enum RotatingLayoutType
|
||||
{
|
||||
HomeSection,
|
||||
Ad
|
||||
}
|
||||
|
||||
public enum RowType
|
||||
{
|
||||
Simple,
|
||||
General,
|
||||
GraphLast,
|
||||
Prediction,
|
||||
Prevision,
|
||||
Treatment,
|
||||
Camera,
|
||||
SubHeader,
|
||||
Custom,
|
||||
BoxNavigationSubheader,
|
||||
Admission,
|
||||
Demographic,
|
||||
Intervention,
|
||||
Isolation,
|
||||
TherapiesSection,
|
||||
TestSection,
|
||||
InterventionSection,
|
||||
IncomingSection,
|
||||
DetailHeaderSection,
|
||||
PatientStatus,
|
||||
Physicians,
|
||||
Test,
|
||||
Therapies,
|
||||
AltableInfo,
|
||||
WrapperSection,
|
||||
WrapperSectionCell,
|
||||
RowDivider
|
||||
}
|
||||
|
||||
public enum SeriesType
|
||||
{
|
||||
Line,
|
||||
Area,
|
||||
Marker,
|
||||
MarkArea,
|
||||
Candlestick,
|
||||
BarPercentage,
|
||||
LineMapColor,
|
||||
LineMark,
|
||||
Scatter,
|
||||
Bar
|
||||
}
|
||||
|
||||
public enum SourceType
|
||||
{
|
||||
Obs,
|
||||
Diagnosis,
|
||||
Alarm,
|
||||
Pump,
|
||||
Treatment,
|
||||
Sensor
|
||||
}
|
||||
|
||||
public enum StepType
|
||||
{
|
||||
Standar,
|
||||
Advertising,
|
||||
Alarms
|
||||
}
|
||||
|
||||
public enum WebDisplayCellSubtype
|
||||
{
|
||||
Default,
|
||||
Mobility,
|
||||
Isolation,
|
||||
Tests,
|
||||
Therapy,
|
||||
Intervention,
|
||||
Visits,
|
||||
Therapeutic,
|
||||
Days,
|
||||
WeeksDays
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class FileEnum
|
||||
{
|
||||
public enum AssetTheme
|
||||
{
|
||||
Light,
|
||||
Dark
|
||||
}
|
||||
|
||||
public enum FileType
|
||||
{
|
||||
Csv,
|
||||
Excel,
|
||||
Json,
|
||||
Xml,
|
||||
Txt
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public class GroupedObservationEnum
|
||||
{
|
||||
public enum Regularity
|
||||
{
|
||||
Times,
|
||||
Second,
|
||||
Minute,
|
||||
Hour,
|
||||
Day,
|
||||
Shift
|
||||
}
|
||||
|
||||
public enum Result
|
||||
{
|
||||
First,
|
||||
Last,
|
||||
Sum,
|
||||
Min,
|
||||
Max,
|
||||
Average,
|
||||
Count,
|
||||
|
||||
/*
|
||||
* Rellena las horas que no tienen valor con la última media hora del anterior en caso de haberla.
|
||||
* Al pedir las observaciones a la bd, devuelve todas las observaciones de la hora
|
||||
*/
|
||||
HalfHour,
|
||||
|
||||
/*
|
||||
* Devuelve valor para todas las horas puestas en el max, Rellenando con el valor anterior de no haber ninguno en esas horas.
|
||||
*/
|
||||
LastFilled,
|
||||
|
||||
/*
|
||||
* Igual que el last filled, pero no rellena con el valor anterior en caso de no haberlo. ¿Last puede ser así siempre?, creo que si
|
||||
* (caso diuresis gráfica)
|
||||
* No devuelve valores??
|
||||
*/
|
||||
LastAll
|
||||
}
|
||||
|
||||
public enum Since
|
||||
{
|
||||
/*
|
||||
* Does not take into account the current date for the number of groupings (default value).
|
||||
*/
|
||||
Now,
|
||||
|
||||
/*
|
||||
* It takes into account the current date for the number of groupings.
|
||||
*/
|
||||
Last
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,242 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class HttpEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enumeration for HTTP error code messages.
|
||||
/// </summary>
|
||||
public enum ErrorMessage
|
||||
{
|
||||
#region 200 OK
|
||||
|
||||
/// <summary>
|
||||
/// The update could not be completed because the resource has not been modified.
|
||||
/// </summary>
|
||||
OkResouceNotModified = 2001,
|
||||
|
||||
#endregion
|
||||
|
||||
#region 400 Bad Request
|
||||
|
||||
/// <summary>
|
||||
/// Required parameters are missing from the request.
|
||||
/// </summary>
|
||||
BadRequestMissingParameters = 4001,
|
||||
|
||||
/// <summary>
|
||||
/// The format of the provided data is invalid.
|
||||
/// </summary>
|
||||
BadRequestInvalidFormat = 4002,
|
||||
|
||||
/// <summary>
|
||||
/// The submitted data contains duplicate values that are not allowed.
|
||||
/// </summary>
|
||||
BadRequestDuplicateData = 4003,
|
||||
|
||||
/// <summary>
|
||||
/// Username already exists.
|
||||
/// </summary>
|
||||
BadRequestInvalidUsername = 4004,
|
||||
|
||||
/// <summary>
|
||||
/// Email already exists.
|
||||
/// </summary>
|
||||
BadRequestInvalidEmail = 4005,
|
||||
|
||||
/// <summary>
|
||||
/// Incorrect type.
|
||||
/// </summary>
|
||||
BadRequestIncorrectType = 4006,
|
||||
|
||||
/// <summary>
|
||||
/// Incorrect length.
|
||||
/// </summary>
|
||||
BadRequestIncorrectLength = 4007,
|
||||
|
||||
/// <summary>
|
||||
/// Invalid username or email.
|
||||
/// </summary>
|
||||
BadRequestIncorrectEmailOrUsername = 4008,
|
||||
|
||||
#endregion
|
||||
|
||||
#region 401 Unauthorized
|
||||
|
||||
/// <summary>
|
||||
/// The access token has expired.
|
||||
/// </summary>
|
||||
UnauthorizedTokenExpired = 4011,
|
||||
|
||||
/// <summary>
|
||||
/// The user does not have permission to perform this action.
|
||||
/// </summary>
|
||||
UnauthorizedNoPermission = 4012,
|
||||
|
||||
/// <summary>
|
||||
/// The authentication token is invalid or has been revoked.
|
||||
/// </summary>
|
||||
UnauthorizedInvalidToken = 4013,
|
||||
|
||||
/// <summary>
|
||||
/// User not registered.
|
||||
/// </summary>
|
||||
UnauthorizedUserNotRegistered = 4014,
|
||||
|
||||
/// <summary>
|
||||
/// Invalid user credentials.
|
||||
/// </summary>
|
||||
UnauthorizedInvalidCredentials = 4015,
|
||||
|
||||
#endregion
|
||||
|
||||
#region 403 Forbidden
|
||||
|
||||
/// <summary>
|
||||
/// User does not have access to this resource.
|
||||
/// </summary>
|
||||
ForbiddenNoAccess = 4031,
|
||||
|
||||
/// <summary>
|
||||
/// User does not have permission to perform this operation.
|
||||
/// </summary>
|
||||
ForbiddenNoPermission = 4032,
|
||||
|
||||
/// <summary>
|
||||
/// Access is restricted due to security configurations.
|
||||
/// </summary>
|
||||
ForbiddenRestrictedAccess = 4033,
|
||||
|
||||
/// <summary>
|
||||
/// User is blocked or disabled.
|
||||
/// </summary>
|
||||
ForbiddenUserBlocked = 4034,
|
||||
|
||||
#endregion
|
||||
|
||||
#region 404 Not Found
|
||||
|
||||
/// <summary>
|
||||
/// The requested resource does not exist.
|
||||
/// </summary>
|
||||
NotFoundResourceMissing = 4041,
|
||||
|
||||
/// <summary>
|
||||
/// No items matching the search criteria were found.
|
||||
/// </summary>
|
||||
NotFoundNoMatches = 4042,
|
||||
|
||||
#endregion
|
||||
|
||||
#region 409 Conflict
|
||||
|
||||
/// <summary>
|
||||
/// The update could not be completed.
|
||||
/// </summary>
|
||||
ConflictUpdateFailed = 4091,
|
||||
|
||||
/// <summary>
|
||||
/// The deletion could not be completed.
|
||||
/// </summary>
|
||||
ConflictDeleteFailed = 4092,
|
||||
|
||||
/// <summary>
|
||||
/// The deletion could not be completed because the resource is in use.
|
||||
/// </summary>
|
||||
ConflictResourceInUse = 4093,
|
||||
|
||||
/// <summary>
|
||||
/// The resource already exists and cannot be duplicated.
|
||||
/// </summary>
|
||||
ConflictResourceAlreadyExists = 4094,
|
||||
|
||||
/// <summary>
|
||||
/// The current state of the resource prevents this operation.
|
||||
/// </summary>
|
||||
ConflictInvalidResourceState = 4095,
|
||||
|
||||
/// <summary>
|
||||
/// The creation could not be completed.
|
||||
/// </summary>
|
||||
ConflictCreationFailed = 4096,
|
||||
|
||||
/// <summary>
|
||||
/// Operation could not be completed.
|
||||
/// </summary>
|
||||
ConflictOperationIncompleted = 4097,
|
||||
|
||||
#endregion
|
||||
|
||||
#region 422 Unprocessable Entity
|
||||
|
||||
/// <summary>
|
||||
/// One or more fields do not meet the required validations.
|
||||
/// </summary>
|
||||
UnprocessableEntityInvalidFields = 4221,
|
||||
|
||||
/// <summary>
|
||||
/// The resource cannot be processed.
|
||||
/// </summary>
|
||||
UnprocessableEntityCannotProcess = 4222,
|
||||
|
||||
/// <summary>
|
||||
/// The provided value is outside the allowed range.
|
||||
/// </summary>
|
||||
UnprocessableEntityOutOfRange = 4223,
|
||||
|
||||
/// <summary>
|
||||
/// The password is not strong enough.
|
||||
/// </summary>
|
||||
UnprocessableEntityInvalidPassword = 4224,
|
||||
|
||||
/// <summary>
|
||||
/// The current password is incorrect, or the new password does not meet the required format. Please check and try
|
||||
/// again.
|
||||
/// </summary>
|
||||
BadRequestIncorrectPassword = 4225,
|
||||
|
||||
#endregion
|
||||
|
||||
#region 500 Internal Server Error
|
||||
|
||||
/// <summary>
|
||||
/// An unexpected error occurred while processing the request.
|
||||
/// </summary>
|
||||
InternalServerErrorUnexpected = 5001,
|
||||
|
||||
/// <summary>
|
||||
/// The service could not complete the operation due to an internal failure.
|
||||
/// </summary>
|
||||
InternalServerErrorInternalFailure = 5002,
|
||||
|
||||
/// <summary>
|
||||
/// Error communicating with an external service.
|
||||
/// </summary>
|
||||
InternalServerErrorExternalServiceError = 5003,
|
||||
|
||||
#endregion
|
||||
|
||||
#region 503 Service Unavailable
|
||||
|
||||
/// <summary>
|
||||
/// The service is under maintenance. Please try again later.
|
||||
/// </summary>
|
||||
ServiceUnavailableUnderMaintenance = 5031,
|
||||
|
||||
/// <summary>
|
||||
/// The system is experiencing high load. Please try again later.
|
||||
/// </summary>
|
||||
ServiceUnavailableHighLoad = 5032,
|
||||
|
||||
/// <summary>
|
||||
/// The data service is temporarily unavailable.
|
||||
/// </summary>
|
||||
ServiceUnavailableDataServiceUnavailable = 5033,
|
||||
|
||||
/// <summary>
|
||||
/// Action is temporarily unavailable.
|
||||
/// </summary>
|
||||
ServiceUnavailableCensusInAutomaticMode = 5034
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum LightBeaconColor
|
||||
{
|
||||
Off = 000,
|
||||
Red = 001,
|
||||
Yellow = 011,
|
||||
Green = 010,
|
||||
Cyan = 110,
|
||||
Blue = 100,
|
||||
Magenta = 101,
|
||||
White = 111
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum MasterListType
|
||||
{
|
||||
AltableOptionList,
|
||||
AllergyList,
|
||||
DestinationList,
|
||||
DiagnosisList,
|
||||
DischargeStatusList,
|
||||
DoctorList,
|
||||
DoctorTypeList,
|
||||
InternalDestinationList,
|
||||
InsulationList,
|
||||
LanguageBarrierList,
|
||||
PassiveSittingList,
|
||||
MobilityOptionList,
|
||||
OriginList,
|
||||
PatientStatusList,
|
||||
ProcedureList,
|
||||
ServiceList,
|
||||
TherapeuticCeilingList,
|
||||
TreatmentList,
|
||||
VisitOptionList,
|
||||
AccessControlList,
|
||||
TestList,
|
||||
GenericList
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class MedicineEnum
|
||||
{
|
||||
public enum Group
|
||||
{
|
||||
Metabolic,
|
||||
DoubleSignature,
|
||||
Vasoactive
|
||||
}
|
||||
|
||||
public enum Types
|
||||
{
|
||||
MuscleRelaxant,
|
||||
Vasopressin,
|
||||
AdrenalineNoradrenaline,
|
||||
DopamineDobutamine,
|
||||
Pge1,
|
||||
FibrinolyticAnticoagulants,
|
||||
DexmedetomidineMidazolam,
|
||||
Anticomiciales,
|
||||
AntiarrhythmicsCardiovascular,
|
||||
BloodDerivative,
|
||||
ParacetamolOpiates,
|
||||
ParenteralNutrition,
|
||||
ParenteralNutritionLipids,
|
||||
Insulin,
|
||||
CrystalloidExpansion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class ObservationEnum
|
||||
{
|
||||
/**
|
||||
* Default => Devuelve flecha blanca siempre
|
||||
* DefaultStatus => Devuelve flecha basándonos en el estado de la obs manteniendo la tendencia respecto al último valor
|
||||
* RegularLastValue => Si baja flecha color rojo Si sube flecha color verde
|
||||
* RegularInvertLastValue => Si baja flecha color verde Si sube flecha color rojo
|
||||
* MinMaxValue => Solo se muestra flecha por encima / debajo max / min y siempre en rojo
|
||||
*/
|
||||
public enum ArrowType
|
||||
{
|
||||
None,
|
||||
Default,
|
||||
DefaultStatus,
|
||||
RegularLastValue,
|
||||
RegularInvertLastValue,
|
||||
MinMaxValue
|
||||
}
|
||||
|
||||
public enum Category
|
||||
{
|
||||
Treatment,
|
||||
Observation,
|
||||
Intervention
|
||||
}
|
||||
|
||||
public enum InsertMode
|
||||
{
|
||||
Auto,
|
||||
Manual,
|
||||
Mix
|
||||
}
|
||||
|
||||
public enum ValueType
|
||||
{
|
||||
Number,
|
||||
String,
|
||||
Boolean,
|
||||
Date
|
||||
}
|
||||
|
||||
public enum XmlType
|
||||
{
|
||||
Observation,
|
||||
Treatment,
|
||||
Intervention,
|
||||
Canbra
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum OperationType
|
||||
{
|
||||
Status,
|
||||
Section,
|
||||
SectionSensors,
|
||||
Box,
|
||||
Observation,
|
||||
GroupedObservation,
|
||||
ConfigObservation,
|
||||
|
||||
Pump,
|
||||
PumpAlarm,
|
||||
|
||||
Treatment,
|
||||
UpdateTreatment,
|
||||
|
||||
UpdatedPointOfCare,
|
||||
NewPointOfCare,
|
||||
PatientLocation,
|
||||
DeletePatient,
|
||||
PatientAttendingDoctor,
|
||||
PatientData,
|
||||
UpdatePatient,
|
||||
NewPatient,
|
||||
|
||||
RecordingAlert,
|
||||
Diagnosis,
|
||||
|
||||
NewAppointment,
|
||||
UpdatedAppointment,
|
||||
CanceledAppointment,
|
||||
|
||||
Sensor,
|
||||
Error,
|
||||
SurgeryRoomAlert,
|
||||
ChatMessage,
|
||||
Relay,
|
||||
RecordingStatus,
|
||||
UpdateApplication,
|
||||
Beacon,
|
||||
Alarm,
|
||||
|
||||
NewAdmission,
|
||||
DeleteAdmission,
|
||||
UpdateAdmission,
|
||||
|
||||
NewDischarge,
|
||||
DeleteDischarge,
|
||||
UpdateDischarge,
|
||||
|
||||
Display,
|
||||
DisplayList,
|
||||
|
||||
NewNotice,
|
||||
DeleteNotice,
|
||||
UpdateNotice,
|
||||
|
||||
NewMasterList,
|
||||
DeleteMasterList,
|
||||
UpdateMasterList,
|
||||
|
||||
UpdateUnit,
|
||||
UpdateDisplayConfig,
|
||||
UpdateCardDisplayConfig,
|
||||
UpdateSmartDisplayConfig,
|
||||
UpdateNurseDisplayConfig,
|
||||
UpdateDisplayPoC,
|
||||
|
||||
NewPoC,
|
||||
UpdatePoc,
|
||||
DeletePoc,
|
||||
UpdateMasterListItem,
|
||||
DeleteMasterListItem,
|
||||
AddMasterListItem,
|
||||
UpdateDetailDisplayConfig,
|
||||
UpdateChartConfig,
|
||||
UpdatePassword,
|
||||
UpdateAuthorities,
|
||||
DisableUser,
|
||||
LockUser
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum OrderControlType
|
||||
{
|
||||
Af, //Order/service refill request approval
|
||||
Ca, //Cancel order/service request
|
||||
Ch, //Child order/service
|
||||
Cn, //Combined result
|
||||
Cr, //Canceled as requested
|
||||
Dc, //Discontinue order/service request
|
||||
De, //Data errors
|
||||
Df, //Order/service refill request denied
|
||||
Dr, //Discontinued as requested
|
||||
Fu, //Order/service refilled, unsolicited
|
||||
Hd, //Hold order request
|
||||
Hr, //On hold as requested
|
||||
Li, //Link order/service to patient care problem or goal
|
||||
Mc, //Miscellaneous Charge - not associated with an order
|
||||
Na, //Number assigned
|
||||
Nw, //New order/service
|
||||
Oc, //Order/service canceled
|
||||
Od, //Order/service discontinued
|
||||
Oe, //Order/service released
|
||||
Of, //Order/service refilled as requested
|
||||
Oh, //Order/service held
|
||||
Ok, //Order/service accepted & OK
|
||||
Op, //Notification of order for outside dispense
|
||||
Or, //Released as requested
|
||||
Pa, //Parent order/service
|
||||
Pr, //Previous Results with new order/service
|
||||
Py, //Notification of replacement order for outside dispense
|
||||
Re, //Observations/Performed Service to follow
|
||||
Rf, //Refill order/service request
|
||||
Rl, //Release previous hold
|
||||
Ro, //Replacement order
|
||||
Rp, //Order/service replace request
|
||||
Rq, //Replaced as requested
|
||||
Rr, //Request received
|
||||
Ru, //Replaced unsolicited
|
||||
Sc, //Status changed
|
||||
Sn, //Send order/service number
|
||||
Sr, //Response to send order/service status request
|
||||
Ss, //Send order/service status request
|
||||
Ua, //Unable to accept order/service
|
||||
Uc, //Unable to cancel
|
||||
Ud, //Unable to discontinue
|
||||
Uf, //Unable to refill
|
||||
Uh, //Unable to put on hold
|
||||
Um, //Unable to replace
|
||||
Un, //Unlink order/service from patient care problem or goal
|
||||
Ur, //Unable to release
|
||||
Ux, //Unable to change
|
||||
Xo, //Change order/service request
|
||||
Xr, //Changed as requested
|
||||
Xx //Order/service changed, unsol.
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class PatientEnum
|
||||
{
|
||||
public enum Gender
|
||||
{
|
||||
Male,
|
||||
Female,
|
||||
Undifferentiated,
|
||||
Unknown
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public class PermissionEnum
|
||||
{
|
||||
public enum PermissionTypesEnum
|
||||
{
|
||||
Unit,
|
||||
Display,
|
||||
DisplayConfig,
|
||||
MasterList,
|
||||
Treatment,
|
||||
Patient,
|
||||
Medicine,
|
||||
Pump,
|
||||
User,
|
||||
ConfigObservation,
|
||||
Observation,
|
||||
Audit,
|
||||
Admission,
|
||||
Discharge,
|
||||
PatientIncome,
|
||||
Obs,
|
||||
DemographicData,
|
||||
BoxBlocking,
|
||||
Default // ??????????????????????????
|
||||
}
|
||||
|
||||
public enum RolesType
|
||||
{
|
||||
AuthSome = 1,
|
||||
AuthGuest = 2,
|
||||
AuthNurse = 3,
|
||||
AuthNursesupervisor = 4,
|
||||
AuthDoctor = 5,
|
||||
AuthDoctorchief = 6,
|
||||
AuthDeveloper = 5000,
|
||||
AuthAdmin = 10000
|
||||
}
|
||||
|
||||
|
||||
public enum SourcePermissionsEnum
|
||||
{
|
||||
Display,
|
||||
Unit,
|
||||
Panel
|
||||
}
|
||||
|
||||
public enum UserActionEnum
|
||||
{
|
||||
Create,
|
||||
Read,
|
||||
Update,
|
||||
Delete
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class PumpEnum
|
||||
{
|
||||
public enum PumpMessageType
|
||||
{
|
||||
Unknown = 0,
|
||||
Observation = 1, // PCD-01 / PCD-10
|
||||
Alarm = 2 // PCD-04
|
||||
}
|
||||
|
||||
public enum AlarmMode
|
||||
{
|
||||
Hight,
|
||||
Medium,
|
||||
Low,
|
||||
None
|
||||
}
|
||||
|
||||
public enum AlarmType
|
||||
{
|
||||
// ALARMAS DE ESTADO/CONDICIÓN GENERAL
|
||||
AlarmCondition,
|
||||
|
||||
// ALARMAS ESPECÍFICAS DE INFUSIÓN Y BOMBA
|
||||
Occlusion,
|
||||
DoorOpen,
|
||||
InfusionNearCompletion,
|
||||
VtbiComplete,
|
||||
NoPowerSource,
|
||||
SyringeSizeMismatch,
|
||||
|
||||
|
||||
// ALARMAS DE SISTEMA Y TÉCNICAS
|
||||
BatteryEmpty,
|
||||
PowerFailure,
|
||||
CommunicationFailure,
|
||||
PumpMalfunction,
|
||||
ProgramError,
|
||||
SensorError,
|
||||
PressureSensorError,
|
||||
TemperatureTooHigh,
|
||||
SelfTestFailed,
|
||||
|
||||
//NEXUS ALARMS
|
||||
SystemError,
|
||||
CheckSyringePlunger,
|
||||
CheckSyringeClamp,
|
||||
SyringeInstallError,
|
||||
DownstreamOcclusion,
|
||||
DriveHeadPositionErr,
|
||||
HandOverFailed,
|
||||
KvoEnd,
|
||||
SyringeEmpty,
|
||||
VtbiDone,
|
||||
PressureFall,
|
||||
PressureRise,
|
||||
StandbyEnd,
|
||||
AcPowerFail,
|
||||
Attention,
|
||||
DrugMismatch,
|
||||
StepCompleted,
|
||||
NearEndOfInfusion,
|
||||
SyringeNearEmpty,
|
||||
AirInLine,
|
||||
BatteryLow,
|
||||
NoBattery,
|
||||
TitrationNotConfirmed,
|
||||
DropSensorDisconnect,
|
||||
NoFlow,
|
||||
TooFewDrops,
|
||||
TooManyDrops,
|
||||
UpstreamOcclusion,
|
||||
KvoAtSeEnd,
|
||||
InfusionSetNotCorrectlyFitted
|
||||
}
|
||||
|
||||
public enum Event
|
||||
{
|
||||
Start,
|
||||
Stop,
|
||||
Complete,
|
||||
ProgramRelay,
|
||||
CommStatusChange,
|
||||
LimitOverrideSoftUpper,
|
||||
LimitOverrideSoftLower,
|
||||
LimitExceededSoftUpper,
|
||||
LimitExceededSoftLower,
|
||||
VolumeCountersCleared
|
||||
}
|
||||
|
||||
public enum EventPhase
|
||||
{
|
||||
Start,
|
||||
Continue,
|
||||
End
|
||||
}
|
||||
|
||||
public enum InfusingStatus
|
||||
{
|
||||
Infusing,
|
||||
NotInfusing,
|
||||
Unknown
|
||||
}
|
||||
|
||||
public enum MedicationMode
|
||||
{
|
||||
DrugDosing,
|
||||
RampTaper,
|
||||
MultiStep,
|
||||
MultiDosing,
|
||||
LoadingDose,
|
||||
Continuous,
|
||||
Piggyback,
|
||||
Concurrent,
|
||||
ClinicianDose,
|
||||
Kvo,
|
||||
Flushing,
|
||||
PatientDose,
|
||||
Priming,
|
||||
Other
|
||||
}
|
||||
|
||||
public enum Mode
|
||||
{
|
||||
Hold,
|
||||
Infusing,
|
||||
Primary,
|
||||
Secondary,
|
||||
KeepVeinOpen,
|
||||
EndOfInfusion,
|
||||
Titration,
|
||||
Bolus,
|
||||
Priming,
|
||||
Setup,
|
||||
Induction,
|
||||
BackOff,
|
||||
MultiDose,
|
||||
LoadingDose,
|
||||
Unknown,
|
||||
DrugDosing,
|
||||
RampTaper,
|
||||
MultiDosing,
|
||||
Continuous,
|
||||
Piggyback,
|
||||
Concurrent,
|
||||
ClinicianDose,
|
||||
Other,
|
||||
Flushing,
|
||||
PatientDose,
|
||||
MultiStep
|
||||
}
|
||||
|
||||
public enum Status
|
||||
{
|
||||
Alarm,
|
||||
Warning,
|
||||
Caution,
|
||||
Hold,
|
||||
Infusing,
|
||||
Unknown,
|
||||
NotInfusing,
|
||||
Delivering,
|
||||
NotDelivering,
|
||||
Transitioning,
|
||||
Kvo,
|
||||
Priming
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class RelayEnum
|
||||
{
|
||||
public enum Mode
|
||||
{
|
||||
OpenedOnClosedOff,
|
||||
OpenedOffClosedOn
|
||||
}
|
||||
|
||||
public enum OutletType
|
||||
{
|
||||
Rele,
|
||||
Pdu
|
||||
}
|
||||
|
||||
public enum Status
|
||||
{
|
||||
On,
|
||||
Off,
|
||||
Unknown,
|
||||
NotInitialized
|
||||
}
|
||||
|
||||
public enum Type
|
||||
{
|
||||
Door
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum RespirationType
|
||||
{
|
||||
NonInvasive,
|
||||
Invasive,
|
||||
HighFrequencyVentilation,
|
||||
None
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum RetentionPolicy
|
||||
{
|
||||
NoDelete,
|
||||
DeleteOlderDays,
|
||||
DeleteOlderNumber,
|
||||
DeleteOlderSeconds
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class StatusEnum
|
||||
{
|
||||
public enum Discharge
|
||||
{
|
||||
Altable,
|
||||
NoAltable
|
||||
}
|
||||
|
||||
public enum PointOfCare
|
||||
{
|
||||
//Bloqueado
|
||||
Locked,
|
||||
|
||||
//Reservado cuando hay una admisión prevista
|
||||
Reserved,
|
||||
|
||||
//Disponible
|
||||
Available,
|
||||
|
||||
//En uso
|
||||
InUse
|
||||
}
|
||||
|
||||
public enum Type
|
||||
{
|
||||
Ok = 0,
|
||||
Warning = 1,
|
||||
Alert = 2
|
||||
}
|
||||
|
||||
public enum User
|
||||
{
|
||||
Enabled,
|
||||
EnabledUnlocked,
|
||||
EnabledLocked,
|
||||
Disabled
|
||||
}
|
||||
|
||||
public enum Video
|
||||
{
|
||||
Initialized,
|
||||
Recording,
|
||||
Paused,
|
||||
Stopped,
|
||||
Finished,
|
||||
Published,
|
||||
Deleted,
|
||||
Purged,
|
||||
Error
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class SubscriptionEnum
|
||||
{
|
||||
public enum Type
|
||||
{
|
||||
SectionSubscribe,
|
||||
PatientData,
|
||||
Idle,
|
||||
BoxSubscribe,
|
||||
ChatMessage,
|
||||
RecordingSuscribe,
|
||||
GroupedObservations,
|
||||
Sensors,
|
||||
Display,
|
||||
Demo,
|
||||
Admin
|
||||
}
|
||||
|
||||
public enum WsType
|
||||
{
|
||||
Section,
|
||||
Box,
|
||||
Unit,
|
||||
Display,
|
||||
Admin
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public static class UserEnum
|
||||
{
|
||||
public enum LoginMethod
|
||||
{
|
||||
Local,
|
||||
Ldap,
|
||||
Cas
|
||||
}
|
||||
|
||||
public enum Type
|
||||
{
|
||||
Local,
|
||||
Ldap
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace adas_core.Domain.Enums;
|
||||
|
||||
public enum VirtualPointOfCare
|
||||
{
|
||||
Pushed,
|
||||
Unknown,
|
||||
Deleted,
|
||||
Moved,
|
||||
NoBed,
|
||||
Cancelled,
|
||||
Recovered,
|
||||
UnitData
|
||||
}
|
||||
Reference in New Issue
Block a user