Esempio n. 1
0
        public HttpResponseMessage SubmitCase(SubmitCaseParameter case_param)
        {
            var transaction = new TransactionalInformation();
            var submitted   = settlementDataService.SubmitCase(case_param.datetime_of_performed_action, case_param.is_treatment, case_param.case_id, case_param.planned_action_id, case_param.authorizing_doctor_id, connectionString, SessionToken, out transaction);

            if (transaction.ReturnStatus)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, submitted));
            }

            return(Request.CreateResponse <TransactionalInformation>(HttpStatusCode.InternalServerError, transaction));
        }
Esempio n. 2
0
        public HttpResponseMessage SubmitAftercare(SubmitCaseParameter aftercare_param)
        {
            TransactionalInformation transaction = new TransactionalInformation();

            var reportUrl = aftercareDataService.SubmitAftercare(aftercare_param.authorizing_doctor_id, aftercare_param.case_id, aftercare_param.date_of_performed_action, connectionString, SessionToken, out transaction);

            if (transaction.ReturnStatus)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, reportUrl));
            }

            return(Request.CreateResponse <TransactionalInformation>(HttpStatusCode.InternalServerError, transaction));
        }
Esempio n. 3
0
        public HttpResponseMessage SubmitCase(SubmitCaseParameter case_param)
        {
            var transaction = new TransactionalInformation();

            lock (lockobj)
            {
                var reportUrl = planningService.SubmitCase(case_param.case_id, case_param.authorizing_doctor_id, connectionString, SessionToken, out transaction);

                if (transaction.ReturnStatus)
                {
                    return(Request.CreateResponse(HttpStatusCode.OK, reportUrl));
                }
            }

            return(Request.CreateResponse <TransactionalInformation>(HttpStatusCode.InternalServerError, transaction));
        }