POST api/Mobile/AddMedicalHistory
添加病历
Request Information
URI Parameters
None.
Body Parameters
病历信息
MedicalHistory| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
主键 |
string |
None. |
| OpenId |
用户openid |
string |
None. |
| OfficeAccount |
公众号Id |
string |
None. |
| IsSelf |
问诊用户(10-本人 20-他人) |
integer |
None. |
| Name |
姓名 |
string |
None. |
| Gender |
性别(10-男 20-女) |
integer |
None. |
| IsMarried |
婚否 |
boolean |
None. |
| IDCard |
身份证号 |
string |
None. |
| Birthday |
出生日期 |
date |
None. |
| Age |
年龄 |
integer |
None. |
| Mobile |
手机号码 |
string |
None. |
| Tel |
固定电话 |
string |
None. |
| Weight |
体重 |
decimal number |
None. |
| FollowMedical |
病史列表 |
string |
None. |
| OtherInfo |
其他病史 |
string |
None. |
| CreateTime | date |
None. |
|
| SourceType |
来源(10:公众号;20:小程序;30:PC端,10-100为云谷系统) |
integer |
None. |
| DoctId |
医生Id |
integer |
None. |
| DoctName |
医生名字 |
string |
None. |
| Status |
状态(10-已提交 20-已提示医生 30-等待中 40-问诊中 50-取消 60-切换医生) |
integer |
None. |
| CorpCode |
药店编号 |
string |
None. |
| CorpName |
药店名称 |
string |
None. |
| PrimaryDiagnosis |
初步诊断 |
string |
None. |
| IsAllergy |
是否过敏(10-过敏) |
integer |
None. |
| Allergy |
过敏史 |
string |
None. |
| PastHistory |
既往史 |
string |
None. |
| OrgID |
机构ID |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"OpenId": "sample string 2",
"OfficeAccount": "sample string 3",
"IsSelf": 1,
"Name": "sample string 4",
"Gender": 1,
"IsMarried": true,
"IDCard": "sample string 5",
"Birthday": "2025-12-11T23:21:35.0641493+08:00",
"Age": 1,
"Mobile": "sample string 6",
"Tel": "sample string 7",
"Weight": 1.0,
"FollowMedical": "sample string 8",
"OtherInfo": "sample string 9",
"CreateTime": "2025-12-11T23:21:35.0641493+08:00",
"SourceType": 1,
"DoctId": 1,
"DoctName": "sample string 10",
"Status": 1,
"CorpCode": "sample string 11",
"CorpName": "sample string 12",
"PrimaryDiagnosis": "sample string 13",
"IsAllergy": 1,
"Allergy": "sample string 14",
"PastHistory": "sample string 15",
"OrgID": 1
}
application/xml, text/xml
Sample:
<MedicalHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YCloud.Rcp.Entity.RcpWeb"> <Age>1</Age> <Allergy>sample string 14</Allergy> <Birthday>2025-12-11T23:21:35.0641493+08:00</Birthday> <CorpCode>sample string 11</CorpCode> <CorpName>sample string 12</CorpName> <CreateTime>2025-12-11T23:21:35.0641493+08:00</CreateTime> <DoctId>1</DoctId> <DoctName>sample string 10</DoctName> <FollowMedical>sample string 8</FollowMedical> <Gender>1</Gender> <IDCard>sample string 5</IDCard> <Id>sample string 1</Id> <IsAllergy>1</IsAllergy> <IsMarried>true</IsMarried> <IsSelf>1</IsSelf> <Mobile>sample string 6</Mobile> <Name>sample string 4</Name> <OfficeAccount>sample string 3</OfficeAccount> <OpenId>sample string 2</OpenId> <OrgID>1</OrgID> <OtherInfo>sample string 9</OtherInfo> <PastHistory>sample string 15</PastHistory> <PrimaryDiagnosis>sample string 13</PrimaryDiagnosis> <SourceType>1</SourceType> <Status>1</Status> <Tel>sample string 7</Tel> <Weight>1</Weight> </MedicalHistory>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
添加病历
ResponseModelOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| rows | boolean |
None. |
|
| total | integer |
None. |
|
| errorMsg | string |
None. |
|
| errorCode | string |
None. |
|
| records | integer |
None. |
|
| page | integer |
None. |
|
| extend | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"rows": true,
"total": 2,
"errorMsg": "sample string 3",
"errorCode": "sample string 4",
"records": 5,
"page": 1,
"extend": {}
}
application/xml, text/xml
Sample:
<ResponseModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YCloud.Rcp.Entity.WebResponse"> <errorCode>sample string 4</errorCode> <errorMsg>sample string 3</errorMsg> <extend /> <page>1</page> <records>5</records> <rows>true</rows> <total>2</total> </ResponseModelOfboolean>