Changeset 636 for FOIAVistA/tag/r/CLINICAL_REMINDERS-PXRM/PXRMETXR.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/CLINICAL_REMINDERS-PXRM/PXRMETXR.m
r628 r636 1 PXRMETXR ; SLC/PJH,PKR - Reminder section of extract ;0 2/22/20072 ;;2.0;CLINICAL REMINDERS;**4 ,6**;Feb 04, 2005;Build 1231 PXRMETXR ; SLC/PJH,PKR - Reminder section of extract ;05/01/2006 2 ;;2.0;CLINICAL REMINDERS;**4**;Feb 04, 2005;Build 21 3 3 ; 4 4 ; Called from PXRMETX … … 115 115 ;lists. 116 116 N APPL,DATA,DEFARR,DEFSITE,DFN,DUE,FIEV,FRIEN,FUTIL,IND,INST 117 N PXRMDATE,RCNT,REM,R EMSEQ,RIEN,RNAM,STATUS,SUB1,TODAY117 N PXRMDATE,RCNT,REM,RIEN,RNAM,STATUS,SUB1,TODAY 118 118 N END,START 119 119 ;S START=$H … … 123 123 ;Scan reminders for this parameter set 124 124 S (RCNT,SUB1)=0 125 S REMSEQ="" 126 F S REMSEQ=$O(^PXRM(810.2,IEN,10,SUB,10,"B",REMSEQ)) Q:REMSEQ="" D 127 .F S SUB1=$O(^PXRM(810.2,IEN,10,SUB,10,"B",REMSEQ,SUB1)) Q:'SUB1 D 128 ..S DATA=$G(^PXRM(810.2,IEN,10,SUB,10,SUB1,0)) Q:DATA="" 129 ..;Reminder ien 130 ..S RIEN=$P(DATA,U,2) Q:'RIEN 131 ..;Evaluation date is period end except if the period is incomplete. 132 ..S PXRMDATE=$S($$FMDIFF^XLFDT(PXRMSTOP,TODAY,2)>0:TODAY,1:PXRMSTOP) 133 ..;Finding Rule 134 ..S FRIEN=$P(DATA,U,3) 135 ..;Reminder print name 136 ..S RNAM=$P($G(^PXD(811.9,RIEN,0)),U,3) 137 ..I RNAM="" S RNAM=$P(^PXD(811.9,RIEN,0),U,1) 138 ..;Save details to REM array 139 ..S RCNT=RCNT+1,REM(RCNT)=RIEN_U_RNAM_U_FRIEN 140 ..;Build list of terms from extract finding rule #810.7 141 ..I FRIEN D FRULE(FRIEN,RCNT,SEQ,.REM,.FUTIL) Q 142 ..;If no extract finding rule defined collect all findings in reminder 143 ..I 'FRIEN D REMF(RIEN,RCNT,SEQ,.REM) 125 F S SUB1=$O(^PXRM(810.2,IEN,10,SUB,10,SUB1)) Q:'SUB1 D 126 .S DATA=$G(^PXRM(810.2,IEN,10,SUB,10,SUB1,0)) Q:DATA="" 127 .;Reminder ien 128 .S RIEN=$P(DATA,U,2) Q:'RIEN 129 .;Evaluation date is period end except if the period is incomplete. 130 .S PXRMDATE=$S($$FMDIFF^XLFDT(PXRMSTOP,TODAY,2)>0:TODAY,1:PXRMSTOP) 131 .;Finding Rule 132 .S FRIEN=$P(DATA,U,3) 133 .;Reminder print name 134 .S RNAM=$P($G(^PXD(811.9,RIEN,0)),U,3) 135 .;Save details to REM array 136 .S RCNT=RCNT+1,REM(RCNT)=RIEN_U_RNAM_U_FRIEN 137 .;Build list of terms from extract finding rule #810.7 138 .I FRIEN D FRULE(FRIEN,RCNT,SEQ,.REM,.FUTIL) Q 139 .;If no extract finding rule defined collect all findings in reminder 140 .I 'FRIEN D REMF(RIEN,RCNT,SEQ,.REM) 144 141 ; 145 142 ;Process patient list
Note:
See TracChangeset
for help on using the changeset viewer.