- tracker-api
- for-patient
- for-internal
- system
- dataflow
- for-patient
- for-internal
Filter Messages
Testing
tracker - local
http://localhost:8081/
tracker - local
http://localhost:8081/
POST
api/internal/v1/messages/filter
Request
Header Params
username
string
required
Example:
{{username}}
password
string
required
Example:
{{password}}
Body Params application/json
criteria
object
required
Example
{
"criteria": {
"type": "CRITERIA",
"operator": "AND",
"criteria": [
{
"type": "CRITERION",
"operator": "EQUALS",
"criteria": [],
"attribute": "sideEffectType",
"values": [
"IMMEDIATE"
]
}
]
},
"limit": 5,
"offset": 0,
"sort": "updatedAt,desc",
"type": "NOTIFICATION"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8081/api/internal/v1/messages/filter' \
--header 'username: content-synchronizer' \
--header 'password: 5BW9ow4COZOaz5eIj81Ot27LhwFH4EMO' \
--header 'Content-Type: application/json' \
--data-raw '{
"criteria": {
"type": "CRITERIA",
"operator": "AND",
"criteria": [
{
"type": "CRITERION",
"operator": "EQUALS",
"criteria": [],
"attribute": "sideEffectType",
"values": [
"IMMEDIATE"
]
}
]
},
"limit": 5,
"offset": 0,
"sort": "updatedAt,desc",
"type": "NOTIFICATION"
}'
Responses
🟢200OK
application/json
Body
status
string
required
data
object
required
taskId
string
required
Examples
{
"criteria": {
"type": "CRITERIA",
"operator": "AND",
"criteria": [
{
"type": "CRITERION",
"operator": "EQUALS",
"criteria": [],
"attribute": "ctcaeCode",
"values": [
"12345678"
]
},
{
"type": "CRITERION",
"operator": "EQUALS",
"criteria": [],
"attribute": "severity",
"values": [
"G1"
]
}
]
},
"limit": 5,
"offset": 0,
"sort": "updatedAt,desc",
"type": "CALL_TO_ACTION"
}
Modified at 2024-03-17 12:45:08