Changeset 81
- Timestamp:
- Jul 30, 2008, 3:11:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLMEDS.m
r79 r81 32 32 S MEDTVMAP=$NA(^TMP("GPLCCR",$J,"MEDICATIONS")) 33 33 S MEDTARYTMP=$NA(^TMP("GPLCCR",$J,"MEDARYTMP")) 34 F J=1: 1Q:'$D(MEDRSLT(J)) D ; FOR EACH MEDICATION IN THE LIST35 . W "J IS ",J,!34 F J=1:3 Q:'$D(MEDRSLT(J)) D ; FOR EACH MEDICATION IN THE LIST 35 . W "J IS ",J,! 36 36 . S MEDVMAP=$NA(@MEDTVMAP@(J)) 37 37 . K @MEDVMAP … … 57 57 . S @MEDVMAP@("MEDICATIONSTRENGTHUNIT")="" 58 58 . S @MEDVMAP@("MEDICATIONFORMTEXT")="" 59 . S J=J+1 60 . S @MEDVMAP@("MEDICATIONDESCRIPTIONTEXT")=$P(MEDRSLT(J)," *",2) 61 . S J=J+1 62 . S @MEDVMAP@("MEDICATIONDIRECTIONDESCRIPTIONTEXT")=$P(MEDRSLT(J),"\ Sig: ",2) 59 . S @MEDVMAP@("MEDICATIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+1)," *",2) 60 . S @MEDVMAP@("MEDICATIONDIRECTIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+2),"\ Sig: ",2) 63 61 . S @MEDVMAP@("MEDICATIONDIRECTIONDOSEVALUE")="" 64 62 . S @MEDVMAP@("MEDICATIONDIRECTIONROUTETEXT")="" … … 67 65 . K @MEDARYTMP 68 66 . D MAP^GPLXPATH(MEDXML,MEDVMAP,MEDARYTMP) 69 . I J= 3D ; FIRST ONE IS JUST A COPY67 . I J=1 D ; FIRST ONE IS JUST A COPY 70 68 . . ; W "FIRST ONE",! 71 69 . . D CP^GPLXPATH(MEDARYTMP,MEDOUTXML) 72 . I J> 3D ; AFTER THE FIRST, INSERT INNER XML70 . I J>1 D ; AFTER THE FIRST, INSERT INNER XML 73 71 . . D INSINNER^GPLXPATH(MEDOUTXML,MEDARYTMP) 74 . S J=J+175 72 N MEDTMP,MEDI 76 73 D MISSING^GPLXPATH(MEDOUTXML,"MEDTMP") ; SEARCH XML FOR MISSING VARS
Note:
See TracChangeset
for help on using the changeset viewer.