POST api/FamilyHistories
Creates a new family history or updates an existent family history's information.
Request Information
URI Parameters
None.
Body Parameters
FamilyHistoryModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Disease |
Indicates disease name of the family history (Required). |
string |
None. |
| IsDefault |
Indicates whether this family history is default or not (Required). |
boolean |
None. |
| SortOrder |
Indicates the sort order of this family history in the list (Required). |
integer |
None. |
| Id |
Unique ID of the model in the portal (Read only). |
globally unique identifier |
None. |
| ExternalId |
Unique ID of the model on integrating system (Required). |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"disease": "sample string 1",
"isDefault": true,
"sortOrder": 3,
"id": "dd770f8b-57a7-478d-ae75-3ac3cc6a4bca",
"externalId": "sample string 5"
}
application/xml, text/xml
Sample:
<FamilyHistoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.FamilyHistories"> <ExternalId xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">sample string 5</ExternalId> <Id xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">dd770f8b-57a7-478d-ae75-3ac3cc6a4bca</Id> <Disease>sample string 1</Disease> <IsDefault>true</IsDefault> <SortOrder>3</SortOrder> </FamilyHistoryModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
FamilyHistoryModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Disease |
Indicates disease name of the family history (Required). |
string |
None. |
| IsDefault |
Indicates whether this family history is default or not (Required). |
boolean |
None. |
| SortOrder |
Indicates the sort order of this family history in the list (Required). |
integer |
None. |
| Id |
Unique ID of the model in the portal (Read only). |
globally unique identifier |
None. |
| ExternalId |
Unique ID of the model on integrating system (Required). |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"disease": "sample string 1",
"isDefault": true,
"sortOrder": 3,
"id": "aa27fac2-95a4-4dfa-a2cd-a44ff6def463",
"externalId": "sample string 5"
}
application/xml, text/xml
Sample:
<FamilyHistoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.FamilyHistories"> <ExternalId xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">sample string 5</ExternalId> <Id xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">aa27fac2-95a4-4dfa-a2cd-a44ff6def463</Id> <Disease>sample string 1</Disease> <IsDefault>true</IsDefault> <SortOrder>3</SortOrder> </FamilyHistoryModel>