事件订阅 / 发药

更新发药单信息

修改发药单快递、加工、调配、审核等信息时,向第三方应用进行推送。

字段值说明
eventModule5事件模块编号
eventType501具体事件编号

事件结构

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

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

string
clinicId可选

授权门店 ID

string
eventModule可选

枚举:5

integer
eventType可选

枚举:501

integer
eventName可选

枚举:更新发药单信息

string
callbackCount可选
integer

结构示例

json
{
  "id": "string",
  "clinicId": "string",
  "eventModule": 5,
  "eventType": 501,
  "eventName": "更新发药单信息",
  "callbackCount": 0,
  "eventData": {
    "clinicId": "ffffffff000000002620d6280d751234",
    "id": "ffffffff000000002620d6280d751234",
    "sourceSheetId": "ffffffff000000002620d6280d751234",
    "outpatientSheetId": "ffffffff00000000352d2a270fd78000",
    "doctorId": "ffffffff0000000022e9e9580179a123",
    "patientOrderId": "ffffffff0000000022e9e9580179a123",
    "patientOrderNo": "诊号:00003447",
    "diagnosedDate": "2022-07-14 12:00:00",
    "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
        }
      ]
    },
    "patientInfo": {
      "id": "000000fc446f4dbd989857e305b00d6s",
      "name": "张三",
      "mobile": 18080000000,
      "sex": "男",
      "birthday": "1970-08-14",
      "age": "60岁2月1天",
      "idCard": 630101200010075800,
      "idCardType": "身份证",
      "visitReason": "string"
    },
    "deliveryInfo": {
      "addressProvinceName": "四川省",
      "addressCityName": "成都市",
      "addressDistrictName": "高新区",
      "addressDetail": "四川省成都市高新区xxx街道xxx",
      "deliveryName": "张三",
      "deliveryMobile": 18088888888,
      "deliveryCompany": {
        "id": 127203805890060290,
        "name": "string"
      },
      "deliveryOrderNo": 20827634879930370,
      "deliveryPayType": 1,
      "deliveryFee": 10
    },
    "deliveredStatus": 0,
    "deliveryType": 0,
    "status": 0,
    "statusName": "未发药",
    "dispensedBy": "ffffffff000000002622cbd801e7777",
    "dispensedByName": "张三",
    "dispensedTime": "2022-07-14 12:00:00",
    "created": "2022-07-14 12:00:00",
    "pharmacy": {
      "no": 0
    },
    "netIncomeFee": 43.75,
    "doctor": {
      "id": "string",
      "name": "string"
    },
    "department": {
      "id": "ffffffff0000000006dddfe002e22000",
      "name": "儿保科室",
      "type": 1,
      "isClinical": 1,
      "mainMedicalName": "儿科",
      "mainMedicalCode": 50,
      "secondMedicalName": "小儿呼吸",
      "secondMedicalCode": 5001,
      "customId": 5001
    },
    "isShebaoPay": 0,
    "dispensingForms": [
      {
        "id": "ffffffff00000000264a75300d759999",
        "outpatientFormId": "ffffffff00000000352f50a8cfe00000",
        "dispseneFormType": 0,
        "numberOfHerbs": 0,
        "usageInfo": {
          "usage": "煎服",
          "isUsageOut": 0,
          "freq": "1日3次",
          "medicineRequirement": "先煎",
          "doseCount": 3,
          "dailyDosage": "1日3剂",
          "requirement": "饭前服用",
          "usageLevel": "每次150ml",
          "processUsage": "机器煎药(普通)",
          "processRemark": "加工备注信息",
          "usageDays": "约服30天",
          "processBagUnitCount": 3,
          "totalProcessCount": 9,
          "isDecoction": 0
        },
        "totalPrice": 30.23,
        "vendorId": "ffffffff0000000034e6cae04206c09c",
        "vendorName": "供应商A",
        "dispensingFormItems": [
          {
            "id": "ffffffff00000000264a75300d757777",
            "sourceFormItemId": "ffffffff00000000264a75300d757778",
            "status": 1,
            "productId": "02bb5357a5df05b65d028f8868472222",
            "productName": "罗红霉素胶囊",
            "unit": "12g/剂*3剂 的g",
            "unitCount": "12g/剂*3剂 的12",
            "doseCount": "12g/剂*3剂 的3 (同发药处方上的剂数相同)",
            "totalCount": "12g/剂*3剂 的36=12*3 (totalCount = unitCount * doseCount)",
            "usageInfo": {
              "usage": "煎服",
              "isUsageOut": 0,
              "freq": "1日3次",
              "medicineRequirement": "先煎",
              "doseCount": 3,
              "dailyDosage": "1日3剂",
              "requirement": "饭前服用",
              "usageLevel": "每次150ml",
              "processUsage": "机器煎药(普通)",
              "processRemark": "加工备注信息",
              "usageDays": "约服30天",
              "processBagUnitCount": 3,
              "totalProcessCount": 9,
              "isDecoction": 0
            },
            "productInfo": {
              "children": [
                null
              ],
              "id": "string",
              "name": "阿莫西林",
              "shebao": {
                "nationalCode": null,
                "insuranceTypes": 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": null,
                "name": null,
                "brandName": null,
                "material": null
              },
              "goodsSpec": {
                "color": null,
                "spec": null
              },
              "remark": "abc",
              "dosageFormType": 0,
              "dosageFormTypeName": "string",
              "priceType": 0,
              "priceMakeupPercent": 0
            },
            "totalPrice": 10.3,
            "dispensingBatches": [
              {
                "stockLogId": null,
                "action": null,
                "stockId": null,
                "supplier": null,
                "batchId": null,
                "batchNo": null,
                "productionDate": null,
                "expiryDate": null,
                "packageCount": null,
                "piecePrice": null,
                "packagePrice": null,
                "pieceCount": null,
                "packageCostPrice": null,
                "costPrice": null,
                "salePrice": null,
                "stockInOutDetailId": null,
                "created": null
              }
            ],
            "composeChildren": [
              {
                "id": null,
                "sourceFormItemId": null,
                "status": null,
                "productId": null,
                "productName": null,
                "unit": null,
                "unitCount": null,
                "doseCount": null,
                "totalCount": null,
                "usageInfo": null,
                "productInfo": null,
                "totalPrice": null,
                "dispensingBatches": null,
                "composeChildren": null,
                "traceableCodeList": null
              }
            ],
            "traceableCodeList": [
              {
                "no": null,
                "type": null,
                "hisPieceCount": null,
                "hisPackageCount": null,
                "count": null
              }
            ]
          }
        ],
        "compoundInfo": {
          "compoundBy": "ffffffff00000000264a75300d757777",
          "compoundByName": "张三",
          "compoundByHandSign": "http://www.baidu.com",
          "compoundTime": "2025-01-09 17:20:00"
        },
        "auditInfo": {
          "auditBy": "ffffffff00000000264a75300d757777",
          "auditByName": "张三",
          "auditByHandSign": "http://www.baidu.com",
          "auditTime": "2025-01-09 17:20:00"
        }
      }
    ]
  }
}

返回事件目录

ABC 开放平台 · 诊所管家

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

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

诊所管家