Class PatientObservation
Represents a patient observation, extending the base patient observation value functionality.
public class PatientObservation : BasePatientObservationValue
- Inheritance
-
JsonConverterPatientObservation
- Inherited Members
-
JsonConverter.CanReadJsonConverter.CanWrite
- Extension Methods
Remarks
This class serves as a concrete implementation of patient observation data, inheriting common observation value behavior from BasePatientObservationValue.
Constructors
PatientObservation()
public PatientObservation()
PatientObservation(ObjectId, object, string?)
public PatientObservation(ObjectId patientId, object value, string? name)
Parameters
Properties
Alarm
public AlarmConfig? Alarm { get; set; }
Property Value
AlertColor
public string? AlertColor { get; set; }
Property Value
ColorOnExpired
public string? ColorOnExpired { get; set; }
Property Value
Expired
[BsonDefaultValue(false)]
public bool Expired { get; set; }
Property Value
Expires
public int? Expires { get; set; }
Property Value
- int?
InsertMode
public ObservationEnum.InsertMode InsertMode { get; set; }
Property Value
Level
public int Level { get; set; }
Property Value
Max
public double? Max { get; set; }
Property Value
MaxWarn
public double? MaxWarn { get; set; }
Property Value
MessageTime
public DateTime MessageTime { get; set; }
Property Value
Min
public double? Min { get; set; }
Property Value
MinWarn
public double? MinWarn { get; set; }
Property Value
Persist
public bool? Persist { get; set; }
Property Value
- bool?
Result
public string? Result { get; set; }
Property Value
ShowOnExpired
public bool ShowOnExpired { get; set; }
Property Value
Status
public StatusEnum.Type Status { get; set; }
Property Value
UiConfiguration
public Dictionary<string, object>? UiConfiguration { get; set; }
Property Value
WarnColor
public string? WarnColor { get; set; }
Property Value
Methods
DeepCopy()
Creates a copy of the current PatientObservation instance by performing a shallow copy via MemberwiseClone and casting the cloned object back to PatientObservation.
public PatientObservation DeepCopy()
Returns
- PatientObservation
A PatientObservation instance that is a shallow copy of the current object.
ToString()
Returns a string representation of the PatientObservation, including its value, optional min/max/warning thresholds, result, status, expiration, and persistence settings. Optional properties are only included in the output when they have non-null or, for strings, non-empty values.
public override string ToString()
Returns
- string
A formatted string in the form
PatientObservation[property1: value1, ...]containing the populated properties of the observation.