- Since:
- 2021/11/20
 
Methods
(inner) post /treatmentplan_template_modify(timestamp, sign, templateId, JSON)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| timestamp | String(10) | 时间戳,值为秒值,长度10位,时间戳有效期:±10分钟 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sign | String(64) | 签名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| templateId | String(24) | 中药配方模板ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| JSON | Object | body参数 Properties
 | 
Properties:
| Name | Type | Description | 
|---|---|---|
| success | Boolean | true为成功,否则失败 | 
Throws:
    
        400 缺少templateId
400 缺少diseaseId
400 缺少doctorId
400 缺少title
    
    400 缺少diseaseId
400 缺少doctorId
400 缺少title
Examples
请求示例:/treatmentplan_template_modify?templateId=617f939587cc726f80d59af6&sign=29B95FBA8B10FEDFDCD4C9BC172F31AFA687DFA6B9241E69F3E59E873B6CF924×tamp=1570428513第一种请求JSON参数(推荐)
{
  "insideOrOutside": true,
  "acupointMothod": "针用泻法",
  "other": "<p>偏方:</p><p>①薏苡仁、白扁豆各30克,粳米1000克,共煮成...",
  "prescriptionName": "新加香薷饮",
  "title": "暑湿",
  "diseaseId": "5e3815da27ddaa24a8b0c74b"
  "takemethod": "每日一副,分两次服用。",
  "diettyerapy": ["5e32726e20a8e7777c66fda5", "5e32726e20a8e7777c66feba"],
  "reference": ["5f04863395883a2a915841ad"],
  "acupoints": [{
    "acupoint": "5e31908df90d9a74e4678b42"
  }, {
    "acupoint": "5e31908ef90d9a74e4678c8a"
  }, {
    "acupoint": "5e31908ef90d9a74e4678bd7"
  }, {
    "acupoint": "5e31908ef90d9a74e4678bf5"
  }, {
    "acupoint": "5e31908ef90d9a74e4678b75"
  }, {
    "acupoint": "5e31908ef90d9a74e4678ba2"
  }],
  "prescription": [{
    "price": 0.054,
    "decoctionpieces": "香薷",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b03137"
  }, {
    "price": 0,
    "decoctionpieces": "鲜扁豆花",
    "dose": 15
  }, {
    "price": 0.054,
    "decoctionpieces": "厚朴",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b03255"
  }, {
    "price": 0.8,
    "decoctionpieces": "金银花",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b03200"
  }, {
    "price": 0.165,
    "decoctionpieces": "连翘",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b031c1"
  }, {
    "price": 0.099,
    "decoctionpieces": "藿香",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b0314c"
  }, {
    "price": 0.054,
    "decoctionpieces": "佩兰",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b0320d"
  }],
  "patentmedicines": [{
    "price": 0,
    "patentmedicine": "5e37726a246ef76200b3cd36"
  }, {
    "price": 0,
    "patentmedicine": "5e377266246ef76200b3c235"
  }, {
    "price": 0,
    "patentmedicine": "5e37726e246ef76200b3d84b"
  }, {
    "price": 0,
    "patentmedicine": "5e377267246ef76200b3c274"
  }],
}第二种请求JSON参数
{
  "insideOrOutside": true,
  "acupointMothod": "针用泻法",
  "other": "<p>偏方:</p><p>①薏苡仁、白扁豆各30克,粳米1000克,共煮成...",
  "prescriptionName": "新加香薷饮",
  "title": "暑湿",
  "diseaseId": "5e3815da27ddaa24a8b0c74b"
  "takemethod": "每日一副,分两次服用。",
  "diettyerapy": [{
    "_id": "5e32726e20a8e7777c66fda5",
    "title": "香薷饮【感冒】"
  }, {
    "_id": "5e32726e20a8e7777c66feba",
    "title": "藿香饮【感冒】"
  }],
  "reference": [{
      "_id": "5f04863395883a2a915841ad",
      "title": "支气管炎【专科】"
    }],
  "acupoints": [{
    "acupoint": {
      "_id": "5e31908df90d9a74e4678b42",
      "title": "孔最"
    }
  }, {
    "acupoint": {
      "_id": "5e31908ef90d9a74e4678c8a",
      "title": "合谷"
    }
  }, {
    "acupoint": {
      "_id": "5e31908ef90d9a74e4678bd7",
      "title": "中脘"
    }
  }, {
    "acupoint": {
      "_id": "5e31908ef90d9a74e4678bf5",
      "title": "足三里"
    }
  }, {
    "acupoint": {
      "_id": "5e31908ef90d9a74e4678b75",
      "title": "支沟"
    }
  }, {
    "acupoint": {
      "_id": "5e31908ef90d9a74e4678ba2",
      "title": "天枢"
    }
  }],
  "prescription": [{
    "price": 0,
    "decoctionpieces": "鲜扁豆花",
    "dose": 15
  }, {
    "price": 0.054,
    "decoctionpieces": "香薷",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b03137"
  }, {
    "price": 0.054,
    "decoctionpieces": "厚朴",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b03255"
  }, {
    "price": 0.8,
    "decoctionpieces": "金银花",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b03200"
  }, {
    "price": 0.165,
    "decoctionpieces": "连翘",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b031c1"
  }, {
    "price": 0.099,
    "decoctionpieces": "藿香",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b0314c"
  }, {
    "price": 0.054,
    "decoctionpieces": "佩兰",
    "dose": 9,
    "knowledgebaseid": "5e31a2b6e645d57634b0320d"
  }],
  "patentmedicines": [{
    "price": 0,
    "patentmedicine": {
      "_id": "5e37726a246ef76200b3cd36",
      "title": "藿香正气软胶囊"
    }
  }, {
    "price": 0,
    "patentmedicine": {
      "_id": "5e377266246ef76200b3c235",
      "title": "保济丸"
    }
  }, {
    "price": 0,
    "patentmedicine": {
      "_id": "5e37726e246ef76200b3d84b",
      "title": "十滴水"
    }
  }, {
    "price": 0,
    "patentmedicine": {
      "_id": "5e377267246ef76200b3c274",
      "title": "柴连口服液"
    }
  }],
}
返回示例:
{
  "success": true
}