/// <summary> /// 获取处方 /// </summary> /// <param name="ent4BannerDTO"></param> /// <param name="idOrs"></param> /// <returns></returns> private PresInfo GetPresInfo(CiEnContextDTO ctxDTO, List <string> idOrList) { Ent4BannerDTO ent4BannerDTO = ctxDTO.Ent4BannerDTO; // 获取本次就诊的已签署的药品医嘱以及ordIds 对应的医嘱 OrdRationalDrugDTO[] rationalDrugs = iCiOrdQryService.getRationalDrugDTOs(ent4BannerDTO, idOrList.ToArray()); PresInfo presInfo = new PresInfo(); // 设置医生患者信息 this.SetDoctorPresInfo(ctxDTO, ref presInfo); // 获取过敏史,生理状况 OverviewAggDO overivewAgg = this.GetAllergicHistory(ctxDTO.Id_pat); // 设置过敏史 this.SetAllergicHistory(ref presInfo, overivewAgg.getPiPatAlDO()); // 设置诊断 this.SetDiagnoses(ref presInfo, ctxDTO.Id_en); //设置生理状况 this.SetPhysiological(ref presInfo, overivewAgg.getPiPatPhyDO()); // 设置处方 this.SetPrescription(ref presInfo, rationalDrugs, idOrList); return(presInfo); }
/// <summary> /// 获取患者过敏史,生理状况 /// </summary> /// <param name="patId"></param> protected OverviewAggDO GetAllergicHistory(String patId) { if (overviewAggDic.ContainsKey(patId)) { return(overviewAggDic[patId]); } OverviewAggDO overviewAgg = ipiQryService.findAlAndPhyData(patId); overviewAggDic.Add(patId, overviewAgg); return(overviewAgg); }