POST Api/VisitHistory/AddAllergies

Request Information

URI Parameters

None.

Body Parameters

AllergySubmitVm
NameDescriptionTypeAdditional information
PatientAllergyId

integer

None.

AllergySeverityId

integer

None.

ReactionConfigurationId

integer

None.

PatientId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "patientAllergyId": 1,
  "allergySeverityId": 2,
  "reactionConfigurationId": 3,
  "patientId": 4
}

text/html

Sample:
{"patientAllergyId":1,"allergySeverityId":2,"reactionConfigurationId":3,"patientId":4}

application/xml, text/xml

Sample:
<AllergySubmitVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrgentCareExtra.ViewModels.ViewModels.Allergy">
  <AllergySeverityId>2</AllergySeverityId>
  <PatientAllergyId>1</PatientAllergyId>
  <PatientId>4</PatientId>
  <ReactionConfigurationId>3</ReactionConfigurationId>
</AllergySubmitVm>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AllergySubmitVm'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.