POST api/EMRAPI/SavePatientAllergy

Request Information

URI Parameters

None.

Body Parameters

AllergySaveInputs
NameDescriptionTypeAdditional information
HospId

integer

None.

FacilityId

integer

None.

PageId

integer

None.

RegistrationId

integer

None.

EncounterId

integer

None.

xmlDrugAllergyDetails

string

None.

xmlOtherAllergyDetails

string

None.

EncodedBy

integer

None.

IsNKDA

integer

None.

IsShowNote

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "HospId": 1,
  "FacilityId": 2,
  "PageId": 3,
  "RegistrationId": 4,
  "EncounterId": 5,
  "xmlDrugAllergyDetails": "sample string 6",
  "xmlOtherAllergyDetails": "sample string 7",
  "EncodedBy": 8,
  "IsNKDA": 9,
  "IsShowNote": 10
}

application/xml, text/xml

Sample:
<AllergySaveInputs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EMRAPI.Models">
  <EncodedBy>8</EncodedBy>
  <EncounterId>5</EncounterId>
  <FacilityId>2</FacilityId>
  <HospId>1</HospId>
  <IsNKDA>9</IsNKDA>
  <IsShowNote>10</IsShowNote>
  <PageId>3</PageId>
  <RegistrationId>4</RegistrationId>
  <xmlDrugAllergyDetails>sample string 6</xmlDrugAllergyDetails>
  <xmlOtherAllergyDetails>sample string 7</xmlOtherAllergyDetails>
</AllergySaveInputs>

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 'AllergySaveInputs'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.