下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
emrgrantselectonordadm.orderstoemrwithgrantgrantselectonordadm.orders_coststoemrwithgrantOrder_status=5:医生已保存,doctor为保存医生的,start_date_time为医嘱的开始Order_status=7:医生已停止,stop_doctor为停止的医生,stop_date_time为医嘱的Order_status=1:护士已转抄停止医嘱,stop_processing_date_time嘱的时间,stop_processing_nurseOrder_status=6:医生已作废,cancel_date_timecancel_cessing_nurse为转抄作废医嘱护士createorreplaceviewIN_ADVICE to_char(ORDERS.VISIT_ID)asIN_PATIENT_FLOW, to_char(ORDERS.ORDER_NO)asASSEMBLE_ID, LONG_FLAG,ORDERS.ORDER_CLASSasADVICE_TYPE, ADVICE_CONTENT,to_char(ORDERS.BILLING_ATTR)asSELF_MEDICINE, ORDERS.DOSAGE_UNITSasDOSAGE_UNIT,orders_costs.AMOUNTasTOTAL,orders_costs.UNITSas ADVICE_FREQNUM,to_char(ORDERS.START_DATE_TIME,'yyyymmddhh24miss')asto_char(ORDERS.stop_date_time,'yyyymmddhh24miss')asEDN_Time, to_char(ORDERS.ENTER_DATE_TIME,'yyyymmddhh24miss')asORDERS.DOCTORasD2_Name,to_char(ORDERS.CANCEL_DATE_TIME,'yyyymmddhh24miss')asORDERS.CANCEL_DOCTORasD3_ID,ORDERS.STOP_DOCTORas ORDERS.processing_nurseasND_Name,to_char(ORDERS.VERIFY_DATA_TIME,'yyyymmddhh24miss')asNE_TIME,ORDERS.NURSEasNE_Name,ORDERS.STOP_NURSEasNG_Name,to_char(ORDERS.stop_processing_date_time,'yyyymmddhh24miss')asORDERS.stop_processing_nurseasfromORDERSleftjoinorders_costsonORDERS.PATIENT_ID= whereCREATEVIEWZyReportView dbo.ReportItem.ReceiveDate,dbo.ReportForm.PatNoASameASpname,dbo.ReportForm.AgeASpage,dbo.ReportForm.GenderNoASpsex, ameASdeptname,dbo.ReportForm.Bed,dbo.ReportItem.ItemNoAStestcode,dbo.ReportForm.SerialNoASitem_no, ASprname_c,TestItem_2.ENameASprname_a,ISNULL(dbo.ReportItem.ReportDesc,'')+dbo.ReportItem.ReportValue),'')ASresult,TestItem_2.UnitAStestunit,dbo.ReportItem.ResultStatusASnormal,dbo.ReportForm.OperDateASexe_date,CONVERT(datetime,CONVERT(varchar(8),dbo.ReportForm.OperTime,108))ASdbo.ReportItem.RefRangeASuplimit,dbo.ReportItem.RefRangeASdnlimit,dbo.ReportForm.SerialNoASserial_no8,dbo.ReportForm.CheckDateASsenddate,CONVERT(datetime,CONVERT(varchar(8),dbo.ReportForm.CheckTime,108))ASdbo.ReportForm.zdy4ASorder_name,dbo.ReportForm.DoctorASenter_oper,dbo.ReportForm.OperatorASexe_name,dbo.ReportForm.SampleTypeNoASinspection,dbo.ReportForm.CollectDate,CAST(dbo.ReportForm.AgeASvarchar)AScage,dbo.ReportForm.ReceiveDate,112)+','+CAST(dbo.ReportForm.SectionNoASvarchar)+','+CAST(dbo.ReportForm.TestTypeNoASvarchar)+','+CAST(dbo.ReportForm.SampleNoASvarchar)ASserial_no,CONVERT(varchar,dbo.ReportForm.ReceiveDate,112)+','+CAST(dbo.ReportForm.SectionNoASvarchar)+','+CAST(dbo.ReportForm.TestTypeNoASvarchar)+','+CAST(dbo.ReportForm.SampleNoASvarchar)dbo.ReportForm.formmemoasdbo.ReportForm.ReceiveDate,112)asapplydate dbo.ReportItemINNERJOINdbo.ReportFormONdbo.ReportItem.ReceiveDate=dbo.ReportForm.ReceiveDateANDdbo.ReportItem.SectionNo=dbo.ReportForm.SectionNoANDdbo.ReportItem.TestTypeNo=dbo.ReportForm.TestTypeNoANDdbo.ReportItem.SampleNo=dbo.ReportForm.SampleNoLEFTOUTERJOINdbo.TestItemASTestItem_1ON=TestItem_1.ItemNoLEFTOUTERdbo.TestItemASTestItem_2ONdbo.ReportItem.ItemNoTestItem_2.ItemNoINNERdbo.DepartmentONdbo.ReportForm.DeptNo2、细菌报告CREATEVIEWZyReportMicroView dbo.ReportForm.PatNoASpid, ameASpname,dbo.ReportForm.AgeASpage,dbo.ReportForm.GenderNoASpsex,dbo.ReportForm.DeptNo,dbo.ReportForm.Bed,dbo.ReportForm.SerialNoASitem_no,dbo.ReportForm.OperDateASexe_date,CONVERT(varchar(8),dbo.ReportForm.OperTime,108))ASexe_time,dbo.ReportForm.SerialNoASSerialNoParent,RTRIM(CONVERT(varchar,SUBSTRING(dbo.ReportForm.SerialNo,6,5)ASitemno8,dbo.ReportForm.CheckDateASsenddate,CONVERT(datetime,CONVERT(varchar(8),dbo.ReportForm.CheckTime,108))ASsendtime,dbo.ReportForm.zdy4ASdbo.ReportForm.DoctorASenter_oper,dbo.ReportForm.OperatorASexe_name,dbo.ReportForm.Checker,SPACE(20)ASdbo.ReportMicro.ReceiveDate,dbo.ReportMicro.SectionNo,dbo.ReportMicro.TestTypeNo,dbo.ReportMicro.SampleNo,SPACE(8)AS ameAS o,d ameAS dbo.ReportMicro.MicroNo,dbo.ReportMicro.MicroDesc,ameASMicroName,ameASAntiName,dbo.ReportMicro.Suscept,dbo.ReportMicro.SusQuan,dbo.ReportMicro.RefRange,dbo.AntiGroup.AntiUnit,dbo.ReportMicro.ItemDate,dbo.ReportMicro.ItemTime,dbo.ReportMicro.ItemDesc,dbo.ReportMicro.EquipNo,dbo.ReportMicro.Modified,dbo.ReportMicro.IsMatch,dbo.ReportMicro.CheckType,dbo.ReportForm.SerialNo,dbo.ReportForm.SerialNoASdbo.ReportForm.SampleTypeNoASinspection,dbo.ReportForm.CollectDate,CAST(dbo.ReportForm.AgeASvarchar)AScage,dbo.ReportMicro.ReceiveDate,112),5,4)+','+CAST(dbo.ReportMicro.SectionNoASvarchar)+','+CAST(dbo.ReportMicro.TestTypeNoASvarchar)++CAST(dbo.ReportMicro.SampleNoASvarchar)ASdbo.ReportForm.formmemoasmrid,CONVERT(varchar(8),dbo.ReportForm.ReceiveDate,112)asapplydate dbo.AntiGroupINNERdbo.MicroGroupONdbo.AntiGroup.FamilyNo=dbo.MicroGroup.FamilyNoRIGHTOUTERJOINdbo.ReportMicroONdbo.MicroGroup.MicroNo=dbo.ReportMicro.MicroNoANDdbo.AntiGroup.Range=dbo.ReportMicro.RefRangeOUTER
dbo.AntiGroup.AntiNo=dbo.ReportMicro.AntiNodbo.AntiBioticONdbo.ReportMicro.AntiNodbo.AntiBiotic.AntiNoLEFTOUTERdbo.MicroItemONdbo.ReportMicro.MicroNo=dbo.MicroItem.MicroNoLEFTOUTERJOINdbo.MicroPhraseON o oLEFTOUTERdbo.TestIt
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论