- Timestamp:
- Aug 28, 2008, 11:53:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLMEDS.m
r105 r106 42 42 . I DEBUG W "VMAP= ",MEDVMAP,! 43 43 . S MEDPTMP=MEDRSLT(J) ; PULL OUT MEDICATION FROM RPC RETURN ARRAY 44 . S @MEDVMAP@("MED ICATIONOBJECTID")="MED"_J ; UNIQUE OBJID FOR MEDS44 . S @MEDVMAP@("MEDOBJECTID")="MED"_J ; UNIQUE OBJID FOR MEDS 45 45 . ; PROCESSING FOR MEDS GOES HERE 46 46 . S @MEDVMAP@("MEDISSUEDATETXT")=$$FMDTOUTC^CCRUTIL($P(MEDPTMP,"^",11),"DT") ; GETS LAST FILL DATE 47 . S @MEDVMAP@("MED ICATIONDATETIMEAGE")=""48 . S @MEDVMAP@("MED ICATIONDATETIMEAGEUNITS")=""47 . S @MEDVMAP@("MEDDATETIMEAGE")="" 48 . S @MEDVMAP@("MEDDATETIMEAGEUNITS")="" 49 49 . S @MEDVMAP@("MEDTYPETEXT")="Medication" 50 50 . S @MEDVMAP@("MEDSTATUSTEXT")=$P(MEDPTMP,"^",10) ; STATUS FROM RPC 51 51 . S @MEDVMAP@("MEDSOURCEACTORID")="ACTORSYSTEM_1" 52 52 . S @MEDVMAP@("MEDPRODUCTNAMETEXT")=$P(MEDPTMP,"^",3) 53 . S @MEDVMAP@("MED ICATIONPRODUCTNAMECODEVALUE")=""54 . S @MEDVMAP@("MED ICATIONPRODUCTNAMECODINGINGSYSTEM")=""55 . S @MEDVMAP@("MED ICATIONPRODUCTNAMECODEVERSION")=""53 . S @MEDVMAP@("MEDPRODUCTNAMECODEVALUE")="" 54 . S @MEDVMAP@("MEDPRODUCTNAMECODINGINGSYSTEM")="" 55 . S @MEDVMAP@("MEDPRODUCTNAMECODEVERSION")="" 56 56 . S @MEDVMAP@("MEDBRANDNAMETEXT")="" 57 . S @MEDVMAP@("MED ICATIONBRANDNAMECODEVALUE")=""58 . S @MEDVMAP@("MED ICATIONBRANDNAMECODINGSYSTEM")=""59 . S @MEDVMAP@("MED ICATIONBRANDNAMECODEVERSION")=""57 . S @MEDVMAP@("MEDBRANDNAMECODEVALUE")="" 58 . S @MEDVMAP@("MEDBRANDNAMECODINGSYSTEM")="" 59 . S @MEDVMAP@("MEDBRANDNAMECODEVERSION")="" 60 60 . S @MEDVMAP@("MEDSTRENGTHVALUE")="" 61 61 . S @MEDVMAP@("MEDSTRENGTHUNIT")="" … … 65 65 . S @MEDVMAP@("MEDRFNO")="" 66 66 . I $D(MEDRSLT(J+1)) D ; IF SECOND LINE EXISTS 67 . . S @MEDVMAP@("MED ICATIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+1)," *",2)67 . . S @MEDVMAP@("MEDDESCRIPTIONTEXT")=$P(MEDRSLT(J+1)," *",2) 68 68 . I $D(MEDRSLT(J+2)) D ; IF THIRD LINE EXISTS 69 69 . . S @MEDVMAP@("MEDDIRECTIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+2),"\ Sig: ",2) 70 . S @MEDVMAP@("MED ICATIONDIRECTIONDOSEVALUE")=""71 . S @MEDVMAP@("MED ICATIONDIRECTIONROUTETEXT")=""72 . S @MEDVMAP@("MED ICATIONDIRECTIONFREQUENCYVALUE")=""70 . S @MEDVMAP@("MEDDIRECTIONDOSEVALUE")="" 71 . S @MEDVMAP@("MEDDIRECTIONROUTETEXT")="" 72 . S @MEDVMAP@("MEDDIRECTIONFREQUENCYVALUE")="" 73 73 . S MEDARYTMP=$NA(@MEDTARYTMP@(J)) 74 74 . K @MEDARYTMP
Note:
See TracChangeset
for help on using the changeset viewer.