Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

NameTypeMandatoryDescription
tokenStringYesSecurity Token obtained before.
userIdStringYesThe id of the logged in user.
typeENUMNo

Possible values: ['ALL', 'ALERT', 'EMAIL', 'DOCUMENT',"'PARAMETERIZEDALERT' ].

Default value: "ALL".

The source of the messages.

locationENUMNo

Possible values: ['INBOX', 'SENT', 'ARCHIVE'].

Default value: "INBOX".

patientIdStringNo

Not used when type = 'PARAMETERIZEDALERT'

Used if we want to retrieve only those messages related to a specific patient.

patientLocationENUMNo

Possible values: ['ORGANIZATION', 'FACILITY', 'WORKSPACE', 'ROOM' ].
Only used when type =  'PARAMETERIZEDALERT'

Filter the messages by a specific location. Use patientLocationId parameter to specify which location you want to use in the filter.

patientLocationIdStringNo unless patientLocation is specified.Indicates what is the id of the location you want to use to filter the messages.

API Sample

curl 'http://192.168.1.122:8080/PresentationServices/getMessages?userId=QA_1&token=a3fef5d8-951a-4a11-9b39-7efb63695211&type=PARAMETERIZEDALERT' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'User-Agent: Mozilla/5.0 (Linux; Android 4.4.2; Nexus 5 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36' --compressed

Code Block
languagejs
titleResult
collapsetrue
{

"messagesFact": {

"statusFact": {

"success": true

}

,"messageObjects": [

{

  "messageId": "ff80818147e7ee6c0147e7f14d000005",
  "type": "ParameterizedAlert",
  "podId": "Pod A",
  "location": "INBOX",
  "labels": [],
  "messageDate": "8/18/14",
  "messageTime": "09:07",
  "description": "Skin To Skin Alert",
  "title": "            peggy 500##split##33wks 999g",
  "payload": "This patient has not had skin to skin contact for at least 7 consecutive days.",
  "status": "Unread",
  "priority": "HIGH",
  "tasksCount": 0,
  "tasksComplete": 0,
  "from": "NCCC"
},{
  "messageId": "22",
  ...
  }
 ]}}

...

NameTypeMandatoryDescription
tokenStringYesSecurity Token obtained before.
userIdStringYesThe id of the logged in user.
actionENUMYesPossible values: ['Read', 'Unread', 'Archive', 'Delete']
This is the action we want to execute agains the message 
messageIdsStringYesThe id of the message you want to execute the action against. You could include this parameter multiple times to work on multiple messages at once.
locationENUMYes

Possible values: ['INBOX', 'SENT', 'ARCHIVE'].

Default value: "INBOX".

typesENUMYes

Possible values: ['ALL', 'ALERT', 'EMAIL', 'DOCUMENT',"PARAMETERIZEDALERT' ].

Default value: "ALL".

...