云南省医疗保障信息平台定点医药机构第三方程序调用接口、通用交易报文示例代码、移动支付交易调用说明.docx

上传人:夺命阿水 文档编号:1460457 上传时间:2024-06-28 格式:DOCX 页数:28 大小:34.65KB
返回 下载 相关 举报
云南省医疗保障信息平台定点医药机构第三方程序调用接口、通用交易报文示例代码、移动支付交易调用说明.docx_第1页
第1页 / 共28页
云南省医疗保障信息平台定点医药机构第三方程序调用接口、通用交易报文示例代码、移动支付交易调用说明.docx_第2页
第2页 / 共28页
云南省医疗保障信息平台定点医药机构第三方程序调用接口、通用交易报文示例代码、移动支付交易调用说明.docx_第3页
第3页 / 共28页
云南省医疗保障信息平台定点医药机构第三方程序调用接口、通用交易报文示例代码、移动支付交易调用说明.docx_第4页
第4页 / 共28页
云南省医疗保障信息平台定点医药机构第三方程序调用接口、通用交易报文示例代码、移动支付交易调用说明.docx_第5页
第5页 / 共28页
点击查看更多>>
资源描述

《云南省医疗保障信息平台定点医药机构第三方程序调用接口、通用交易报文示例代码、移动支付交易调用说明.docx》由会员分享,可在线阅读,更多相关《云南省医疗保障信息平台定点医药机构第三方程序调用接口、通用交易报文示例代码、移动支付交易调用说明.docx(28页珍藏版)》请在课桌文档上搜索。

1、第三方程序调用接口示例代码PB程序调用示例K pb9接口函数声明接口初始化输入参数说明:医疗服务机构端号(f i Xmd i ns_cOdC)输入参数说明:服务商识代码(i nfosyscode)输入参数说明:服务商识别码(inf。SySSiKn)怆人参数说明:极务器地址(UrD输出多数说明:错谡信息(PErrMsg)FliNCTION int Init (string fixinedins_codc, strin inf。SySeode. strin infosyssign, string url, ref string PErrMSg) LIBRARY *CHSInterfaceYn. d

2、ll*修改社保卡密码输入参数说明:医疗服芬机构编号(fixmedinsfode)输入参数说明:服务商识代码(inf。SySCOdQ/输入参数说明:极务商识别码(i nfosyssin)输入多数说明:输入报文(inpuUata)输出参数说明:输出报文(OUIPUIDaia)怆出参数说明:错误信息(pErMsg)FliNCTION int MOdifyCardPiD(String fixmedins_code, string infosyscode, string infosyssign, string iputDat , ref string OutputData , ref string pE

3、rrMsg) LIBRARY CIISInterf aceYn. dl 1 *通用业务交易输入咨数说明:医疗眠务机构编号(fixmedins,code)输入冬救说明:服务商识代码(infosyscode)输入参数说明:服务商识别码(i nfosyss i gn)输入多数说明:输入报文(inpulDaa)输出参数说明:输出报文(OUtpUtDatEI)输出参数说明:错误信忠(PErrMsg)RINCTION ini BUSineSSHandIe(Stritw fixmedins_code, strin infosyscoedinsode)输入参数说明:服务商识代码(infosyscode)输入参

4、数说明I服务商识别码(i nfosy ss i n)输入参数说明:服务器地址(UrD输出参数说明:精谀信息(PErrMsg)FUNCTION intInitCstring fixmedins_code, string infosyscode, stringinfosyssign, string url, ref string PErrXSg) LIBRARY *CHSInterfaceYn.dll* alias for Inil;Ansi.修l社保卡甫码输入参数说明:医疗服务机构编号(fixmedins code)输入参数说明:服务商识代码(infosyscode)输入参数说明:服务商识别码(

5、infosyss i gn)输入参数说明:输入报文(inputData)输出参数说明:输出报文(OUtPUtData)输出金数说明:播谀信息(PErrMSB)FUNCTION int MfdifyCardPBD(string fixedins-code, string infosyscode, string infosyssign, string inputData , ref string OutputData , ref string PErrMSg) LIBRARY XHSInterfaceYn. dl alias for ModifyCardPttDiAnsi通用业务交步输入参数说明:

6、医疗服务机构编号(fixedinsode)输入参数说明:服务商识代码(infosyscode)输入参数说明I服务商识别码(i nfosy SS i n)输入参数说明:输入报文(inputData)/输出多数说明:输出报文(OUtputPata)输出参数说明:错误信息(PEIdsg)FUNCTION int BUSineSSHandle(String fixnedins_cnde, string infosyscode, string infosyssin, string inut,Data, ref string OutputData1 ref string pErrMsg) LIBRARY

7、vGISInterfaceYn.dll, lias for BusinessHandleiAnsi”通用下载交易/输入参数说明:医疗服务机内编 (fixnedins.code)/输入舂数说明:服务商识代码(infosyscode)输入参数说明:t务商识别码(infosyssign)输入参数说明:输入报文(inputData)输出参数说明:输出报文(OUIPUIDala)/输出参数说明:借误信息(PEnlsg)FUNCTION int DownloadFile(string fixmedins code, string infosyscode, string infosyssignl strin

8、g iputData,ref string outputDaia, ref string pErrMsg) LIBRARY CHSInterfaceYiLdll alias for ,DoWnlOadFile;AnSi”通用上传交易输入参数说明:医疗服务机构编(fixmedinsode)输入参数说明:服务商识代码(inf。SySCode)输入参数说明:极务商识别码Gnfosyssign)/输入卷数说明:上传文件路径(filename)输入参数说明:输入报文GnPUUtata)输出参数说明:/出报文(OUtPUtData)/输出参数说明:错误信息(pErrMsg)FUNCTION int UPl

