HGM dialect (provisional specification)
age [ greaterthan | lessthan ] integer
This specifies the age boundary in years. The defaults if not used are 0 - 110
eg: age greaterthan 49 age lessthan 71
sex [ male | female | all ]
This specifies which gender the rule applies to. The default is to both.
eg. sex male
diagnosis [ ... list of ICD9, snomedCT, or readcodes ]
This specifies that the HMG only applies to persons with these diagnoses. The codes are whatever are being used.
eg: diagnosis [ 250 C10 ]
Which applies the rule to patients with diabetes using ICD9 codes, and Read Codes. This uses a wild card match so that it will match 250.00 and so forth.
medication word
This specifies that the HMG applies to persons taking this medication.
eg. medication Lithium
result word
This specifies that the HMG will be satisfied with a text result
eg. result Mammogram, or result "Diabetic Foot Examination"
LOINC [ .. list of LOINC codes ]
This specifies that the HMG will be satisfied with one of the following LOINC codes as found in the numerical results.
eg: LOINC [ "17855-8" ]
which is a test for HBA1c. Note that Loinc codes must be enclosed in quotes.
Period n [ month | months | year | years ]
This specifies what period the test has to have been done from the current date
eg: period 2 years
means that the HMG will be satisfied if done within the last 2 years.
Graham Chiu
Beta Downloads and Documentation Wiki
Developer Forum