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": "54c034bd-5a35-43af-8d45-f038896605fc",
    "Name": "sample string 1",
    "Phone": "sample string 2",
    "Priority": 1,
    "Address": "sample string 3"
  },
  "PatientID": "10dd0153-cb5d-481e-bb77-aa34ee8d940a",
  "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>10dd0153-cb5d-481e-bb77-aa34ee8d940a</PatientID>
  <WebApiVersion>2</WebApiVersion>
  <PatientEmergencyContactAdd>
    <Address>sample string 3</Address>
    <Name>sample string 1</Name>
    <Phone>sample string 2</Phone>
    <Priority>1</Priority>
    <RelationshipID>54c034bd-5a35-43af-8d45-f038896605fc</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": "3b250bde-bcbc-4001-bada-dc33b204e345",
    "RelationshipID": "779015ea-9034-49de-9db4-4cb1341fb553",
    "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>3b250bde-bcbc-4001-bada-dc33b204e345</PatientEmergencyContactID>
    <Phone>sample string 3</Phone>
    <Priority>1</Priority>
    <RelationshipID>779015ea-9034-49de-9db4-4cb1341fb553</RelationshipID>
  </PatientEmergencyContact>
</PatientEmergencyContactResponse>