POST api/Doctor/SaveMedicineOrderOP

Request Information

URI Parameters

None.

Body Parameters

SaveMedicineOrderInput
NameDescriptionTypeAdditional information
HospitalLocationId

integer

None.

FacilityId

integer

None.

RegistrationId

integer

None.

EncounterId

integer

None.

IndentType

integer

None.

AdvisingDoctorId

integer

None.

xmlItems

Collection of Item

None.

xmlItemDetail

Collection of ItemDetails

None.

xmlFrequencyTime

Collection of ItemFrequencyTime

None.

Remarks

string

None.

EncodedBy

integer

None.

IsConsumable

boolean

None.

StoreId

integer

None.

DrugOrderType

integer

None.

RequestFromOtherWardId

integer

None.

IsFromWard

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "HospitalLocationId": 1,
  "FacilityId": 2,
  "RegistrationId": 3,
  "EncounterId": 4,
  "IndentType": 5,
  "AdvisingDoctorId": 6,
  "xmlItems": [
    {
      "Dose": 1.0,
      "Duration": 2,
      "FoodRelId": 3,
      "FrequencyId": 4,
      "MedicineId": 5,
      "StartDate": "sample string 6",
      "EndDate": "sample string 7",
      "UnitId": 8,
      "remarks": "sample string 9",
      "RouteId": 10,
      "TotalQty": 11.0
    },
    {
      "Dose": 1.0,
      "Duration": 2,
      "FoodRelId": 3,
      "FrequencyId": 4,
      "MedicineId": 5,
      "StartDate": "sample string 6",
      "EndDate": "sample string 7",
      "UnitId": 8,
      "remarks": "sample string 9",
      "RouteId": 10,
      "TotalQty": 11.0
    }
  ],
  "xmlItemDetail": [
    {
      "ItemId": 1,
      "FrequencyId": 2,
      "Dose": 3.0,
      "Duration": "sample string 4",
      "Type": "sample string 5",
      "Instructions": "sample string 6",
      "UnitId": 7,
      "ReferanceItemId": 8,
      "FoodRelationshipId": 9,
      "DoseTypeId": 10,
      "Volume": "sample string 11",
      "VolumeUnitId": 12,
      "InfusionTime": "sample string 13",
      "TimeUnit": 14,
      "TotalVolume": "sample string 15",
      "FlowRate": "sample string 16",
      "FlowRateUnit": 17,
      "VariableDoseDate": "sample string 18",
      "IsSubstituteNotAllow": true,
      "ICDCode": 20
    },
    {
      "ItemId": 1,
      "FrequencyId": 2,
      "Dose": 3.0,
      "Duration": "sample string 4",
      "Type": "sample string 5",
      "Instructions": "sample string 6",
      "UnitId": 7,
      "ReferanceItemId": 8,
      "FoodRelationshipId": 9,
      "DoseTypeId": 10,
      "Volume": "sample string 11",
      "VolumeUnitId": 12,
      "InfusionTime": "sample string 13",
      "TimeUnit": 14,
      "TotalVolume": "sample string 15",
      "FlowRate": "sample string 16",
      "FlowRateUnit": 17,
      "VariableDoseDate": "sample string 18",
      "IsSubstituteNotAllow": true,
      "ICDCode": 20
    }
  ],
  "xmlFrequencyTime": [
    {
      "ItemId": 1,
      "FrequencyId": 2,
      "FrequencyTime": "sample string 3",
      "FrequencyDetailId": 4,
      "DoseEnable": true
    },
    {
      "ItemId": 1,
      "FrequencyId": 2,
      "FrequencyTime": "sample string 3",
      "FrequencyDetailId": 4,
      "DoseEnable": true
    }
  ],
  "Remarks": "sample string 7",
  "EncodedBy": 8,
  "IsConsumable": true,
  "StoreId": 10,
  "DrugOrderType": 11,
  "RequestFromOtherWardId": 12,
  "IsFromWard": true
}

application/xml, text/xml

