Exemple #1
0
        private string processSearchPatientRequest(string strLastName, string strFirstName, String token, String url)
        {
            var request = new PatientSelectionRequest()
            {
                BirthDateFrom = null,
                BirthDateTo   = null,
                FirstName     = null,
                LastName      = null,
                ExactSearch   = null,
                Sex           = null
            };

            if (String.IsNullOrEmpty(strFirstName) == false)
            {
                request.FirstName = new VMS.AWC.Common.Contracts.String {
                    Value = strFirstName
                }
            }
            ;
            if (String.IsNullOrEmpty(strLastName) == false)
            {
                request.LastName = new VMS.AWC.Common.Contracts.String {
                    Value = strLastName
                }
            }
            ;

            var response = ARIAAccessHelper.SendRequestData(request, url, token);

            return(response);
        }
Exemple #2
0
        private void btnCreatePatient_Click(object sender, EventArgs e)
        {
            string filePath = txtCreatePatientFilePath.Text.ToString().TrimEnd();
            string request  = File.ReadAllText(filePath);


            var response = ARIAAccessHelper.SendRequestData(request, _gatewayTokenUri, _accessToken);

            txtCreatePatientResp.Text = response;
        }
Exemple #3
0
        private string processSearchAppointmentRequest(string machineId, string hospitalName, string departmentname, string token, string url)
        {
            var request = new GetMachineAppointmentsRequest()
            {
                MachineId = new VMS.AWC.Common.Contracts.String()
                {
                    Value = machineId
                },
                HospitalName = new VMS.AWC.Common.Contracts.String()
                {
                    Value = hospitalName
                },
                DepartmentName = new VMS.AWC.Common.Contracts.String()
                {
                    Value = departmentname
                }
            };


            var response = ARIAAccessHelper.SendRequestData(request, url, token);

            return(response);
        }