Beispiel #1
0
        public override void Start()
        {
            _procedureTypeLookupHandler = new ProcedureTypeLookupHandler(this.Host.DesktopWindow);
            this.Validation.Add(new ValidationRule("CheckedIn",
                                                   delegate
            {
                // This validation does not apply if the procedure is not checked in
                if (!this.CheckedIn)
                {
                    return(new ValidationResult(true, ""));
                }

                string alertMessage;
                var checkInTime = Platform.Time;
                var success     = CheckInSettings.ValidateResult.Success == CheckInSettings.Validate(this.ScheduledTime, checkInTime, out alertMessage);
                return(new ValidationResult(success, alertMessage));
            }));

            this.Validation.Add(new ValidationRule("SelectedModality",
                                                   delegate
            {
                return(new ValidationResult(IsModalityValidForFacility(this.SelectedModality, this.SelectedFacility),
                                            "This modality is not valid for this performing facility."));
            }));

            base.Start();
        }
Beispiel #2
0
        public override void Start()
        {
            _orderingPractitionerLookupHandler = new ExternalPractitionerLookupHandler(this.Host.DesktopWindow);
            _procedureTypeLookupHandler        = new ProcedureTypeLookupHandler(this.Host.DesktopWindow);
            _diagnosticServiceLookupHandler    = new DiagnosticServiceLookupHandler(this.Host.DesktopWindow);

            base.Start();
        }