public void Handle(PatientCreated args) { //TODO: Remove hard codede ModuleID,VisitType,LocationID values _sqlActions = new List <SqlAction>(); _patient = args.Patient; _location = args.Location; _module = args.Module; _visittype = args.VisitType; _notification = $"Creating Patient[{args.Patient}] Encounters[{args.Patient.Encounters?.Count ?? 0}]"; Log.Debug(_notification); GenerateSqlActions(); }
public PatientCreated(Patient patient, IQLocation location) { Patient = patient; Location = location; DateOccurred = DateTime.Now; //TODO: Remove hard codede ModuleID,VisitType,LocationID values Module = new IQModule() { ModuleID = 5 }; VisitType = new IQVisitType() { VisitTypeID = 219 }; }