Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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
            };
        }