省智慧食药监项目监管抽验数据接口文档.doc
. 附件2:广东省“智慧食药监”项目监管抽验数据接口文档-药品34 / 341引言31.1概述31.2接口方式与介绍31.3接口调用交互流程简图41.3.1抽样数据上报流程41.3.2获取抽样单信息并上报检验报告数据流程42业务接口52.1检验检测接口52.1.1食品52.1.1.1接口说明52.1.1.2接口参数72.1.1.3接口返回值212.1.1.4传输规范322.1.1.5接收规范342.1.1.6异常处理342.1.1.7JSON字段说明342.1.1.8字典说明451 引言1.1 概述本接口用于广东省“智慧食药监”基础平台项目的接口对接。本文档为整体文档的食品相关接口部分。1.2 接口方式与介绍本接口采用WEBSERVICE技术,服务端通过axis2方式发布数据上报接口,客户端通过调用服务端数据上报接口,将数据以JSON格式进行传递,同时服务器端返回给客户端接收情况。在检验检测系统中,提供抽样单数据上报、检验报告数据上报、获取抽样单信息接口,需要对接的系统按照文档规定格式调用接口进行数据的上传或获取。智慧食药监平台支持抽样单数据的单条与批量上传或获取,检验报告数据的单条与批量上传。服务端各数据上报接口共享一个类,通过调用不同的方法实现上报不同的数据。注:因传输数据中可能存在特殊字符,可能导致乱码或破坏JSON格式,故约定传输数据均采用UTF-8字符集,并进行Base64编码。返回的异常信息为了方便易读,不进行Base64编码。示例:编码前"PLAN_CODE":"GDSC1504130011","PLAN_NAME":"2015年广东省食品抽样计划","INSPECTION_TASKTYPE ":"1"编码后"PLAN_CODE":"R0RTQzE1MDQxMzAwMTEK","PLAN_NAME":"MjAxNeW5tOW5v+S4nOecgemjn+WTgeaKveagt+iuoeWIkgo= ","INSPECTION_TASKTYPE ":"MQ="1.3 接口调用交互流程简图1.3.1 抽样数据上报流程1.3.2 获取抽样单信息并上报检验报告数据流程2 业务接口2.1 检验检测接口2.1.1 药品2.1.1.1 接口说明2.1.1.1.1 抽样单数据上报接口1) 接口地址:正式地址: s:/测试地址: :/122.13.2.155:8087/inspectinfo/services/datainfo.dataReport?wsdl2) 服务类:com.service.datainfo.DataReport3) 命名空间 :/loushang.ws/4) 方法/上报药品抽样信息String reportMedicineSampleInfo(String);2.1.1.1.2 抽样单信息获取接口1) 接口地址:正式地址: s:/测试地址: :/122.13.2.155:8087/inspectinfo/services/datainfo.dataReport?wsdl2) 服务类:com.service.datainfo.DataReport3) 命名空间 :/loushang.ws/4) 方法/获取药品抽样单信息String getMedicineSampleInfo(String);2.1.1.1.3 检验报告数据上报接口1) 接口地址:正式地址: s:/测试地址: :/122.13.2.155:8087/inspectinfo/services/datainfo.dataReport?wsdl2) 服务类:com.service.datainfo.DataReport3) 命名空间 :/loushang.ws/4) 方法/上报药品检验报告信息String reportMedicineInspectInfo(String);2.1.1.2 接口参数2.1.1.2.1 抽样单数据上报接口"SAMPLE_BASE_NO":"R0QyMDE1MDcyMzAwMjI=","ORGINATION_ID":"MTIzNDU2Nw=","LAST_UPDATE_TIME":"MjAxNS0xMC0wOS0xNC0yMC0zNQ=","SAMPLE_DATE":"MjAxNS0wOS0wOA=","INSPECTION_UNIT":" 5bm/5Lic55yB6aOf5ZOB6I2v5ZOB55uR552j566h55CG5bGA ","PLAN_TYPE_IDS":"MDEwMQ=","SOURCE_TYPE":"MA=","SOURCE_IDS":"NDAyODJkODE0ZTAxMjU5ODAxNGUwMTg0NmE1MTAwMTY=","SOURCE_DETAILS":"MDE155uR552j5oq95qOA6K6h5YiS ","INSPECT_ITEM":"Mg=","SAMPLE_LINK":"","SAMPLE_CHECK_PERSON":"","SAMPLE_CHECK_RECEIVE_DATE":"MjAxNS0wOS0wOA=","PRODUCTION_MEDICINE_NAME":" 5bCP5YS/5p+05qGC6Kej54Ot6aKX57KS ","PRODUCTION_NAME":" WFjliLboja/mnInpmZDlhazlj7g= ","PRODUCTION_ADDRESS":" 5bm/5Lic55yBWFjluIJYWOi3r1hY5Y+3 ","PRODUCTION_BATCH_NO":"MjAxNTA3MTEyMw=","PRODUCTION_PACK_NORMS":"MTUwZy/nm5I= ","PRODUCTION_PREPARATION_NORMS":"M21sL+WJgg= ","PRODUCTION_EFFECTIVE_DATE":"MjAxOC0xMi0zMQ=","PRODUCTION_APPROVAL_NUMBER":"","SAMPLE_DEPT_NAME":" 5bm/5Lic55yB6aOf5ZOB6I2v5ZOB55uR552j566h55CG5bGA ","SAMPLE_DEPT_PERSON":"","SAMPLE_DEPT_ADDRESS":"5bm/5Lic55yB5bm/5bee5biC","SAMPLE_DEPT_TEL":"","ENTERPRISE_NAME":"5bq35YGl6I2v5ZOB5Yi26I2v5Y6C5bm/5Lic5YiG5Y6C","SAMPLE_ENT_PERSON":"","ENTERPRISE_ADDRESS":" 5bm/5Lic55yBWFjluIJYWOi3r1hY5Y+3 ","ENTERPRISE_LINKMAN":"","ENTERPRISE_PHONE":"","ENTERPRISE_ZIP_CODE":"","MEDICINE_STOCK":"MQ=","MEDICINE_PREPARATION":"MQ=","MEDICINE_SPECIAL":"Mg=","MEDICINE_OUTER_PACKAGE":" Mg= ","MEDICINE_SAMPLE_SITE":"","MEDICINE_SAVE_STATE_TEM":"","MEDICINE_SAVE_STATE_WET":"","MEDICINE_TEM_HUM":"MQ=","MEDICINE_PACKAGE":"","MEDICINE_SAMPLE_NUM":"","MEDICINE_SAMPLE_EXPLAIN":"","MEDICINE_COUNTRY_BASE":"MQ=","MEDICINE_PROVINCE_BASE":"MQ=","REMARK_NOTE":"","REC_DATE":"","REC_PERSON":"","REC_COMMENT":"","IS_PREPROCESS":"","SENDING_UNIT":"","SENDING_PERSON":"","SENDING_DATE":"","CANT_CODE":"","PRODUCT_DRUG_NAME":"","BAR_CODE":"","PRODUCER_REGION_CODE":"NDQwMDAw","PRODUCER_REGION":"","ENTERPRISE_REGION_CODE":"NDQwMDAw","ENTERPRISE_REGION":"5bm/5Lic55yB5bm/5bee5biC","BASIC_UNIT":"","TASK_TYPE":"","BUSINESS_TYPE_ID":"","BUSINESS_TYPE_DESC":"","SAMPLE_BASE_NO":"R0QyMDE1MDcyMzAwMjM=","ORGINATION_ID":"MTIzNDU2Nw=","LAST_UPDATE_TIME":"MjAxNS0xMC0wOS0xNC0yMC0zNQ=","SAMPLE_DATE":"MjAxNS0wOS0wOA=","INSPECTION_UNIT":" 5bm/5Lic55yB6aOf5ZOB6I2v5ZOB55uR552j566h55CG5bGA ","PLAN_TYPE_IDS":"MDEwMQ=","SOURCE_TYPE":"MA=","SOURCE_IDS":"NDAyODJkODE0ZTAxMjU5ODAxNGUwMTg0NmE1MTAwMTY=","SOURCE_DETAILS":"MDE155uR552j5oq95qOA6K6h5YiS ","INSPECT_ITEM":"Mg=","SAMPLE_LINK":"","SAMPLE_CHECK_PERSON":"","SAMPLE_CHECK_RECEIVE_DATE":"MjAxNS0wOS0wOA=","PRODUCTION_MEDICINE_NAME":" 5bCP5YS/5p+05qGC6Kej54Ot6aKX57KS ","PRODUCTION_NAME":" WFjliLboja/mnInpmZDlhazlj7g= ","PRODUCTION_ADDRESS":" 5bm/5Lic55yBWFjluIJYWOi3r1hY5Y+3 ","PRODUCTION_BATCH_NO":"MjAxNTA3MTEyMw=","PRODUCTION_PACK_NORMS":"MTUwZy/nm5I= ","PRODUCTION_PREPARATION_NORMS":"M21sL+WJgg= ","PRODUCTION_EFFECTIVE_DATE":"MjAxOC0xMi0zMQ=","PRODUCTION_APPROVAL_NUMBER":"","SAMPLE_DEPT_NAME":" 5bm/5Lic55yB6aOf5ZOB6I2v5ZOB55uR552j566h55CG5bGA ","SAMPLE_DEPT_PERSON":"","SAMPLE_DEPT_ADDRESS":"5bm/5Lic55yB5bm/5bee5biC","SAMPLE_DEPT_TEL":"","ENTERPRISE_NAME":"5bq35YGl6I2v5ZOB5Yi26I2v5Y6C5bm/5Lic5YiG5Y6C","SAMPLE_ENT_PERSON":"","ENTERPRISE_ADDRESS":" 5bm/5Lic55yBWFjluIJYWOi3r1hY5Y+3 ","ENTERPRISE_LINKMAN":"","ENTERPRISE_PHONE":"","ENTERPRISE_ZIP_CODE":"","MEDICINE_STOCK":"MQ=","MEDICINE_PREPARATION":"MQ=","MEDICINE_SPECIAL":"Mg=","MEDICINE_OUTER_PACKAGE":" Mg= ","MEDICINE_SAMPLE_SITE":"","MEDICINE_SAVE_STATE_TEM":"","MEDICINE_SAVE_STATE_WET":"","MEDICINE_TEM_HUM":"MQ=","MEDICINE_PACKAGE":"","MEDICINE_SAMPLE_NUM":"","MEDICINE_SAMPLE_EXPLAIN":"","MEDICINE_COUNTRY_BASE":"MQ=","MEDICINE_PROVINCE_BASE":"MQ=","REMARK_NOTE":"","REC_DATE":"","REC_PERSON":"","REC_COMMENT":"","IS_PREPROCESS":"","SENDING_UNIT":"","SENDING_PERSON":"","SENDING_DATE":"","CANT_CODE":"","PRODUCT_DRUG_NAME":"","BAR_CODE":"","PRODUCER_REGION_CODE":"NDQwMDAw","PRODUCER_REGION":"","ENTERPRISE_REGION_CODE":"NDQwMDAw","ENTERPRISE_REGION":"5bm/5Lic55yB5bm/5bee5biC","BASIC_UNIT":"","TASK_TYPE":"","BUSINESS_TYPE_ID":"","BUSINESS_TYPE_DESC":""2.1.1.2.2 抽样单信息获取接口上传参数:"SAMPLE_BASE_NO":" R0QyMDE1MDcyMzAwMjI=","ORGINATION_ID":"MDAxMDMzMzQ=","BATCH_FLAG": "MQ=",/编码前为1"START_TIME": "MjAxNS0wOS0yMS0wOS0xMC0xMA=",/编码前为2015-09-21-09-10-10"END_TIME": "MjAxNi0wOS0yMS0wOS0xMC0xMA="/编码前为2016-09-21-09-10-10参数说明:JSON中的KEY描述字段类型长度备注SAMPLE_BASE_NO抽样单编号Varchar2(100)ORGINATION_ID组织机构IDVarchar2(100)BATCH_FLAG批量获取标志(值为0或1)char(1)值为1表示批量获取到所有已送样到该机构且未出检验报告的抽样单信息START_TIME查询抽样单创建起始时间char(20)BATCH_FLAG=1时才有效(格式为yyyy-MM-dd-hh-mm-ss)END_TIME查询抽样单创建截止时间char(20)BATCH_FLAG=1时才有效(格式为yyyy-MM-dd-hh-mm-ss)2.1.1.2.3 检验报告数据上报接口"SAMPLE_BASE_NO":" R0QyMDE1MDcyMzAwMjI=","ORGINATION_ID":"MTIzNDU2Nw=","LAST_UPDATE_TIME":"MjAxNS0xMC0wOS0xNC0yMC0zNQ=","SAMPLE_RECEIVER":"5byg5bCP5Y2O","SAMPLE_RECEIVE_DATE":"MjAxNS0wOS0wOQ=","SAMPLE_RECIVE_AMOUT":"NTA=","SAMPLE_ARRIVE_DATE":"MjAxNS0wOS0wOQ=","SAMPLE_SEALED_STATUS":"5a6M5aW9","INSPECTION_REPORT":"INSPECTION_NO":" SkQwMDkxMjA5MA=","INSPECTION_NAME":" 5bCP5YS/5p+05qGC6Kej54Ot6aKX57KS ","REPORT_NO":"MjAxNTA5MDkwMDIz","REPORT_DATE":"MjAxNS0wOS0wOQ=","INSPECTION_RESULT_CODE":"MQ=","INSPECTION_UNIT":" 5bm/5Lic55yB6I2v5ZOB55uR552j5bGA ","INSPECTION_CONCLUSION":" 5ZCI5qC8 ", "REMARK ":"","SIGNER":"5bCP546L","SIGN_DATE":"MjAxNS0wOS0xMQ=","INSPECTION_OBJECT":"","INSPECTION_BASIS":"","INSPECTION_DATE":" MjAxNS0wOS0xMQ=","INSPECTION_ITEMS":"INSPECTION_ITEM":" 6ZOF ","INSPECTION_RESULT":"5ZCI5qC8","STANDARD_PROVISION":"MTIz","INSPECTION_ITEM":" 6ZOF ","INSPECTION_RESULT":"5ZCI5qC8","STANDARD_PROVISION":"MTIz","SAMPLE_BASE_NO":" R0QyMDE1MDcyMzAwMjI=","ORGINATION_ID":"","LAST_UPDATE_TIME":"MjAxNS0xMC0wOS0xNC0yMC0zNQ=","SAMPLE_RECEIVER":"5byg5bCP5Y2O","SAMPLE_RECEIVE_DATE":"MjAxNS0wOS0wOQ=","SAMPLE_RECIVE_AMOUT":"NTA=","SAMPLE_ARRIVE_DATE":"MjAxNS0wOS0wOQ=","SAMPLE_SEALED_STATUS":"5a6M5aW9","INSPECTION_REPORT":"INSPECTION_NO":" SkQwMDkxMjA5MA=","INSPECTION_NAME":" 5bCP5YS/5p+05qGC6Kej54Ot6aKX57KS ","REPORT_NO":"MjAxNTA5MDkwMDIz","REPORT_DATE":"MjAxNS0wOS0wOQ=","INSPECTION_RESULT_CODE":"MQ=","INSPECTION_UNIT":" 5bm/5Lic55yB6I2v5ZOB55uR552j5bGA ","INSPECTION_CONCLUSION":" 5ZCI5qC8 ", "REMARK ":"","SIGNER":"5bCP546L","SIGN_DATE":"MjAxNS0wOS0xMQ=","INSPECTION_OBJECT":"","INSPECTION_BASIS":"","INSPECTION_DATE":" MjAxNS0wOS0xMQ=","INSPECTION_ITEMS":"INSPECTION_ITEM":" 6ZOF ","INSPECTION_RESULT":"5ZCI5qC8","STANDARD_PROVISION":"MTIz","INSPECTION_ITEM":" 6ZOF ","INSPECTION_RESULT":"5ZCI5qC8","STANDARD_PROVISION":"MTIz"2.1.1.3 接口返回值2.1.1.3.1 抽样单数据上报接口1) 正常状态:"ERRORCODE":"MA=","ERRORMSG":" "2) 异常状态:"ERRORCODE":"NDAwMDM=","ERRORMSG":"5pyq55+l6ZSZ6K+v"参数说明:ERRORCODE错误类型代码ERRORMSG具体错误内容描述备注0(空)表述正常40001数据库操作异常40002参数格式有误传参格式不正确不符合JSON格式40003未知错误其他类型的未知错误2.1.1.3.2 抽样单信息获取接口1) 正常状态:"ERRORCODE":"MA=","ERRORMSG": "SAMPLE_BASE_NO":" R0QyMDE1MDcyMzAwMjI=","ORGINATION_ID":"","LAST_UPDATE_TIME":"MjAxNS0xMC0wOS0xNC0yMC0zNQ=","SAMPLE_DATE":"MjAxNS0wOS0wOA=","INSPECTION_UNIT":" 5bm/5Lic55yB6aOf5ZOB6I2v5ZOB55uR552j566h55CG5bGA ","PLAN_TYPE_IDS":"MDEwMQ=","SOURCE_TYPE":"MA=","SOURCE_IDS":"NDAyODJkODE0ZTAxMjU5ODAxNGUwMTg0NmE1MTAwMTY=","SOURCE_DETAILS":"MDE155uR552j5oq95qOA6K6h5YiS ","INSPECT_ITEM":"Mg=","SAMPLE_LINK":"","SAMPLE_CHECK_PERSON":"","SAMPLE_CHECK_RECEIVE_DATE":"MjAxNS0wOS0wOA=","PRODUCTION_MEDICINE_NAME":" 5bCP5YS/5p+05qGC6Kej54Ot6aKX57KS ","PRODUCTION_NAME":" WFjliLboja/mnInpmZDlhazlj7g= ","PRODUCTION_ADDRESS":" 5bm/5Lic55yBWFjluIJYWOi3r1hY5Y+3 ","PRODUCTION_BATCH_NO":"MjAxNTA3MTEyMw=","PRODUCTION_PACK_NORMS":"MTUwZy/nm5I= ","PRODUCTION_PREPARATION_NORMS":"M21sL+WJgg= ","PRODUCTION_EFFECTIVE_DATE":"MjAxOC0xMi0zMQ=","PRODUCTION_APPROVAL_NUMBER":"","SAMPLE_DEPT_NAME":" 5bm/5Lic55yB6aOf5ZOB6I2v5ZOB55uR552j566h55CG5bGA ","SAMPLE_DEPT_PERSON":"","SAMPLE_DEPT_ADDRESS":"","SAMPLE_DEPT_TEL":"","ENTERPRISE_NAME":"","SAMPLE_ENT_PERSON":"","ENTERPRISE_ADDRESS":" 5bm/5Lic55yBWFjluIJYWOi3r1hY5Y+3 ","ENTERPRISE_LINKMAN":"","ENTERPRISE_PHONE":"","ENTERPRISE_ZIP_CODE":"","MEDICINE_STOCK":"MQ=","MEDICINE_PREPARATION":"MQ=","MEDICINE_SPECIAL":"","MEDICINE_OUTER_PACKAGE":" Mg= ","MEDICINE_SAMPLE_SITE":"","MEDICINE_SAVE_STATE_TEM":"","MEDICINE_SAVE_STATE_WET":"","MEDICINE_TEM_HUM":"MQ=","MEDICINE_PACKAGE":"","MEDICINE_SAMPLE_NUM":"","MEDICINE_SAMPLE_EXPLAIN":"","MEDICINE_COUNTRY_BASE":"MQ=","MEDICINE_PROVINCE_BASE":"MQ=","REMARK_NOTE":"","REC_DATE":"","REC_PERSON":"","REC_COMMENT":"","IS_PREPROCESS":"","SENDING_UNIT":"","SENDING_PERSON":"","SENDING_DATE":"","CANT_CODE":"","PRODUCT_DRUG_NAME":"","BAR_CODE":"","PRODUCER_REGION_CODE":"NDQwMDAw","PRODUCER_REGION":"","ENTERPRISE_REGION_CODE":"NDQwMDAw","ENTERPRISE_REGION":"5bm/5Lic55yB5bm/5bee5biC","BASIC_UNIT":"","TASK_TYPE":"","BUSINESS_TYPE_ID":"","BUSINESS_TYPE_DESC":"","SAMPLE_BASE_NO":" R0QyMDE1MDcyMzAwMjI=","ORGINATION_ID":"","LAST_UPDATE_TIME":"MjAxNS0xMC0wOS0xNC0yMC0zNQ=","SAMPLE_DATE":"MjAxNS0wOS0wOA=","INSPECTION_UNIT":" 5bm/5Lic55yB6aOf5ZOB6I2v5ZOB55uR552j566h55CG5bGA ","PLAN_TYPE_IDS":"MDEwMQ=","SOURCE_TYPE":"MA=","SOURCE_IDS":"NDAyODJkODE0ZTAxMjU5ODAxNGUwMTg0NmE1MTAwMTY=","SOURCE_DETAILS":"MDE155uR552j5oq95qOA6K6h5YiS ","INSPECT_ITEM":"Mg=","SAMPLE_LINK":"","SAMPLE_CHECK_PERSON":"","SAMPLE_CHECK_RECEIVE_DATE":"MjAxNS0wOS0wOA=","PRODUCTION_MEDICINE_NAME":" 5bCP5YS/5p+05qGC6Kej54Ot6aKX57KS ","PRODUCTION_NAME":" WFjliLboja/mnInpmZDlhazlj7g= ","PRODUCTION_ADDRESS":" 5bm/5Lic55yBWFjluIJYWOi3r1hY5Y+3 ","PRODUCTION_BATCH_NO":"MjAxNTA3MTEyMw=","PRODUCTION_PACK_NORMS":"MTUwZy/nm5I= ","PRODUCTION_PREPARATION_NORMS":"M21sL+WJgg= ","PRODUCTION_EFFECTIVE_DATE":"MjAxOC0xMi0zMQ=","PRODUCTION_APPROVAL_NUMBER":"","SAMPLE_DEPT_NAME":" 5bm/5Lic55yB6aOf5ZOB6I2v5ZOB55uR552j566h55CG5bGA ","SAMPLE_DEPT_PERSON":"","SAMPLE_DEPT_ADDRESS":"","SAMPLE_DEPT_TEL":"","ENTERPRISE_NAME":"","SAMPLE_ENT_PERSON":"","ENTERPRISE_ADDRESS":" 5bm/5Lic55yBWFjluIJYWOi3r1hY5Y+3 ","ENTERPRISE_LINKMAN":"","ENTERPRISE_PHONE":"","ENTERPRISE_ZIP_CODE":"","MEDICINE_STOCK":"MQ=","MEDICINE_PREPARATION":"MQ=","MEDICINE_SPECIAL":"","MEDICINE_OUTER_PACKAGE":" Mg= ","MEDICINE_SAMPLE_SITE":"","MEDICINE_SAVE_STATE_TEM":"","MEDICINE_SAVE_STATE_WET":"","MEDICINE_TEM_HUM":"MQ=","MEDICINE_PACKAGE":"","MEDICINE_SAMPLE_NUM":"","MEDICINE_SAMPLE_EXPLAIN":"","MEDICINE_COUNTRY_BASE":"MQ=","MEDICINE_PROVINCE_BASE":"MQ=","REMARK_NOTE":"","REC_DATE":"","REC_PERSON":"","REC_COMMENT":"","IS_PREPROCESS":"","SENDING_UNIT":"","SENDING_PERSON":"","SENDING_DATE":"","CANT_CODE":"","PRODUCT_DRUG_NAME":"","BAR_CODE":"","PRODUCER_REGION_CODE":"NDQwMDAw","PRODUCER_REGION":"","ENTERPRISE_REGION_CODE":"NDQwMDAw","ENTERPRISE_REGION":"5bm/5Lic55yB5bm/5bee5biC","BASIC_UNIT":"","TASK_TYPE":"","BUSINESS_TYPE_ID":"","BUSINESS_TYPE_DESC":""2) 异常状态:"ERRORCODE":"NDAwMDI=","ERRORMSG":"5Y+C5pWw5pyJ6K+v "参数说明:ERRORCODE错误类型代码ERRORMSG具体错误内容描述备注0Json结果集40001没有对应的信息40002参数有误40003未知错误其他类型的未知错误2.1.1.3.3 检验报告数据上报接口1) 正常状态:"ERRORCODE":"MA=","ERRORMSG":" "2) 异常状态:"ERRORCODE":"NDAwMDM=","ERRORMSG":"5pyq55+l6ZSZ6K+v "参数说明:ERRORCODE错误类型代码ERRORMSG具体错误内容描述备注0(空)表述正常40001数据库操作异常40002参数格式有误传参格式不正确不符合JSON格式40003未知错误其他类型的未知错误2.1.1.4 传输规范2.1.1.4.1 抽样单数据上报接口按照接口参数给定的JSON格式进行传输,最外层是一个数组,数组中的每个元素都是一个JSON,此JSON中包含样品抽样信息。每项JSON中的KEY对应的值必须是经过Base64编码后的值。另外,数据必须按照UTF-8格式进行传输。抽样单支持单条和批量上传,因实时处理反馈限制,批量上传限制一次100条数据记录。2.1.1.4.2 抽样单信息获取接口按照接口参数给定的JSON格式进行传输,最外层是一个数组,数组中的每个元素都是一个JSON,此JSON中包含样品抽样单编号信息、组织机构、批量获取标志等信息,接口按传的参数返回相应的抽样单信息,返回的信息也是一个JSON格式的数组信息。每项JSON中的KEY对应的值是经过Base64编码后的值,获取后要进行解码。另外,数据必须按照UTF-8格式进行传输。抽样单支持单条和批量获取,批量获取(BATCH_FLAG值为1)时,按照组织机构ID、抽样单创建起始时间(START_TIME)、抽样单创建截止时间(END_TIME)的时间段内查询获取到所有已送样到该机构且未出检验报告的抽样单信息:1) 如果BATCH_FLAG=1,START_TIME和END_TIME都为空,获取所有已送样到检验机构且未出检验报告的抽样单信息;2) 如果BATCH_FLAG=1,START_TIME值不为空、END_TIME为空,则获取从该起始时间节点开始、已送样到该检验机构且未出检验报告的抽样单信息;3) 如果BATCH_FLAG=1,START_TIME值为空、END_TIME值不为空,则获取截止到该结束时间节点、已送样到该检验机构且未出检验报告的抽样单信息;4) 如果BATCH_FLAG=1,START_TI