POST api/PatientRelationships
Creates a new patient relationship or updates an existent patient relationship's information.
Request Information
URI Parameters
None.
Body Parameters
PatientRelationshipModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name of the relationship. |
string |
None. |
| SortOrder |
Indicates the sort order of this patient relationship in the list. |
integer |
None. |
| IsDefault |
Indicates if this relationship is the default or not. |
boolean |
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:
{
"name": "sample string 1",
"sortOrder": 2,
"isDefault": true,
"id": "cf5fc0ec-2a85-42bd-8535-69b5adeadf4e",
"externalId": "sample string 5"
}
application/xml, text/xml
Sample:
<PatientRelationshipModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.PatientRelationships"> <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">cf5fc0ec-2a85-42bd-8535-69b5adeadf4e</Id> <IsDefault>true</IsDefault> <Name>sample string 1</Name> <SortOrder>2</SortOrder> </PatientRelationshipModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PatientRelationshipModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name of the relationship. |
string |
None. |
| SortOrder |
Indicates the sort order of this patient relationship in the list. |
integer |
None. |
| IsDefault |
Indicates if this relationship is the default or not. |
boolean |
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:
{
"name": "sample string 1",
"sortOrder": 2,
"isDefault": true,
"id": "d2e581ba-9731-4eea-be09-65c53170cc45",
"externalId": "sample string 5"
}
application/xml, text/xml
Sample:
<PatientRelationshipModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.PatientRelationships"> <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">d2e581ba-9731-4eea-be09-65c53170cc45</Id> <IsDefault>true</IsDefault> <Name>sample string 1</Name> <SortOrder>2</SortOrder> </PatientRelationshipModel>