=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -6,6 +6,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents an admission, typically encapsulating data and behavior related to the process of admitting an entity, such as a student or patient, into an institution or system.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=f89b3f0 -->
|
||||
public class Admission
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -36,6 +37,8 @@ public class Admission
|
||||
/// Returns a human-readable string representation of the Admission, conditionally including NHC, Person, Admission Date, location, Origin, Diagnosis, and any associated Allergies only when they are present.
|
||||
/// </summary>
|
||||
/// <returns>A formatted string in the form "Admission [...]" summarizing the Admission's key properties.</returns>
|
||||
/// <!-- aidoc-review:v1 severity=low kind=wrong_summary
|
||||
/// "Summary states Admission Date is conditionally included, but it is always added to the output." -->
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items = [];
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for an alarm.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=0091df6 -->
|
||||
public class AlarmConfig
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
@@ -21,6 +22,7 @@ public class AlarmConfig
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for audio processing or playback.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=a6df86e -->
|
||||
public class AudioConfig
|
||||
{
|
||||
public AlarmEnum.AudioAlarmType Type { get; set; } = AlarmEnum.AudioAlarmType.Off;
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents an alarm item entity.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=8ad7aa4 -->
|
||||
public class AlarmItem
|
||||
{
|
||||
public bool Enabled { get; set; }
|
||||
@@ -28,6 +29,7 @@ public class AlarmItem
|
||||
/// Returns a formatted string representation of the <see cref="AlarmItem"/>, including the Enabled, StartBefore, EndAfter, Severity, and BeaconColor values, and optionally appending the Color value when it is not null or empty.
|
||||
/// </summary>
|
||||
/// <returns>A string in the format "AlarmItem[item1, item2, ...]" containing the key properties of the alarm item.</returns>
|
||||
/// <!-- aidoc:v1 sig=d27f326 body=bf483de -->
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items =
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents an authorization mechanism that determines whether a principal is granted access to a protected resource or operation.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=068aec6 -->
|
||||
public class Authorization
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
@@ -8,6 +8,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// Represents a patient box (clinical display unit) that aggregates patient data,
|
||||
/// observations, medications, and display configuration for a specific point of care.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=444196a -->
|
||||
public class Box
|
||||
{
|
||||
public Person? AttendingDoctor;
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents a camera, typically used to capture or render visual content in a scene or application.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=0330244 -->
|
||||
public class Camera
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -27,6 +28,7 @@ public class Camera
|
||||
/// <summary>
|
||||
/// Represents a sequence of bytes that can be read from or written to.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=cfa31eb -->
|
||||
public class Stream
|
||||
{
|
||||
public string? Rtsp { get; set; }
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <remarks>
|
||||
/// This type is intended to capture configuration-related observation data within the application.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=8a2fa80 -->
|
||||
public class ConfigObservation
|
||||
{
|
||||
public Dictionary<string, ConfigObservation>? Grouped;
|
||||
@@ -86,6 +87,7 @@ public class ConfigObservation
|
||||
/// human-readable serialization.
|
||||
/// </summary>
|
||||
/// <returns>A string containing the JSON-serialized representation of the object with indented formatting.</returns>
|
||||
/// <!-- aidoc:v1 sig=d27f326 body=4278a22 -->
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
@@ -94,6 +96,7 @@ public class ConfigObservation
|
||||
/// <summary>
|
||||
/// Represents a range of colors, typically used to define a spectrum or gradient between a start and end color.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=37974e8 -->
|
||||
public class ColorRange
|
||||
{
|
||||
public ObservationEnum.ValueType? ValueType;
|
||||
@@ -121,6 +124,7 @@ public class ConfigObservation
|
||||
/// <summary>
|
||||
/// Represents a configuration class that holds settings for demonstration purposes.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=9784dc4 -->
|
||||
public class DemoConfig
|
||||
{
|
||||
public int? MaxValue { get; set; }
|
||||
|
||||
@@ -8,6 +8,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <remarks>
|
||||
/// Used to manage and access configuration parameters specific to pump operations.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=2da7898 -->
|
||||
public class ConfigPumps
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
@@ -20,6 +21,7 @@ public class ConfigPumps
|
||||
/// <summary>
|
||||
/// Represents a configuration item related to a pump, encapsulating its settings or state data.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=d499c2b -->
|
||||
public class ConfigPumpItem
|
||||
{
|
||||
public PumpEnum.AlarmType? AlarmType { get; set; }
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
/// <summary>
|
||||
/// Represents a configuration container for unit definitions, providing centralized access to unit-related settings and metadata.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=2dd8a90 -->
|
||||
public class ConfigUnits
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
@@ -13,6 +14,7 @@ public class ConfigUnits
|
||||
/// <summary>
|
||||
/// Represents a single configuration unit item, serving as a data model for storing and managing individual configuration entries.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=32cd1c6 -->
|
||||
public class ConfigUnitItem
|
||||
{
|
||||
public string? Code { get; set; }
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents a device entity within the application.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=59faaff -->
|
||||
public class Device
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -28,6 +29,7 @@ public class Device
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for a device.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=7e33f30 -->
|
||||
public class DeviceSettings
|
||||
{
|
||||
public DeviceAction? Action { get; set; }
|
||||
@@ -35,6 +37,7 @@ public class DeviceSettings
|
||||
/// <summary>
|
||||
/// Represents an action that can be performed on or by a device.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=c894f50 -->
|
||||
public class DeviceAction
|
||||
{
|
||||
public DeviceActionType Type { get; set; }
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents a discharge, typically referring to the release or emission of a substance, energy, or a patient leaving a medical facility.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=afee042 -->
|
||||
public class Discharge
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents a display used to present or output information to the user.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=3c7b634 -->
|
||||
public class Display
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <remarks>
|
||||
/// This class is intended to be used as a data container or settings holder for card-related configurations.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=03cda1e -->
|
||||
public class CardConfig
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -23,6 +24,7 @@ public class CardConfig
|
||||
/// <remarks>
|
||||
/// This type is intended to be used as a data container to define the visual or behavioral properties of a row card.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=c6be0d4 -->
|
||||
public class RowCardConfig
|
||||
{
|
||||
// Dynamic cells de nurse y Dynamic Obs de monitoring
|
||||
@@ -47,6 +49,7 @@ public class RowCardConfig
|
||||
/// <summary>
|
||||
/// Represents a single cell, typically used as an individual unit within a larger structured data model such as a grid, table, or matrix.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=f829831 -->
|
||||
public class Cell
|
||||
{
|
||||
public ChartSettings? ChartSettings { get; set; }
|
||||
@@ -96,6 +99,7 @@ public class Cell
|
||||
/// <summary>
|
||||
/// Represents the configuration settings used to control the appearance and behavior of a chart.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=f930ff3 -->
|
||||
public class ChartSettings
|
||||
{
|
||||
public LegendLayoutConfig? LegendLayoutConfig { get; set; }
|
||||
@@ -106,6 +110,7 @@ public class ChartSettings
|
||||
/// <summary>
|
||||
/// Represents configuration settings for a dialog, providing a centralized structure to manage dialog-related options and parameters.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=a54c110 -->
|
||||
public class DialogConfig
|
||||
{
|
||||
public bool? IsDraggable { get; set; }
|
||||
@@ -118,6 +123,7 @@ public class DialogConfig
|
||||
/// <remarks>
|
||||
/// Serves as a container for medical configuration data, providing a centralized structure to manage and access medical settings within the application.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=90344c2 -->
|
||||
public class MedicalConfig
|
||||
{
|
||||
public bool HasFinalizeTime { get; set; }
|
||||
@@ -127,6 +133,7 @@ public class MedicalConfig
|
||||
/// <summary>
|
||||
/// Represents a list of icon values, providing a collection structure for managing and accessing icon-related data.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=8813035 -->
|
||||
public class IconValueList
|
||||
{
|
||||
public double? MinValue { get; set; }
|
||||
@@ -139,6 +146,7 @@ public class IconValueList
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for the home page or home component.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=016eb54 -->
|
||||
public class HomeConfig
|
||||
{
|
||||
public string? MinColumnSize { get; set; }
|
||||
|
||||
@@ -8,6 +8,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for card details.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=f4c2536 -->
|
||||
public class CardDetailsConfig
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -19,6 +20,7 @@ public class CardDetailsConfig
|
||||
/// <summary>
|
||||
/// Represents configuration settings for row details, typically used to control the display and behavior of expandable detail rows.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=e4c173a -->
|
||||
public class RowDetailsConfig
|
||||
{
|
||||
// Dynamic cells de nurse y Dynamic Obs de monitoring
|
||||
@@ -33,6 +35,7 @@ public class RowDetailsConfig
|
||||
/// <summary>
|
||||
/// Represents a container for detailed information about an individual cell.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=52acd82 -->
|
||||
public class CellDetails
|
||||
{
|
||||
public List<ObservationTextRule>? TextRules { get; set; }
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <remarks>
|
||||
/// This class encapsulates the configuration data used to manage display-related properties and behavior.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=f899910 -->
|
||||
public class DisplayConfig
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -62,6 +63,8 @@ public class DisplayConfig
|
||||
/// </summary>
|
||||
/// <param name="defaultConfig">The default configuration to use as a fallback when the current configuration properties are null or empty.</param>
|
||||
/// <returns>The current <see cref="DisplayConfig"/> instance with merged configuration values.</returns>
|
||||
/// <!-- aidoc-review:v1 severity=medium kind=wrong_summary
|
||||
/// "Documentation claims collection properties are replaced when 'null or empty', but the checks use `?.Count == 0` (which evaluates to false when the collection is null, so null collections are NOT replaced) and FieldList uses `.Count == 0` without `?.`, which would throw NullReferenceException if null. In practice, collections are only replaced when empty." -->
|
||||
public virtual DisplayConfig MergeConfig(DisplayConfig defaultConfig)
|
||||
{
|
||||
// CardConfig ??= defaultConfig.CardConfig;
|
||||
@@ -85,6 +88,7 @@ public class DisplayConfig
|
||||
/// <summary>
|
||||
/// Represents a standard display configuration, extending the base <see cref="DisplayConfig"/> class to provide default display settings.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=65fefbe -->
|
||||
public class StandarDisplay : DisplayConfig
|
||||
{
|
||||
public SectionConfig? SectionConfig { get; set; }
|
||||
@@ -94,6 +98,7 @@ public class StandarDisplay : DisplayConfig
|
||||
/// </summary>
|
||||
/// <param name="defaultConfig">The default display configuration to merge from. Only values from a <see cref="StandarDisplay"/> instance are applied.</param>
|
||||
/// <returns>The merged <see cref="DisplayConfig"/>, or the current instance if the provided configuration is not a <see cref="StandarDisplay"/>.</returns>
|
||||
/// <!-- aidoc:v1 sig=b33236e body=5690a8c -->
|
||||
public override DisplayConfig MergeConfig(DisplayConfig defaultConfig)
|
||||
{
|
||||
if (defaultConfig is not StandarDisplay defaultStandarConfig)
|
||||
@@ -108,6 +113,7 @@ public class StandarDisplay : DisplayConfig
|
||||
/// <summary>
|
||||
/// Represents a display configuration specific to nurses, inheriting common display behavior from the <see cref="DisplayConfig"/> base class.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=2caf10d -->
|
||||
public class DisplayNurse : DisplayConfig
|
||||
{
|
||||
/// <summary>
|
||||
@@ -115,6 +121,8 @@ public class DisplayNurse : DisplayConfig
|
||||
/// </summary>
|
||||
/// <param name="defaultConfig">The default DisplayConfig to merge values from. Only DisplayNurse instances contribute fallback values for nurse-specific settings.</param>
|
||||
/// <returns>A DisplayConfig containing the merged configuration.</returns>
|
||||
/// <!-- aidoc-review:v1 severity=high kind=wrong_summary
|
||||
/// "Summary states that when defaultConfig is not a DisplayNurse instance, 'the current configuration is returned unchanged before delegating to the base merge behavior.' In the code, it returns this immediately without calling base.MergeConfig; the base merge is only invoked when defaultConfig IS a DisplayNurse." -->
|
||||
public override DisplayConfig MergeConfig(DisplayConfig defaultConfig)
|
||||
{
|
||||
if (defaultConfig is not DisplayNurse defaultNurseConfig) return this;
|
||||
@@ -131,6 +139,7 @@ public class DisplayNurse : DisplayConfig
|
||||
/// <remarks>
|
||||
/// Inherits from <see cref="DisplayConfig"/>, extending its general display configuration behavior with pump-specific context.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=c412ac8 -->
|
||||
public class PumpDisplay : DisplayConfig
|
||||
{
|
||||
/// <summary>
|
||||
@@ -138,6 +147,7 @@ public class PumpDisplay : DisplayConfig
|
||||
/// </summary>
|
||||
/// <param name="config">The display configuration to merge from. Only <see cref="PumpDisplay"/> instances are processed; any other type results in the current instance being returned as-is.</param>
|
||||
/// <returns>The merged <see cref="DisplayConfig"/> result produced by chaining the base merge operation.</returns>
|
||||
/// <!-- aidoc:v1 sig=a725218 body=9a89afd -->
|
||||
public override DisplayConfig MergeConfig(DisplayConfig config)
|
||||
{
|
||||
if (config is not PumpDisplay defaultConfig) return this;
|
||||
@@ -159,6 +169,7 @@ public class PumpDisplay : DisplayConfig
|
||||
/// <summary>
|
||||
/// Represents a smart display configuration that extends the base <see cref="DisplayConfig"/> behavior.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=9d6032d -->
|
||||
public class SmartDisplay : DisplayConfig
|
||||
{
|
||||
/// <summary>
|
||||
@@ -166,6 +177,8 @@ public class SmartDisplay : DisplayConfig
|
||||
/// </summary>
|
||||
/// <param name="defaultConfigToCast">The default <see cref="DisplayConfig"/> to merge; it is cast to <see cref="SmartDisplay"/> to access smart display-specific properties.</param>
|
||||
/// <returns>The merged <see cref="DisplayConfig"/> produced by the base merge operation.</returns>
|
||||
/// <!-- aidoc-review:v1 severity=high kind=wrong_summary
|
||||
/// "Summary states that when the configuration is not a SmartDisplay, 'the current instance is returned unchanged and the merge is delegated to the base implementation', but the code returns early via `return this;` and never calls `base.MergeConfig(defaultConfig)` in that branch." -->
|
||||
public override DisplayConfig MergeConfig(DisplayConfig defaultConfigToCast)
|
||||
{
|
||||
if (defaultConfigToCast is not SmartDisplay defaultConfig) return this;
|
||||
@@ -216,6 +229,7 @@ public class SmartDisplay : DisplayConfig
|
||||
/// <param name="value1">The first value to compare.</param>
|
||||
/// <param name="value2">The second value to compare.</param>
|
||||
/// <returns><c>true</c> if both values are null, deeply equal as enumerables, equal via <see cref="object.Equals(object, object)"/> when their types match, or have matching string representations; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=d71a534 body=38b9696 -->
|
||||
private static bool AreEqual(object? value1, object? value2)
|
||||
{
|
||||
if (value1 == null && value2 == null) return true;
|
||||
@@ -251,6 +265,7 @@ public class SmartDisplay : DisplayConfig
|
||||
/// <summary>
|
||||
/// Represents a configuration class for defining header-related settings.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=3510dc0 -->
|
||||
public class HeaderConfig
|
||||
{
|
||||
public HeaderItem? PartnerLogo { get; set; }
|
||||
@@ -280,6 +295,7 @@ public class HeaderConfig
|
||||
/// <summary>
|
||||
/// Represents a single item contained within a header.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=8f11d42 -->
|
||||
public class HeaderItem
|
||||
{
|
||||
public string? LogoUrl { get; set; }
|
||||
@@ -290,6 +306,7 @@ public class HeaderConfig
|
||||
/// <summary>
|
||||
/// Represents a display section that provides a minimal rendering configuration.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=5dcd648 -->
|
||||
public class MinimalDisplaySection
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
@@ -299,6 +316,7 @@ public class MinimalDisplaySection
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for a section.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=ea9c3f4 -->
|
||||
public class SectionConfig
|
||||
{
|
||||
public int? Columns { get; set; }
|
||||
@@ -311,6 +329,7 @@ public class SectionConfig
|
||||
/// <summary>
|
||||
/// Represents a banner item, typically used to encapsulate data related to a banner display element such as a notification, advertisement, or promotional content.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=1bd3f1b -->
|
||||
public class BannerItem
|
||||
{
|
||||
public DisplayConfigEnums.BannerType? Type { get; set; }
|
||||
@@ -324,6 +343,7 @@ public class BannerItem
|
||||
/// <remarks>
|
||||
/// This class is used to store and manage configuration data related to individual banner items within the application.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=f9294dd -->
|
||||
public class BannerItemConfig
|
||||
{
|
||||
public BannerItemTableConfig? BannerItemTableConfig { get; set; }
|
||||
@@ -334,6 +354,7 @@ public class BannerItemConfig
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for a banner item table.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=3ff0b95 -->
|
||||
public class BannerItemTableConfig
|
||||
{
|
||||
public List<HeaderBannerItemTableConfig>? Config { get; set; }
|
||||
@@ -344,6 +365,7 @@ public class BannerItemTableConfig
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for medical staff.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=e9bae08 -->
|
||||
public class MedicalStaffConfig
|
||||
{
|
||||
public bool? HasTeams { get; set; }
|
||||
@@ -353,6 +375,7 @@ public class MedicalStaffConfig
|
||||
/// <summary>
|
||||
/// Represents an overview of form items, providing a consolidated view or summary of form-related data.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=832554b -->
|
||||
public class FormItemOverview
|
||||
{
|
||||
public bool Nhc { get; set; }
|
||||
@@ -383,6 +406,7 @@ public class FormItemOverview
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for a table that displays header banner items.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=3f13f61 -->
|
||||
public class HeaderBannerItemTableConfig
|
||||
{
|
||||
public DisplayConfigEnums.CellType? Type { get; set; }
|
||||
@@ -398,6 +422,7 @@ public class HeaderBannerItemTableConfig
|
||||
/// <summary>
|
||||
/// Represents a sensor, which is a device or component used to detect and measure physical phenomena such as temperature, pressure, or motion.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=ab8bd33 -->
|
||||
public class Sensor
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
@@ -409,6 +434,7 @@ public class Sensor
|
||||
/// <summary>
|
||||
/// Represents a configuration that defines color-related settings or values.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=de4e5be -->
|
||||
public class ColorConfig
|
||||
{
|
||||
public LevelColors? Level { get; set; }
|
||||
@@ -461,6 +487,7 @@ public class ColorConfig
|
||||
/// <summary>
|
||||
/// Represents configuration settings that define the visual appearance of an application or user interface element.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=070355d -->
|
||||
public class AppearanceSettings
|
||||
{
|
||||
public string? TextColor { get; set; }
|
||||
@@ -502,6 +529,7 @@ public class ColorConfig
|
||||
/// <summary>
|
||||
/// Represents the set of colors used to display numbers within a status box.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=41d803c -->
|
||||
public class StatusBoxNumberColors
|
||||
{
|
||||
public AppearanceSettings? Reserved { get; set; }
|
||||
@@ -543,6 +571,7 @@ public class ColorConfig
|
||||
/// <summary>
|
||||
/// Represents a collection of colors used for therapy-related visuals or themes.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=550c282 -->
|
||||
public class TherapyColors
|
||||
{
|
||||
public AppearanceSettings? Default { get; set; }
|
||||
@@ -577,6 +606,7 @@ public class ColorConfig
|
||||
/// <summary>
|
||||
/// Represents a test class for color-related operations or values.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=b0381d4 -->
|
||||
public class TestColors
|
||||
{
|
||||
public AppearanceSettings? Default { get; set; }
|
||||
@@ -612,6 +642,7 @@ public class ColorConfig
|
||||
/// <summary>
|
||||
/// Represents a set of colors used to define or customize the appearance of a procedure.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=676d773 -->
|
||||
public class ProcedureColors
|
||||
{
|
||||
public AppearanceSettings? Default { get; set; }
|
||||
@@ -647,6 +678,7 @@ public class ColorConfig
|
||||
/// <summary>
|
||||
/// Represents a collection or definition of colors associated with different levels.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=f693cfc -->
|
||||
public class LevelColors
|
||||
{
|
||||
public string? Level1 { get; set; }
|
||||
@@ -685,6 +717,7 @@ public class ColorConfig
|
||||
/// <summary>
|
||||
/// Provides a collection of predefined color values used for styling or rendering text.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=d12f899 -->
|
||||
public class TextColors
|
||||
{
|
||||
public string? Normal { get; set; }
|
||||
@@ -723,6 +756,7 @@ public class ColorConfig
|
||||
/// <summary>
|
||||
/// Represents a collection or definition of colors used for rendering arrows.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=abbea19 -->
|
||||
public class ArrowColors
|
||||
{
|
||||
public string? Normal { get; set; }
|
||||
@@ -758,6 +792,7 @@ public class ColorConfig
|
||||
/// <summary>
|
||||
/// Represents a collection or definition of colors used for indicators.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=5c596cd -->
|
||||
public class IndicatorColors
|
||||
{
|
||||
public string? Empty { get; set; }
|
||||
@@ -799,6 +834,7 @@ public class ColorConfig
|
||||
/// <summary>
|
||||
/// Represents a collection or definition of colors used for rendering graphs.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=83d1667 -->
|
||||
public class GraphColors
|
||||
{
|
||||
public string? Normal { get; set; }
|
||||
@@ -835,6 +871,7 @@ public class ColorConfig
|
||||
/// <remarks>
|
||||
/// This class encapsulates the configuration data required to define or manage form-related properties.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=68452e9 -->
|
||||
public class FormConfig
|
||||
{
|
||||
public FormItemOverview? Admission { get; set; }
|
||||
@@ -849,6 +886,7 @@ public class FormConfig
|
||||
/// <summary>
|
||||
/// Represents a label associated with an axis, typically used in charting or graphing scenarios to describe or identify the axis.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=8bf0d61 -->
|
||||
public class AxisLabel
|
||||
{
|
||||
public bool? Show { get; set; }
|
||||
@@ -868,6 +906,10 @@ public class AxisLabel
|
||||
/// Represents a line associated with an axis, typically used to render or define the visual structure of an axis in a chart or graph.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=5e39639 -->
|
||||
/// <summary>
|
||||
/// Represents an axis line, typically used to model a line associated with a coordinate axis.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=5e39639 -->
|
||||
public class AxisLineStyle
|
||||
{
|
||||
public string? Color { get; set; }
|
||||
@@ -882,6 +924,7 @@ public class AxisLine
|
||||
/// <summary>
|
||||
/// Represents a single tick mark on an axis, typically used in charting or graphing scenarios.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=51bf334 -->
|
||||
public class AxisTick
|
||||
{
|
||||
public bool? Show { get; set; }
|
||||
@@ -893,6 +936,7 @@ public class AxisTick
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for a chart, defining its visual and behavioral properties.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=16a7db6 -->
|
||||
public class ChartConfig
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -910,6 +954,7 @@ public class ChartConfig
|
||||
/// Serves as the base class for configuration types that define settings for a series.
|
||||
/// Provides a common foundation for derived series configuration implementations.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=c855a1e -->
|
||||
public class SeriesConfigBase
|
||||
{
|
||||
public string? Key { get; set; }
|
||||
@@ -954,6 +999,7 @@ public class SeriesConfigBase
|
||||
/// <summary>
|
||||
/// Represents a visual mapping that handles the rendering or display logic for map-related data.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=8a60e84 -->
|
||||
public class VisualMap
|
||||
{
|
||||
public bool Show { get; set; } //Mostrar en la leyenda
|
||||
@@ -965,6 +1011,7 @@ public class VisualMap
|
||||
/// <summary>
|
||||
/// Represents a single piece, serving as a general-purpose entity within its containing system.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=fda97c7 -->
|
||||
public class Piece
|
||||
{
|
||||
public double? Opacity { get; set; } //Valor de la opacidad
|
||||
@@ -1044,6 +1091,10 @@ public class Piece
|
||||
// /// Represents a single <c>candlestick</c> data point, typically used in financial charting to encapsulate price information for a discrete time interval.
|
||||
// /// </summary>
|
||||
// /// <!-- aidoc:v1 sig=59009c7 -->
|
||||
// /// <summary>
|
||||
// /// Represents a candle, likely encapsulating related data and behavior.
|
||||
// /// </summary>
|
||||
// /// <!-- aidoc:v1 sig=59009c7 -->
|
||||
// public class CandlestickSeriesConfig : SeriesConfigBase
|
||||
// {
|
||||
// public List<Candle>? CandleKeyList { get; set; }
|
||||
@@ -1081,6 +1132,7 @@ public enum CandleValueType
|
||||
/// <remarks>
|
||||
/// This class is intended to be inherited by specialized chart configuration types to ensure consistent configuration handling across the charting system.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=b3dbace -->
|
||||
public class ChartBaseConfig
|
||||
{
|
||||
public string? Title { get; set; }
|
||||
@@ -1101,6 +1153,7 @@ public class ChartBaseConfig
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for an axis.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=5ac80c1 -->
|
||||
public class AxisConfig
|
||||
{
|
||||
public DisplayConfigEnums.AxisType Type { get; set; }
|
||||
@@ -1126,6 +1179,7 @@ public class AxisConfig
|
||||
/// <remarks>
|
||||
/// This class serves as a base type for specific graph layout strategies and is intended to be used to control the visual or logical arrangement of graph components.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=875c23e -->
|
||||
public class GraphLayout
|
||||
{
|
||||
public string? Layout { get; set; }
|
||||
@@ -1138,6 +1192,7 @@ public class GraphLayout
|
||||
/// <summary>
|
||||
/// Represents a layout configuration for arranging section boxes.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=b374a33 -->
|
||||
public class SectionBoxLayout
|
||||
{
|
||||
public DisplayConfigEnums.RowType Type { get; set; }
|
||||
@@ -1165,6 +1220,7 @@ public class SectionBoxLayout
|
||||
/// <summary>
|
||||
/// Represents a configuration class that defines conditions.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=66c2309 -->
|
||||
public class ConditionsConfig
|
||||
{
|
||||
public string? Condition { get; set; }
|
||||
@@ -1174,6 +1230,7 @@ public class ConditionsConfig
|
||||
/// <summary>
|
||||
/// Represents a layout manager that arranges child elements in a row-based box configuration.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=30e8cdf -->
|
||||
public class RowBoxLayout
|
||||
{
|
||||
public double? GrowPriority { get; set; }
|
||||
@@ -1191,6 +1248,7 @@ public class RowBoxLayout
|
||||
/// <summary>
|
||||
/// Represents a box layout configuration for displaying observation rows.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=6dfdcd9 -->
|
||||
public class ObservationRowBoxLayout
|
||||
{
|
||||
public List<ObservationTextRule>? TextRules { get; set; }
|
||||
@@ -1230,6 +1288,7 @@ public class ObservationRowBoxLayout
|
||||
/// <summary>
|
||||
/// Represents a layout that arranges cards with a rotating behavior, likely managing the visual positioning and orientation of card elements within a container.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=4cb8ae1 -->
|
||||
public class CardRotatingLayout
|
||||
{
|
||||
// In MS
|
||||
@@ -1246,6 +1305,7 @@ public class CardRotatingLayout
|
||||
/// <summary>
|
||||
/// Represents a rule used to validate or process observation text.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=5df013c -->
|
||||
public class ObservationTextRule
|
||||
{
|
||||
public ObservationEnum.ValueType ValueType { get; set; }
|
||||
@@ -1265,6 +1325,7 @@ public class ObservationTextRule
|
||||
/// <summary>
|
||||
/// Represents a configuration object that defines layout settings for a legend.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=ef77ebb -->
|
||||
public class LegendLayoutConfig
|
||||
{
|
||||
public List<LegendLayoutRow>? Rows { get; set; }
|
||||
@@ -1273,6 +1334,7 @@ public class LegendLayoutConfig
|
||||
/// <summary>
|
||||
/// Represents a single row within a legend layout, typically used to organize and arrange legend items in a structured, row-based configuration.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=b0c9b56 -->
|
||||
public class LegendLayoutRow
|
||||
{
|
||||
public decimal? GrowPriority { get; set; }
|
||||
@@ -1282,6 +1344,7 @@ public class LegendLayoutRow
|
||||
/// <summary>
|
||||
/// Represents a column within a legend layout, defining a vertical arrangement of legend entries or items.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=733f2f6 -->
|
||||
public class LegendLayoutColumn
|
||||
{
|
||||
public string? Key { get; set; }
|
||||
@@ -1292,6 +1355,7 @@ public class LegendLayoutColumn
|
||||
/// <summary>
|
||||
/// Represents a label associated with a legend, typically used to describe or identify an entry in a chart, graph, or similar visual component.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=3878ffa -->
|
||||
public class LegendLabel
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <remarks>
|
||||
/// This converter extends <see cref="JsonConverter"/> to provide tailored JSON conversion behavior for historical config change data.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=232c10f -->
|
||||
public class HistoricalConfigChanges : JsonConverter
|
||||
{
|
||||
public DateTime Time;
|
||||
@@ -34,6 +35,7 @@ public class HistoricalConfigChanges : JsonConverter
|
||||
/// <param name="writer">The <see cref="JsonWriter"/> that receives the serialized JSON output.</param>
|
||||
/// <param name="value">The object to serialize. If <c>null</c>, the method does nothing.</param>
|
||||
/// <param name="serializer">The <see cref="JsonSerializer"/> used during serialization.</param>
|
||||
/// <!-- aidoc:v1 sig=0bafa81 body=a8323de -->
|
||||
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
|
||||
{
|
||||
if (value != null)
|
||||
@@ -50,6 +52,7 @@ public class HistoricalConfigChanges : JsonConverter
|
||||
/// </summary>
|
||||
/// <param name="value">The object instance whose type defines the target property.</param>
|
||||
/// <param name="propertyName">The name of the property to which the converter attribute should be added.</param>
|
||||
/// <!-- aidoc:v1 sig=02b15d7 body=a196735 -->
|
||||
private static void AddStringEnumConverterAttribute(object value, string propertyName)
|
||||
{
|
||||
var prop = value.GetType().GetProperty(propertyName);
|
||||
@@ -84,6 +87,7 @@ public class HistoricalConfigChanges : JsonConverter
|
||||
/// <param name="serializer">The <see cref="JsonSerializer"/> used to deserialize nested objects.</param>
|
||||
/// <returns>The deserialized object value.</returns>
|
||||
/// <exception cref="NotImplementedException">Always thrown because the method has not been implemented.</exception>
|
||||
/// <!-- aidoc:v1 sig=c91c541 body=bfa6f2f -->
|
||||
public override object ReadJson(JsonReader reader, Type objectType, object? existingValue,
|
||||
JsonSerializer serializer)
|
||||
{
|
||||
@@ -96,6 +100,8 @@ public class HistoricalConfigChanges : JsonConverter
|
||||
/// <param name="objectType">The type to evaluate for convertibility.</param>
|
||||
/// <returns><see langword="true"/> when the converter supports <paramref name="objectType"/>; otherwise, <see langword="false"/>.</returns>
|
||||
/// <exception cref="NotImplementedException">Thrown in all cases because the method body is not implemented.</exception>
|
||||
/// <!-- aidoc-review:v1 severity=high kind=wrong_returns
|
||||
/// "The method always throws NotImplementedException and never actually returns true or false; the <returns> tag implies a boolean outcome that never occurs." -->
|
||||
public override bool CanConvert(Type objectType)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
/// <remarks>
|
||||
/// The type holds a timestamp together with a dictionary of patient IDs, providing a snapshot of the identification data at the given time.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=0e1354d -->
|
||||
public class HistoricalId(DateTime time, Dictionary<string, string> patientIds)
|
||||
{
|
||||
// Propiedades
|
||||
@@ -19,6 +20,7 @@ public class HistoricalId(DateTime time, Dictionary<string, string> patientIds)
|
||||
/// Determines whether the appointment is empty by checking if the <see cref="Time"/> has not been set (is the default <see cref="DateTime"/>) and no patient identifiers have been associated.
|
||||
/// </summary>
|
||||
/// <returns><see langword="true"/> if both the time is uninitialized and the patient list is empty; otherwise, <see langword="false"/>.</returns>
|
||||
/// <!-- aidoc:v1 sig=1112d99 body=8e5afe5 -->
|
||||
public bool IsEmpty()
|
||||
{
|
||||
return Time == default(DateTime) && PatientIds.Count == 0;
|
||||
@@ -29,6 +31,7 @@ public class HistoricalId(DateTime time, Dictionary<string, string> patientIds)
|
||||
/// Determines whether the current entity is fully populated by verifying that a time has been explicitly assigned and at least one patient is associated.
|
||||
/// </summary>
|
||||
/// <returns><c>true</c> if both the <c>Time</c> property is set to a non-default <see cref="DateTime"/> value and the <c>PatientIds</c> collection contains at least one entry; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=49eac56 body=64ddc12 -->
|
||||
public bool IsFull()
|
||||
{
|
||||
return Time != default(DateTime) && PatientIds.Count > 0;
|
||||
@@ -39,6 +42,7 @@ public class HistoricalId(DateTime time, Dictionary<string, string> patientIds)
|
||||
/// Returns a string representation of the HistoricalId, including the time and a comma-separated list of patient identifiers.
|
||||
/// </summary>
|
||||
/// <returns>A formatted string in the form "HistoricalId[Time: {Time}, PatientIds: {idsString}]" where idsString is the patient identifiers joined by commas.</returns>
|
||||
/// <!-- aidoc:v1 sig=d27f326 body=7cb507c -->
|
||||
public override string ToString()
|
||||
{
|
||||
var idsString = string.Join(", ", PatientIds);
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents a light beacon, typically used to emit or signal light as a visual indicator or warning marker.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=ecec1f5 -->
|
||||
public class LightBeacon
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -17,6 +18,7 @@ public class LightBeacon
|
||||
/// <summary>
|
||||
/// Represents a container for configuration or option settings used by the application.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=ab896e3 -->
|
||||
public class Options
|
||||
{
|
||||
public string? Url { get; set; }
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents a notice, typically used to convey information, alerts, or messages within the application.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=2d051b4 -->
|
||||
public class Notice
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -20,6 +21,7 @@ public class Notice
|
||||
/// Returns a string representation of the notice, including the date (only when set), display ID, type, and description.
|
||||
/// </summary>
|
||||
/// <returns>A formatted string prefixed with "Notice [" and containing the comma-separated notice details, omitting the date entry when <c>NoticeDate</c> equals <see cref="System.DateTime.MinValue"/>.</returns>
|
||||
/// <!-- aidoc:v1 sig=d27f326 body=1c88f7f -->
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items = [];
|
||||
@@ -35,6 +37,7 @@ public class Notice
|
||||
/// <summary>
|
||||
/// Represents a data structure that contains information about a staff member.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=27c7be9 -->
|
||||
public class StaffInfo
|
||||
{
|
||||
public required string Role { get; set; }
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents a patient entity, typically used to encapsulate patient-related data and behavior within a healthcare or medical information system.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=902d058 -->
|
||||
public class Patient
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -95,6 +96,7 @@ public class Patient
|
||||
/// for nullable types).
|
||||
/// </summary>
|
||||
/// <returns>A formatted string prefixed with "person[" and containing the included fields joined by commas.</returns>
|
||||
/// <!-- aidoc:v1 sig=d27f326 body=5a5a5f9 -->
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items = [$"id: {Id}"];
|
||||
@@ -117,6 +119,7 @@ public class Patient
|
||||
/// Determines whether the current <see cref="UnitString"/> represents an inactive Virtual Point of Care by checking that it is not null and is not defined as a value of the <see cref="VirtualPointOfCare"/> enumeration.
|
||||
/// </summary>
|
||||
/// <returns><c>true</c> if <c>UnitString</c> is not null and does not match any defined <see cref="VirtualPointOfCare"/> value; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=6381760 body=ad5b58c -->
|
||||
public bool IsInActivePoC()
|
||||
{
|
||||
return UnitString != null && !Enum.IsDefined(typeof(VirtualPointOfCare), UnitString);
|
||||
@@ -126,6 +129,7 @@ public class Patient
|
||||
/// Creates a copy of the current <see cref="Patient"/> instance by performing a shallow copy.
|
||||
/// </summary>
|
||||
/// <returns>A new <see cref="Patient"/> object that is a shallow copy of the current instance.</returns>
|
||||
/// <!-- aidoc:v1 sig=b9adf0d body=1385083 -->
|
||||
public Patient DeepCopy()
|
||||
{
|
||||
return (Patient)MemberwiseClone();
|
||||
@@ -182,6 +186,7 @@ public class Patient
|
||||
/// <summary>
|
||||
/// Represents data related to a patient's income information.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=7574aef -->
|
||||
public class PatientIncomeData
|
||||
{
|
||||
public DateTime? AdmTime { get; set; }
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <remarks>
|
||||
/// This class serves as a structured model for organizing and tracking the various aspects of a patient's care strategy.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=28fe9fe -->
|
||||
public class PatientCarePlan
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
/// <remarks>
|
||||
/// This class serves as a container or descriptor for mapping logic, commonly used to translate data between different representations or models.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=5a30aec -->
|
||||
public class PoCMapping
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
@@ -17,6 +18,7 @@ public class PoCMapping
|
||||
/// <summary>
|
||||
/// Represents a single item used in a proof of concept (PoC) mapping, encapsulating the data or configuration required to define a mapping entry.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=7b4cf01 -->
|
||||
public class PoCMappingItem
|
||||
{
|
||||
public string OriginalPoC { get; set; } = string.Empty;
|
||||
|
||||
@@ -9,6 +9,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <remarks>
|
||||
/// This class serves as a container for configuration values used during proof-of-concept development and testing phases.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=6b63115 -->
|
||||
public class PoCSettings
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -21,6 +22,7 @@ public class PoCSettings
|
||||
/// Returns a string representation of the object, always including the Id, and conditionally appending the PatientLocation and Relay Manual Status when those values are not null.
|
||||
/// </summary>
|
||||
/// <returns>A string containing the Id and, when available, the PatientLocation and Manual Relay Status information.</returns>
|
||||
/// <!-- aidoc:v1 sig=d27f326 body=f9c6eac -->
|
||||
public override string ToString()
|
||||
{
|
||||
var result = "Id: " + Id;
|
||||
|
||||
@@ -9,6 +9,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <remarks>
|
||||
/// This class serves as a data model for capturing information related to a specific point where care is administered to patients.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=99a7922 -->
|
||||
public class PointOfCare
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -39,6 +40,7 @@ public class PointOfCare
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for a point-of-care system, encapsulating the parameters and options required to manage its behavior.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=50c6b7b -->
|
||||
public class PointOfCareConfiguration
|
||||
{
|
||||
public List<ObjectId>? BeaconIdList { get; set; } = [];
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
/// <summary>
|
||||
/// Represents a pump element within the system, serving as a component for pumping-related functionality.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=c1af8ef -->
|
||||
public class PumpElement
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <remarks>
|
||||
/// This class serves as an intermediary mechanism, commonly used to decouple producers and consumers of information.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=2f27144 -->
|
||||
public class Relay
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -52,6 +53,7 @@ public class Relay
|
||||
/// </summary>
|
||||
/// <param name="other">The other <see cref="Relay"/> instance to compare against the current one.</param>
|
||||
/// <returns><c>true</c> if all properties of both relays match; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=2e64d60 body=9793a82 -->
|
||||
public bool Equals(Relay other)
|
||||
{
|
||||
return Driver == other.Driver && Ip == other.Ip && Port == other.Port && RelayNumber == other.RelayNumber &&
|
||||
@@ -63,6 +65,7 @@ public class Relay
|
||||
/// Returns a JSON string representation of the current object, serializing all its public properties via JsonConvert.
|
||||
/// </summary>
|
||||
/// <returns>A JSON-formatted string that represents the current object.</returns>
|
||||
/// <!-- aidoc:v1 sig=d27f326 body=a8136e0 -->
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this);
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents a section, typically used to group or encapsulate a distinct portion of related content or functionality within a larger structure.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=08dfa80 -->
|
||||
public class Section
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming
|
||||
@@ -39,6 +40,7 @@ public class Section
|
||||
/// </summary>
|
||||
/// <param name="other">The <see cref="Section"/> instance to compare with the current one.</param>
|
||||
/// <returns><c>true</c> if both sections share the same <see cref="Section.Id"/>; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=b37ab9c body=200362c -->
|
||||
public bool Equals(Section? other)
|
||||
{
|
||||
return other != null &&
|
||||
@@ -49,6 +51,7 @@ public class Section
|
||||
/// Returns a string representation of the Section, including its identifier.
|
||||
/// </summary>
|
||||
/// <returns>A string formatted as "[Section id: {Id}]" containing the section's identifier.</returns>
|
||||
/// <!-- aidoc:v1 sig=d27f326 body=50b2b4e -->
|
||||
public override string ToString()
|
||||
{
|
||||
return "[Section id: " + Id + "]";
|
||||
@@ -57,6 +60,7 @@ public class Section
|
||||
/// <summary>
|
||||
/// Represents an individual item within a section, encapsulating the data and behavior associated with that entry.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=77db232 -->
|
||||
public class SectionItem
|
||||
{
|
||||
public string? Group { get; set; }
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for a service.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=7ad95bf -->
|
||||
public class ServiceConfig
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
/// <summary>
|
||||
/// Provides functionality for managing service configuration settings.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=bddc26d -->
|
||||
public class ServiceConfigService
|
||||
{
|
||||
public string Screen { get; set; } = string.Empty;
|
||||
@@ -14,6 +15,7 @@ public class ServiceConfigService
|
||||
/// <summary>
|
||||
/// Represents a configuration section that defines settings for a service configuration service.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=ad46068 -->
|
||||
public class ServiceConfigServiceSection
|
||||
{
|
||||
public string BoxId { get; set; } = string.Empty;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for the theme of a service.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=f232567 -->
|
||||
public class ServiceConfigTheme
|
||||
{
|
||||
public string DefaultTheme { get; set; } = string.Empty;
|
||||
@@ -14,6 +15,7 @@ public class ServiceConfigTheme
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for a service's theme timetable.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=c33232e -->
|
||||
public class ServiceConfigThemeTimetable
|
||||
{
|
||||
public string Theme { get; set; } = string.Empty;
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents an individual step, typically within a sequence or workflow.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=e078b3b -->
|
||||
public class Step
|
||||
{
|
||||
public int? RotationTime { get; set; }
|
||||
@@ -27,6 +28,7 @@ public class Step
|
||||
/// <remarks>
|
||||
/// This class serves as a data container for font properties required by the UI rendering system.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=13f55fb -->
|
||||
public class UiFontData
|
||||
{
|
||||
public double? WidthStepBed { get; set; }
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents a unit, typically used as a return type for operations that have no meaningful result value.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=a533774 -->
|
||||
public class Unit
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
@@ -81,6 +82,7 @@ public class Unit
|
||||
/// <summary>
|
||||
/// Represents the configuration settings for a unit.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=85992a0 -->
|
||||
public class UnitConfiguration
|
||||
{
|
||||
public bool AutoAdt { get; set; }
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace adas_core.Domain.Models.MongoModels;
|
||||
/// <summary>
|
||||
/// Represents a user within the system, encapsulating user-related data and behavior.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=cd88043 -->
|
||||
public class User
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user