POST api/Patient/PatientAllergyAdd

Request Information

URI Parameters

None.

Body Parameters

PatientAllergyAddRequest
NameDescriptionTypeAdditional information
PatientAllergyAdd

PatientAllergyAdd

None.

PatientID

globally unique identifier

None.

WebApiVersion

integer

None.

Language

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PatientAllergyAdd": {
    "AllergyTypeID": "1c26ee9c-643c-481d-aa9b-56d3cb23e0dc",
    "AllergyName": "sample string 1",
    "Inducers": "sample string 2",
    "Reactions": "sample string 3",
    "TestDate": "2025-12-11T14:39:34.0997425+03:00",
    "Notes": "sample string 4"
  },
  "PatientID": "a0efee83-56c9-438f-b83f-90c09e59e228",
  "WebApiVersion": 2,
  "Language": "sample string 3"
}

application/xml, text/xml

Sample:
<PatientAllergyAddRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehatukaAPI.DTO">
  <Language>sample string 3</Language>
  <PatientID>a0efee83-56c9-438f-b83f-90c09e59e228</PatientID>
  <WebApiVersion>2</WebApiVersion>
  <PatientAllergyAdd>
    <AllergyName>sample string 1</AllergyName>
    <AllergyTypeID>1c26ee9c-643c-481d-aa9b-56d3cb23e0dc</AllergyTypeID>
    <Inducers>sample string 2</Inducers>
    <Notes>sample string 4</Notes>
    <Reactions>sample string 3</Reactions>
    <TestDate>2025-12-11T14:39:34.0997425+03:00</TestDate>
  </PatientAllergyAdd>
</PatientAllergyAddRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PatientAllergyResponse
NameDescriptionTypeAdditional information
PatientAllergy

PatientAllergy

None.

WebApiVersion

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "PatientAllergy": {
    "PatientAllergyID": "2efba875-ad29-490a-95ed-d2a523399186",
    "AllergyTypeID": "fd500ea1-c67a-4648-a916-f0ece9244860",
    "AllergyName": "sample string 2",
    "Inducers": "sample string 3",
    "Reactions": "sample string 4",
    "TestDate": "2025-12-11T14:39:34.1153583+03:00",
    "Notes": "sample string 5"
  },
  "WebApiVersion": 1
}

application/xml, text/xml

Sample:
<PatientAllergyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehatukaAPI.DTO">
  <WebApiVersion>1</WebApiVersion>
  <PatientAllergy>
    <AllergyName>sample string 2</AllergyName>
    <AllergyTypeID>fd500ea1-c67a-4648-a916-f0ece9244860</AllergyTypeID>
    <Inducers>sample string 3</Inducers>
    <Notes>sample string 5</Notes>
    <PatientAllergyID>2efba875-ad29-490a-95ed-d2a523399186</PatientAllergyID>
    <Reactions>sample string 4</Reactions>
    <TestDate>2025-12-11T14:39:34.1153583+03:00</TestDate>
  </PatientAllergy>
</PatientAllergyResponse>