GET api/PatientAllergy/{Id}?DBName={DBName}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

DBName

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of PatientAllergyModel
NameDescriptionTypeAdditional information
AllergyId

integer

None.

PatientID

integer

None.

DrugName

string

None.

DateAdded

date

None.

Desc

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AllergyId": 1,
    "PatientID": 2,
    "DrugName": "sample string 3",
    "DateAdded": "2026-04-16T20:56:50.6443681+10:00",
    "Desc": "sample string 5"
  },
  {
    "AllergyId": 1,
    "PatientID": 2,
    "DrugName": "sample string 3",
    "DateAdded": "2026-04-16T20:56:50.6443681+10:00",
    "Desc": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPatientAllergyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MediClinicAPI.Models">
  <PatientAllergyModel>
    <AllergyId>1</AllergyId>
    <DateAdded>2026-04-16T20:56:50.6443681+10:00</DateAdded>
    <Desc>sample string 5</Desc>
    <DrugName>sample string 3</DrugName>
    <PatientID>2</PatientID>
  </PatientAllergyModel>
  <PatientAllergyModel>
    <AllergyId>1</AllergyId>
    <DateAdded>2026-04-16T20:56:50.6443681+10:00</DateAdded>
    <Desc>sample string 5</Desc>
    <DrugName>sample string 3</DrugName>
    <PatientID>2</PatientID>
  </PatientAllergyModel>
</ArrayOfPatientAllergyModel>