- Since:
- 2022/7/25
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
|
Properties:
Name | Type | Description |
---|---|---|
success |
Boolean | true为修改成功,否则失败 2021/11/20 |
Throws:
400 缺少JSON
400 缺少medicalrecordId
418 【甘草】反【海藻】,【硫黄】畏【朴硝】,【水银】畏【砒霜】
十八反最早见于金元张子和《儒门事亲》,列述了三组相反药,分别是:甘草反甘遂、京大戟、海藻、芫花;乌头(川乌、附子、草乌)反半夏、瓜蒌(全瓜蒌、瓜蒌皮、瓜蒌仁、天花粉)、贝母(川贝、浙贝)、白蔹、白芨;藜芦反人参、沙参(南、北)、丹参、玄参、苦参、细辛、芍药(赤芍、白芍)。
十九畏最早见于明朝刘纯《医经小学》列述了九组十九味相反药,具体是:硫黄畏朴硝,水银畏砒霜,狼毒畏密陀僧,巴豆畏牵牛,丁香畏郁金,川乌、草乌畏犀角,牙硝畏三棱,官桂畏石脂,人参畏五灵脂。
400 缺少medicalrecordId
418 【甘草】反【海藻】,【硫黄】畏【朴硝】,【水银】畏【砒霜】
中药十八反和十九畏
十八反最早见于金元张子和《儒门事亲》,列述了三组相反药,分别是:甘草反甘遂、京大戟、海藻、芫花;乌头(川乌、附子、草乌)反半夏、瓜蒌(全瓜蒌、瓜蒌皮、瓜蒌仁、天花粉)、贝母(川贝、浙贝)、白蔹、白芨;藜芦反人参、沙参(南、北)、丹参、玄参、苦参、细辛、芍药(赤芍、白芍)。
十九畏最早见于明朝刘纯《医经小学》列述了九组十九味相反药,具体是:硫黄畏朴硝,水银畏砒霜,狼毒畏密陀僧,巴豆畏牵牛,丁香畏郁金,川乌、草乌畏犀角,牙硝畏三棱,官桂畏石脂,人参畏五灵脂。
Examples
请求示例:/prescription_modify?medicalrecordId=5e2eb1071fbabd12ec402b48×tamp=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
}