GET api/SecureMessagesToPatient/search?serchTerm={serchTerm}&secureRecipientName={secureRecipientName}&getFullBody={getFullBody}&page={page}&itemsPerPage={itemsPerPage}

Gets a list of secure message

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serchTerm

Search term.

string

Default value is

secureRecipientName

Name of the recipient

string

Default value is

getFullBody

Indicates if full body of message should be returned.

boolean

Default value is False

page

Page number requested (search results are paginated).

integer

Default value is 1

itemsPerPage

Items to return on each page. See page parameter above. Pass 0 to get all records.

integer

Default value is 10

Body Parameters

None.

Response Information

Resource Description

ListModelOfMessageToPatientModel
NameDescriptionTypeAdditional information
TotalItems

integer

None.

ItemsPerPage

integer

None.

CurrentPage

integer

None.

TotalPages

integer

None.

FirstRowOnPage

integer

None.

LastRowOnPage

integer

None.

Rows

Collection of MessageToPatientModel

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalItems": 1,
  "ItemsPerPage": 2,
  "CurrentPage": 3,
  "TotalPages": 4,
  "FirstRowOnPage": 5,
  "LastRowOnPage": 6,
  "Rows": [
    {
      "Id": "60cf00da-fcd9-4c34-82ae-2daf2873cdf3",
      "CreationDate": "sample string 2",
      "Priority": "sample string 3",
      "Status": "sample string 4",
      "Read": true,
      "SecureRecipientId": "678b1c42-a08c-4c82-95c0-c37a92abc203",
      "SecureRecipientName": "sample string 7",
      "Subject": "sample string 8",
      "Body": "sample string 9",
      "SentDate": "sample string 10",
      "HasAttachments": true,
      "Attachments": [
        {
          "Id": 1,
          "Name": "sample string 2"
        },
        {
          "Id": 1,
          "Name": "sample string 2"
        }
      ]
    },
    {
      "Id": "60cf00da-fcd9-4c34-82ae-2daf2873cdf3",
      "CreationDate": "sample string 2",
      "Priority": "sample string 3",
      "Status": "sample string 4",
      "Read": true,
      "SecureRecipientId": "678b1c42-a08c-4c82-95c0-c37a92abc203",
      "SecureRecipientName": "sample string 7",
      "Subject": "sample string 8",
      "Body": "sample string 9",
      "SentDate": "sample string 10",
      "HasAttachments": true,
      "Attachments": [
        {
          "Id": 1,
          "Name": "sample string 2"
        },
        {
          "Id": 1,
          "Name": "sample string 2"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<ListModelOfMessageToPatientModelfe5TJzr4 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.SecureMessages">
    <d2p1:MessageToPatientModel>
      <d2p1:Attachments>
        <IdNamePairModel>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </IdNamePairModel>
        <IdNamePairModel>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </IdNamePairModel>
      </d2p1:Attachments>
      <d2p1:Body>sample string 9</d2p1:Body>
      <d2p1:CreationDate>sample string 2</d2p1:CreationDate>
      <d2p1:HasAttachments>true</d2p1:HasAttachments>
      <d2p1:Id>60cf00da-fcd9-4c34-82ae-2daf2873cdf3</d2p1:Id>
      <d2p1:Priority>sample string 3</d2p1:Priority>
      <d2p1:Read>true</d2p1:Read>
      <d2p1:SecureRecipientId>678b1c42-a08c-4c82-95c0-c37a92abc203</d2p1:SecureRecipientId>
      <d2p1:SecureRecipientName>sample string 7</d2p1:SecureRecipientName>
      <d2p1:SentDate>sample string 10</d2p1:SentDate>
      <d2p1:Status>sample string 4</d2p1:Status>
      <d2p1:Subject>sample string 8</d2p1:Subject>
    </d2p1:MessageToPatientModel>
    <d2p1:MessageToPatientModel>
      <d2p1:Attachments>
        <IdNamePairModel>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </IdNamePairModel>
        <IdNamePairModel>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </IdNamePairModel>
      </d2p1:Attachments>
      <d2p1:Body>sample string 9</d2p1:Body>
      <d2p1:CreationDate>sample string 2</d2p1:CreationDate>
      <d2p1:HasAttachments>true</d2p1:HasAttachments>
      <d2p1:Id>60cf00da-fcd9-4c34-82ae-2daf2873cdf3</d2p1:Id>
      <d2p1:Priority>sample string 3</d2p1:Priority>
      <d2p1:Read>true</d2p1:Read>
      <d2p1:SecureRecipientId>678b1c42-a08c-4c82-95c0-c37a92abc203</d2p1:SecureRecipientId>
      <d2p1:SecureRecipientName>sample string 7</d2p1:SecureRecipientName>
      <d2p1:SentDate>sample string 10</d2p1:SentDate>
      <d2p1:Status>sample string 4</d2p1:Status>
      <d2p1:Subject>sample string 8</d2p1:Subject>
    </d2p1:MessageToPatientModel>
  </Rows>
  <TotalItems>1</TotalItems>
  <TotalPages>4</TotalPages>
</ListModelOfMessageToPatientModelfe5TJzr4>