Code: Select all
//Copy text
Press LShift
Press End
Press Left
Wait>0.2
Release LShift
//copy spiro statement to clipboard
Press LCtrl
Send>c
Release LCtrl
Wait>1
GetClipBoard>var_spiro
Wait>1
//translate EMR text into custom text
If>%var_spiro%=Normal spirometry.
Let>spiroresults=The spirometry is normal.
Endif
Wait>0.5
If>%var_spiro%=Obstruction may be a physiological variant.
Let>spiroresults=The spirometry is normal.
Endif
Wait>0.5
If>%var_spiro%=Normal spirometry. Post bronchodilator test not improved.
Let>spiroresults=The spirometry is normal and non-reversible with a bronchodilator.
Endif
Wait>0.5
If>%var_spiro%=Mild airway obstruction.
Let>spiroresults=The spirometry demonstrates mild airway obstruction.
Endif
Wait>0.5
If>%var_spiro%=Mild airway obstruction. Post bronchodilator test improved.
Let>spiroresults=The spirometry demonstrates mild airway obstruction, significantly reversible with a bronchodilator.
Wait>0.5
Else
Let>spiroresults=var_spiro
Endif