[613] | 1 | GMRVHG4 ;HIRMFO/YH-HP LASER SF 511 GRAPH - ^TMP DATA ;3/12/99
|
---|
| 2 | ;;4.0;Vitals/Measurements;**1,7,11**;Apr 25, 1997
|
---|
| 3 | SETA ;
|
---|
| 4 | I GK="Unavailable" S GK="Unavail"
|
---|
| 5 | S (GMRSITE,GMRSITE(1),GMRSITE(2),GMRINF,GMRVJ)=""
|
---|
| 6 | I GK'="" D
|
---|
| 7 | . S GMRSITE(1)=$P($G(^TMP($J,"GMRVG",GI,GDT1,GK)),"^"),GMRVJ=$P($G(^(GK)),"^",2),GMRINF=$P($G(^(GK)),"^",4)
|
---|
| 8 | . I GMRSITE(1)'="" D SYNOARY^GMRVLGQU
|
---|
| 9 | I GI="H" S ^TMP($J,"GMRK","G"_(470+GCNTD))=GK_" "_GMRSITE,^TMP($J,"GMRK","G"_(1100+GCNTD))=$S(GK>0:$J(GK*2.54,0,2),1:"") S:GK>0 GMRHT=GK*2.54/100 Q
|
---|
| 10 | I GI="PN" S ^TMP($J,"GMRK","G"_(1660+GCNTD))=GK
|
---|
| 11 | I GI="C" S ^TMP($J,"GMRK","G"_(1640+GCNTD))=GK_" "_^TMP($J,"GMRK","G"_(1640+GCNTD)) Q
|
---|
| 12 | I GI="PO2"!(GI="CVP")!(GI="CG") D Q
|
---|
| 13 | . I GI="PO2" D
|
---|
| 14 | . . S (GMRINF(1),GMRINF(2))="" I GMRINF'="" D PO2^GMRVLGQU(.GMRINF)
|
---|
| 15 | . . S ^TMP($J,"GMRK","G"_(1400+GCNTD))=GK_$S(GMRVJ=1:"*",1:"")
|
---|
| 16 | . . S ^TMP($J,"GMRK","G"_(1430+GCNTD))=GMRINF(1)
|
---|
| 17 | . . S ^TMP($J,"GMRK","G"_(1450+GCNTD))=GMRINF(2)
|
---|
| 18 | . . S ^TMP($J,"GMRK","G"_(1470+GCNTD))=GMRSITE
|
---|
| 19 | . . Q
|
---|
| 20 | . I GI="CVP" D
|
---|
| 21 | . . S ^TMP($J,"GMRK","G"_(1500+GCNTD))=$S(GK>0!(GK<0):$J(GK,0,1),1:GK)_$S(GMRVJ=1:"*",1:"")
|
---|
| 22 | . . S ^TMP($J,"GMRK","G"_(1530+GCNTD))=$S(GK>0!(GK<0)!($E(GK)="0"):$J(GK/1.36,0,1),1:"")_$S(GMRVJ=1:"*",1:"")
|
---|
| 23 | . . Q
|
---|
| 24 | . I GI="CG" D
|
---|
| 25 | . . S ^TMP($J,"GMRK","G"_(1550+GCNTD))=GK_GMRSITE,^TMP($J,"GMRK","G"_(1620+GCNTD))=$S(GK>0:$J(GK/.3937,0,2),1:"")
|
---|
| 26 | . . Q
|
---|
| 27 | I GI="B",GK'="" S ^TMP($J,"GMRK","G"_(450+GCNTD))=$S($L(GMRSITE," ")>3:$P(GMRSITE," ",2,4),1:GMRSITE) S:$L(GMRSITE," ")>3 ^TMP($J,"GMRK","G"_(1640+GCNTD))=$P(GMRSITE," ")
|
---|
| 28 | I '(GI="T"!(GI="P")) D Q
|
---|
| 29 | . S ^TMP($J,"GMRK","G"_(GJ*16+GCNTD+1))=GK_$S(GMRVJ=1:"*",1:"")_$S(GI="B":"",1:GMRSITE) S:GI="W" ^TMP($J,"GMRK","G"_(1200+GCNTD))=$S(GK>0:$J(GK/2.2,0,2),1:"")
|
---|
| 30 | . I GI="W",GK>0 D
|
---|
| 31 | . . S GMRBMI="",GMRBMI(1)=GDT1,GMRBMI(2)=GK D CALBMI^GMRVBMI(.GMRBMI)
|
---|
| 32 | . . S ^TMP($J,"GMRK","G"_(1300+GCNTD))=GMRBMI K GMRBMI
|
---|
| 33 | I GI="T",GK>0 S ^TMP($J,"GMRK","G"_(GJ*16+GCNTD+1))=GK-93
|
---|
| 34 | I GK'="",GI="P","UNAVAILABLEPASSREFUSED"'[$$UP^XLFSTR(GK) D
|
---|
| 35 | . I GMRSITE(1)["RADIAL"!(GMRSITE(1)["APICAL")!(GMRSITE(1)["BRACHIAL") D
|
---|
| 36 | . . S ^TMP($J,"GMRK","G"_(GJ*16+GCNTD+1))=GK-40/10
|
---|
| 37 | S ^TMP($J,"GMRK","G"_(GJ+1*16+GCNTD+1))=GK_$S(GMRVJ=1:"*",1:"")_$S(GI="T":GMRSITE,GI="P"&($L(GMRSITE," ")>3):" "_$P(GMRSITE," "),1:" ")
|
---|
| 38 | I GI="T",GK>0 S ^TMP($J,"GMRK","G"_(410+GCNTD))=$S(GMRVJ=1:"T*",1:"T")
|
---|
| 39 | I GK'="",GI="P","UNAVAILABLEPASSREFUSED"'[$$UP^XLFSTR(GK) D
|
---|
| 40 | . I GMRSITE(1)["RADIAL"!(GMRSITE(1)["APICAL")!(GMRSITE(1)["BRACHIAL") S ^TMP($J,"GMRK","G"_(430+GCNTD))=$S(GMRVJ=1:"P*",1:"P")
|
---|
| 41 | . S ^TMP($J,"GMRK","G"_(1600+GCNTD))=$S($L(GMRSITE," ")>3:$P(GMRSITE," ",2,4),1:GMRSITE)
|
---|
| 42 | I GK>0,GI="T" S ^TMP($J,"GMRK","G"_(GJ*16+GCNTD+1))=$S(^("G"_(GJ*16+GCNTD+1))<0.3:0.3,^("G"_(GJ*16+GCNTD+1))>11.6:11.6,1:^("G"_(GJ*16+GCNTD+1))) S:^("G"_(GJ*16+GCNTD+1))<0.4!(^("G"_(GJ*16+GCNTD+1))>11.5) ^TMP($J,"GMRK","G"_(410+GCNTD))="T**"
|
---|
| 43 | I GK'="",GI="P","UNAVAILABLEPASSREFUSED"'[$$UP^XLFSTR(GK) D
|
---|
| 44 | . I GMRSITE(1)["RADIAL"!(GMRSITE(1)["APICAL")!(GMRSITE(1)["BRACHIAL") D
|
---|
| 45 | . . S ^TMP($J,"GMRK","G"_(GJ*16+GCNTD+1))=$S(^("G"_(GJ*16+GCNTD+1))<0.3:0.3,^("G"_(GJ*16+GCNTD+1))>11.6:11.6,1:^("G"_(GJ*16+GCNTD+1))) S:^("G"_(GJ*16+GCNTD+1))<0.4!(^("G"_(GJ*16+GCNTD+1))>11.5) ^TMP($J,"GMRK","G"_(430+GCNTD))="P**"
|
---|
| 46 | Q
|
---|
| 47 | OUTP ;PRINT OUTPUT
|
---|
| 48 | S J=-8.7,J(1)=162 D WRTLN^GMRVHG3
|
---|
| 49 | PAIN ;PRINT PAIN
|
---|
| 50 | S J=-9.1,J(1)=1661 D
|
---|
| 51 | . S I(1)="" F I=1:1:5 S I(2)=I-1,I(1)=I(1)_"PA"_(1.6*I(2)+0.2)_","_J_";LB"_^TMP($J,"GMRK","G"_(J(1)+I(2)))_"#;"
|
---|
| 52 | . W !,I(1) S I(1)="" F I=6:1:10 S I(2)=I-1,I(1)=I(1)_"PA"_(1.6*I(2)+0.2)_","_J_";LB"_^TMP($J,"GMRK","G"_(J(1)+I(2)))_"#;"
|
---|
| 53 | . W !,I(1) Q
|
---|
| 54 | PTID ;PRINT PATIENT ID
|
---|
| 55 | W !,"SD1,277,2,1,4,9,5,1,6,5,7,4;SS;PA-1,-11.3;LB"_^TMP($J,"GMRK","G194")_"#;PA-1,-11.6;LB"_^("G196")_" "_^("G197")_"#;"
|
---|
| 56 | W !,"PA-1,-11.9;LB"_^TMP($J,"GMRK","G198")_"#;PA7,-11.9;LB"_^("G200")_"#;PA-1,-12.2;LB"_GMRDIV_"#;PA7,-12.2;LB"_^("G199")_"#;"
|
---|
| 57 | W !,"PA-1,-12.5;LB"_GSTRFIN_"#;" Q
|
---|