Sample:
<SaveMedicineOrderInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FindDoctorService">
  <AdvisingDoctorId>6</AdvisingDoctorId>
  <DrugOrderType>11</DrugOrderType>
  <EncodedBy>8</EncodedBy>
  <EncounterId>4</EncounterId>
  <FacilityId>2</FacilityId>
  <HospitalLocationId>1</HospitalLocationId>
  <IndentType>5</IndentType>
  <IsConsumable>true</IsConsumable>
  <IsFromWard>true</IsFromWard>
  <RegistrationId>3</RegistrationId>
  <Remarks>sample string 7</Remarks>
  <RequestFromOtherWardId>12</RequestFromOtherWardId>
  <StoreId>10</StoreId>
  <xmlFrequencyTime>
    <ItemFrequencyTime>
      <DoseEnable>true</DoseEnable>
      <FrequencyDetailId>4</FrequencyDetailId>
      <FrequencyId>2</FrequencyId>
      <FrequencyTime>sample string 3</FrequencyTime>
      <ItemId>1</ItemId>
    </ItemFrequencyTime>
    <ItemFrequencyTime>
      <DoseEnable>true</DoseEnable>
      <FrequencyDetailId>4</FrequencyDetailId>
      <FrequencyId>2</FrequencyId>
      <FrequencyTime>sample string 3</FrequencyTime>
      <ItemId>1</ItemId>
    </ItemFrequencyTime>
  </xmlFrequencyTime>
  <xmlItemDetail>
    <ItemDetails>
      <Dose>3</Dose>
      <DoseTypeId>10</DoseTypeId>
      <Duration>sample string 4</Duration>
      <FlowRate>sample string 16</FlowRate>
      <FlowRateUnit>17</FlowRateUnit>
      <FoodRelationshipId>9</FoodRelationshipId>
      <FrequencyId>2</FrequencyId>
      <ICDCode>20</ICDCode>
      <InfusionTime>sample string 13</InfusionTime>
      <Instructions>sample string 6</Instructions>
      <IsSubstituteNotAllow>true</IsSubstituteNotAllow>
      <ItemId>1</ItemId>
      <ReferanceItemId>8</ReferanceItemId>
      <TimeUnit>14</TimeUnit>
      <TotalVolume>sample string 15</TotalVolume>
      <Type>sample string 5</Type>
      <UnitId>7</UnitId>
      <VariableDoseDate>sample string 18</VariableDoseDate>
      <Volume>sample string 11</Volume>
      <VolumeUnitId>12</VolumeUnitId>
    </ItemDetails>
    <ItemDetails>
      <Dose>3</Dose>
      <DoseTypeId>10</DoseTypeId>
      <Duration>sample string 4</Duration>
      <FlowRate>sample string 16</FlowRate>
      <FlowRateUnit>17</FlowRateUnit>
      <FoodRelationshipId>9</FoodRelationshipId>
      <FrequencyId>2</FrequencyId>
      <ICDCode>20</ICDCode>
      <InfusionTime>sample string 13</InfusionTime>
      <Instructions>sample string 6</Instructions>
      <IsSubstituteNotAllow>true</IsSubstituteNotAllow>
      <ItemId>1</ItemId>
      <ReferanceItemId>8</ReferanceItemId>
      <TimeUnit>14</TimeUnit>
      <TotalVolume>sample string 15</TotalVolume>
      <Type>sample string 5</Type>
      <UnitId>7</UnitId>
      <VariableDoseDate>sample string 18</VariableDoseDate>
      <Volume>sample string 11</Volume>
      <VolumeUnitId>12</VolumeUnitId>
    </ItemDetails>
  </xmlItemDetail>
  <xmlItems>
    <Item>
      <Dose>1</Dose>
      <Duration>2</Duration>
      <EndDate>sample string 7</EndDate>
      <FoodRelId>3</FoodRelId>
      <FrequencyId>4</FrequencyId>
      <MedicineId>5</MedicineId>
      <RouteId>10</RouteId>
      <StartDate>sample string 6</StartDate>
      <TotalQty>11</TotalQty>
      <UnitId>8</UnitId>
      <remarks>sample string 9</remarks>
    </Item>
    <Item>
      <Dose>1</Dose>
      <Duration>2</Duration>
      <EndDate>sample string 7</EndDate>
      <FoodRelId>3</FoodRelId>
      <FrequencyId>4</FrequencyId>
      <MedicineId>5</MedicineId>
      <RouteId>10</RouteId>
      <StartDate>sample string 6</StartDate>
      <TotalQty>11</TotalQty>
      <UnitId>8</UnitId>
      <remarks>sample string 9</remarks>
    </Item>
  </xmlItems>
</SaveMedicineOrderInput>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.