- Timestamp:
- Aug 28, 2008, 2:28:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLMEDS.m
r107 r108 37 37 S MEDTARYTMP=$NA(^TMP("GPLCCR",$J,"MEDARYTMP")) 38 38 K @MEDTVMAP,@MEDTARYTMP 39 F J=1:3 Q:'$D(MEDRSLT(J)) D ; FOR EACH MEDICATION IN THE LIST 39 N DONE S DONE=0 40 F J=1:3 Q:'$D(MEDRSLT(J))!DONE D ; FOR EACH MEDICATION IN THE LIST 40 41 . I DEBUG W "J IS ",J,! 41 42 . S MEDVMAP=$NA(@MEDTVMAP@(J)) … … 69 70 . I $D(MEDRSLT(J+2)) D ; IF THIRD LINE EXISTS 70 71 . . S @MEDVMAP@("MEDDIRECTIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+2),"\ Sig: ",2) 71 . S @MEDVMAP@("MEDDIRECTIONDOSEVALUE")="" 72 . I MEDRSLT(J+3)?1"t".E S DONE=1 ; IF CONTINUATION LINES 73 . S @MEDVMAP@("MEDDOSEVALUE")="" 74 . S @MEDVMAP@("MEDDOSEUNIT")="" 75 . S @MEDVMAP@("MEDFREQUENCYVALUE")="" 76 . S @MEDVMAP@("MEDDURATIONVALUE")="" 77 . S @MEDVMAP@("MEDDURATIONUNIT")="" 72 78 . S @MEDVMAP@("MEDDIRECTIONROUTETEXT")="" 73 79 . S @MEDVMAP@("MEDDIRECTIONFREQUENCYVALUE")=""
Note:
See TracChangeset
for help on using the changeset viewer.