- Timestamp:
- Aug 19, 2008, 4:50:47 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLCCR.m
r84 r93 49 49 ; "TO" VARIABLES 50 50 ; IF NULL WILL DEFAULT TO "FROM" DUZ AND "TO" DFN 51 S DEBUG=051 I '$D(DEBUG) S DEBUG=0 52 52 S CCD=0 ; NEED THIS FLAG TO DISTINGUISH FROM CCD 53 53 I '$D(TESTLAB) S TESTLAB=0 ; FLAG FOR TESTING RESULTS SECTION -
ccr/trunk/p/GPLMEDS.m
r90 r93 32 32 . S @MEDOUTXML@(0)=0 33 33 . Q 34 I FDEBUG ZWR MEDRSLT34 I DEBUG ZWR MEDRSLT 35 35 S MEDTVMAP=$NA(^TMP("GPLCCR",$J,"MEDICATIONS")) 36 36 S MEDTARYTMP=$NA(^TMP("GPLCCR",$J,"MEDARYTMP")) 37 37 F J=1:3 Q:'$D(MEDRSLT(J)) D ; FOR EACH MEDICATION IN THE LIST 38 . W "J IS ",J,!38 . I DEBUG W "J IS ",J,! 39 39 . S MEDVMAP=$NA(@MEDTVMAP@(J)) 40 40 . K @MEDVMAP … … 43 43 . S @MEDVMAP@("MEDICATIONOBJECTID")="MED"_J ; UNIQUE OBJID FOR MEDS 44 44 . ; PROCESSING FOR MEDS GOES HERE 45 . S @MEDVMAP@("MEDI CATIONDATETIMETEXT")=$$FMDTOUTC^CCRUTIL($P(MEDPTMP,"^",11),"DT") ; GETS LAST FILL DATE45 . S @MEDVMAP@("MEDISSUEDATETXT")=$$FMDTOUTC^CCRUTIL($P(MEDPTMP,"^",11),"DT") ; GETS LAST FILL DATE 46 46 . S @MEDVMAP@("MEDICATIONDATETIMEAGE")="" 47 47 . S @MEDVMAP@("MEDICATIONDATETIMEAGEUNITS")="" 48 . S @MEDVMAP@("MED ICATIONTYPETEXT")="Medication"49 . S @MEDVMAP@("MED ICATIONSTATUSTEXT")=$P(MEDPTMP,"^",10) ; STATUS FROM RPC50 . S @MEDVMAP@("MED ICATIONSOURCEACTORID")="ACTORSYSTEM_1"51 . S @MEDVMAP@("MED ICATIONPRODUCTNAMETEXT")=$P(MEDPTMP,"^",3)48 . S @MEDVMAP@("MEDTYPETEXT")="Medication" 49 . S @MEDVMAP@("MEDSTATUSTEXT")=$P(MEDPTMP,"^",10) ; STATUS FROM RPC 50 . S @MEDVMAP@("MEDSOURCEACTORID")="ACTORSYSTEM_1" 51 . S @MEDVMAP@("MEDPRODUCTNAMETEXT")=$P(MEDPTMP,"^",3) 52 52 . S @MEDVMAP@("MEDICATIONPRODUCTNAMECODEVALUE")="" 53 53 . S @MEDVMAP@("MEDICATIONPRODUCTNAMECODINGINGSYSTEM")="" 54 54 . S @MEDVMAP@("MEDICATIONPRODUCTNAMECODEVERSION")="" 55 . S @MEDVMAP@("MED ICATIONBRANDNAMETEXT")=""55 . S @MEDVMAP@("MEDBRANDNAMETEXT")="" 56 56 . S @MEDVMAP@("MEDICATIONBRANDNAMECODEVALUE")="" 57 57 . S @MEDVMAP@("MEDICATIONBRANDNAMECODINGSYSTEM")="" 58 58 . S @MEDVMAP@("MEDICATIONBRANDNAMECODEVERSION")="" 59 . S @MEDVMAP@("MEDICATIONSTRENGTHVALUE")="" 60 . S @MEDVMAP@("MEDICATIONSTRENGTHUNIT")="" 61 . S @MEDVMAP@("MEDICATIONFORMTEXT")="" 59 . S @MEDVMAP@("MEDSTRENGTHVALUE")="" 60 . S @MEDVMAP@("MEDSTRENGTHUNIT")="" 61 . S @MEDVMAP@("MEDFORMTEXT")="" 62 . S @MEDVMAP@("MEDQUANTITYVALUE")="" 63 . S @MEDVMAP@("MEDQUANTITYUNIT")="" 64 . S @MEDVMAP@("MEDRFNO")="" 62 65 . S @MEDVMAP@("MEDICATIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+1)," *",2) 63 . S @MEDVMAP@("MED ICATIONDIRECTIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+2),"\ Sig: ",2)66 . S @MEDVMAP@("MEDDIRECTIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+2),"\ Sig: ",2) 64 67 . S @MEDVMAP@("MEDICATIONDIRECTIONDOSEVALUE")="" 65 68 . S @MEDVMAP@("MEDICATIONDIRECTIONROUTETEXT")="" -
ccr/trunk/p/GPLPROBS.m
r89 r93 35 35 . S @OUTXML@(0)=0 36 36 . ; Q 37 ZWR RPCRSLT37 I DEBUG ZWR RPCRSLT 38 38 S TVMAP=$NA(^TMP("GPLCCR",$J,"PROBVALS")) 39 39 S TARYTMP=$NA(^TMP("GPLCCR",$J,"PROBARYTMP")) … … 98 98 . . . D CP^GPLXPATH("HTMLTMP","HTMLO") 99 99 . . . ; D INSINNER^GPLXPATH("HOUT","HTMLO","//") 100 . D PARY^GPLXPATH("HTMLO")100 . I DEBUG D PARY^GPLXPATH("HTMLO") 101 101 . D INSB4^GPLXPATH(OUTXML,"HTMLO") ; INSERT AT TOP OF SECTION 102 102 N PROBSTMP,I -
ccr/trunk/p/GPLVITALS.m
r88 r93 166 166 ; ZWR ^TMP($J,"VITALS",*) 167 167 ZWR ^TMP($J,"VITALARYTMP",*) ; SHOW THE RESULTS 168 D PARY^GPLXPATH(VITOUTXML)168 I DEBUG D PARY^GPLXPATH(VITOUTXML) 169 169 N VITTMP,I 170 170 D MISSING^GPLXPATH(VITOUTXML,"VITTMP") ; SEARCH XML FOR MISSING VARS
Note:
See TracChangeset
for help on using the changeset viewer.