示例#1
0
 ///IMRREFERRAL
 ///
 public int addIMRRFAReferral(IMRRFAReferral _IMRRFAReferral)
 {
     if (_iMRRFAReferral.GetAll(p => p.RFAReferralID == _IMRRFAReferral.RFAReferralID).Count() > 0)
     {
         _iMRRFAReferral.Delete(p => p.RFAReferralID == _IMRRFAReferral.RFAReferralID);
     }
     return(_iMRRFAReferral.Add(_IMRRFAReferral).IMRRFAReferralID);
 }
示例#2
0
        public ActionResult SaveIMRDecisionRecord(IEnumerable <IMRDecisionRequestDetails> _IMRDecisionRequestDetails, int DecisionID, int RFAReferralID, string _IMRDecisionReceivedDate)
        {
            _iIMRService.addIMRDecisionRequestDetail(Mapper.Map <MMC.MMCService.IMRService.IMRRFARequest[]>(_IMRDecisionRequestDetails));
            IMRRFAReferral _IMRRFAReferrals = new IMRRFAReferral();

            _IMRRFAReferrals.IMRDecisionID           = DecisionID;
            _IMRRFAReferrals.RFAReferralID           = RFAReferralID;
            _IMRRFAReferrals.IMRDecisionReceivedDate = Convert.ToDateTime(_IMRDecisionReceivedDate);
            _iIMRService.updateIMRRFAReferralByValues(Mapper.Map <MMCService.IMRService.IMRRFAReferral>(_IMRRFAReferrals));
            var IMRRequestsDetails = Mapper.Map <IEnumerable <IMRDecisionRequestDetails> >(_iIMRService.getIMRDecisionPageRequestDetailsByReferralID(RFAReferralID));

            return(Json(IMRRequestsDetails));
        }
示例#3
0
        public void updateIMRRFAReferralByValue()
        {
            IMRRFAReferral _IMRRFAReferral = new IMRRFAReferral
            {
                IMRDecisionID           = 1,
                IMRResponseDate         = System.DateTime.Now,
                IMRDecisionReceivedDate = System.DateTime.Now,
                IMRRFAReferralID        = 13,
                RFAReferralID           = 715
            };
            var _id = _iMRRepository.updateIMRRFAReferralByValues(_IMRRFAReferral);

            Assert.IsTrue(_id > 0, "failed");
        }
示例#4
0
        public ActionResult SendEmail(string EMailTo, string EMailCc, string subject, string EmailText, string DocumentFullPath, int ReflID)
        {
            var myList = new List <string>();

            myList.Add(DocumentFullPath);
            _mailService.SendEmail(EmailText, EMailTo, EMailCc, subject, myList.ToArray());
            EmailRecordStorage(EMailTo, EMailCc, subject, EmailText, myList, ReflID);

            IMRRFAReferral _IMRRFAReferrals = new IMRRFAReferral();

            _IMRRFAReferrals.IMRResponseDate = System.DateTime.Now;
            _IMRRFAReferrals.RFAReferralID   = ReflID;
            _iIMRService.updateIMRRFAReferralByValues(Mapper.Map <MMCService.IMRService.IMRRFAReferral>(_IMRRFAReferrals));

            _iPreparationService.updateProcessLevel(ReflID, GlobalConst.ProcessLevel.IMRDecision);
            return(Json(GlobalConst.Message.EmailSendMessage));
        }
