[1]["PTDIRGOALS",CVD Goals
1. Current BP is "BP systolic"/"BP diastolic". Optimal BP </80
2. Current LDL is "LDL". Optimal LDL </=
3. Current weight is "WEIGHT". Expected weight loss lbs
4. Smoking cessation
5. Alcohol consumption
6. Nutrition counseling
]
When imported into EMR I get the following error:
{
/*FUNCTION DEFINITIONS*/
/*Function for RUNPROCESS Button */
fn fn1891_515_1415309309(){
[ <-COMPILER ERROR NEARBY: Expect FUNCTION NAME. Instead had LEFT SQUARE BRACKET after LEFT CURLY BRACE
Go to your button in VFE and change this:
[1]["PTDIRGOALS",CVD Goals
1. Current BP is "BP systolic"/"BP diastolic". Optimal BP </80
2. Current LDL is "LDL". Optimal LDL </=
3. Current weight is "WEIGHT". Expected weight loss lbs
4. Smoking cessation
5. Alcohol consumption
6. Nutrition counseling
]
to
{OBSNOW("PTDIRGOALS", "CVD Goals" + HRET +
"1. Current BP is 'BP systolic'/'BP diastolic'. Optimal BP </80" + HRET +
"2. Current LDL is 'LDL'. Optimal LDL </=" + HRET +
"3. Current weight is 'WEIGHT'. Expected weight loss lbs" + HRET +
"4. Smoking cessation" + HRET +
"5. Alcohol consumption" + HRET +
"6. Nutrition counseling")}
I'm not sure how you wanted to do the formatting in the obs term, so I just kept it like you had it above. This seems to be caused by going from a SETVALUES to a RUNPROCESS button.
Is there a way to get the command to populate the last obs for BP systolic/BP diastolic and weight?
I am trying to create a button that will populate the goals they are working towards but also populate the information they have already collected without having to duplicate their efforts.
Is this what you are trying to do?
OBSNOW("PTDIRGOALS", "CVD Goals" + HRET +
"1. Current BP is " + OBSNOW("BP SYSTOLIC") + "/" + OBSNOW("BP DIASTOLIC") + ". Optimal BP </80" + HRET +
"2. Current LDL is " + OBSNOW("LDL") + ". Optimal LDL </=" + HRET +
"3. Current weight is " + OBSNOW("WEIGHT") + ". Expected weight loss lbs" + HRET +
"4. Smoking cessation" + HRET +
"5. Alcohol consumption" + HRET +
"6. Nutrition counseling")
AWESOME! Thank you!!