Changeset 235
- Timestamp:
- Oct 27, 2008, 11:42:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLALER2.m
r232 r235 45 45 . S @ALTVMAP@("ALERTOBJECTID")="ALERT"_ALTCNT 46 46 . N A1 S A1=@ALTG@(ALTTMP) ; ALL THE PIECES 47 . N A2 S A2=$ P(A1,U,4) ; ALLERGIC FLAG47 . N A2 S A2=$$GET1^DIQ(120.8,ALTTMP,"MECHANISM","I") ; MECHANISM 48 48 . N A3 S A3=$P(A1,U,5) ; ADVERSE FLAG 49 49 . N ADT S ADT="Patient has an " ; X $ZINT H 5 50 . S ADT=ADT_$S(A 1=1:"ADVERSE",A2=1:"ALLERGIC",1:"UNKNOWN")50 . S ADT=ADT_$S(A2="P":"ADVERSE",A2="A":"ALLERGIC",1:"UNKNOWN") 51 51 . S ADT=ADT_" reaction to "_$P(@ALTG@(ALTTMP),U,2)_"." 52 52 . S @ALTVMAP@("ALERTDESCRIPTIONTEXT")=ADT 53 53 . N ALTCDE ; SNOMED CODE THE THE ALERT 54 . S ALTCDE=$S(A2= 1:"282100009",1:"418634005") ; IF NOT ADVERSE, IT IS ALLERGIC54 . S ALTCDE=$S(A2="P":"282100009",A2="A":"418634005",1:"") ; IF NOT ADVERSE, IT IS ALLERGIC 55 55 . S @ALTVMAP@("ALERTCODEVALUE")=ALTCDE ; 56 56 . ; WILL USE 418634005 FOR ALLERGIC REACTION TO A SUBSTANCE
Note:
See TracChangeset
for help on using the changeset viewer.