Module: 修改处方^2022/7/25

Since:
  • 2022/7/25
Author:
  • zz

Methods

(inner) post /prescription_modify(medicalrecordId, resetopt, timestamp, sign, JSON)

Parameters:
Name Type Attributes Default Description
medicalrecordId String(24) 病案ID
reset Number <optional>
0 是否恢复,如果传1,将恢复处方为默认内容,默认0,reset值为1时,body可以传 []
timestamp String(10) 时间戳,值为秒值,长度10位,时间戳有效期:±10分钟
sign String(64) 签名
JSON Array.<Object> body参数
Properties
Name Type Attributes Default Description
prescriptionQuantity Number <optional>
7 中药配方剂数 2021/11/26
prescriptionName String(50) 处方名称 2021/11/20
acupointMothod String(100) <optional>
针灸手法 2021/11/20
insideOrOutside Boolean 内外服法,true:内服,false:外用 2021/11/6
other String(200) <optional>
其他疗法
takemethod String(100) <optional>
服用方法
prescription Array.<Object> 处方
Properties
Name Type Attributes Description
decoctionpieces String(50) 饮片名称
dose Number 饮片计量,单位克
method String(50) 炮制方法
knowledgebaseid String(24) <optional>
知识库饮片ID,如果比提供,接口会根据名称自动匹配知识库 2021/10/27
patentmedicines Array.<Object> <optional>
中成药列表 2021/11/2
Properties
Name Type Attributes Default Description
price Number <optional>
0 单价 2021/11/2
patentmedicine Object | String(24) 中成药信息,文本类型时为知识库ID 2021/11/20
Properties
Name Type Description
_id String(24) 中成药ID,可用于调用 获取知识库 的参数 2021/11/2
title String(50) 中成药名称 2021/11/2
group String(5) <optional>
中成药联合用药标记,相同的group为联合用药的中成药 2021/11/2
quantity Number <optional>
1 药品数量 2021/11/26
acupoints Array.<Object> <optional>
针灸指压列表
Properties
Name Type Description
acupoint Object | String(24) 针灸指压,文本类型时为知识库ID 2021/11/20
Properties
Name Type Description
_id String(24) 穴位ID,可用于调用 获取知识库 的参数
title String(50) 穴位名称
diettyerapy Array.<(Object|String(24))> <optional>
食疗列表,文本类型时为知识库ID 2021/11/20
Properties
Name Type Description
_id String(24) 食疗ID,可用于调用 获取知识库 的参数
title String(50) 食疗名称
reference Array.<(Object|String(24))> <optional>
临证参考列表,文本类型时为知识库ID 2021/11/20
Properties
Name Type Description
_id String(24) 临证参考ID,可用于调用 获取知识库 的参数
title String(50) 临证参考名称
productSyndrometype Array.<Object> <optional>
附加药品列表 2022/7/25
Properties
Name Type Attributes Default Description
productId Object | String(24) 药品对象,文本类型时为药品ID
Properties
Name Type Description
_id String(24) 药品id
doctorId String(50) <optional>
医生ID
quantity Number <optional>
1 数量
price Number <optional>
0 单价
amount Number <optional>
0 金额
memo String(200) <optional>
备注
Properties:
Name Type Description
success Boolean true为修改成功,否则失败 2021/11/20
Throws:
400 缺少JSON
400 缺少medicalrecordId
418 【甘草】反【海藻】,【硫黄】畏【朴硝】,【水银】畏【砒霜】

中药十八反和十九畏

十八反最早见于金元张子和《儒门事亲》,列述了三组相反药,分别是:甘草反甘遂、京大戟、海藻、芫花;乌头(川乌、附子、草乌)反半夏、瓜蒌(全瓜蒌、瓜蒌皮、瓜蒌仁、天花粉)、贝母(川贝、浙贝)、白蔹、白芨;藜芦反人参、沙参(南、北)、丹参、玄参、苦参、细辛、芍药(赤芍、白芍)。

十九畏最早见于明朝刘纯《医经小学》列述了九组十九味相反药,具体是:硫黄畏朴硝,水银畏砒霜,狼毒畏密陀僧,巴豆畏牵牛,丁香畏郁金,川乌、草乌畏犀角,牙硝畏三棱,官桂畏石脂,人参畏五灵脂。

Examples
请求示例:/prescription_modify?medicalrecordId=5e2eb1071fbabd12ec402b48&timestamp=1570430721&sign=391B6B4406E25528BA411788373825FB4CA89DC90BA79FDB532E75EA1DF8D2BE
第一种请求JSON参数(推荐)
[{
  "takemethod": "每日一副,分两次服用。",
  "insideOrOutside": true,
  "acupointMothod": "针用泻法",
  "other": "<p>偏方:</p><p>①薏苡仁、白扁豆各30克,粳米1000克,共煮成...",
  "prescriptionName": "新加香薷饮加减"
  "reference": ["5f04863395883a2a915841ad"],
  "diettyerapy": ["5e32726e20a8e7777c66fda5", "5e32726e20a8e7777c66feba"],
  "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"
  }],
  "productSyndrometype":[{
    "amount": 316,
    "doctorId": "5eedbfcc56cc3414f6e04577",
    "price": 158,
    "productId": "62d9403e716c8100112f3dc0",
    "images": [{
      "height": 600,
      "name": "9b97a83390ed074d.jpg",
      "size": 34728,
      "url": "https://img13.360buyimg.com/n1/jfs/t1/203211/34/24344/226543/62ad9f6aE0db0ebaa/9b97a83390ed074d.jpg",
      "width": 500,
    }],
    "productSyndrometypeId": "62de45175f7b9800113871ff",
    "quantity": 2
  }],
  reference: []
}]
第二种请求JSON参数
[{
  "insideOrOutside": true,
  "prescriptionName": "新加香薷饮加减"
  "takemethod": "每日一副,分两次服用。",
  "acupointMothod": "针用泻法",
  "other": "<p>偏方:</p><p>①薏苡仁、白扁豆各30克,粳米1000克,共煮成...",
  "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": "柴连口服液"
      }
  }],
  "productSyndrometype":[{
    "amount": 316,
    "doctorId": "5eedbfcc56cc3414f6e04577",
    "price": 158,
    "productId": {
      "content": "90粒/瓶 青少年学生深海鱼油记忆力保健食品不能替代药品",
      "title": "汤成倍健鱼油牛磺酸锌软胶囊",
      "_id": "62d9403e716c8100112f3dc0"
    },
    "images": [{
      "height": 600,
      "name": "9b97a83390ed074d.jpg",
      "size": 34728,
      "url": "https://img13.360buyimg.com/n1/jfs/t1/203211/34/24344/226543/62ad9f6aE0db0ebaa/9b97a83390ed074d.jpg",
      "width": 500,
    }],
    "productSyndrometypeId": "62de45175f7b9800113871ff",
    "quantity": 2
  }],
}]
返回示例:
{
"success": true
}