POST api/Patient/PatientEmergencyContactAdd
Request Information
URI Parameters
None.
Body Parameters
PatientEmergencyContactAddRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PatientEmergencyContactAdd | PatientEmergencyContactAdd |
None. |
|
| PatientID | globally unique identifier |
None. |
|
| WebApiVersion | integer |
None. |
|
| Language | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PatientEmergencyContactAdd": {
"RelationshipID": "f5c79e12-87ca-4499-aa02-30a0ef10e3cd",
"Name": "sample string 1",
"Phone": "sample string 2",
"Priority": 1,
"Address": "sample string 3"
},
"PatientID": "b75c5c15-7279-47df-898d-ad32dd9baf44",
"WebApiVersion": 2,
"Language": "sample string 3"
}
application/xml, text/xml
Sample:
<PatientEmergencyContactAddRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehatukaAPI.DTO">
<Language>sample string 3</Language>
<PatientID>b75c5c15-7279-47df-898d-ad32dd9baf44</PatientID>
<WebApiVersion>2</WebApiVersion>
<PatientEmergencyContactAdd>
<Address>sample string 3</Address>
<Name>sample string 1</Name>
<Phone>sample string 2</Phone>
<Priority>1</Priority>
<RelationshipID>f5c79e12-87ca-4499-aa02-30a0ef10e3cd</RelationshipID>
</PatientEmergencyContactAdd>
</PatientEmergencyContactAddRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PatientEmergencyContactResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PatientEmergencyContact | PatientEmergencyContact |
None. |
|
| WebApiVersion | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"PatientEmergencyContact": {
"PatientEmergencyContactID": "e24518bb-a921-4349-b55b-2e7acd3a15bd",
"RelationshipID": "b5a1b8dc-c90f-420f-b95e-c0b159b3c261",
"Name": "sample string 2",
"Phone": "sample string 3",
"Priority": 1,
"Address": "sample string 4"
},
"WebApiVersion": 1
}
application/xml, text/xml
Sample:
<PatientEmergencyContactResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehatukaAPI.DTO">
<WebApiVersion>1</WebApiVersion>
<PatientEmergencyContact>
<Address>sample string 4</Address>
<Name>sample string 2</Name>
<PatientEmergencyContactID>e24518bb-a921-4349-b55b-2e7acd3a15bd</PatientEmergencyContactID>
<Phone>sample string 3</Phone>
<Priority>1</Priority>
<RelationshipID>b5a1b8dc-c90f-420f-b95e-c0b159b3c261</RelationshipID>
</PatientEmergencyContact>
</PatientEmergencyContactResponse>