public ActionResult GetReferralFileByRFAReferralIDandFileType(int _referralID)
        {
            //int[] filetypeIdDoc = { GlobalConst.FileType.InitialNotification, GlobalConst.FileType.ProofofService, GlobalConst.FileType.DeterminationLetter, GlobalConst.FileType.IMRApplication };
            PatientAndRequestModel _patientAndRequestModel = new PatientAndRequestModel();

            _patientAndRequestModel.ReferralFileNotification = Mapper.Map <IEnumerable <RFAReferralFile> >(_intakeService.getReferralFileByRFAReferralIDandFileType(_referralID));
            int _order = 1;

            StorageModel _storageModel = new StorageModel();
            string       toSearched    = Server.MapPath(System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString());
            string       toReplace     = System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString();

            foreach (RFAReferralFile _refFile in _patientAndRequestModel.ReferralFileNotification)
            {
                _refFile.Order = _order;
                _order++;


                _storageModel                    = Mapper.Map <StorageModel>(_iCommonService.GetStorageStuctureByID(_refFile.RFAReferralID, GlobalConst.ConstantChar.Char_R));
                _storageModel.path               = Server.MapPath(System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString());
                _storageModel.FolderName         = GlobalConst.FolderName.LegalDocs;
                _refFile.RFAReferralFileFullPath = (_storageService.GeneateStorage(_storageModel) + GlobalConst.ConstantChar.DoubleBackSlash + _refFile.RFAReferralFileName).Replace(toSearched, toReplace);
            }
            return(Json(_patientAndRequestModel, GlobalConst.ContentTypes.TextHtml));
        }
Beispiel #2
0
        public ActionResult PeerReviewAction(int id)
        {
            getNoOfReferralAccordingToProcessLevels();

            Editor EditorNote = new Editor(System.Web.HttpContext.Current, GlobalConst.Richtexteditor.EditorNote);

            EditorNote.ClientFolder  = GlobalConst.Richtexteditor.richtexteditor;
            EditorNote.Width         = Unit.Pixel(1050);
            EditorNote.Height        = Unit.Pixel(660);
            EditorNote.ResizeMode    = RTEResizeMode.Disabled;
            EditorNote.DisabledItems = GlobalConst.Richtexteditor.Save_help;
            EditorNote.MvcInit();
            ViewData[GlobalConst.Richtexteditor.EditorNote] = EditorNote.MvcGetString();

            Editor Editor1 = new Editor(System.Web.HttpContext.Current, "Editor1");

            Editor1.ClientFolder  = "/richtexteditor/";
            Editor1.Width         = Unit.Pixel(1050);
            Editor1.Height        = Unit.Pixel(660);
            Editor1.ResizeMode    = RTEResizeMode.Disabled;
            Editor1.DisabledItems = "save, help";
            Editor1.MvcInit();
            ViewData["Editor1"] = Editor1.MvcGetString();

            PatientAndRequestModel _PatientAndRequestModel = new PatientAndRequestModel();

            _PatientAndRequestModel = Mapper.Map <PatientAndRequestModel>(_iPaticipantService.getPatientAndPeerReviewRequestByReferralId(id));
            return(View(_PatientAndRequestModel));
        }
