PUT api/Prescription?username={username}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
username

string

Required

Body Parameters

PrescriptionServiceCancelModel
NameDescriptionTypeAdditional information
CanceledPrescriptionsIds

Collection of integer

None.

Username

string

None.

Request Formats

application/json, text/json

Sample:
{
  "canceledPrescriptionsIds": [
    1,
    2
  ],
  "username": "sample string 1"
}

application/xml, text/xml

Sample:
<PrescriptionServiceCancelModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMedit.eOsa.BDO.Services.PrescriptionService">
  <CanceledPrescriptionsIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CanceledPrescriptionsIds>
  <Username>sample string 1</Username>
</PrescriptionServiceCancelModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PrescriptionServiceResponse
NameDescriptionTypeAdditional information
PrescriptionConfirmations

Collection of PrescriptionServiceConfirmation

None.

PrescribingControl

PrescriptionControlModel

None.

Response Formats

application/json, text/json

Sample:
{
  "prescriptionConfirmations": [
    {
      "prescriptionId": "sample string 1",
      "caseNumber": 1,
      "medsolPrescriptionId": "sample string 2",
      "note": "sample string 3",
      "errorMessage": "sample string 4",
      "statusId": "sample string 5",
      "isSuccess": true
    },
    {
      "prescriptionId": "sample string 1",
      "caseNumber": 1,
      "medsolPrescriptionId": "sample string 2",
      "note": "sample string 3",
      "errorMessage": "sample string 4",
      "statusId": "sample string 5",
      "isSuccess": true
    }
  ],
  "prescribingControl": {
    "dailyControlActive": true,
    "monthlyControlActive": true,
    "monthlyValueControlActive": true,
    "dailyLimit": 4,
    "monthlyLimit": 5,
    "monthlyValueLimit": 6.0,
    "dailyCount": 7,
    "monthlyCount": 8,
    "monthlyValue": 9.0,
    "username": "sample string 10",
    "stampNumber": "sample string 11"
  }
}

application/xml, text/xml

Sample:
<PrescriptionServiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMedit.eOsa.BDO.Services.PrescriptionService">
  <PrescribingControl>
    <DailyControlActive>true</DailyControlActive>
    <DailyCount>7</DailyCount>
    <DailyLimit>4</DailyLimit>
    <MonthlyControlActive>true</MonthlyControlActive>
    <MonthlyCount>8</MonthlyCount>
    <MonthlyLimit>5</MonthlyLimit>
    <MonthlyValue>9</MonthlyValue>
    <MonthlyValueControlActive>true</MonthlyValueControlActive>
    <MonthlyValueLimit>6</MonthlyValueLimit>
    <StampNumber>sample string 11</StampNumber>
    <Username>sample string 10</Username>
  </PrescribingControl>
  <PrescriptionConfirmations>
    <PrescriptionServiceConfirmation>
      <CaseNumber>1</CaseNumber>
      <ErrorMessage>sample string 4</ErrorMessage>
      <IsSuccess>true</IsSuccess>
      <MedsolPrescriptionId>sample string 2</MedsolPrescriptionId>
      <Note>sample string 3</Note>
      <PrescriptionId>sample string 1</PrescriptionId>
      <StatusId>sample string 5</StatusId>
    </PrescriptionServiceConfirmation>
    <PrescriptionServiceConfirmation>
      <CaseNumber>1</CaseNumber>
      <ErrorMessage>sample string 4</ErrorMessage>
      <IsSuccess>true</IsSuccess>
      <MedsolPrescriptionId>sample string 2</MedsolPrescriptionId>
      <Note>sample string 3</Note>
      <PrescriptionId>sample string 1</PrescriptionId>
      <StatusId>sample string 5</StatusId>
    </PrescriptionServiceConfirmation>
  </PrescriptionConfirmations>
</PrescriptionServiceResponse>