public void AddPatientRecord(PatientRecord patientRecord)
 {
     ctx.Add(patientRecord);
 }
 /// <summary>
 /// Add Entity
 /// </summary>
 /// <typeparam name="T">Object</typeparam>
 /// <param name="entity">Entity to be added</param>
 public void Add <T>(T entity) where T : class
 {
     _logger.LogInformation($"Adding an object of type {entity.GetType()} to the context.");
     _context.Add(entity);
 }