PXRMG2E3 ;SLC/JVS -GEC #2 EXTRACT #3 ;2/13/05 20:08
;;2.0;CLINICAL REMINDERS;**2**;Feb 04, 2005
Q
;
CRITER4 ; Extracts the IEN for the health factors that represents
; the 3 IADL'S
I $D(^AUTTHF("B","GEC DIFFICULT TRANSPORTATION/LAST 7D-YES")) D
.S C142($O(^AUTTHF("B","GEC DIFFICULT TRANSPORTATION/LAST 7D-YES",0)))=""
I $D(^AUTTHF("B","GEC DIFFICULTY MANAGING MEDS/LAST 7D-YES")) D
.S C144($O(^AUTTHF("B","GEC DIFFICULTY MANAGING MEDS/LAST 7D-YES",0)))=""
I $D(^AUTTHF("B","GEC DIFFICULTY MNG FINANCES/LAST 7D-YES")) D
.S C146($O(^AUTTHF("B","GEC DIFFICULTY MNG FINANCES/LAST 7D-YES",0)))=""
I $D(^AUTTHF("B","GEC DIFFICULTY PREPARE MEALS/LAST 7D-YES")) D
.S C148($O(^AUTTHF("B","GEC DIFFICULTY PREPARE MEALS/LAST 7D-YES",0)))=""
I $D(^AUTTHF("B","GEC DIFFICULTY USING PHONE/LAST 7D-YES")) D
.S C1410($O(^AUTTHF("B","GEC DIFFICULTY USING PHONE/LAST 7D-YES",0)))=""
I $D(^AUTTHF("B","GEC DIFFICULTY W/ HOUSEWORK/LAST 7D-YES")) D
.S C1412($O(^AUTTHF("B","GEC DIFFICULTY W/ HOUSEWORK/LAST 7D-YES",0)))=""
I $D(^AUTTHF("B","GEC DIFFICULTY WITH SHOPPING/LAST 7D-YES")) D
.S C1414($O(^AUTTHF("B","GEC DIFFICULTY WITH SHOPPING/LAST 7D-YES",0)))=""
I $D(^AUTTHF("B","GEC COMMUNITY NRSNG HOME (REFERRED FROM)")) D
.S C1101($O(^AUTTHF("B","GEC COMMUNITY NRSNG HOME (REFERRED FROM)",0)))=""
I $D(^AUTTHF("B","GEC VA DOMICILIARY (REFERRED FROM)")) D
.S C1107($O(^AUTTHF("B","GEC VA DOMICILIARY (REFERRED FROM)",0)))=""
I $D(^AUTTHF("B","GEC VA NURSING HOME")) D
.S C1108($O(^AUTTHF("B","GEC VA NURSING HOME",0)))=""
I $D(^AUTTHF("B","GEC ALONE")) D
.S C171($O(^AUTTHF("B","GEC ALONE",0)))=""
I $D(^AUTTHF("B","GEC NURSING HOME")) D
.S C166($O(^AUTTHF("B","GEC NURSING HOME",0)))=""
;
Q
;Continued in..
PXRMG2E3 ;SLC/JVS -GEC #2 EXTRACT #3 ;2/13/05 20:08
+1 ;;2.0;CLINICAL REMINDERS;**2**;Feb 04, 2005
+2 QUIT
+3 ;
CRITER4 ; Extracts the IEN for the health factors that represents
+1 ; the 3 IADL'S
+2 IF $DATA(^AUTTHF("B","GEC DIFFICULT TRANSPORTATION/LAST 7D-YES"))
Begin DoDot:1
+3 SET C142($ORDER(^AUTTHF("B","GEC DIFFICULT TRANSPORTATION/LAST 7D-YES",0)))=""
End DoDot:1
+4 IF $DATA(^AUTTHF("B","GEC DIFFICULTY MANAGING MEDS/LAST 7D-YES"))
Begin DoDot:1
+5 SET C144($ORDER(^AUTTHF("B","GEC DIFFICULTY MANAGING MEDS/LAST 7D-YES",0)))=""
End DoDot:1
+6 IF $DATA(^AUTTHF("B","GEC DIFFICULTY MNG FINANCES/LAST 7D-YES"))
Begin DoDot:1
+7 SET C146($ORDER(^AUTTHF("B","GEC DIFFICULTY MNG FINANCES/LAST 7D-YES",0)))=""
End DoDot:1
+8 IF $DATA(^AUTTHF("B","GEC DIFFICULTY PREPARE MEALS/LAST 7D-YES"))
Begin DoDot:1
+9 SET C148($ORDER(^AUTTHF("B","GEC DIFFICULTY PREPARE MEALS/LAST 7D-YES",0)))=""
End DoDot:1
+10 IF $DATA(^AUTTHF("B","GEC DIFFICULTY USING PHONE/LAST 7D-YES"))
Begin DoDot:1
+11 SET C1410($ORDER(^AUTTHF("B","GEC DIFFICULTY USING PHONE/LAST 7D-YES",0)))=""
End DoDot:1
+12 IF $DATA(^AUTTHF("B","GEC DIFFICULTY W/ HOUSEWORK/LAST 7D-YES"))
Begin DoDot:1
+13 SET C1412($ORDER(^AUTTHF("B","GEC DIFFICULTY W/ HOUSEWORK/LAST 7D-YES",0)))=""
End DoDot:1
+14 IF $DATA(^AUTTHF("B","GEC DIFFICULTY WITH SHOPPING/LAST 7D-YES"))
Begin DoDot:1
+15 SET C1414($ORDER(^AUTTHF("B","GEC DIFFICULTY WITH SHOPPING/LAST 7D-YES",0)))=""
End DoDot:1
+16 IF $DATA(^AUTTHF("B","GEC COMMUNITY NRSNG HOME (REFERRED FROM)"))
Begin DoDot:1
+17 SET C1101($ORDER(^AUTTHF("B","GEC COMMUNITY NRSNG HOME (REFERRED FROM)",0)))=""
End DoDot:1
+18 IF $DATA(^AUTTHF("B","GEC VA DOMICILIARY (REFERRED FROM)"))
Begin DoDot:1
+19 SET C1107($ORDER(^AUTTHF("B","GEC VA DOMICILIARY (REFERRED FROM)",0)))=""
End DoDot:1
+20 IF $DATA(^AUTTHF("B","GEC VA NURSING HOME"))
Begin DoDot:1
+21 SET C1108($ORDER(^AUTTHF("B","GEC VA NURSING HOME",0)))=""
End DoDot:1
+22 IF $DATA(^AUTTHF("B","GEC ALONE"))
Begin DoDot:1
+23 SET C171($ORDER(^AUTTHF("B","GEC ALONE",0)))=""
End DoDot:1
+24 IF $DATA(^AUTTHF("B","GEC NURSING HOME"))
Begin DoDot:1
+25 SET C166($ORDER(^AUTTHF("B","GEC NURSING HOME",0)))=""
End DoDot:1
+26 ;
+27 QUIT
+28 ;Continued in..