I am trying to change our CAGE questions on our Risk Factors form. I have a visibility region set if the patient answers "Yes" to alcohol use. What I can't figure out is how to tell it to use a certain set of questions if the patient is male and a certain age. Men up to the age of 64 get asked a specific question which differs from females fo any age and men over 65. Does anyone know if this can be done within a visibility region?
You will need a separate visibility region for each different scenario.
For example:
DOCUMENT.ALCOHOLUSE = "Yes" and PATIENT.SEX = "M" and PATIENT._AGEINMONTHS <(64*12)
DOCUMENT.ALCOHOLUSE = "Yes" and PATIENT.SEX = "M" and PATIENT._AGEINMONTHS >=(64*12)
DOCUMENT.ALCOHOLUSE = "Yes" and PATIENT.SEX = "F"
You can stack the visibility regions on top of each other.
DavidShower said:
You will need a separate visibility region for each different scenario.
For example:
DOCUMENT.ALCOHOLUSE = "Yes" and PATIENT.SEX = "M" and PATIENT._AGEINMONTHS <(64*12)
DOCUMENT.ALCOHOLUSE = "Yes" and PATIENT.SEX = "M" and PATIENT._AGEINMONTHS >=(64*12)
DOCUMENT.ALCOHOLUSE = "Yes" and PATIENT.SEX = "F"
You can stack the visibility regions on top of each other.
Thanks David,
how would I use it with an OBS term?
{OBSANY("ALCOHOL COMM") == "yes"} and {PATIENT,SEX = "M"} and {PATIENT._AGEINMONTHS >=(64*12)}
I know I need the curly brackets with the OBS term, but what about the rest of the statement? Or would I be better off making it a document variable?
Thanks in advance
Laurie
For the visibility regions you actually don't need the curly brackets. So you would write it like:
OBSANY("ALCOHOL COMM") == "yes" and PATIENT.SEX == "M" and PATIENT._AGEINMONTHS >=(64*12)
You don't need the curly brackets if you are doing this in VFE, that is....
DavidShower said:
You don't need the curly brackets if you are doing this in VFE, that is....
Yes VFE, thank you!
ljburnham said:
DavidShower said:
You will need a separate visibility region for each different scenario.
For example:
DOCUMENT.ALCOHOLUSE = "Yes" and PATIENT.SEX = "M" and PATIENT._AGEINMONTHS <(64*12)
DOCUMENT.ALCOHOLUSE = "Yes" and PATIENT.SEX = "M" and PATIENT._AGEINMONTHS >=(64*12)
DOCUMENT.ALCOHOLUSE = "Yes" and PATIENT.SEX = "F"
You can stack the visibility regions on top of each other.
Ok so I created and stacked the visibility regions, thank you! But each statement above needs a different question asked. The 1st one was easy, but how do I do the next 2?
Thanks
If you have the visibility regions stacked, that is layered one on top of the other, they act like sections. You can put labels and fields inside the visibility region. If you need to work on the next region, right-click in the current region and choose Previous or Next and it will take you to the next layer of visibility regions. There you can add your labels, edit fields, radio buttons, etc. So, if you are on the "bottom" layer, clicking Next takes you to layer 2 and Next again takes you to layer 3. Next again won't do anything. You are at the "top" layer. Previous takes you back to layer 2 and Previous again takes you back to layer 1.
Hope this helps.
DavidShower said:
If you have the visibility regions stacked, that is layered one on top of the other, they act like sections. You can put labels and fields inside the visibility region. If you need to work on the next region, right-click in the current region and choose Previous or Next and it will take you to the next layer of visibility regions. There you can add your labels, edit fields, radio buttons, etc. So, if you are on the "bottom" layer, clicking Next takes you to layer 2 and Next again takes you to layer 3. Next again won't do anything. You are at the "top" layer. Previous takes you back to layer 2 and Previous again takes you back to layer 1.
Hope this helps.
Thanks David
I was able to stack the visibility regions, but now the encounter populates the question 3 times no matter the age or sex:
Drinks per day: Drinks. Never has more than five drinks per occasion.
How many times in the past year have you had 5 or more drinks in a day? 0
Drinks per day: Drinks. Never has more than five drinks per occasion.
How many times in the past year have you had 4 or more drinks in a day? 0
Drinks per day: Drinks. Never has more than five drinks per occasion.
How many times in the past year have you had 4 or more drinks in a day? 0
Any suggestions would be appreciated:
On the visibility region properties page (where you write the rule), make sure you check the box "Suppress translation if region not visible"
DavidShower said:
On the visibility region properties page (where you write the rule), make sure you check the box "Suppress translation if region not visible"
Worked perfectly! Thank you again for all your help.
Laurie