Changeset 195 for ccr/trunk/p
- Timestamp:
- Oct 7, 2008, 12:26:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/CCRMEDS.m
r194 r195 65 65 S MEDTVMAP=$NA(^TMP("GPLCCR",$J,"MEDMAP")) 66 66 S MEDTARYTMP=$NA(^TMP("GPLCCR",$J,"MEDARYTMP")) 67 I 'HASOP K @MEDTVMAP,@MEDTARYTMP67 ; I 'HASOP K @MEDTVMAP,@MEDTARYTMP KILL MOVED TO TOP OF ROUTINE 68 68 ; FIRST GO THROUGH MEDRSLT ARRAY AND COUNT MEDS AND LINES IN MEDS 69 69 ; ZA(0) IS TOTAL NUMBER OF MEDS ZA(ZI) IS LINES IN MED ZI … … 88 88 . I $P(MEDPTMP,U,1)?1"~OP" Q ; SKIP OP ACTIVE AND PENDING 89 89 . S MEDCNT=MEDCNT+1 ; WE ARE GOING TO ADD A MED 90 . S MEDVMAP=$NA(@MEDTVMAP@( ZI+MEDCNT)) ; START PAST OP ACTIVE MEDS90 . S MEDVMAP=$NA(@MEDTVMAP@(MEDCNT)) ; START PAST OP ACTIVE MEDS 91 91 . S @MEDTVMAP@(0)=@MEDTVMAP@(0)+1 ; ADDING A MED HERE 92 . S @MEDVMAP@("MEDOBJECTID")="MED"_( ZI+MEDCNT) ; UNIQUE OBJID FOR MEDS92 . S @MEDVMAP@("MEDOBJECTID")="MED"_(MEDCNT) ; UNIQUE OBJID FOR MEDS 93 93 . I $P(MEDPTMP,"^",11)="" S @MEDVMAP@("MEDISSUEDATETXT")="" 94 94 . E S @MEDVMAP@("MEDISSUEDATETXT")=$$FMDTOUTC^CCRUTIL($P(MEDPTMP,"^",11),"DT") ; GETS LAST FILL DATE
Note:
See TracChangeset
for help on using the changeset viewer.