/// <summary>
        /// Called by the host to initialize the application component.
        /// </summary>
        public override void Start()
        {
            _recipientLookupHandler = new ExternalPractitionerLookupHandler(this.Host.DesktopWindow);

            Platform.GetService(
                delegate(IBrowsePatientDataService service)
            {
                var request = new GetDataRequest {
                    GetOrderDetailRequest = new GetOrderDetailRequest(_orderRef, false, false, false, false, false, true)
                };
                var order = service.GetData(request).GetOrderDetailResponse.Order;

                _selectedRecipient = order.OrderingPractitioner;

                var recipient = order.ResultRecipients.FirstOrDefault(
                    rr => rr.Practitioner.PractitionerRef.Equals(_selectedRecipient.PractitionerRef, true));

                _selectedContactPoint = recipient != null ? recipient.ContactPoint : null;
            });

            UpdateConsultantContactPointChoices();


            base.Start();
        }
        public override void Start()
        {
            if (_worklistDetail.FilterByWorkingFacility)
            {
                _selectedFacilities.Add(_workingFacilityItem);
            }
            _selectedFacilities.AddRange(_worklistDetail.Facilities);

            if (_worklistDetail.Portabilities.Contains(true))
            {
                _selectedPortabilities.Add(_portableItem);
            }
            if (_worklistDetail.Portabilities.Contains(false))
            {
                _selectedPortabilities.Add(_nonPortableItem);
            }

            _orderingPractitionerLookupHandler = new ExternalPractitionerLookupHandler(this.Host.DesktopWindow);
            if (_worklistDetail.OrderingPractitioners != null)
            {
                // GUI only allows 1 ordering practitioner - could change this in future if needed
                _selectedOrderingPractitioner = CollectionUtils.FirstElement(_worklistDetail.OrderingPractitioners);
            }

            base.Start();
        }
示例#3
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();
        }