POST api/TotalAyushCare/SavePrescription

Documentation for 'SavePrescription'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Credentials": {
    "Username": "sample string 1",
    "Password": "sample string 2",
    "ClientName": "sample string 3"
  },
  "Prescription": {
    "Id": "sample string 1",
    "PatientId": "sample string 2",
    "DoctorId": "sample string 3",
    "AppointmentDate": "sample string 4",
    "AppointmentId": "sample string 5",
    "Quantity": "sample string 6",
    "Note": "sample string 7",
    "MedicieneDetails": [
      {
        "Id": "sample string 1",
        "PrescriptionId": "sample string 2",
        "ProductId": "sample string 3",
        "ProductName": "sample string 4",
        "Quantity": "sample string 5",
        "BrandName": "sample string 6",
        "BrandId": "sample string 7",
        "CategoryName": "sample string 8",
        "CategoryId": "sample string 9",
        "ProductPrice": "sample string 10",
        "DailyDose": "sample string 11",
        "Units": "sample string 12",
        "Remarks": "sample string 13"
      },
      {
        "Id": "sample string 1",
        "PrescriptionId": "sample string 2",
        "ProductId": "sample string 3",
        "ProductName": "sample string 4",
        "Quantity": "sample string 5",
        "BrandName": "sample string 6",
        "BrandId": "sample string 7",
        "CategoryName": "sample string 8",
        "CategoryId": "sample string 9",
        "ProductPrice": "sample string 10",
        "DailyDose": "sample string 11",
        "Units": "sample string 12",
        "Remarks": "sample string 13"
      },
      {
        "Id": "sample string 1",
        "PrescriptionId": "sample string 2",
        "ProductId": "sample string 3",
        "ProductName": "sample string 4",
        "Quantity": "sample string 5",
        "BrandName": "sample string 6",
        "BrandId": "sample string 7",
        "CategoryName": "sample string 8",
        "CategoryId": "sample string 9",
        "ProductPrice": "sample string 10",
        "DailyDose": "sample string 11",
        "Units": "sample string 12",
        "Remarks": "sample string 13"
      }
    ],
    "FoodDetails": [
      {
        "Id": "sample string 1",
        "PrescriptionId": "sample string 2",
        "CategoryId": "sample string 3",
        "ProductId": "sample string 4",
        "Quantity": "sample string 5"
      },
      {
        "Id": "sample string 1",
        "PrescriptionId": "sample string 2",
        "CategoryId": "sample string 3",
        "ProductId": "sample string 4",
        "Quantity": "sample string 5"
      },
      {
        "Id": "sample string 1",
        "PrescriptionId": "sample string 2",
        "CategoryId": "sample string 3",
        "ProductId": "sample string 4",
        "Quantity": "sample string 5"
      }
    ],
    "Action": "sample string 8",
    "Source": "sample string 9",
    "MedicineSummary": "sample string 10",
    "FoodSummary": "sample string 11",
    "LifeStyleSummary": "sample string 12",
    "CurrentComplaintSummary": "sample string 13",
    "ClinicalExaminationSummary": "sample string 14",
    "ObservationSummary": "sample string 15"
  },
  "Ratings": {
    "Id": "sample string 1",
    "Rating": "sample string 2",
    "Comments": "sample string 3",
    "PatientId": "sample string 4",
    "DrId": "sample string 5",
    "RatingGivenBy": "sample string 6",
    "AddedOn": "sample string 7",
    "Action": "sample string 8",
    "Source": "sample string 9"
  }
}

application/xml, text/xml

