接口文档 / 收费接口

通过就诊单ID查询收费单

GET/api/v2/open-agency/charge/by-patient-order-id/{patientOrderId}在线调试

响应参数

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

数据

object

响应示例

json
{
  "data": {
    "chargeSheets": [
      {
        "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": null,
                "name": null,
                "rightEyeValue": null,
                "leftEyeValue": null
              }
            ]
          },
          "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": 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
            },
            "composeChildren": [
              null
            ],
            "extraInfo": "string",
            "giftFlag": 1,
            "deductDiscountInfos": [
              {
                "deductedCount": null,
                "id": null,
                "name": null,
                "unitPrice": null,
                "discountPrice": null,
                "type": null,
                "subType": null
              }
            ],
            "discountPromotionInfos": [
              {
                "id": null,
                "name": null,
                "discountPrice": null,
                "type": null,
                "subType": null
              }
            ]
          }
        ],
        "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": null,
                "transactionId": null,
                "chargeType": null,
                "productId": null,
                "productName": null,
                "productType": null,
                "productSubType": null,
                "composeType": null,
                "productUnit": null,
                "productUnitCount": null,
                "doseCount": null,
                "totalPrice": null,
                "discountPrice": null,
                "created": null,
                "sceneType": null,
                "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
      }
    ]
  },
  "error": null
}

业务失败包装示意

json
{
  "data": null,
  "error": {
    "code": 11003,
    "message": "不支持的授权类型{grantType}"
  }
}

查看 HTTP 状态与业务码排查

ABC 开放平台 · 诊所管家

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

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

诊所管家