rama creada apartir de master en j

This commit is contained in:
jrojas
2026-06-26 10:29:23 +02:00
parent 319fd3dfb0
commit c1517fda87
2810 changed files with 1927392 additions and 25392 deletions
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents an access control list, derived from <see cref="MasterList"/>, used to organize and manage a collection of access control entries or permissions.
/// </summary>
/// <remarks>
/// As a subclass of <see cref="MasterList"/>, it inherits the core list management capabilities while specializing them for access control scenarios.
/// </remarks>
public class AccessControlList : MasterList;
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a list of allergy entries, inheriting common list behavior from the MasterList base class.
/// </summary>
/// <remarks>
/// Provides a domain-specific list type dedicated to managing and organizing allergy records.
/// </remarks>
public class AllergyList : MasterList;
@@ -1,3 +1,6 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a list of alterable options, inheriting core list functionality from the <see cref="MasterList"/> base class.
/// </summary>
public class AltableOptionList : MasterList;
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a list of destinations, deriving its base functionality from the <see cref="MasterList"/> class.
/// </summary>
/// <remarks>
/// Serves as a concrete list type within the master list hierarchy, specifically tailored for destination-related collections.
/// </remarks>
public class DestinationList : MasterList;
@@ -1,3 +1,6 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a specialized list of diagnosis entries, extending the base <see cref="MasterList"/> functionality.
/// </summary>
public class DiagnosisList : MasterList;
@@ -1,3 +1,6 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a typed master list of discharge statuses, deriving from the base <see cref="MasterList"/> class.
/// </summary>
public class DischargeStatusList : MasterList;
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a collection of doctor entries, deriving its core list functionality from the <see cref="MasterList"/> base class.
/// </summary>
/// <remarks>
/// Serves as a specialized list type for doctor-related data, extending the shared behavior provided by <see cref="MasterList"/>.
/// </remarks>
public class DoctorList : MasterList;
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a master list of doctor types, extending the base <see cref="MasterList"/> class.
/// </summary>
/// <remarks>
/// This class serves as a specialized collection that inherits the core list behavior from <see cref="MasterList"/>, tailored for managing doctor type entries.
/// </remarks>
public class DoctorTypeList : MasterList;
@@ -1,3 +1,6 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a generic list type that derives from <see cref="MasterList"/>, extending the base master list functionality.
/// </summary>
public class GenericList : MasterList;
@@ -1,3 +1,7 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a specialized list that manages insulation-related entries within the system.
/// Inherits from <see cref="MasterList"/>, providing a dedicated collection for organizing and handling insulation data.
/// </summary>
public class InsulationList : MasterList;
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents an internal list of destinations, derived from the base <see cref="MasterList"/> class.
/// </summary>
/// <remarks>
/// This type specializes the <see cref="MasterList"/> behavior for internal destination handling within the containing system.
/// </remarks>
public class InternalDestinationList : MasterList;
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a specialized master list that manages entries related to language barriers.
/// </summary>
/// <remarks>
/// Inherits from <see cref="MasterList"/>, extending its functionality for handling language barrier data.
/// </remarks>
public class LanguageBarrierList : MasterList;
@@ -3,6 +3,12 @@ using MongoDB.Bson;
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a master list, serving as a centralized collection for managing a comprehensive set of items.
/// </summary>
/// <remarks>
/// This class provides a foundational structure for organizing and accessing a primary list of entries.
/// </remarks>
public class MasterList
{
public ObjectId Id { get; set; }
@@ -81,6 +87,12 @@ public class MasterList
}
}
/// <summary>
/// Represents a container that holds detailed information about a list of options.
/// </summary>
/// <remarks>
/// This type is intended to encapsulate the metadata or structure associated with an option list, allowing consumers to access its detailed content in a structured manner.
/// </remarks>
public class OptionListDetails
{
public Element? OptionType { get; set; }
@@ -93,6 +105,9 @@ public class OptionListDetails
public Element? Description { get; set; }
}
/// <summary>
/// Represents a generic element within the system, serving as a foundational type that can be extended or composed to model domain-specific entities or structures.
/// </summary>
public class Element
{
public string Title { get; set; } = string.Empty;
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a master list of mobility options, providing a centralized collection for managing and accessing related mobility-related entries.
/// </summary>
/// <remarks>
/// Inherits from <see cref="MasterList"/>, leveraging the base class's list management functionality specialized for mobility options.
/// </remarks>
public class MobilityOptionList : MasterList;
+46 -25
View File
@@ -2,6 +2,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a list that contains a collection of options.
/// </summary>
public class OptionList
{
public ObjectId? Id { get; set; }
@@ -18,36 +21,51 @@ public class OptionList
public DateTime? EndDate { get; set; }
public bool? IsDefault { get; set; }
/// <summary>
/// Compares two <see cref="OptionList"/> instances to determine whether they are equal by checking all of their properties, including type, name, icons, colors, dates, description, and default flag.
/// </summary>
/// <param name="a">The first <see cref="OptionList"/> to compare.</param>
/// <param name="b">The second <see cref="OptionList"/> to compare.</param>
/// <returns><c>true</c> if all compared properties of both <see cref="OptionList"/> instances are equal; otherwise, <c>false</c>.</returns>
public bool AreEqual(OptionList a, OptionList b)
{
return a.OptionType == b.OptionType &&
a.Name == b.Name &&
a.IconDefault == b.IconDefault &&
a.IconCategory == b.IconCategory &&
a.IconColor == b.IconColor &&
a.Color == b.Color &&
a.BgColor == b.BgColor &&
a.IsDefault == b.IsDefault &&
a.Description == b.Description &&
a.InitDate == b.InitDate &&
a.EndDate == b.EndDate;
}
{
return a.OptionType == b.OptionType &&
a.Name == b.Name &&
a.IconDefault == b.IconDefault &&
a.IconCategory == b.IconCategory &&
a.IconColor == b.IconColor &&
a.Color == b.Color &&
a.BgColor == b.BgColor &&
a.IsDefault == b.IsDefault &&
a.Description == b.Description &&
a.InitDate == b.InitDate &&
a.EndDate == b.EndDate;
}
/// <summary>
/// Determines whether two <see cref="OptionList"/> instances are equal based on their core properties, excluding the Description field.
/// </summary>
/// <param name="a">The first <see cref="OptionList"/> to compare.</param>
/// <param name="b">The second <see cref="OptionList"/> to compare.</param>
/// <returns><c>true</c> if both option lists match across OptionType, Name, IconDefault, IconCategory, IconColor, Color, BgColor, IsDefault, InitDate, and EndDate; otherwise, <c>false</c>.</returns>
public bool AreEqualExcludeDescription(OptionList a, OptionList b)
{
return a.OptionType == b.OptionType &&
a.Name == b.Name &&
a.IconDefault == b.IconDefault &&
a.IconCategory == b.IconCategory &&
a.IconColor == b.IconColor &&
a.Color == b.Color &&
a.BgColor == b.BgColor &&
a.IsDefault == b.IsDefault &&
a.InitDate == b.InitDate &&
a.EndDate == b.EndDate;
}
{
return a.OptionType == b.OptionType &&
a.Name == b.Name &&
a.IconDefault == b.IconDefault &&
a.IconCategory == b.IconCategory &&
a.IconColor == b.IconColor &&
a.Color == b.Color &&
a.BgColor == b.BgColor &&
a.IsDefault == b.IsDefault &&
a.InitDate == b.InitDate &&
a.EndDate == b.EndDate;
}
}
/// <summary>
/// Represents a locale, providing culture-specific or region-specific information such as language, country, or regional settings.
/// </summary>
public class Locale
{
public LocaleItem? Es { get; set; }
@@ -57,6 +75,9 @@ public class Locale
public LocaleItem? Zh { get; set; }
}
/// <summary>
/// Represents a single locale item, typically used to encapsulate locale-related data such as language or regional settings.
/// </summary>
public class LocaleItem
{
public string? Name { get; set; }
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a list of origin entities, inheriting core list functionality from <see cref="MasterList"/>.
/// </summary>
/// <remarks>
/// This class specializes the base <see cref="MasterList"/> behavior for managing a collection of origin items.
/// </remarks>
public class OriginList : MasterList;
@@ -1,3 +1,6 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a specialized master list containing passive sitting entries, inheriting from the <see cref="MasterList"/> base class.
/// </summary>
public class PassiveSittingList : MasterList;
@@ -1,3 +1,7 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a master list of patient status entries, providing a centralized
/// collection for managing and accessing patient status data.
/// </summary>
public class PatientStatusList : MasterList;
@@ -1,3 +1,7 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a list of procedures, inheriting from <see cref="MasterList"/> to provide procedure-specific list functionality.
/// Serves as a specialized master list dedicated to managing procedure entries.
/// </summary>
public class ProcedureList : MasterList;
@@ -1,3 +1,6 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a specialized list that inherits from <see cref="MasterList"/>, intended to manage and organize service-related entries.
/// </summary>
public class ServiceList : MasterList;
@@ -1,3 +1,6 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a test list that derives from the <see cref="MasterList"/> base class, providing specialized list behavior for testing scenarios.
/// </summary>
public class TestList : MasterList;
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a master list of therapeutic ceiling values, defining the maximum allowable limits for treatments or dosages.
/// </summary>
/// <remarks>
/// Inherits from <see cref="MasterList"/>, leveraging the base list functionality to manage and organize therapeutic ceiling entries.
/// </remarks>
public class TherapeuticCeilingList : MasterList;
@@ -1,3 +1,9 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a specialized list of treatment items that inherits its core list functionality from the MasterList base class.
/// </summary>
/// <remarks>
/// Acts as a domain-specific collection type for organizing and managing treatments within the system.
/// </remarks>
public class TreatmentList : MasterList;
@@ -1,3 +1,6 @@
namespace adas_core.Domain.Models.Masters;
/// <summary>
/// Represents a list of visit options, inheriting from the <see cref="MasterList"/> base class.
/// </summary>
public class VisitOptionList : MasterList;