source: WorldVistAEHR/trunk/r/ICR_IMMUNOLOGY_CASE_REGISTRY-IMR/IMRTDSP.m@ 1800

Last change on this file since 1800 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 936 bytes
Line 
1IMRTDSP ; HCIOFO/FAI - VIRAL LOAD AND CD4 TABLE DISPLAY; 11/03/01 09:18
2 ;;2.1;IMMUNOLOGY CASE REGISTRY;**16**;Feb 09, 1998
3 ;
4START S GRP=""
5 F S GRP=$O(^IMR(158.9,1,3,GRP)) Q:GRP="" S GROUP=$P($G(^IMR(158.9,1,3,GRP,0)),U,1) D CD4,VIRAL
6 Q
7CD4 Q:GROUP'=1
8 S GRPNM=$P($G(^IMR(158.95,GROUP,0)),U,1)
9 D LABS
10 Q
11VIRAL Q:GROUP'=8
12 S GRPNM=$P($G(^IMR(158.95,GROUP,0)),U,1)
13 D LABS
14 Q
15LABS S B="" F S B=$O(^IMR(158.9,1,3,GRP,B)),C="" Q:B="" F S C=$O(^IMR(158.9,1,3,GRP,B,C)),D="" Q:C="" F S D=$O(^IMR(158.9,1,3,GRP,B,C,D)),L="" Q:D="" F S L=$O(^IMR(158.9,1,3,GRP,B,C,D,"B",L)) Q:L="" D MATCH
16 Q
17MATCH S TE=$P($G(^IMR(158.9,1,3,GRP,B,C,0)),U,1),TYPE=$P($G(^IMR(158.96,TE,0)),U,1)
18 S LBNM=$P($G(^LAB(60,L,0)),U,1)
19 S NODE=$P($G(^LAB(60,L,0)),U,5)
20 Q:NODE=""
21 S IMRDTNM=$P(NODE,";",2)
22 S IMRVALS(IMRDTNM,L)=GRPNM_"^"_TYPE_"^"_LBNM
23 Q
24CLEAR ; Kill Variables
25 K IMRT1,IMRT2,DFN,IMRLD,IMRLD1,IMRLD2,B,C,GRP,TE,TYPE,NODE,GRPNM,D,GROUP
26 Q
Note: See TracBrowser for help on using the repository browser.