/// <summary> /// 当前操作的诊断是否已经关联了医嘱 /// </summary> /// <param name="id_en">就诊id</param> /// <param name="id_didef">诊断定义id</param> /// <returns>是否有关联的医嘱,true:有关联,false : 没有关联</returns> public bool IsCiDiRelateCiOrders(Ent4BannerDTO ent4BannerDTO, string id_didef) { // 判断是否为医保就诊,当医保计划Id_hp为空,或者医保类型不匹配(1开头的是社保) 、医保基金支付标识 不等于 true 都是非医保 if (!CiEnContextUtil.IsHpPat(ent4BannerDTO)) { return(false); } //CiOrderDO[] ciOrders = ciOrdQryService.getCiOrdersUsedHpCiDi(ent4BannerDTO.Id_ent, id_didef); String Hpdiexpensese = ciOrdQryService.getUsedHpdiexpensese(ent4BannerDTO.Id_ent, id_didef); if (Hpdiexpensese == null || Hpdiexpensese == "") { return(false); } return(true); }