GET Patient Messages

Developer Tools

GET api/v1/{EMRSystem}/PatientMessages

Returns the Portal inbox message folders for a given patient.

HTTP Method

GET

Applicable Emissary Products

Interactive Workflow

Allscripts

In Dev

Athena

In Dev

Cerner

In Dev

Meditech

In Dev

Sandbox

In Dev

Don't see the data field you are looking for?

Request Information

URI Parameters

NAME

DESCRIPTION

TYPE

ADDITIONAL INFO

EMRSystem

The emr system.

EMRsystem

Required

UserId

Gets or sets the user identifier.

string

Required

PatientId

Gets or sets the patient identifier.

string

Required

Folder

Gets or sets the folder.

FolderType

Required

PreviewLines

Gets or sets the preview lines.

integer

None

 
Body Parameters
None
 

Response Information

 
Resource Description
Http response containing a list of Patient Messages.

NAME

DESCRIPTION

TYPE

ADDITIONAL INFO

MessageId

Gets or sets the message identifier.

string

None.

PatientId

Gets or sets the patient identifier.

string

None.

EncounterId

Gets or sets the encounter identifier.

string

None.

EncounterType

Gets or sets the encounter type.

CodedObjectViewModel

None.

PatientClass

Gets or sets the patient class.

CodedObjectViewModel

None.

MessageType

Gets or sets the type of the message.

CodedObjectViewModel

None.

Subject

Gets or sets the subject.

string

None.

Body

Gets or sets the body.

string

None.

From

Gets or sets from.

FromViewModel

None.

To

Gets or sets to.

ToViewModel

None.

HasAttachment

Gets or sets the has attachment.

boolean

None.

HasIncompleteTask

Gets or sets the has incomplete task.

boolean

None.

MessageDateTime

Gets or sets the message date time.

date

None.

Read

Gets or sets the read.

boolean

None.

 
Response Codes

Http Status Code 200 – Returns Sansoro.Shared.SansoroServiceBus.Models.BaseModels.PatientMessageViewModel

Http Status Code 204 – Indicates that there were Zero records found.

Http Status Code 400 – Indicates that the request did not contain all the required fields.

Http Status Code 404 – Indicates that the resource to get could not be found.

Http Status Code 500 – Indicates that an internal server error occurred during processing of the request.

Http Status Code 502 – Indicates that a request made to the underlying EMR server could not be completed.

 
Response Formats
Sample Message
Download Json Schema
[
  {
    "MessageId": "sample string 1",
    "PatientId": "sample string 2",
    "EncounterId": "sample string 3",
    "EncounterType": {
      "Id": "sample string 1",
      "Name": "sample string 2"
    },
    "PatientClass": {
      "Id": "sample string 1",
      "Name": "sample string 2"
    },
    "MessageType": {
      "Id": "sample string 1",
      "Name": "sample string 2"
    },
    "Subject": "sample string 4",
    "Body": "sample string 5",
    "From": {
      "SenderId": "sample string 1",
      "SenderName": "sample string 2"
    },
    "To": {
      "RecipientId": "sample string 1",
      "RecipientName": "sample string 2"
    },
    "HasAttachment": true,
    "HasIncompleteTask": true,
    "MessageDateTime": "2018-02-14T19:44:50.8930023Z",
    "Read": true
  },
  {
    "MessageId": "sample string 1",
    "PatientId": "sample string 2",
    "EncounterId": "sample string 3",
    "EncounterType": {
      "Id": "sample string 1",
      "Name": "sample string 2"
    },
    "PatientClass": {
      "Id": "sample string 1",
      "Name": "sample string 2"
    },
    "MessageType": {
      "Id": "sample string 1",
      "Name": "sample string 2"
    },
    "Subject": "sample string 4",
    "Body": "sample string 5",
    "From": {
      "SenderId": "sample string 1",
      "SenderName": "sample string 2"
    },
    "To": {
      "RecipientId": "sample string 1",
      "RecipientName": "sample string 2"
    },
    "HasAttachment": true,
    "HasIncompleteTask": true,
    "MessageDateTime": "2018-02-14T19:44:50.8930023Z",
    "Read": true
  }
]
Sample Message
<ArrayOfPatientMessageViewModel xmlns:i="https://www.w3.org/2001/XMLSchema-instance" xmlns="https://schemas.datacontract.org/2004/07/Sansoro.Shared.SansoroServiceBus.Models.BaseViewModels">
  <PatientMessageViewModel>
    <Body>sample string 5</Body>
    <EncounterId>sample string 3</EncounterId>
    <EncounterType>
      <Id>sample string 1</Id>
      <Name>sample string 2</Name>
    </EncounterType>
    <From>
      <SenderId>sample string 1</SenderId>
      <SenderName>sample string 2</SenderName>
    </From>
    <HasAttachment>true</HasAttachment>
    <HasIncompleteTask>true</HasIncompleteTask>
    <MessageDateTime>2018-02-14T13:44:50.8930023-06:00</MessageDateTime>
    <MessageId>sample string 1</MessageId>
    <MessageType>
      <Id>sample string 1</Id>
      <Name>sample string 2</Name>
    </MessageType>
    <PatientClass>
      <Id>sample string 1</Id>
      <Name>sample string 2</Name>
    </PatientClass>
    <PatientId>sample string 2</PatientId>
    <Read>true</Read>
    <Subject>sample string 4</Subject>
    <To>
      <RecipientId>sample string 1</RecipientId>
      <RecipientName>sample string 2</RecipientName>
    </To>
  </PatientMessageViewModel>
  <PatientMessageViewModel>
    <Body>sample string 5</Body>
    <EncounterId>sample string 3</EncounterId>
    <EncounterType>
      <Id>sample string 1</Id>
      <Name>sample string 2</Name>
    </EncounterType>
    <From>
      <SenderId>sample string 1</SenderId>
      <SenderName>sample string 2</SenderName>
    </From>
    <HasAttachment>true</HasAttachment>
    <HasIncompleteTask>true</HasIncompleteTask>
    <MessageDateTime>2018-02-14T13:44:50.8930023-06:00</MessageDateTime>
    <MessageId>sample string 1</MessageId>
    <MessageType>
      <Id>sample string 1</Id>
      <Name>sample string 2</Name>
    </MessageType>
    <PatientClass>
      <Id>sample string 1</Id>
      <Name>sample string 2</Name>
    </PatientClass>
    <PatientId>sample string 2</PatientId>
    <Read>true</Read>
    <Subject>sample string 4</Subject>
    <To>
      <RecipientId>sample string 1</RecipientId>
      <RecipientName>sample string 2</RecipientName>
    </To>
  </PatientMessageViewModel>
</ArrayOfPatientMessageViewModel>

Submit a Comment

Your email address will not be published. Required fields are marked *

 

Don't see the data field you are looking for?