Skip to content

v0.5.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@samhq samhq released this 27 Feb 08:48
· 53 commits to develop since this release
9722527

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": ""
    }
],