9、OadFiIe(String fixmedins_code, string infosyscode, string infosyssign, string fi IeNaae, string inputl)ata, ref string outputlata, ref string pErrMsg) LIBRARY vCHSInterfaceYn.dll* alias for vUploadFile;Ansi*3、接口函数调用初始化代码:String ls_pEri-Bsgstring ls_urlstring ls_infosyscode = *cll*string ls_infosyssi

10、gn = *sl* int li.rtis_fixmedins code = sle hoscode. textIS-PErnnSg space(128)ls.url= sle_url.textILrtInit(is_fixmcdins-code. ls_infosyscode, ls_infosyssign. Is url, 1s_pErrmsg) if 1i_rt = O thenst_2. text =成功”elsesi_2, text =错误信息:* end iftext - ISjErnnSg逋用业务交易代码:String ls.outputString Is_pEn-Bsgint

11、1i_rtstring ls_infosyscode = *clstring ls-infosyssign = *sl*is_fixmedins_co Is Jnpul, ls_o utput. 1 s_pErrmsg) if li_rt = 0 thenst_bh_2. text =成功”mle_bh_output. text = ls-outputelsest_bh_2. text 二tft误信息:m!e_bh_output. text = ls_pErrmsg end if修改社保卡密码代码String ls_pErrBsgint IiJlstring ls_inputstring ls

12、_OMtputstring ls_infosyscode = *cll*string ls_infosyssign = *sl*is.fixmedins_code = sle.hoscode. textIsjiErnnsg = space (128) ls.output = space(40960) li.rtModifyCardPWD(is_fixme ISjErrBSR) if 1 i_rt = 0 then st_mp. text 一成功”elseSt mp. text =拙误信息: end iftext = ls-pErrms文件上传代码String IsJnputString ls_

13、outputString IsjjErrBSRstring ls_fiIename int li_rtstring ls_infosyscode = *clstring ls_infosyssign = *sl* is_fixmedins_code = sle_hoscodc. text15.1 nput = mle_bh_input. textls_fiIename = sle-uf. textls_output = space (4(K)(K)0)ISj)ErnnSg = space (128)li-rtUPlOadFiIe(isjixmedins code, ls-infosyscode

14、, ls_infosyssign, ls-filenac, ls_in put. ls_output. ls_pErrmsg) if li_rt = O thenst_bh_2. text =*成功elsest_bh_2. text 二楙误信息:mle_bh_output. text = ls_pErrmsg end if文件下新代码String ls_inputString ls,oututString ls_pEn-asgint 1i_rtstring ls_fiIenamcstring ls_inCosyscode = clstring ls-infosyssign = *sl*is_f

