事件订阅 / 收费

部分收费状态下部分退费

部分收费状态下发生部分退费后发送事件。

字段值说明
eventModule1事件模块编号
eventType106具体事件编号

事件结构

名称说明类型
Body 参数
id可选

消息 ID,作为接收端幂等键;同一次业务通知的重试使用同一消息 ID

string
clinicId可选

授权门店 ID

string
eventModule可选

枚举:1

integer
eventType可选

枚举:106

integer
eventName可选

枚举:部分收费状态下部分退费

string
callbackCount可选
integer

结构示例

json
{
  "id": "string",
  "clinicId": "string",
  "eventModule": 1,
  "eventType": 106,
  "eventName": "部分收费状态下部分退费",
  "callbackCount": 0,
  "eventData": {
    "id": "ffffffff00000000220e67a8116d8000",
    "status": 0,
    "type": 1,
    "created": "2022-04-06 15:12:53",
    "receivableFee": 0.01,
    "receivedFee": 0,
    "refundFee": 0.01,
    "discountFee": -10,
    "refundTime": "2022-04-07 15:12:53",
    "charger": {
      "id": "string",
      "name": "张三"
    },
    "deliveryInfo": {
      "addressProvinceName": "四川省",
      "addressCityName": "成都市",
      "addressDistrictName": "高新区",
      "addressDetail": "四川省成都市高新区xxx街道xxx",
      "deliveryName": "张三",
      "deliveryMobile": 18088888888,
      "deliveryCompany": {
        "id": 127203805890060290,
        "name": "string"
      },
      "deliveryOrderNo": 20827634879930370,
      "deliveryPayType": 1,
      "deliveryFee": 10
    },
    "doctor": {
      "id": "string",
      "mobile": 18088888888,
      "name": "张三",
      "sex": "男",
      "headImgUrl": "http://dev-img.abcyun.cn/avatar/1634032865347-986128.jpg",
      "introduction": "毕业于陆军军医大学临床医学七年制",
      "practiceImgUrl": "string",
      "doctorPageUrl": "string",
      "doctorTags": "省级名中医、市级名中医"
    },
    "patient": {
      "id": "000000fc446f4dbd989857e305b00d6s",
      "name": "张三",
      "mobile": 18080000000,
      "sex": "男",
      "birthday": "1970-08-14",
      "age": "60岁2月1天",
      "idCard": 630101200010075800,
      "idCardType": "身份证",
      "visitReason": "string"
    },
    "medicalRecord": {
      "id": "string",
      "outpatientSheetId": "ffffffff00000000094c2a500293c000",
      "chiefComplaint": "咽痛,干咳,咳痰",
      "pastHistory": "既往体健,既往有高血压",
      "familyHistory": "string",
      "presentHistory": "string",
      "physicalExamination": "string",
      "diagnosisInfos": "JX.001.001,急性上呼吸道感染,医保ICD10",
      "diagnosis": "急性上呼吸道感染",
      "doctorAdvice": "string",
      "syndrome": "string",
      "therapy": "string",
      "chineseExamination": "string",
      "wearGlassesHistory": "近视",
      "epidemiologicalHistory": "无",
      "obstetricalHistory": "string",
      "eyeExamination": {
        "items": [
          {
            "key": "string",
            "name": "string",
            "rightEyeValue": "string",
            "leftEyeValue": "string"
          }
        ]
      },
      "allergicHistory": "青霉素过敏",
      "auxiliaryExamination": "无",
      "attachments": [
        {
          "url": "https://cd-cis-static-assets-dev.oss-cn-chengdu.aliyuncs.com/123.jpg",
          "fileName": "NatGeo09.jpg",
          "fileSize": 4771201
        }
      ]
    },
    "chargeFormItems": [
      {
        "id": "0002b62eaf9c461f85ff3fedc4583a79",
        "chargeFormId": "0002b62eaf9c461f85ff3fedc4583a80",
        "productId": "e8aa6074f8c44dfe9f49e076e30265a9",
        "productName": "注射用青霉素钠",
        "status": 0,
        "unit": "支",
        "receivedFee": 40,
        "unitPrice": 10,
        "displayUnitPrice": 10,
        "displayTotalPrice": 40,
        "unitCount": 4,
        "doseCount": 1,
        "totalCount": 4,
        "productType": 1,
        "productSubType": 3,
        "sourceItemType": 0,
        "productInfo": {
          "children": [
            null
          ],
          "id": "string",
          "name": "阿莫西林",
          "shebao": {
            "nationalCode": "T001700643",
            "insuranceTypes": [
              {
                "insuranceType": null,
                "reimbursementRatio": null
              }
            ]
          },
          "disableSell": 0,
          "typeId": 1,
          "dismounting": 0,
          "typeName": "药品",
          "customTypeId": 213,
          "isSell": 1,
          "customTypeName": "抗生素",
          "inTaxRat": 13,
          "manufacturer": "拜耳",
          "outTaxRat": 13,
          "medicineNmpn": "H20000001",
          "barCode": "string",
          "pieceUnit": "支",
          "pieceNum": 10,
          "piecePrice": 10.5,
          "packageUnit": "盒",
          "packagePrice": 105,
          "shortId": "K1001",
          "specification": "1ml:0.5mg*10支/盒",
          "otcType": 1,
          "status": 1,
          "lastModified": "2022-05-13 12:22:56",
          "goodsSpu": {
            "id": "string",
            "name": "string",
            "brandName": "string",
            "material": "string"
          },
          "goodsSpec": {
            "color": "string",
            "spec": "string"
          },
          "remark": "abc",
          "dosageFormType": 0,
          "dosageFormTypeName": "string",
          "priceType": 0,
          "priceMakeupPercent": 0
        },
        "composeChildren": [
          null
        ],
        "extraInfo": "string",
        "giftFlag": 1,
        "deductDiscountInfos": [
          {
            "deductedCount": 1,
            "id": "string",
            "name": "string",
            "unitPrice": 54,
            "discountPrice": -4.5,
            "type": 0,
            "subType": 0
          }
        ],
        "discountPromotionInfos": [
          {
            "id": "string",
            "name": "string",
            "discountPrice": -4.5,
            "type": 0,
            "subType": 0
          }
        ]
      }
    ],
    "chargeTransactions": [
      {
        "id": "ffffffff00000000220e67a8116d8001",
        "payMode": 1,
        "paySubMode": 1,
        "payModeName": "ABC支付",
        "payModeDisplayName": "ABC支付-微信",
        "amount": 0,
        "created": "2022-04-06 15:12:53",
        "isRefunded": 0,
        "thirdTransactionId": 123456789,
        "thirdPartyPayInfo": {
          "transactionId": "string",
          "thirdPartyTransactionId": "string",
          "channelTransactionId": "string"
        },
        "chargeTransactionRecords": [
          {
            "id": "ffffffff00000000265ff80811ab200x",
            "transactionId": "ffffffff00000000265ff80811ab2004",
            "chargeType": 1,
            "productId": "00000000000000000000000000000001",
            "productName": "白术",
            "productType": 5,
            "productSubType": 0,
            "composeType": 0,
            "productUnit": "string",
            "productUnitCount": 1,
            "doseCount": 1,
            "totalPrice": 0,
            "discountPrice": 0,
            "created": "2022-04-06 15:12:53",
            "sceneType": 0,
            "composeChildren": [
              null
            ]
          }
        ],
        "comment": "string",
        "thirdCardId": 3836996472035590000
      }
    ],
    "chargeTransactionPaidRecords": [
      {
        "productId": "00000000000000000000000000000001",
        "productName": "白术",
        "productType": 5,
        "productSubType": 0,
        "composeType": 0,
        "productUnit": "string",
        "productUnitCount": 1,
        "doseCount": 1,
        "totalPrice": 0,
        "discountPrice": 0,
        "records": 0
      }
    ],
    "sellerId": "ffffff000000xxxxx",
    "sellerName": "张三",
    "registrationSheetId": "ffffffff0000000025b0df48001ae013",
    "patientOrderId": "ffffffff00000000220e67a8116d8000",
    "patientOrderNo": "00019691",
    "isDraft": 0,
    "isClosed": 0,
    "chargedTime": "2022-04-06 15:12:53",
    "fromSource": 1
  }
}

返回事件目录

ABC 开放平台 · 诊所管家

如有疑问,请扫码加入企业微信群咨询。

企业微信群二维码
没有匹配结果

诊所管家