Table of Contents

Class DiagnosisEntry

Namespace
Core.CliniCore.Domain.ClinicalDocumentation.ClinicalEntries
Assembly
Core.CliniCore.dll

Represents a clinical diagnosis

public class DiagnosisEntry : AbstractClinicalEntry
Inheritance
DiagnosisEntry
Inherited Members
Extension Methods

Constructors

DiagnosisEntry(Guid, string)

public DiagnosisEntry(Guid authorId, string diagnosisDescription)

Parameters

authorId Guid
diagnosisDescription string

Properties

EntryType

Gets the type of this clinical entry

public override ClinicalEntryType EntryType { get; }

Property Value

ClinicalEntryType

ICD10Code

ICD-10 diagnosis code

public string? ICD10Code { get; set; }

Property Value

string

IsPrimary

Whether this is the primary diagnosis

public bool IsPrimary { get; set; }

Property Value

bool

OnsetDate

Date of onset for this condition

public DateTime? OnsetDate { get; set; }

Property Value

DateTime?

RelatedPrescriptions

IDs of prescriptions linked to this diagnosis

public List<Guid> RelatedPrescriptions { get; }

Property Value

List<Guid>

Status

Clinical status of the diagnosis

public DiagnosisStatus Status { get; set; }

Property Value

DiagnosisStatus

SupportingObservations

IDs of observations supporting this diagnosis

public List<Guid> SupportingObservations { get; }

Property Value

List<Guid>

Type

Type of diagnosis (differential, working, final, etc.)

public DiagnosisType Type { get; set; }

Property Value

DiagnosisType

Methods

AddRelatedPrescription(Guid)

Adds a prescription that treats this diagnosis

public void AddRelatedPrescription(Guid prescriptionId)

Parameters

prescriptionId Guid

AddSupportingObservation(Guid)

Adds an observation that supports this diagnosis

public void AddSupportingObservation(Guid observationId)

Parameters

observationId Guid

GetDisplayString()

Creates a formatted display string for this entry

public override string GetDisplayString()

Returns

string

GetValidationErrors()

Gets validation errors for this entry

public override List<string> GetValidationErrors()

Returns

List<string>