15、ixmedins code = sle_hoscode. textls_input = mle_bh_input. textls_output = space(409600)IS-PErESg = space (128)ls.fiIename = space(128)li.rtDownloadFiixmedins code, ls_infosyscode, ls_infosyssign, ls_input, ls_out put, ls_pErrmsg) if ILrt = O thensl_bh_2. text =成功elsest_bh_2. text -错误信息:”mle_bh_outpu

16、t. text - ls_pErrmsgsle_df. text = ls_fiIenaee end ifJS调用示例控件id:object id=*chsinterfaceynocxA,CIaSSid二cls id :5209E1FCTFP8TDEE-A25A-E843906F95*/加载控件 tryZ/var Chsinterfaceynocx = document. getElementByldC*chsinterfaceynocx*): var Chsinterfaccynocx new ActivexObjectrchsinlerfaceyn. chsdll*);catch(e)al

17、ert Cocx j 调用异卷);)Chsinterfaceynocx. SetDirC D: Chsinterfaceyn ):/动态库的存放地址初始化var fixmedins.code =*H100013120*;var infosyscode -*cl*;var infosyssign =*sl*;var url =;var fi xned ins-code =;varinit.output=chsinterCaceynocx. Inil (f ixnedins_codc, infosyscode infosyssigrl url);修改社保卡密码var f ixmedins_code

18、 =*II100013120*;var infosyscode =*cl*;var infsyssi =sl”;var inputvar fixmedins,code =*;varMod i f yCardPUD_output=chsinterfaceynocx.ModifyCardPBD(fixmedins code, infosyscode. infosyssignt input);通用业务交易var fixmedins_code =*H100013120*;var infosyscode -*cl*;var Infosyssign =*s;var input =;var fixmedin