Beispiel #3
0
        public bool CheckClinicalReasonFilled(int referralID)
        {
            PatientAndRequestModel _PatientAndRequestModel = new PatientAndRequestModel();

            _PatientAndRequestModel = Mapper.Map <PatientAndRequestModel>(_iPaticipantService.getPatientAndPeerReviewRequestByReferralId(referralID));
            foreach (var item in _PatientAndRequestModel.RequestDetail)
            {
                if (item.RFAClinicalReasonforDecision == "" || item.RFAClinicalReasonforDecision == null)
                {
                    return(false);
                }
            }

            return(true);
        }
        public ActionResult NotificationAction(int id)
        {
            getNoOfReferralAccordingToProcessLevels();

            Editor EditorNote = new Editor(System.Web.HttpContext.Current, GlobalConst.Richtexteditor.EditorNote);

            EditorNote.ClientFolder  = GlobalConst.Richtexteditor.richtexteditor;
            EditorNote.Width         = Unit.Pixel(1050);
            EditorNote.Height        = Unit.Pixel(660);
            EditorNote.ResizeMode    = RTEResizeMode.Disabled;
            EditorNote.DisabledItems = GlobalConst.Richtexteditor.Save_help;
            EditorNote.MvcInit();
            ViewData[GlobalConst.Richtexteditor.EditorNote] = EditorNote.MvcGetString();
            PatientAndRequestModel _patientAndRequestModel = new PatientAndRequestModel();

            //int[] filetypeId = { GlobalConst.FileType.UploadInitialNotifications };
            //int[] filetypeIdDoc = { GlobalConst.FileType.InitialNotification, GlobalConst.FileType.ProofofService, GlobalConst.FileType.DeterminationLetter, GlobalConst.FileType.IMRApplication };
            _patientAndRequestModel = Mapper.Map <PatientAndRequestModel>(_iPreparationService.getPatientAndRequestForNotificationByReferralId(id, GlobalConst.Records.Skip, GlobalConst.Records.Take5));
            _patientAndRequestModel.ReferralFile             = Mapper.Map <RFAReferralFile>(_intakeService.getReferralFileByRFAReferralIDandFileType(id).FirstOrDefault());
            _patientAndRequestModel.ReferralFileNotification = Mapper.Map <IEnumerable <RFAReferralFile> >(_intakeService.getReferralFileByRFAReferralIDandFileType(id));
            int _order = 1;

            foreach (RFAReferralFile _refFile in  _patientAndRequestModel.ReferralFileNotification)
            {
                _refFile.Order = _order;
                _order++;
            }

            StorageModel _storageModel = new StorageModel();

            string toSearched = Server.MapPath(System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString());
            string toReplace  = System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString();

            foreach (RFAReferralFile _refFile in _patientAndRequestModel.ReferralFileNotification)
            {
                _storageModel                    = Mapper.Map <StorageModel>(_iCommonService.GetStorageStuctureByID(_refFile.RFAReferralID, GlobalConst.ConstantChar.Char_R));
                _storageModel.path               = Server.MapPath(System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString());
                _storageModel.FolderName         = GlobalConst.FolderName.LegalDocs;
                _refFile.RFAReferralFileFullPath = (_storageService.GeneateStorage(_storageModel) + GlobalConst.ConstantChar.DoubleBackSlash + _refFile.RFAReferralFileName).Replace(toSearched, toReplace);
            }

            //int duplicateRequest = _patientAndRequestModel.RequestDetail.Count(s => s.DecisionID == GlobalConst.Decision.Duplicate);
            //if (duplicateRequest > 0)
            //{
            //    _patientAndRequestModel.ReferralsForDeterminationLetter = Mapper.Map<IEnumerable<PreviousReferralFromCurrentReferral>>(_intakeService.getPreviousReferralIDFromCurrentReferralInDuplicate(id));
            //}
            return(View(_patientAndRequestModel));
        }
Beispiel #5
0
        public ActionResult IMRAction(int id)
        {
            getNoOfReferralAccordingToProcessLevels();
            Editor EditorNote = new Editor(System.Web.HttpContext.Current, GlobalConst.Richtexteditor.EditorNote);

            EditorNote.ClientFolder  = GlobalConst.Richtexteditor.richtexteditor;
            EditorNote.Width         = Unit.Pixel(1050);
            EditorNote.Height        = Unit.Pixel(660);
            EditorNote.ResizeMode    = RTEResizeMode.Disabled;
            EditorNote.DisabledItems = "save,help,insertgallery,insertimage,insertdocument,insertyoutube,googlemap,inserttemplate,insertmedia,insertvideo,syntaxhighlighter,html5";
            EditorNote.MvcInit();

            ViewData[GlobalConst.Richtexteditor.EditorNote] = EditorNote.MvcGetString();
            PatientAndRequestModel _patientAndRequestModel = new PatientAndRequestModel();

            _patientAndRequestModel = Mapper.Map <PatientAndRequestModel>(_iPreparationService.getPatientAndRequestByReferralId(id));
            _patientAndRequestModel.ReferralFileNotification = Mapper.Map <IEnumerable <RFAReferralFile> >(_iIMRService.getMedicalAndLegalDocsByReferralID(id));
            _patientAndRequestModel.IMRLetters = Mapper.Map <IEnumerable <RFAReferralFile> >(_iIMRService.GetIMRLetters(id));
            StorageModel _storageModel = new StorageModel();

            _storageModel            = Mapper.Map <StorageModel>(_iCommonService.GetStorageStuctureByID(id, GlobalConst.ConstantChar.Char_R));
            _storageModel.path       = Server.MapPath(System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString());
            _storageModel.ReferralID = id;
            _storageModel.FolderName = GlobalConst.FolderName.LegalDocs;
            string toSearched = Server.MapPath(System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString());
            string toReplace  = System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString();

            foreach (RFAReferralFile _rfaLetterFiledetail in _patientAndRequestModel.IMRLetters)
            {
                if (_rfaLetterFiledetail.RFAFileTypeID == 16)
                {
                    _rfaLetterFiledetail.RFAReferralFileFullPath = (_storageService.GeneateStorage(_storageModel) + GlobalConst.ConstantChar.DoubleBackSlash + id + "_IMRResponseLetter.pdf").Replace(toSearched, toReplace);
                }
                if (_rfaLetterFiledetail.RFAFileTypeID == 14)
                {
                    _rfaLetterFiledetail.RFAReferralFileFullPath = (_storageService.GeneateStorage(_storageModel) + GlobalConst.ConstantChar.DoubleBackSlash + id + "_IMRProofOfService.pdf").Replace(toSearched, toReplace);
                }
            }
            return(View(_patientAndRequestModel));
        }