查询间隔为5分钟,请注意查询频率 滚动获取客户列表, 第一次查询接口游标为0,可不传。 第一次返回的游标值作为第二次的入参, 依次循环,直到返回的列表为空,此时返回的游标值无效。 使用游标查询时,会视为是同一次查询,同一游标只能支持查询3次,使用3次后失效,需重新发起新的查询,游标的有效时间为5分钟。 每次发起新查询需要间隔5分钟,使用游标查询无时间限制。
curl --location --request GET '/api/anon/openapi/patient/sync?updateDate&cursor&size=10' \ --header 'FRHis-Open-Timestamp;' \ --header 'FRHis-Open-App-Id;' \ --header 'FRHis-Open-Token;' \ --header 'FRHis-Open-RequestID;'
{ "errcode": 0, "errmsg": "成功", "data": { "cursor": 1006788, "items": [ { "patientID": 1, "vipNumber": "0000000693", "name": "写锁定", "englishName": null, "pyCode": "xsd", "wbCode": "pqp", "gender": "1", "age": 9, "relationType": null, "mobilePhone": "15633265421", "telephone": "", "certificateType": "", "certificateNumber": "", "birthdayType": 1, "birthday": "0321", "typeOfVIP": null, "status": "一般", "basicAccount": null, "depositBalance": 170836, "giftBalance": 632, "remainingPoints": 0, "patientCategory": "49", "address": "湖南省", "medicalInsuranceNumber": "465465", "consultantsId": 48, "developId": 48, "customerServiceId": null, "createTime": "2016-10-24 15:48:34", "remarks": "", "updateTime": "2021-12-04 11:41:11" } ] } }