Changeset 666 for ccr/trunk/p
- Timestamp:
- Jan 10, 2010, 1:13:34 PM (15 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CALERT.m
r601 r666 22 22 Q 23 23 ; 24 EXTRACT(ALTXML,DFN,ALTOUTXML ) ; EXTRACT ALERTS INTO PROVIDEDXML TEMPLATE25 ; 24 EXTRACT(ALTXML,DFN,ALTOUTXML,CALLBK) ; EXTRACT ALERTS INTO XML TEMPLATE 25 ; CALLBACK IF PROVIDED IS CALLED FOR EACH ALLERGY BEFORE MAPPING 26 26 ; ALTXML AND ALTOUTXML ARE PASSED BY NAME SO GLOBALS CAN BE USED 27 27 ; … … 46 46 . S @ALTVMAP@("ALERTOBJECTID")="ALERT"_ALTCNT 47 47 . N A1 S A1=@ALTG@(ALTTMP) ; ALL THE PIECES 48 . I $D(CALLBK) D @CALLBK ;CALLBACK FOR EPRESCRIBING 48 49 . N A2 S A2=$$GET1^DIQ(120.8,ALTTMP,"MECHANISM","I") ; MECHANISM 49 50 . N A3 S A3=$P(A1,U,5) ; ADVERSE FLAG -
ccr/trunk/p/C0CRNF.m
r662 r666 340 340 ; ZOUT IS NOT INITIALIZED, SO THE TABLE WILL GO AT THE END 341 341 ; THE TABLE WILL BE IN NV FORMAT, ROWS ARE NAMES COLUMNS ARE VALUES 342 D PUSH^C0CXPATH(ZOUT,"<table >")342 D PUSH^C0CXPATH(ZOUT,"<table border=""1"">") 343 343 N ZI,ZJ,ZV,ZN S ZI="" S ZJ=0 344 344 D PUSH^C0CXPATH(ZOUT,"<tr><td></td>") ;begin row and leave a blank col 345 345 F S ZJ=$O(@ZIN@("V",ZJ)) Q:+ZJ=0 D ; FOR EACH OCCURANCE 346 346 . S ZV="<td>"_ZJ_"</td>" ; OCCURANCE AS COLUMNS HEADER 347 . D PUSH^C0CXPATH(ZOUT,ZV) 347 348 D PUSH^C0CXPATH(ZOUT,"</tr>") ;end of first row 349 S ZI="" 348 350 F S ZI=$O(@ZIN@("F",ZI)) Q:ZI="" D ; FOR EACH VARIABLE 349 351 . S ZN="<tr><td>"_ZI_"</td>" ; VARIABLE NAME IN FIRST COLUMN 352 . D PUSH^C0CXPATH(ZOUT,ZN) 350 353 . S ZJ=0 ;RESET TO DO IT AGAIN 351 354 . F S ZJ=$O(@ZIN@("V",ZJ)) Q:+ZJ=0 D ; FOR EACH OCCURANCE … … 360 363 ; ZOUT IS NOT INITIALIZED, SO THE TABLE WILL GO AT THE END 361 364 ; THE TABLE WILL BE IN VN FORMAT, ROWS ARE VALUES COLUMNS ARE NAMES 362 D PUSH^C0CXPATH(ZOUT,"<table >")365 D PUSH^C0CXPATH(ZOUT,"<table border=""1"">") 363 366 N ZI,ZJ S ZI="" S ZJ=0 364 367 D PUSH^C0CXPATH(ZOUT,"<tr>") ;new row for column headers
Note:
See TracChangeset
for help on using the changeset viewer.