POST api/Patient/PatientEmergencyContactAdd

Request Information

URI Parameters

None.

Body Parameters

PatientEmergencyContactAddRequest
NameDescriptionTypeAdditional information
PatientEmergencyContactAdd

PatientEmergencyContactAdd

None.

PatientID

globally unique identifier

None.

WebApiVersion

integer

None.

Language

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PatientEmergencyContactAdd": {
    "RelationshipID": "299b1f0b-d776-42a0-aacc-e6d519030994",
    "Name": "sample string 1",
    "Phone": "sample string 2",
    "Priority": 1,
    "Address": "sample string 3"
  },
  "PatientID": "775b4162-1372-4095-8d4d-ea7e1de0797d",
  "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>775b4162-1372-4095-8d4d-ea7e1de0797d</PatientID>
  <WebApiVersion>2</WebApiVersion>
  <PatientEmergencyContactAdd>
    <Address>sample string 3</Address>
    <Name>sample string 1</Name>
    <Phone>sample string 2</Phone>
    <Priority>1</Priority>
    <RelationshipID>299b1f0b-d776-42a0-aacc-e6d519030994</RelationshipID>
  </PatientEmergencyContactAdd>
</PatientEmergencyContactAddRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PatientEmergencyContactResponse
NameDescriptionTypeAdditional information
PatientEmergencyContact

PatientEmergencyContact

None.

WebApiVersion

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "PatientEmergencyContact": {
    "PatientEmergencyContactID": "9619a238-27cd-4fbf-a53d-07fca0e77f57",
    "RelationshipID": "108812db-de0c-40fc-add4-649102ff90e0",
    "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>9619a238-27cd-4fbf-a53d-07fca0e77f57</PatientEmergencyContactID>
    <Phone>sample string 3</Phone>
    <Priority>1</Priority>
    <RelationshipID>108812db-de0c-40fc-add4-649102ff90e0</RelationshipID>
  </PatientEmergencyContact>
</PatientEmergencyContactResponse>