using ProjectPatientAccounting.Entities.Enums;
namespace ProjectPatientAccounting.Entities;

public class PatientDiagnosis
{
    public int Id { get; private set; }
    public string Name { get; private set; } = string.Empty; 
    public int DiagnosisCode { get; private set; }
    public PatientDiagnosisStatus PatientDiagnosisStatus { get; private set; }

    public static PatientDiagnosis CreateEntity(int id, string name, int diagnosisCode, PatientDiagnosisStatus patientDiagnosisStatus)
    {
        return new PatientDiagnosis
        {
            Id = id,
            Name = name,
            DiagnosisCode = diagnosisCode,
            PatientDiagnosisStatus = patientDiagnosisStatus
        };
    }
}
