POST api/EMRAPI/SaveFavoriteMedicine

Request Information

URI Parameters

None.

Body Parameters

SaveFavoriteMedicine
NameDescriptionTypeAdditional information
DoctorId

integer

None.

ItemId

integer

None.

FormularyType

string

None.

UserId

integer

None.

DoseId

integer

None.

UnitId

integer

None.

StrengthId

integer

None.

FormulationId

integer

None.

RouteId

integer

None.

FrequencyId

integer

None.

Duration

integer

None.

DurationType

string

None.

FoodRelationshipId

integer

None.

StrengthValue

string

None.

Instructions

string

None.

GenericId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DoctorId": 1,
  "ItemId": 2,
  "FormularyType": "sample string 3",
  "UserId": 4,
  "DoseId": 5,
  "UnitId": 6,
  "StrengthId": 7,
  "FormulationId": 8,
  "RouteId": 9,
  "FrequencyId": 10,
  "Duration": 11,
  "DurationType": "sample string 12",
  "FoodRelationshipId": 13,
  "StrengthValue": "sample string 14",
  "Instructions": "sample string 15",
  "GenericId": 16
}

application/xml, text/xml

Sample:
<SaveFavoriteMedicine xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EMRAPI.Models">
  <DoctorId>1</DoctorId>
  <DoseId>5</DoseId>
  <Duration>11</Duration>
  <DurationType>sample string 12</DurationType>
  <FoodRelationshipId>13</FoodRelationshipId>
  <FormularyType>sample string 3</FormularyType>
  <FormulationId>8</FormulationId>
  <FrequencyId>10</FrequencyId>
  <GenericId>16</GenericId>
  <Instructions>sample string 15</Instructions>
  <ItemId>2</ItemId>
  <RouteId>9</RouteId>
  <StrengthId>7</StrengthId>
  <StrengthValue>sample string 14</StrengthValue>
  <UnitId>6</UnitId>
  <UserId>4</UserId>
</SaveFavoriteMedicine>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.