19、s_code =;varIkisi nessllandl e.output=chsinterfaceynocx. BusinessHnnd1e(fixmedins code, infosyscode. infosyssign, inpu通用下载交易var fixmedins.code =*H100013120*;var infosyscode -*cl*;var infosyssign =*sl*;var input =*;var fi xned ins-code =;varDown 1OadFile.output=chsinlerCaceynocx. Down1oadFi1e(f ixmed

20、ins_codc, infosyscode, infosyssign, input)通用上传交易var f ix(Dodins-code =4rH100013120*;var infosyscode 二*cl”;var Lnfosyssign =*sl*;var inputvar fiIeName=*:var fixmedins.code =;varUploadFile_output=chsinterfaceynocx. UpladEiIe(f ixmedins_code, infosyscode, infosyssign. fiIeName .input);C#调用UnieOde通用业务函数

21、代码示例函数声明IJH1 Import (*GiS IntcrfaccYn. dll,EntryPoEl* Bus i ncssHad 1 c *lCharSet. Unicode)ChtirSct -static extern int Businesslland 1 ef(string fixn?dins_code.string infosyscode.string infsyssigr. string innDala. Strirtgiiuihltr oululData. CSg);St rhdot Ider函数调用public int Chs businessHandlcW(string

22、 fixncdins_cxxic, string infosyscodc, string infosyssinl string inputbata. ref string OIHPUtnata, ref string ennsg)Slringfiutlder t* rnsgSb = new StringHuik*r( Q;StringfixiiIdcr otSbcv SfrEg伙Ider(AQ96。);it rt = RuNinrsslLindleM(! imdins c(ie, irifosyscudi*. infsyssigr, inputData, otSb, crrsgSb);if (

23、rt 0)crrsg crmsgSb. ToStringO : return -1;)else(OutputDaU = outSb. ToStringO : return rt;)JAVA实现下羲交易示例代码import java. 10. File;import java. io. FileOutputStream;import java. io. IOException:import java. io. InputStreaa;import java. io. UnsupportedEncodingException:import org. apache, http. Header;imp

24、ort org. apache, http. HttpEntity;import org. apache, http. IIttpResponse:imxrt org. apache, http. IIttpStatus;import org. apache, htlp. client. ClicntProtocolExccption;import org. apache, http, client. HttpClient;import org. apache, http, client, config. RequestConfig:import org. apache, http, clie

25、nt, methods. C1oseabIdlttpResponse;import org. apache, http, cl ient. methexis. HttpPost;import org. apache, http, entity. ByteArrayEntity:import org. apache, http, impl. client. IIttpCl ients;import org. apache, http. util. Entitylti Is;import sun. nio. cs. StandardCharsets;public class httptutiI (

26、新医保/bapi文件下载示例public static void main(String args) *设置请求url*/String url =*http:/172. 16. 11. 123:7030/eapdonfi(requestCorfi):*设置请求头*/httppost, addlleader (*fixmedins_code*, II53O11200683);httppost, addleader(*infosyscode*1 *deocasel*):httppost. addHeader (-hsf-nonce, ,635B907BE96fyJC6990C9A6614A518A

27、2): httppost, ddlleader(*hsf_tiiM?st;unp*, *2021717154012217-):httppost, addllcader(,hsf_signature, f9d193bca 1148384b42269f 1 d62ac840aef5 054428c30e47f097b97cb62723e2,):*设置请求报文*/Stringdown Input=infno”:*9102*, *msgid*:F530H 200683202107211758385113 mdlrlarea_admvs:*53058l*, insuplc_adndvs*:, recer

28、_sys_code:Vrmbs_lOCaI,dev_noV:* dev_safe_info:V,cainfo”:VW *signtypc*:, *infver*:V1.04*, *opter_type*:l,opter,: 8S8, Vopter,name: 工程师.injtie”: 2O21-O7- 19 09:40:22, Vfixmedins-COdeL H53011200683”, VfiNinedinsjameV: Vziifi 有笫一人民医院, sig nee! ys,cxie*: MBS IjOCAl二dev,no :,*dev safe info*:*, ” . . * * c

29、nnta :.*infver*: *V).0*,*opter_lyp*- T,* optcr*: *01*.*opter nene?*:“张三”* inttine*: *20204)1 HM 12:35:39*.* fixeJins code: *lMW0l*,*fixweiins nan。:第,人民族院,QdS no*: *79faf82271941 fc:Wc4f)d99br71lx:9c.* input*:(*data*:(*pxn cert type*: *2*.certno*:飞】MOo202001010000:%nane:李四二 gndme*: *2020 01 01B.2报文,出

30、示例-人员信息获取Tnfctxh/: T.*inf refmsgid: *OOXI22O10i 1235391234567890.,refSi,tine*: *20200201133411352*.,respond tie: 2020020213373M56*. rerr.msg :,*output*:(*baxinf*: |*psn,no*: “13100020200】O(H 二*psn_cort type*: *2*.*c2*,呻即“:测试电位.*idet info*:*psnjdet type*: T,* pxn_typr_lv*: *1*. r ncfn :,* begntie*: 2

31、02(Yl-Ol 00:WkOo二,rndtirec*:).Ipsn.idet.type*: “2,* psn_type_lv-: .* . , ncfn :,beentine”: *2020-01-01 00:00:DO.“endW: *)1附录C(资料性附录)移动支付交易调用说明接口规则表I接”规则规则规则描述传9方式为保证交易安全性.枭榜hps他Kt货交方式采用MSr方法找女航搭格式提先为迟日败据,为JSON格式字符%码一采用ITF-8字符编国接名It法31 也算法 SM2 Id:13AF017BBA17FC8A1AE8EFB232BDBeCB*,data”: (*appId:*43FO47BB17FC 1AE8EFB232BDBBCB, *appliserId:*o8z4C5avQXqC0a FPMzu6I)71CQJxl idNo,350181199011193519, idType-0, *phoneNuber-ri3 763873033”, “userName”: 溯试),“encTypeTSM,*,signData*liRVQNdVNn5mz2EhKZhLTlXNwAUTSncFoSe8Ilx7jhn81eB,J46sdRRNlZiiQjPUTixG9bwq

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 在线阅读 > 生活休闲


备案号:宁ICP备20000045号-1

经营许可证:宁B2-20210002

宁公网安备 64010402000986号