Enhanced location search logic by Location Tag Rules.
Location Tag Rules is configured via a new AWS ConfigStore variable locationTagRules
- default value is an empty array[]
. With this variable, an administrator is able to filter location search results by including or excluding location tags behind the scene if the patient answer matches the rule.
ConfigStore locationTagRules
schema:
name
: Name of the rule
outcome
: Include or Exclude
tags
: List of Tag Id. This list will be a combined outcome (Include or Exclude) to determine the output after doing evaluation → Include or Exclude the locations which have tags from the search result.
rules
: A list of rules which contains questions and expected answers to trigger the Location Tag Rules.
isActive
: true or false.
rsType
: Rule type, recommend value is LocationTag
.
description
: Description of the rule.
Example:
Administrators want to remove Pediatric Locations from Location Search Result if the patient's age is equal or greater than 18 years old.
Pediatric tag: a0p4x00000BIdlyAAD.
The locationTagRules
will be:
[
{
"name": "Exclude Pediatric Clinic",
"rsType": "LocationTag",
"outcome": "Exclude",
"tags": ["a0p4x00000BIdlyAAD"],
"isActive": true,
"description": "Patients who have age is equal or greater than 18 years old can not see Pediatric clinics",
"rules": [
{
"value": "[\"TODAY\",\"-P18Y0M0D\"]",
"dataType": "Date",
"operator": "isAfter",
"question": "q.screening.birthday.screening"
}
]
}
]
Comments
0 comments
Please sign in to leave a comment.