示例#5
0
        public ActionResult uploadIMRDoc(RFAReferralFile _rfaFile, IMRRFAReferral _imrReferral, RFAReferral rfa)
        {
            rfa.RFAReferralID      = _imrReferral.RFAReferralID;
            _rfaFile.RFAReferralID = _imrReferral.RFAReferralID;
            int b = _iIMRService.UpdateRFAIMRReferenceNumberByReferralID(Mapper.Map <MMCService.IMRService.RFAReferral>(rfa));

            if (b == 0)
            {
                return(Json("IMR Referrance Number already exists."));
            }
            else
            {
                if (_imrReferral.IMRRFAReferralID == 0)
                {
                    int a = _iIMRService.addIMRRFAReferral(Mapper.Map <MMCService.IMRService.IMRRFAReferral>(_imrReferral));
                }
                else
                {
                    int a = _iIMRService.updateIMRRFAReferral(Mapper.Map <MMCService.IMRService.IMRRFAReferral>(_imrReferral));
                }
                StorageModel _storageModel = Mapper.Map <StorageModel>(_iCommonService.GetStorageStuctureByID(_rfaFile.RFAReferralID, GlobalConst.ConstantChar.Char_R));
                _storageModel.ReferralID = 0;
                _storageModel.path       = Server.MapPath(System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString());
                _storageModel.FolderName = GlobalConst.FolderName.MedicalRecords;
                //Save file Temporary for Split
                string filename = Guid.NewGuid().ToString() + Path.GetExtension(_rfaFile.rfaReferralFile.FileName);
                string path     = _storageService.GeneateStorage(_storageModel);
                _rfaFile.rfaReferralFile.SaveAs(path + GlobalConst.ConstantChar.DoubleBackSlash + filename);
                string ContentFile = _pdfSplitterService.SplitPDFFilePatientMedicalRecord(1, 3, path + GlobalConst.ConstantChar.DoubleBackSlash + filename, _storageService.GeneateStorage(_storageModel) + GlobalConst.ConstantChar.DoubleBackSlash, "Independent Medical Review Notice of Assignment and Request for Information Letter");
                string BarcodeFile = _pdfSplitterService.SplitPDFFilePatientMedicalRecord(4, 4, path + GlobalConst.ConstantChar.DoubleBackSlash + filename, _storageService.GeneateStorage(_storageModel) + GlobalConst.ConstantChar.DoubleBackSlash, _rfaFile.RFAReferralID.ToString() + "_SplitBarcode");
                //Delete  Temporary file
                System.IO.File.Delete(path + GlobalConst.ConstantChar.DoubleBackSlash + filename);
                _rfaFile.RFAReferralFileName = "Independent Medical Review Notice of Assignment and Request for Information Letter";
                _rfaFile.RFAFileTypeID       = GlobalConst.FileType.IMRSplitContent;
                _rfaFile.RFAFileCreationDate = DateTime.Now;
                _rfaFile.RFAFileUserID       = MMCUser.UserId;
                _intakeService.addReferralFile(Mapper.Map <MMC.MMCService.IntakeService.RFAReferralFile>(_rfaFile));
                _rfaFile.RFAFileTypeID       = GlobalConst.FileType.IMRSplitBarcode;
                _rfaFile.RFAReferralFileName = _rfaFile.RFAReferralID.ToString() + "_SplitBarcode";
                _rfaFile.RFAFileCreationDate = DateTime.Now;
                _intakeService.addReferralFile(Mapper.Map <MMC.MMCService.IntakeService.RFAReferralFile>(_rfaFile));
                return(Json(GlobalConst.Message.UploadedSucessfully));
            }
        }
示例#6
0
        public void addIMRRFAReferral()
        {
            IMRRFAReferral _IMRRFAReferral = new IMRRFAReferral
            {
                IMRApplicationReceivedDate = System.DateTime.Now,
                IMRNoticeInformationDate   = System.DateTime.Now,
                IMRRFAClaimPhysicianID     = 111,
                RFAReferralID = 520,

                IMRCEReceivedDate       = System.DateTime.Now,
                IMRInternalReceivedDate = System.DateTime.Now,
                IMRPriority             = 1,
                IMRReceivedVia          = 2,
                IMRResponseDueDate      = System.DateTime.Now,
                IMRResponseType         = 1,
            };
            var _id = _iMRRepository.addIMRRFAReferral(_IMRRFAReferral);

            Assert.IsTrue(_id > 0, "failed");
        }
示例#7
0
        public int updateIMRRFAReferralByValues(IMRRFAReferral _IMRRFAReferral)
        {
            IMRRFAReferral updateIMRRFAReferral = new IMRRFAReferral();

            updateIMRRFAReferral = _iMRRFAReferral.GetAll(p => p.RFAReferralID == _IMRRFAReferral.RFAReferralID).FirstOrDefault();
            if (_IMRRFAReferral.IMRResponseDate != null)
            {
                updateIMRRFAReferral.IMRResponseDate = _IMRRFAReferral.IMRResponseDate;
            }
            if (_IMRRFAReferral.IMRDecisionID != null)
            {
                updateIMRRFAReferral.IMRDecisionID = _IMRRFAReferral.IMRDecisionID;
            }
            if (_IMRRFAReferral.IMRDecisionReceivedDate != null)
            {
                updateIMRRFAReferral.IMRDecisionReceivedDate = _IMRRFAReferral.IMRDecisionReceivedDate;
            }

            return(_iMRRFAReferral.Update(updateIMRRFAReferral));
        }
示例#8
0
 public int updateIMRRFAReferral(IMRRFAReferral _IMRRFAReferral)
 {
     return(_iMRRFAReferral.Update(_IMRRFAReferral));
 }
示例#9
0
 public int updateIMRRFAReferralByValues(IMRRFAReferral _IMRRFAReferral)
 {
     return(_iMRRepository.updateIMRRFAReferralByValues(Mapper.Map <DTO.IMRRFAReferral, MMC.Core.Data.Model.IMRRFAReferral>(_IMRRFAReferral)));
 }
示例#10
0
 public int addIMRRFAReferral(IMRRFAReferral _IMRRFAReferral)
 {
     return(_iMRRepository.addIMRRFAReferral(Mapper.Map <DTO.IMRRFAReferral, MMC.Core.Data.Model.IMRRFAReferral>(_IMRRFAReferral)));
 }