接口文档 / 门诊接口

创建门诊单

POST/api/v2/open-agency/outpatient在线调试

请求参数

名称说明类型
Body 参数
departmentId必填

医生科室ID

string
doctorId必填

医生ID

string
patientId必填

患者ID

string
operatorId必填

操作人ID

示例:00000000000000000000000000000000

string
revisitStatus可选

初复诊状态 1:初诊 2:复诊

示例:1

integer
shebaoChargeType可选

门诊费别 1:自费门诊 2:医保普通门诊 3:医保慢特病门诊

示例:1

integer
registrationFee可选

挂号费金额,不传默认0

示例:10

number

请求示例

json
{
  "departmentId": "string",
  "doctorId": "string",
  "patientId": "string",
  "operatorId": "00000000000000000000000000000000",
  "medicalRecord": {
    "id": 0,
    "chiefComplaint": "咽痛,干咳,咳痰",
    "pastHistory": "既往体健,既往有高血压",
    "allergicHistory": "鸡蛋过敏,青霉素过敏",
    "familyHistory": "string",
    "presentHistory": "string",
    "physicalExamination": "string",
    "diagnosis": "急性上呼吸道感染",
    "doctorAdvice": "string",
    "syndrome": "string",
    "therapy": "string",
    "chineseExamination": "string",
    "obstetricalHistory": "string"
  },
  "prescriptionChineseForms": [
    {
      "id": 0,
      "pharmacyNo": 0,
      "isTotalPriceChanged": 1,
      "specification": "中药饮片",
      "doseCount": 3,
      "expectedTotalPrice": 10,
      "prescriptionFormItems": [
        {
          "id": "483ac61f811640f5849a3d3aabceea58",
          "specialRequirement": "先煎",
          "chargeType": 1,
          "productId": "483ac61f811640f5849a3d3aabceea58",
          "productShortId": 1907765200,
          "unitCount": 2,
          "verifySignatures": [
            {
              "productShortId": 1907765200,
              "productId": "483ac61f811640f5849a3d3aabceea58",
              "productName": "三七",
              "status": 1
            }
          ],
          "expectedUnitPrice": 5,
          "expectedTotalPrice": 5,
          "useDismounting": 0
        }
      ],
      "usage": "煎服",
      "dailyDosage": "1日1剂",
      "freq": "1日6次",
      "usageLevel": "每次60ml",
      "usageDays": "约服35天",
      "requirement": "饭前服用",
      "processInfo": {
        "usageType": 0,
        "usageSubType": 0,
        "unitCount": 1,
        "totalCount": 2,
        "price": 0,
        "remark": "string"
      }
    }
  ],
  "prescriptionWesternForms": [
    {
      "id": 0,
      "isTotalPriceChanged": 1,
      "expectedTotalPrice": 10,
      "prescriptionFormItems": [
        {
          "ast": 1,
          "id": "483ac61f811640f5849a3d3aabceea58",
          "productId": "483ac61f811640f5849a3d3aabceea58",
          "usage": "含服用",
          "freq": "qd",
          "productShortId": 1907765200,
          "dosage": 3,
          "unitCount": 2,
          "dosageUnit": "片",
          "expectedUnitPrice": 5,
          "days": 5,
          "expectedTotalPrice": 5,
          "specialRequirement": "首次加倍",
          "useDismounting": 0,
          "pharmacyNo": 0
        }
      ]
    }
  ],
  "prescriptionInfusionForms": [
    {
      "id": 0,
      "usage": "静脉滴注",
      "freq": "qd",
      "isTotalPriceChanged": 1,
      "days": 5,
      "expectedTotalPrice": 10,
      "ivgtt": 50,
      "prescriptionFormItems": [
        {
          "ast": 1,
          "id": "483ac61f811640f5849a3d3aabceea58",
          "dosage": 3,
          "productId": "483ac61f811640f5849a3d3aabceea58",
          "dosageUnit": "片",
          "productShortId": 1907765200,
          "specialRequirement": "首次加倍",
          "unitCount": 2,
          "expectedUnitPrice": 5,
          "pharmacyNo": 0,
          "expectedTotalPrice": 5,
          "useDismounting": 0
        }
      ],
      "ivgttUnit": "滴/分钟"
    }
  ],
  "prescriptionExternalForms": [
    {
      "id": 0,
      "usageType": 1,
      "isTotalPriceChanged": 1,
      "usageSubType": 1,
      "expectedTotalPrice": 10,
      "prescriptionFormItems": [
        {
          "acupoints": [
            {
              "name": "string",
              "position": "左|右|双|单|-",
              "acupointType": 0
            }
          ],
          "id": "483ac61f811640f5849a3d3aabceea58",
          "dosage": 12,
          "productId": "483ac61f811640f5849a3d3aabceea58",
          "dosageUnit": "次",
          "productShortId": 1907765200,
          "freq": "1日1次",
          "unitCount": 2,
          "expectedUnitPrice": 5,
          "specialRequirement": "贴敷30分钟",
          "expectedTotalPrice": 5,
          "unitCountType": 0,
          "unit": "部位",
          "useDismounting": 0
        }
      ]
    }
  ],
  "productForms": [
    {
      "id": 0,
      "sourceFromType": 2,
      "productFormItems": [
        {
          "id": 0,
          "pharmacyNo": 0,
          "productId": "483ac61f811640f5849a3d3aabceea58",
          "productShortId": 1907765200,
          "freq": "每日2次",
          "dailyDosage": 3,
          "days": 1,
          "unitCount": 2,
          "unit": "次",
          "remark": "穴位经渠;",
          "expectedUnitPrice": 5,
          "expectedTotalPrice": 5,
          "useDismounting": 0,
          "toothNos": [
            12,
            23
          ]
        }
      ]
    }
  ],
  "revisitStatus": 1,
  "shebaoChargeType": 1,
  "registrationFee": 10
}

