广州市医疗保险业务信息系统二期工程建设
公务员子系统项目(Pj3)
定点医疗机构门诊门慢API接口技术方案
状态:
草 稿 评 审 初始版 修订版 标识号: 当前版本: 前一版本: 发布日期:
PJ3-05-0004 1.0
2007-01-08
广州市劳动保障信息中心 广州市医疗保险管理服务中心 湖南创智和宇信息系统有限公司
Pj3定点医疗机构门诊门慢API接口技术方案
目 录
1 2
运行环境说明 ................................................................................................................ 1 函数功能 ....................................................................................................................... 1
2.1 函数说明............................................................................................................................... 1 2.1.1 long newinterface() ....................................................................................................... 1 2.1.2 long newinterfacewithinit(char *Addr, int Port, char *Servlet) .................................... 1 2.1.3 long init(Interface *p_inter, char *Addr, int Port, char *Servlet) .................................. 1 2.1.4 destoryinterface(Interface *p_inter) .............................................................................. 1 2.1.5 long start(Interface *p_inter, char *FUNC_ID) ............................................................ 2 2.1.6 long put(Interface *p_inter, long row, char *p_name, char *p_value) .......................... 2 2.1.7 long putcol(Interface *p_inter, char * p_name, char *p_value) .................................... 2 2.1.8 long run(Interface *p_inter) .......................................................................................... 2 2.1.9 long setresultset(Interface *p_inter, char * result_name) .............................................. 2 2.1.10 int nextrow(Interface *p_inter) ..................................................................................... 3 2.1.11 int prevrow(Interface *p_inter) ..................................................................................... 3 2.1.12 int firstrow(Interface *p_inter) ...................................................................................... 3 2.1.13 int lastrow(Interface *p_inter) ....................................................................................... 3 2.1.14 int getbyname(Interface *p_inter, char *p_name, void *p_value) ................................ 3 2.1.15 int getbyindex(Interface *p_inter, int index, void *p_name , void *p_value) .............. 4 2.1.16 long getmessage(Interface *p_inter, char *err) ............................................................. 4 2.1.17 long getexception(Interface *p_inter, char *exception) ................................................ 4 2.1.18 long getresultnamebyindex(Interface *p_inter, int index, char *resultname) ............... 4 2.1.19 long getrowcount(Interface *p_inter) ............................................................................ 4 2.1.20 long set_ic_commport(Interface *p_inter, int comm) ................................................... 5 2.1.21 long encode64(char *pSrc, int nSize, char *pDest) ...................................................... 5 2.1.22 long decode64(char *pSrc, int nSize, char *pDest) ...................................................... 5 2.1.23 long encodesize( int nSize) ........................................................................................... 5 2.1.24 long decodesize( int nSize) ........................................................................................... 5 2.1.25 long decode64_tofile(char *pSrc, int nSize, char *filename) ....................................... 5 2.1.26 int setdebug(Interface *pinter,integer flag,char * direct) .............................................. 6 2.2 函数调用说明....................................................................................................................... 6 2.2.1 接口函数调用顺序 ....................................................................................................... 6 2.2.2 接口函数调用时指针的用法说明 ............................................................................... 7 2.2.3 接口函数调用时数据类型的说明 ............................................................................... 7 2.3 程序中接口函数定义........................................................................................................... 7 2.3.1 在PB中定义函数程序 ................................................................................................ 7 2.3.2 在Delphi中定义函数程序 .......................................................................................... 8
Powerise?创智
1
Pj3定点医疗机构门诊门慢API接口技术方案
2.3.3 在VB中定义函数程序 ............................................................................................... 9
2.4 函数调用样例..................................................................................................................... 10 2.4.1 在PB中调用接口函数程序 ...................................................................................... 10 2.4.2 在Delphi中调用接口函数程序 ................................................................................ 11 2.4.3 在VB中调用接口函数程序 ..................................................................................... 12 3
功能编号及功能描述 ................................................................................................... 13
3.1 系统(0) ................................................................................................................................ 13 3.1.1 登录到前置服务器 (0) .............................................................................................. 13 3.2 门诊业务............................................................................................................................. 14 3.2.1 门诊挂号登记 ............................................................................................................. 14 3.2.2 门诊收费 ..................................................................................................................... 20 3.2.3 门诊退费 ..................................................................................................................... 26 3.2.4 取消门诊业务(BIZH131105) ................................................................................ 34 3.3 工伤门诊............................................................................................................................. 35 3.3.1 工伤门诊挂号登记 ..................................................................................................... 35 3.3.2 工伤门诊收费 ............................................................................................................. 40 3.3.3 工伤门诊退费 ............................................................................................................. 45 3.3.4 取消工伤门诊业务(BIZH131105) ........................................................................ 54 3.4 生育门诊............................................................................................................................. 54 3.4.1 生育门诊挂号登记 ..................................................................................................... 54 3.4.2 生育门诊收费 ............................................................................................................. 59 3.4.3 生育门诊退费 ............................................................................................................. 65 3.4.4 取消生育门诊业务(BIZH131105) ........................................................................ 74 3.5 门诊慢性病业务................................................................................................................. 74 3.5.1 3.5.1 门诊慢性病登记 ............................................................................................... 74 3.5.2 门诊慢性病收费 ......................................................................................................... 79 3.5.3 门诊慢性病退费 ......................................................................................................... 84 3.5.4 取消门诊慢性病业务(BIZH131105) .................................................................... 92 3.5.5 根据门慢申请序号获取门诊慢性病申请信息(BIZH120101) ............................. 92 3.6 公用功能............................................................................................................................. 93 3.6.1 读IC卡(BIZH200900) ................................................................................................ 93 3.6.2 提取计算结果(BIZH000106) ..................................................................................... 94 3.6.3 提取门诊结算单(BIZH200102) ................................................................................. 95 3.6.4 提取门慢结算单(BIZH200101) ................................................................................. 97 4 4.1
主要业务流程描述 ..................................................................................................... 101 门诊业务流程(普通门诊、工伤门诊、生育门诊) ................................................... 101
2
Powerise?创智
Pj3定点医疗机构门诊门慢API接口技术方案
4.2 5 门诊慢性病业务流程....................................................................................................... 102 业务功能调用描述 ..................................................................................................... 102 5.1
普通门诊调用流程(普通门诊、工伤门诊、生育门诊)
Powerise?创智 3
Pj3定点医疗机构门诊门慢API接口技术方案
普通门诊登记流程图读IC卡(BIZH200900)iccardnoindi_ididcard普通门诊收费流程图读IC卡(BIZH200900)iccardnoindi_ididcard获取人员信息(BIZC131001)indi_idlast_balance获取业务信息(BIZH131102)indi_idserial_noserial_fee费用结算(BIZH131104)serial_no费用结算(BIZH131104)serial_no收费收据打印(BIZH000106)收费收据打印(BIZH000106)普通门诊退费流程图读IC卡(BIZH200900)iccardnoindi_ididcard取消门诊流程图读IC卡(BIZH200900)iccardnoindi_ididcard获取业务信息(BIZH131102)indi_idserial_noserial_fee获取业务信息(BIZH131102)indi_idserial_no费用结算(BIZH131104)serial_no取消门诊业务(BIZH131105)收费收据打印(BIZH000106) .......... 103
5.2
门诊慢性病调用流程....................................................................................................... 104
Powerise?创智 4