コード例 #1
0
        /// <summary>
        /// 居民入院登记修改
        /// </summary>
        /// <param name="param"></param>
        private HospitalizationModifyParam GetResidentHospitalizationModify(HospitalizationModifyUiParam param)
        {
            //主诊断
            //医保修改
            var modifyParam = new HospitalizationModifyParam()
            {
                AdmissionDate   = Convert.ToDateTime(param.AdmissionDate).ToString("yyyyMMdd"),
                BedNumber       = param.BedNumber,
                BusinessId      = param.BusinessId,
                FetusNumber     = param.FetusNumber,
                HouseholdNature = param.HouseholdNature,
                MedicalInsuranceHospitalizationNo = param.MedicalInsuranceHospitalizationNo,
                TransKey = param.TransKey,
                UserId   = param.UserId,
                InpatientDepartmentCode = param.InpatientDepartmentCode,
                HospitalizationNo       = CommonHelp.GuidToStr(param.BusinessId)
            };
            var diagnosisData = CommonHelp.GetDiagnosis(param.DiagnosisList);

            modifyParam.AdmissionMainDiagnosisIcd10 = diagnosisData.AdmissionMainDiagnosisIcd10;
            modifyParam.DiagnosisIcd10Two           = diagnosisData.DiagnosisIcd10Two;
            modifyParam.DiagnosisIcd10Three         = diagnosisData.DiagnosisIcd10Three;

            return(modifyParam);
        }
コード例 #2
0
        /// <summary>
        /// 修改入院登记
        /// </summary>
        /// <param name="param"></param>
        /// <param name="user"></param>
        public void HospitalizationModify(HospitalizationModifyParam param, UserInfoDto user)
        {
            var xmlStr = XmlHelp.SaveXml(param);

            if (!xmlStr)
            {
                throw new Exception("修改入院登记保存参数出错");
            }
            int result = MedicalInsuranceDll.CallService_cxjb("CXJB003");

            if (result != 1)
            {
                throw new Exception("居民医保修改入院登记出错!!!");
            }
            XmlHelp.DeSerializerModel(new IniDto(), true);
        }
コード例 #3
0
        /// <summary>
        /// 住院资料修改
        /// </summary>
        /// <returns></returns>
        public HospitalizationModifyDto HospitalizationModify(HospitalizationModifyParam param)
        {
            HospitalizationModifyDto resultData = new HospitalizationModifyDto();
            // var Data = XmlHelp.DeSerializerModel(new IdentificationSpecialDownloadListDto());

            var xmlStr = XmlHelp.SaveXml(param);

            if (xmlStr)
            {
                int result = WorkersMedicalInsurance.CallService_cxjb("CXJB003");
                if (result == 1)
                {
                    resultData = XmlHelp.DeSerializerModel(new HospitalizationModifyDto());
                }
            } //MedicalInsuranceResidentInfo

            return(resultData);
        }
コード例 #4
0
        public ApiJsonResultData HospitalizationModify(HospitalizationModifyWebParam param, HisBaseParam baseParam)
        {
            var resultData = new ApiJsonResultData();

            try
            {
                var result = HttpHelp.HttpPost(Logs.ToJson(param), "QueryInpatientInfo",
                                               new QueryInpatientInfoBasicLevelDto());

                var RegisterParam = new HospitalizationModifyParam()
                {
                    PI_TES     = param.PI_TES,
                    PI_HKXZ    = param.PI_HKXZ,
                    PI_RYRQ    = Convert.ToDateTime(result.入院日期).ToString("yyyyMMdd"),
                    PI_ICD10   = result.入院主诊断ICD10,
                    PI_ICD10_2 = result.入院次诊断ICD10,
                    PI_RYZD    = result.入院主诊断,
                    PI_ZYBQ    = result.入院科室,
                    PI_CWH     = result.入院床位,
                    PI_ZHY     = param.PI_ZYH,
                    PI_YYZYH   = param.PI_YYZYH,
                };
                //入院登记修改
                var RegisterData = Resident.HospitalizationModify(RegisterParam);
                if (RegisterData.PO_FHZ == "1")
                {
                    //1.2.3 医保信息回写至基层系统CXJB002
                    var hisMedicalInsuranceId  = Guid.NewGuid().ToString("N");
                    var DataAllBasiclevelParam = new SaveXmlDataServiceParam()
                    {
                        YbOrgCode      = baseParam.YbOrgCode,
                        OrgID          = baseParam.OrgID,
                        BID            = baseParam.BID,
                        EmpID          = baseParam.EmpID,
                        BsCode         = baseParam.BsCode,
                        TransKey       = baseParam.TransKey,
                        Participation  = Logs.ToJson(RegisterParam),
                        ResultData     = Logs.ToJson(RegisterData),
                        BusinessNumber = "CXJB003",
                    };
                    //CXJB001 存入基层
                    var SaveDataAll = HttpHelp.HttpPost(Logs.ToJson(DataAllBasiclevelParam),
                                                        "SaveMedicalInsuranceDataAll",
                                                        new ApiJsonResultData());
                    if (SaveDataAll.Success == false)
                    {
                        throw new Exception(SaveDataAll.Message);
                    }
                }
                else
                {
                    Logs.LogWrite(new LogParam()
                    {
                        Msg          = RegisterData.PO_MSG,
                        OperatorCode = baseParam.EmpID.ToString(),
                        Params       = Logs.ToJson(RegisterParam),
                        ResultData   = Logs.ToJson(RegisterData)
                    });
                    throw new Exception(RegisterData.PO_MSG);
                }
            }
            catch (Exception e)
            {
                resultData.Success = false;
                resultData.Message = e.Message;
            }

            return(resultData);
        }