1 | IMRSDSP ; HCIOFO/FAI - VIRAL LOAD AND CD4 TABLE DISPLAY; 11/13/01 07:18
|
---|
2 | ;;2.1;IMMUNOLOGY CASE REGISTRY;**16**;Feb 09, 1998
|
---|
3 | ;
|
---|
4 | START 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
|
---|
7 | CD4 Q:GROUP'=1
|
---|
8 | Q:TTYPE="V"
|
---|
9 | S GRPNM=$P($G(^IMR(158.95,GROUP,0)),U,1)
|
---|
10 | D LABS
|
---|
11 | Q
|
---|
12 | VIRAL Q:GROUP'=8
|
---|
13 | Q:TTYPE="C"
|
---|
14 | S GRPNM=$P($G(^IMR(158.95,GROUP,0)),U,1)
|
---|
15 | D LABS
|
---|
16 | Q
|
---|
17 | LABS 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
|
---|
18 | Q
|
---|
19 | MATCH 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)
|
---|
20 | S LBNM=$P($G(^LAB(60,L,0)),U,1)
|
---|
21 | S NODE=$P($G(^LAB(60,L,0)),U,5)
|
---|
22 | Q:NODE=""
|
---|
23 | S IMRDTNM=$P(NODE,";",2)
|
---|
24 | S IMRVALS(IMRDTNM,L)=GRPNM_"^"_TYPE_"^"_LBNM
|
---|
25 | Q
|
---|
26 | CLEAR ; Kill Variables
|
---|
27 | K IMRT1,IMRT2,DFN,IMRLD,IMRLD1,IMRLD2,B,C,GRP,TE,TYPE,NODE,GRPNM,D,GROUP
|
---|
28 | Q
|
---|