Example #1
0
        public ActionResult getRFARecordSplit(int _rfaReferralID)
        {
            RFARecordSplittingViewModel rfaRecSplt = new RFARecordSplittingViewModel();

            rfaRecSplt.documentCategories = Mapper.Map <IEnumerable <AppModel.DocumentCategoryModel.DocumentCategory> >(_commonService.getDocumentCategoriesAll());
            //rfaRecSplt.documentTypes = Mapper.Map<IEnumerable<AppModel.DocumentTypeModel.DocumentType>>(_commonService.getDocumentTypesAll());
            rfaRecSplt.rfaRecordSplitingDetails = Mapper.Map <IEnumerable <RFARecordSpliting> >(_intakeService.getRFARecordSplittingByReferralID(_rfaReferralID));
            int _patientID = _intakeService.getPatientDetailsByReferralID(_rfaReferralID).PatientID;

            rfaRecSplt.rfaRecordSplitingDetails.ToList().ForEach(
                hp =>
            {
                hp.DocumentCategoryName = rfaRecSplt.documentCategories.ToList().Find(hp1 => hp1.DocumentCategoryID == hp.DocumentCategoryID).DocumentCategoryName;
                hp.DocumentTypeDesc     = _commonService.getDocumentTypesAll().ToList().Find(rk => rk.DocumentTypeID == hp.DocumentTypeID).DocumentTypeDesc;
                //hp.DocumentTypeDesc = rfaRecSplt.documentTypes.ToList().Find(hp1 => hp1.DocumentTypeID == hp.DocumentTypeID).DocumentTypeDesc;
                hp.DocumentUrl = createURLforViewFile(hp.RFAFileName, _patientID, hp.PatientClaimID);
            });

            return(Json(rfaRecSplt, JsonRequestBehavior.AllowGet));
        }
        public ActionResult getPatientMedicalRecordSplit(int _patientID)
        {
            PatientMedicalRecordSplitViewModel _patMedicalRecordSplit = new PatientMedicalRecordSplitViewModel();

            _patMedicalRecordSplit.documentCategories = Mapper.Map <IEnumerable <AppModel.DocumentCategoryModel.DocumentCategory> >(_iCommonService.getDocumentCategoriesAll());
            _patMedicalRecordSplit.documentTypes      = Mapper.Map <IEnumerable <AppModel.DocumentTypeModel.DocumentType> >(_iCommonService.getDocumentTypesAll());
            _patMedicalRecordSplit.patientMedicalRecordSplitingDetails = Mapper.Map <IEnumerable <PatientMedicalRecord> >(_iPatientService.getMedicalRecordSplittingByPatientID(_patientID));

            _patMedicalRecordSplit.patientMedicalRecordSplitingDetails.ToList().ForEach(
                mr =>
            {
                mr.DocumentCategoryName = _patMedicalRecordSplit.documentCategories.ToList().Find(mr1 => mr1.DocumentCategoryID == mr.DocumentCategoryID).DocumentCategoryName;
                mr.DocumentTypeDesc     = _patMedicalRecordSplit.documentTypes.ToList().Find(mr1 => mr1.DocumentTypeID == mr.DocumentTypeID).DocumentTypeDesc;
            });

            return(Json(_patMedicalRecordSplit, GlobalConst.ContentTypes.TextHtml));
        }
Example #3
0
 public JsonResult getDocumentTypeAll()
 {
     return(Json(_iCommonService.getDocumentTypesAll(), GlobalConst.ContentTypes.TextHtml, JsonRequestBehavior.AllowGet));
 }