摘要
HIS检验系统的联机采集是采用计算机通信技术 ,将检验仪器测量到的结果数据接收到 HIS客户端计算机上 ,经应用程序处理后 ,自动将检验报告数据写入 HIS数据库。笔者以仪器 RS2 32口和计算机串口间的通信为例 ,讨论了联机采集的设计和实现方法 :1掌握仪器的数据传送方式和参数 ,调通计算机和仪器间的通信。 2分析数据帧的结构 ,研究如何从中提取标本标识、报告项目标识和检测结果等数据。 3根据以上两步得到的资料和 HIS数据库的相关数据结构 ,开发联机采集应用程序。
Most lab instruments with RS232 serial ports ca n be incorporated into HIS by capturing data to database with application softwa re.The software runs on a HIS client computer ,receives test data sent by the in strument over RS232,parses the data string to extract data values and feeds them to HIS database.To match equipments from different manufacturers,it must be mod ified correspondingly.The process of designing the software is as follows:①To v erify that the instrument can communicate with the computer properly.Link the RS 232 and the serial port of the computer with a cable.Find out the communication settings of the instrument (baud rate,data bits,parity,flow control,etc.) and ho w the data are sent (the instrument continuously outputs data values or requires a command message each time data values are needed).And test the communication with tool,such as Hyper Terminal.②Parse the data frame.In data communication,th e sequence of contiguous characters in a transmission is called a frame.The fram e sent from an instrument includes many contents:sample flag,channel of data (te st report item) flag,result values,etc.Every instrument has its specific frame s tructure.The designer should analyze the frame structure and find out how to acq uire a certain value in its position within the frame. ③Design and carry out th e software.Its function includes:monitoring the instrument and saving every fram e received as a data string;analyzing the string and extracting data values and recording the test data in a certain table of HIS database.
出处
《现代检验医学杂志》
CAS
2004年第5期3-4,共2页
Journal of Modern Laboratory Medicine
关键词
HIS
联机采集
串口
数据帧
数据库
HIS
capture instrument data to HIS database
seria l port
frame
database