Releases: openhealthalgorithms/service
Releases · openhealthalgorithms/service
v1.6.4
For the assessments that doesn't run the calculations and returns null, the format changed to have the following output:
"assessment_type": {
"code": "ASSESSMENT-FALSE",
"eval": "No Assessment",
"message": "No assessment performed",
"refer": "no",
"target": "",
"tfl": "GRAY",
"value": ""
}
The value and target may or may not have any data according to different assessment types.
The generic error format is changed from simple string to an error object like the following:
{
"category": "assessments",
"key": "assessment_type",
"messages": [
"... error messages ...",
"... as a list of strings ..."
]
}
v1.6.3
v1.6.1
v1.6.0
v1.5.0
v1.0.0
v0.6.2
v0.6
Changes on this release
- Cloud functionality added
- Config changes for cloud functionality
[server]
port = "9595" # define port number to run the service. It's your responsibility to select an unused port number.
[files]
guideline_file = "guideline_hearts.json" # name of the guideline JSON file
guideline_content_file = "guideline_hearts_content.json" # name of the guideline content JSON file
goal_file = "goals_hearts.json" # name of the goal JSON file
goal_content_file = "goals_hearts_content.json" # name of the goal content JSON file
log_file = "ohas-logs.db" # name of the logs database file
[directories]
guideline_path = "contents" # path of the directory for guideline JSON and guideline content JSON file
goal_path = "contents" # path of the directory for goal JSON and goal content JSON file
log_file_path = "~" # path of the log file
[cloud]
cloud_enable = false
cloud_bucket_name = ""
cloud_config_file = ""
cloud_db_host = ""
cloud_db_name = ""
cloud_db_user = ""
cloud_db_password = ""
v0.5.2
Changes on this release
pre-processing
changes in the rules
The pre-processing
is changed to the following structure:
"pre_processing": {
"existing_cvd": [{
"conditions": [{
"diseases": {
"ami": true
}
},
{
"diseases": {
"hx_cvd": true
}
}
],
"return": true
}],
"high_risk_conditions": [{
"conditions": [{
"diseases": {
"hx_pvd": true
}
},
{
"diseases": {
"hx_ckd": true
}
}
],
"return": true
}],
"age_check_for_cvd": [{
"conditions": [{
"age": {
"from": 40
}
}],
"return": true
}]
},
v0.5.1
Changes on this release
medications
support in the rules
A sample rule conditions with medications
:
{
"category": "hypertension, on medication",
"definition": "high blood pressure, on medication",
"conditions": [
{
"medications": {
"anti-hypertensive": true
},
"diabetes": false,
"age": {
"from": 41
},
"sbp": {
"from": 141,
"unit": "mmHg"
},
"target": "120/80"
},
{
"medications": {
"anti-hypertensive": true
},
"diabetes": false,
"dbp": {
"from": 91,
"unit": "mmHg"
},
"target": "120/80"
}
],
"code": "BP-HTN-ON-MEDICATION"
}
The medications
object can hold the following values:
"medications": {
"anti-hypertensive": true,
"oral-hypoglycaemic": true,
"insulin": true,
"lipid-lowering": true,
"anti-platelet": true,
"anti-coagulant": true,
"bronchodilator": true
}
You can provide input like this for medication:
"medications": [
{
"generic": "rampiril",
"category": "anti-hypertensive",
"class": ""
}
],