Class HistoricalId
- Namespace
- adas_core.Domain.Models.MongoModels
- Assembly
- adas-core.Domain.dll
Represents a historical identifier that associates a specific point in time with a set of patient identifiers.
public class HistoricalId
- Inheritance
-
HistoricalId
- Inherited Members
- Extension Methods
Remarks
The type holds a timestamp together with a dictionary of patient IDs, providing a snapshot of the identification data at the given time.
Constructors
HistoricalId(DateTime, Dictionary<string, string>)
Represents a historical identifier that associates a specific point in time with a set of patient identifiers.
public HistoricalId(DateTime time, Dictionary<string, string> patientIds)
Parameters
timeDateTimepatientIdsDictionary<string, string>
Remarks
The type holds a timestamp together with a dictionary of patient IDs, providing a snapshot of the identification data at the given time.
Properties
PatientIds
public Dictionary<string, string> PatientIds { get; set; }
Property Value
Time
public DateTime? Time { get; set; }
Property Value
Methods
IsEmpty()
Determines whether the appointment is empty by checking if the Time has not been set (is the default DateTime) and no patient identifiers have been associated.
public bool IsEmpty()
Returns
IsFull()
Determines whether the current entity is fully populated by verifying that a time has been explicitly assigned and at least one patient is associated.
public bool IsFull()
Returns
- bool
trueif both theTimeproperty is set to a non-default DateTime value and thePatientIdscollection contains at least one entry; otherwise,false.
ToString()
Returns a string representation of the HistoricalId, including the time and a comma-separated list of patient identifiers.
public override string ToString()
Returns
- string
A formatted string in the form "HistoricalId[Time: {Time}, PatientIds: {idsString}]" where idsString is the patient identifiers joined by commas.