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": "4b7237d2-d362-4be8-a121-586a682c897d",
    "AllergyName": "sample string 1",
    "Inducers": "sample string 2",
    "Reactions": "sample string 3",
    "TestDate": "2026-04-24T14:29:02.4526532+03:00",
    "Notes": "sample string 4"
  },
  "PatientID": "61595a2e-3abd-44a0-9961-b055b9948673",
  "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>61595a2e-3abd-44a0-9961-b055b9948673</PatientID>
  <WebApiVersion>2</WebApiVersion>
  <PatientAllergyAdd>
    <AllergyName>sample string 1</AllergyName>
    <AllergyTypeID>4b7237d2-d362-4be8-a121-586a682c897d</AllergyTypeID>
    <Inducers>sample string 2</Inducers>
    <Notes>sample string 4</Notes>
    <Reactions>sample string 3</Reactions>
    <TestDate>2026-04-24T14:29:02.4526532+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": "660a9bb4-9a72-4467-bd13-7ab2a9f26113",
    "AllergyTypeID": "81910478-3bde-46ec-997f-b1db2146fbca",
    "AllergyName": "sample string 2",
    "Inducers": "sample string 3",
    "Reactions": "sample string 4",
    "TestDate": "2026-04-24T14:29:02.4681791+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>81910478-3bde-46ec-997f-b1db2146fbca</AllergyTypeID>
    <Inducers>sample string 3</Inducers>
    <Notes>sample string 5</Notes>
    <PatientAllergyID>660a9bb4-9a72-4467-bd13-7ab2a9f26113</PatientAllergyID>
    <Reactions>sample string 4</Reactions>
    <TestDate>2026-04-24T14:29:02.4681791+03:00</TestDate>
  </PatientAllergy>
</PatientAllergyResponse>