Sample:
<PrescriptionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <Credentials>
    <ClientName>sample string 3</ClientName>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Credentials>
  <Prescription>
    <Action>sample string 8</Action>
    <AppointmentDate>sample string 4</AppointmentDate>
    <AppointmentId>sample string 5</AppointmentId>
    <ClinicalExaminationSummary>sample string 14</ClinicalExaminationSummary>
    <CurrentComplaintSummary>sample string 13</CurrentComplaintSummary>
    <DoctorId>sample string 3</DoctorId>
    <FoodDetails>
      <FoodDetails>
        <CategoryId>sample string 3</CategoryId>
        <Id>sample string 1</Id>
        <PrescriptionId>sample string 2</PrescriptionId>
        <ProductId>sample string 4</ProductId>
        <Quantity>sample string 5</Quantity>
      </FoodDetails>
      <FoodDetails>
        <CategoryId>sample string 3</CategoryId>
        <Id>sample string 1</Id>
        <PrescriptionId>sample string 2</PrescriptionId>
        <ProductId>sample string 4</ProductId>
        <Quantity>sample string 5</Quantity>
      </FoodDetails>
      <FoodDetails>
        <CategoryId>sample string 3</CategoryId>
        <Id>sample string 1</Id>
        <PrescriptionId>sample string 2</PrescriptionId>
        <ProductId>sample string 4</ProductId>
        <Quantity>sample string 5</Quantity>
      </FoodDetails>
    </FoodDetails>
    <FoodSummary>sample string 11</FoodSummary>
    <Id>sample string 1</Id>
    <LifeStyleSummary>sample string 12</LifeStyleSummary>
    <MedicieneDetails>
      <MedicieneDetails>
        <BrandId>sample string 7</BrandId>
        <BrandName>sample string 6</BrandName>
        <CategoryId>sample string 9</CategoryId>
        <CategoryName>sample string 8</CategoryName>
        <DailyDose>sample string 11</DailyDose>
        <Id>sample string 1</Id>
        <PrescriptionId>sample string 2</PrescriptionId>
        <ProductId>sample string 3</ProductId>
        <ProductName>sample string 4</ProductName>
        <ProductPrice>sample string 10</ProductPrice>
        <Quantity>sample string 5</Quantity>
        <Remarks>sample string 13</Remarks>
        <Units>sample string 12</Units>
      </MedicieneDetails>
      <MedicieneDetails>
        <BrandId>sample string 7</BrandId>
        <BrandName>sample string 6</BrandName>
        <CategoryId>sample string 9</CategoryId>
        <CategoryName>sample string 8</CategoryName>
        <DailyDose>sample string 11</DailyDose>
        <Id>sample string 1</Id>
        <PrescriptionId>sample string 2</PrescriptionId>
        <ProductId>sample string 3</ProductId>
        <ProductName>sample string 4</ProductName>
        <ProductPrice>sample string 10</ProductPrice>
        <Quantity>sample string 5</Quantity>
        <Remarks>sample string 13</Remarks>
        <Units>sample string 12</Units>
      </MedicieneDetails>
      <MedicieneDetails>
        <BrandId>sample string 7</BrandId>
        <BrandName>sample string 6</BrandName>
        <CategoryId>sample string 9</CategoryId>
        <CategoryName>sample string 8</CategoryName>
        <DailyDose>sample string 11</DailyDose>
        <Id>sample string 1</Id>
        <PrescriptionId>sample string 2</PrescriptionId>
        <ProductId>sample string 3</ProductId>
        <ProductName>sample string 4</ProductName>
        <ProductPrice>sample string 10</ProductPrice>
        <Quantity>sample string 5</Quantity>
        <Remarks>sample string 13</Remarks>
        <Units>sample string 12</Units>
      </MedicieneDetails>
    </MedicieneDetails>
    <MedicineSummary>sample string 10</MedicineSummary>
    <Note>sample string 7</Note>
    <ObservationSummary>sample string 15</ObservationSummary>
    <PatientId>sample string 2</PatientId>
    <Quantity>sample string 6</Quantity>
    <Source>sample string 9</Source>
  </Prescription>
  <Ratings>
    <Action>sample string 8</Action>
    <AddedOn>sample string 7</AddedOn>
    <Comments>sample string 3</Comments>
    <DrId>sample string 5</DrId>
    <Id>sample string 1</Id>
    <PatientId>sample string 4</PatientId>
    <Rating>sample string 2</Rating>
    <RatingGivenBy>sample string 6</RatingGivenBy>
    <Source>sample string 9</Source>
  </Ratings>
</PrescriptionRequest>

application/x-www-form-urlencoded

Sample:

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

Response Information

Response body formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "errors": [
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    }
  ],
  "result": "sample string 2",
  "prescriptionID": "sample string 3"
}

application/xml, text/xml

Sample:
<PrescriptionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
  </errors>
  <message>sample string 1</message>
  <prescriptionID>sample string 3</prescriptionID>
  <result>sample string 2</result>
</PrescriptionResponse>