# Class PatientDiagnosis

Namespace
  adas_core.Domain.Models

Assembly
  adas-core.Domain.dll

Represents a diagnosis associated with a patient, encapsulating the relevant diagnostic information.

    public class PatientDiagnosis

Inheritance
  object
  PatientDiagnosis

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Properties

### Category

    public string? Category { get; set; }

#### Property Value

string

### Code

    public string? Code { get; set; }

#### Property Value

string

### CodingSystem

    public string? CodingSystem { get; set; }

#### Property Value

string

### Description

    public string? Description { get; set; }

#### Property Value

string

### DiagnosisCode

    public string? DiagnosisCode { get; set; }

#### Property Value

string

### DiagnosisSystem

    public string? DiagnosisSystem { get; set; }

#### Property Value

string

### EndTime

    public DateTime? EndTime { get; set; }

#### Property Value

DateTime?

### Id

    public ObjectId Id { get; set; }

#### Property Value

ObjectId

### Label

    public string? Label { get; set; }

#### Property Value

string

### MessageTime

    public DateTime MessageTime { get; set; }

#### Property Value

DateTime

### PatientId

    public ObjectId PatientId { get; set; }

#### Property Value

ObjectId

### StartTime

    public DateTime? StartTime { get; set; }

#### Property Value

DateTime?

### State

    public string? State { get; set; }

#### Property Value

string

### Time

    public DateTime Time { get; set; }

#### Property Value

DateTime

### UpdateDate

    public DateTime? UpdateDate { get; set; }

#### Property Value

DateTime?

## Methods

### ToString()

Returns a string representation of the PatientDiagnosis instance, including its core fields (id, time, patientId, messageTime, startTime, endTime) and conditionally appending optional properties (codingSystem, label, code, state, category) only when they have non-empty values.

    public override string ToString()

#### Returns

string

  A formatted string in the form `PatientDiagnosis[field1: value1, field2: value2, ...]` containing the diagnosis data; optional fields are omitted when null or empty.