响应参数

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

数据

object
id必填

门诊单ID

string
clinicId必填

门店ID

string
patientOrderId可选

就诊单ID

string
patientOrderNo可选

诊号

示例:00019691

string
departmentId可选

就诊科室ID

string
departmentName可选

就诊科室名称

string
doctorId可选

就诊医生ID

string
doctorName可选

就诊医生名字

string
created必填

创建时间

格式:date-time

string
diagnosedDate可选

首次完成诊断时间

格式:date-time

string
status必填

状态 0:未诊 1:已诊

示例:0

integer
statusName必填

状态名称

string
revisitStatus可选

初复诊标识 1:初诊 2:复诊

示例:1

integer

响应示例

json
{
  "data": {
    "id": "string",
    "clinicId": "string",
    "patientOrderId": "string",
    "patientOrderNo": "00019691",
    "departmentId": "string",
    "departmentName": "string",
    "doctorId": "string",
    "doctorName": "string",
    "created": "2026-01-01T00:00:00Z",
    "diagnosedDate": "2026-01-01T00:00:00Z",
    "status": 0,
    "statusName": "string",
    "revisitStatus": 1,
    "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
        }
      ]
    },
    "prescriptionChineseForms": [
      {
        "id": "string",
        "prescriptionFormItems": [
          {
            "id": "string",
            "verifySignatures": [
              {
                "productId": null,
                "productName": null,
                "status": null
              }
            ],
            "prescriptionFormId": "string",
            "productId": "string",
            "type": 1,
            "subType": 1,
            "name": "string",
            "specification": "string",
            "manufacturer": "string",
            "usage": "string",
            "ivgtt": 0,
            "ivgttUnit": "string",
            "freq": "string",
            "dosage": "string",
            "dosageUnit": "string",
            "days": 0,
            "specialRequirement": "string",
            "isDismounting": 0,
            "unitCount": 0,
            "unit": "string",
            "unitPrice": 0,
            "groupId": 0,
            "isAst": 0,
            "astResult": {
              "result": "阴性",
              "description": "执行人:王萍,执行时间:2022-04-13"
            },
            "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
            }
          }
        ],
        "type": 1,
        "specification": "string",
        "doseCount": 0,
        "dailyDosage": "string",
        "usage": "string",
        "isUsageOut": 0,
        "freq": "string",
        "requirement": "string",
        "usageLevel": "string"
      }
    ],
    "prescriptionWesternForms": [
      {
        "id": "string",
        "prescriptionFormItems": [
          {
            "id": "string",
            "prescriptionFormId": "string",
            "productId": "string",
            "type": 1,
            "subType": 1,
            "name": "string",
            "specification": "string",
            "manufacturer": "string",
            "usage": "string",
            "ivgtt": 0,
            "ivgttUnit": "string",
            "freq": "string",
            "dosage": "string",
            "dosageUnit": "string",
            "days": 0,
            "specialRequirement": "string",
            "isDismounting": 0,
            "unitCount": 0,
            "unit": "string",
            "unitPrice": 0,
            "groupId": 0,
            "isAst": 0,
            "astResult": {
              "result": "阴性",
              "description": "执行人:王萍,执行时间:2022-04-13"
            },
            "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
            }
          }
        ],
        "type": 1,
        "specification": "string",
        "doseCount": 0,
        "dailyDosage": "string",
        "usage": "string",
        "isUsageOut": 0,
        "freq": "string",
        "requirement": "string",
        "usageLevel": "string"
      }
    ],
    "prescriptionInfusionForms": [
      {
        "id": "string",
        "prescriptionFormItems": [
          {
            "id": "string",
            "prescriptionFormId": "string",
            "productId": "string",
            "type": 1,
            "subType": 1,
            "name": "string",
            "specification": "string",
            "manufacturer": "string",
            "usage": "string",
            "ivgtt": 0,
            "ivgttUnit": "string",
            "freq": "string",
            "dosage": "string",
            "dosageUnit": "string",
            "days": 0,
            "specialRequirement": "string",
            "isDismounting": 0,
            "unitCount": 0,
            "unit": "string",
            "unitPrice": 0,
            "groupId": 0,
            "isAst": 0,
            "astResult": {
              "result": "阴性",
              "description": "执行人:王萍,执行时间:2022-04-13"
            },
            "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
            }
          }
        ],
        "type": 1,
        "specification": "string",
        "doseCount": 0,
        "dailyDosage": "string",
        "usage": "string",
        "isUsageOut": 0,
        "freq": "string",
        "requirement": "string",
        "usageLevel": "string"
      }
    ],
    "prescriptionExternalForms": [
      {
        "id": "string",
        "prescriptionFormItems": [
          {
            "id": "string",
            "prescriptionFormId": "string",
            "productId": "string",
            "type": 1,
            "subType": 1,
            "name": "string",
            "specification": "string",
            "manufacturer": "string",
            "usage": "string",
            "ivgtt": 0,
            "ivgttUnit": "string",
            "freq": "string",
            "dosage": "string",
            "dosageUnit": "string",
            "days": 0,
            "specialRequirement": "string",
            "isDismounting": 0,
            "unitCount": 0,
            "unit": "string",
            "unitPrice": 0,
            "groupId": 0,
            "isAst": 0,
            "astResult": {
              "result": "阴性",
              "description": "执行人:王萍,执行时间:2022-04-13"
            },
            "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
            }
          }
        ],
        "type": 1,
        "specification": "string",
        "doseCount": 0,
        "dailyDosage": "string",
        "usage": "string",
        "isUsageOut": 0,
        "freq": "string",
        "requirement": "string",
        "usageLevel": "string"
      }
    ],
    "productForms": [
      {
        "id": "string",
        "type": 2,
        "productFormItems": [
          {
            "id": "string",
            "productFormId": "string",
            "productId": "string",
            "name": "string",
            "unitCount": 0,
            "unit": "string",
            "unitPrice": 0,
            "isDismounting": 0,
            "type": 1,
            "subType": 0,
            "days": 0,
            "dailyDosage": 0,
            "freq": "每日2次",
            "remark": "小心使用",
            "toothNos": [
              12,
              23
            ]
          }
        ]
      }
    ]
  },
  "error": null
}

业务失败包装示意

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

查看 HTTP 状态与业务码排查

ABC 开放平台 · 诊所管家

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

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

诊所管家