GET api/MedicationRefillRequests/search?patientMedicationId={patientMedicationId}&page={page}&itemsPerPage={itemsPerPage}

Returns a list of refill request of a medication.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
patientMedicationId

Unique ID of patient medication.

globally unique identifier

Required

page

Page number requested (search results are paginated).

integer

Default value is 1

itemsPerPage

Items to return on each page. See page parameter above.

integer

Default value is 10

Body Parameters

None.

Response Information

Resource Description

ListModelOfMedicationRefillRequestModel
NameDescriptionTypeAdditional information
TotalItems

integer

None.

ItemsPerPage

integer

None.

CurrentPage

integer

None.

TotalPages

integer

None.

FirstRowOnPage

integer

None.

LastRowOnPage

integer

None.

Rows

Collection of MedicationRefillRequestModel

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalItems": 1,
  "ItemsPerPage": 2,
  "CurrentPage": 3,
  "TotalPages": 4,
  "FirstRowOnPage": 5,
  "LastRowOnPage": 6,
  "Rows": [
    {
      "MedicationRefillRequestId": "fd7a47c7-59d4-40fd-86b4-4da4279b48aa",
      "PatientMedicationId": "9aea090a-70a6-4497-92b3-a6e7a42a2ec9",
      "MedicationName": "sample string 3",
      "Status": "sample string 4",
      "RequestDate": "sample string 5",
      "LastStatusChange": "sample string 6",
      "PatientComments": "sample string 7",
      "DoctorComments": "sample string 8"
    },
    {
      "MedicationRefillRequestId": "fd7a47c7-59d4-40fd-86b4-4da4279b48aa",
      "PatientMedicationId": "9aea090a-70a6-4497-92b3-a6e7a42a2ec9",
      "MedicationName": "sample string 3",
      "Status": "sample string 4",
      "RequestDate": "sample string 5",
      "LastStatusChange": "sample string 6",
      "PatientComments": "sample string 7",
      "DoctorComments": "sample string 8"
    }
  ]
}

application/xml, text/xml

Sample:
<ListModelOfMedicationRefillRequestModely579f2rt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models">
  <CurrentPage>3</CurrentPage>
  <FirstRowOnPage>5</FirstRowOnPage>
  <ItemsPerPage>2</ItemsPerPage>
  <LastRowOnPage>6</LastRowOnPage>
  <Rows xmlns:d2p1="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.PatientMedications">
    <d2p1:MedicationRefillRequestModel>
      <d2p1:DoctorComments>sample string 8</d2p1:DoctorComments>
      <d2p1:LastStatusChange>sample string 6</d2p1:LastStatusChange>
      <d2p1:MedicationName>sample string 3</d2p1:MedicationName>
      <d2p1:MedicationRefillRequestId>fd7a47c7-59d4-40fd-86b4-4da4279b48aa</d2p1:MedicationRefillRequestId>
      <d2p1:PatientComments>sample string 7</d2p1:PatientComments>
      <d2p1:PatientMedicationId>9aea090a-70a6-4497-92b3-a6e7a42a2ec9</d2p1:PatientMedicationId>
      <d2p1:RequestDate>sample string 5</d2p1:RequestDate>
      <d2p1:Status>sample string 4</d2p1:Status>
    </d2p1:MedicationRefillRequestModel>
    <d2p1:MedicationRefillRequestModel>
      <d2p1:DoctorComments>sample string 8</d2p1:DoctorComments>
      <d2p1:LastStatusChange>sample string 6</d2p1:LastStatusChange>
      <d2p1:MedicationName>sample string 3</d2p1:MedicationName>
      <d2p1:MedicationRefillRequestId>fd7a47c7-59d4-40fd-86b4-4da4279b48aa</d2p1:MedicationRefillRequestId>
      <d2p1:PatientComments>sample string 7</d2p1:PatientComments>
      <d2p1:PatientMedicationId>9aea090a-70a6-4497-92b3-a6e7a42a2ec9</d2p1:PatientMedicationId>
      <d2p1:RequestDate>sample string 5</d2p1:RequestDate>
      <d2p1:Status>sample string 4</d2p1:Status>
    </d2p1:MedicationRefillRequestModel>
  </Rows>
  <TotalItems>1</TotalItems>
  <TotalPages>4</TotalPages>
</ListModelOfMedicationRefillRequestModely579f2rt>