Home > Synergy > Hints and tips > Reports |
A BP is actually a header that has no numeric (246..), plus two components (246a. and 2469.) having one each.
So there is no read coded entry you can check for the two values.
You need 3 queries:
Q1. query to get last 1 systolic entries (not patients) into list A
Q2. query to get last 1 diastolic entries into list B
These can optionally limit to only the last year or so assuming regular BPs for these patients, to limit the sizes of the list. Note that there is no check for CHD yet.
Q3.
find patients
Where GMS
With entry for CHD
with entry in A where value < 150
with entry in B where value < 90
print count
Rik Smithies: endspan