SROGMTS1 ;BIR/ADM - SURGERY HEALTH SUMMARY ; [ 08/08/01 7:12 AM ]
;;3.0; Surgery ;**100**;24 Jun 93
;
;** NOTICE: This routine is part of an implementation of a nationally
;** controlled procedure. Local modifications to this routine
;** are prohibited.
;
1 I "^B^C^D^E^F^G^H^I^J^K^M^N^O^P^Q^S^T^U^V^X^Y^Z^"[X S Y=$$UP(X) Q
I "^W^L^R^"[X S Y=$$LO(X) Q
I "^MM^CM^IN^FT^CM^CC^"[X S Y=$$LO(X) Q
Q
2 ; 2 Characters
S J=$G(J)
I J'="",J'=" ","^OR^"[X S Y=$$UP(X) Q
S:X="DA" Y="dA" S:X="DC" Y="dC" S:X="DG" Y="dG" S:X="DT" Y="dT" S:X="DU" Y="dU" S:X="GB" Y="gB" S:X="GC" Y="gC" S:X="GH" Y="gH" S:X="KB" Y="kB" Q:$L($G(Y))
S:X="KD" Y="kD" S:X="PH" Y="pH" S:X="PX" Y="pX" Q:$L($G(Y))
I "^WO^W/^IN^IS^IT^AT^OR^TO^OF^ON^BE^BY^"[X S Y=$$LO(X) Q
I "^ST^"[X S Y=$$MX(X) Q
I "^DG^DI^DS^EC^EN^ES^FB^ID^FH^HL^IB^LA^LR^MD^MC^NS^OR^PX^RA^RG^RT^SD^SR^SW^VA^WV^XH^XM^XT^XU^YS^"[X S Y=$$UP(X) Q
I "^BA^BT^CD^CH^CM^CN^CP^CR^CY^BW^7S^OL^CA^MC^EP^II^RO^ZP^ZY^SH^ES^MF^GP^"[X S Y=$$UP(X) Q
I "^CW^DD^DI^DS^EM^HF^IM^LH^LO^OD^OE^PN^RI^RP^RS^SP^SR^ST^SW^TP^TR^TS^VS^"[X S Y=$$UP(X) Q
I "^EP^AA^AB^AC^AD^AF^AG^AH^AP^AR^AV^BA^BB^BC^BE^BG^BH^BK^BL^BM^BP^BR^BS^BW^CA^CB^CD^CE^CF^CG^CH^CI^CK^CL^CO^CP^CR^CS^CT^CV^DB^DD^DL^DM^DN^DP^DQ^DR^EA^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^R/O^MDA^3MC^ACP^SFN^URR^SNF^SLC^ISC^III^ATP^CMP^AAF^APV^LSD^PCP^HTP^RNA^DNA^ISC^NLM^IMP^"[X S Y=$$UP(X) Q
I "^ONE^TWO^SIX^TEN^AND^ANY^BIS^BUT^CIS^DES^DUE^FOR^LPM^NON^NOT^OXO^PER^PRE^PRO^PSI^THE^USE^"[X S Y=$$LO(X) Q
Q
4 ; 4 Characters
S:X="APOA" Y="ApoA" S:X="BBVI" Y="BbvI" S:X="BPTH" Y="bPTH" S:X="BSUE" Y="BsuE" S:X="CAMP" Y="cAMP" S:X="CGMP" Y="cGMP" S:X="COTE" Y="CotE" S:X="DATP" Y="dATP" Q:$L($G(Y))
S:X="DCMP" Y="dCMP" S:X="DCTP" Y="dCTP" S:X="DGMP" Y="dGMP" S:X="DGTP" Y="dGTP" S:X="DSBA" Y="dsbA" S:X="DTDP" Y="dTDP" S:X="DTTP" Y="dTTP" S:X="DUMP" Y="dUMP" Q:$L($G(Y))
S:X="DURD" Y="dUrd" S:X="DUTP" Y="dUTP" S:X="ECAI" Y="EcaI" S:X="ECOK" Y="EcoK" S:X="ERBB" Y="erbB" S:X="FELV" Y="FeLV" S:X="FMET" Y="fMet" S:X="GNRH" Y="GnRH" Q:$L($G(Y))
S:X="GPII" Y="gpII" S:X="HARG" Y="hArg" S:X="HELA" Y="HeLa" S:X="HGRF" Y="hGRF" S:X="HHAI" Y="HhaI" S:X="HPAI" Y="HpaI" S:X="HPTH" Y="hPTH" S:X="IIIA" Y="IIIa" Q:$L($G(Y))
S:X="KPNI" Y="KpnI" S:X="MCRB" Y="McrB" S:X="MESH" Y="MeSH" S:X="MRNA" Y="mRNA" S:X="NHET" Y="NHEt" S:X="NHME" Y="NHMe" S:X="OBZL" Y="OBzl" S:X="OTBU" Y="OtBu" Q:$L($G(Y))
S:X="PGLU" Y="pGlu" S:X="PSTI" Y="PstI" S:X="REGA" Y="regA" S:X="RRNA" Y="rRNA" S:X="SCEI" Y="SceI" S:X="T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ONLY^OPEN^OVER^PART^SITE^THAN^TYPE^WITH^"[X S Y=$$LO(X) Q
I "^BEST^IT'S^LATE^SITE^FROM^SOME^WITH^UPON^THEY^THEN^INTO^MORE^THAN^THAT^THIS^THUS^HAVE^BEEN^NOTE^DONE^MUST^MERE^SURE^KIND^WHEN^WHAT^"[X S Y=$$LO(X) Q
I "^LOST^LIKE^OURS^ALSO^EACH^ONLY^HERE^SUCH^SEEN^SAME^LESS^AREA^MANY^EVEN^LEFT^MOST^"[X S Y=$$LO(X) Q
Q
;
LO(X) Q $TR(X,"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz")
UP(X) Q $TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
MX(X) Q $TR($E(X,1),"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")_$TR($E(X,2,$L(X)),"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz")
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HSROGMTS1 8551 printed Dec 13, 2024@02:43:49 Page 2
SROGMTS1 ;BIR/ADM - SURGERY HEALTH SUMMARY ; [ 08/08/01 7:12 AM ]
+1 ;;3.0; Surgery ;**100**;24 Jun 93
+2 ;
+3 ;** NOTICE: This routine is part of an implementation of a nationally
+4 ;** controlled procedure. Local modifications to this routine
+5 ;** are prohibited.
+6 ;
1 IF "^B^C^D^E^F^G^H^I^J^K^M^N^O^P^Q^S^T^U^V^X^Y^Z^"[X
SET Y=$$UP(X)
QUIT
+1 IF "^W^L^R^"[X
SET Y=$$LO(X)
QUIT
+2 IF "^MM^CM^IN^FT^CM^CC^"[X
SET Y=$$LO(X)
QUIT
+3 QUIT
2 ; 2 Characters
+1 SET J=$GET(J)
+2 IF J'=""
IF J'=" "
IF "^OR^"[X
SET Y=$$UP(X)
QUIT
+3 if X="DA"
SET Y="dA"
if X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S^NT^OC^OD^OH^OP^OT^OX^PA^PC^PD^PE^PF^PG^PI^PK^PL^PM^PP^PR^PS^PT^PZ^RA^"[X
SET Y=$$UP(X)
QUIT
+12 IF "^RA^RC^RF^RH^RI^RP^RR^RS^RX^SA^SB^SC^SD^SE^SF^SG^SH^SI^SK^SL^SM^SP^SR^SS^SV^TA^TB^TC^TF^TH^TI^TK^TL^TP^TT^UK^UD^UV^VA^VC^VH^VI^VO^VP^VZ^WB^WS^XI^YM^YY^"[X
SET Y=$$UP(X)
QUIT
+13 IF "^AN^AS^AT^BY^CM^DE^IN^MG^NO^OF^ON^OR^SQ^TO^UP^YL^"[X
SET Y=$$LO(X)
QUIT
+14 QUIT
3 ; 3 Characters
+1 if X="BRZ"
SET Y="BrZ"
if X="COA"
SET Y="CoA"
if X="COM"
SET Y="CoM"
if X="EIF"
SET Y="eIF"
if X="HGH"
SET Y="hGH"
if X="HPR"
SET Y="HPr"
if X="IGA"
SET Y="IgA"
if X="IGD"
SET Y="IgD"
if X="IGE"
SET Y="IgE"
if $LENGTH($GET(Y))
QUIT
+2 if X="IGG"
SET Y="IgG"
if X="IGM"
SET Y="IgM"
if X="IIB"
SET Y="IIb"
if X="KDA"
SET Y="kDa"
if X="MEC"
SET Y="MeC"
if X="MEO"
SET Y="MeO"
if X="NAC"
SET Y="NAc"
if X="NIA"
SET Y="NIa"
if X="OET"
SET Y="OEt"
if $LENGTH($GET(Y))
QUIT
+3 if X="OME"
SET Y="OMe"
if X="PNA"
SET Y="pNA"
if X="PRP"
SET Y="PrP"
if X="SMB"
SET Y="SmB"
if X="VPG"
SET Y="VPg"
if $LENGTH($GET(Y))
QUIT
+4 IF "^DIR^MED^APR^AUG^BAY^FEB^HOT^JAN^JCT^JUL^JUN^LAS^LOS^MAR^FAC^MAY^MTN^NEW^NOV^OCT^OUT^SAN^SEP^SKY^"[X
SET Y=$$MX(X)
QUIT
+5 IF "^ALL^AND^ARE^BUT^SET^NOW^ANY^HAD^DUE^MED^TOO^F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MAA^MPP^NEC^NOS^ZTA^CPD^R/O^MDA^3MC^ACP^SFN^URR^SNF^SLC^ISC^III^ATP^CMP^AAF^APV^LSD^PCP^HTP^RNA^DNA^ISC^NLM^IMP^"[X
SET Y=$$UP(X)
QUIT
+18 IF "^ONE^TWO^SIX^TEN^AND^ANY^BIS^BUT^CIS^DES^DUE^FOR^LPM^NON^NOT^OXO^PER^PRE^PRO^PSI^THE^USE^"[X
SET Y=$$LO(X)
QUIT
+19 QUIT
4 ; 4 Characters
+1 if X="APOA"
SET Y="ApoA"
if X="BBVI"
SET Y="BbvI"
if X="BPTH"
SET Y="bPTH"
if X="BSUE"
SET Y="BsuE"
if X="CAMP"
SET Y="cAMP"
if X="CGMP"
SET Y="cGMP"
if X="COTE"
SET Y="CotE"
if X="DATP"
SET Y="dATP"
if $LENGTH($GET(Y))
QUIT
+2 if X="DCMP"
SET Y="dCMP"
if X="DCTP"
SET Y="dCTP"
if X="DGMP"
SET Y="dGMP"
if X="DGTP"
SET Y="dGTP"
if X="DSBA"
SET Y="dsbA"
if X="DTDP"
SET Y="dTDP"
if X="DTTP"
SET Y="dTTP"
if X="DUMP"
SET Y="dUMP"
if $LENGTH($GET(Y))
QUIT
+3 if X="DURD"
SET Y="dUrd"
if X="DUTP"
SET Y="dUTP"
if X="ECAI"
SET Y="EcaI"
if X="ECOK"
SET Y="EcoK"
if X="ERBB"
SET Y="erbB"
if X="FELV"
SET Y="FeLV"
if X="FMET"
SET Y="fMet"
if X="GNRH"
SET Y="GnRH"
if $LENGTH($GET(Y))
QUIT
+4 if X="GPII"
SET Y="gpII"
if X="HARG"
SET Y="hArg"
if X="HELA"
SET Y="HeLa"
if X="HGRF"
SET Y="hGRF"
if X="HHAI"
SET Y="HhaI"
if X="HPAI"
SET Y="HpaI"
if X="HPTH"
SET Y="hPTH"
if X="IIIA"
SET Y="IIIa"
if $LENGTH($GET(Y))
QUIT
+5 if X="KPNI"
SET Y="KpnI"
if X="MCRB"
SET Y="McrB"
if X="MESH"
SET Y="MeSH"
if X="MRNA"
SET Y="mRNA"
if X="NHET"
SET Y="NHEt"
if X="NHME"
SET Y="NHMe"
if X="OBZL"
SET Y="OBzl"
if X="OTBU"
SET Y="OtBu"
if $LENGTH($GET(Y))
QUIT
+6 if X="PGLU"
SET Y="pGlu"
if X="PSTI"
SET Y="PstI"
if X="REGA"
SET Y="regA"
if X="RRNA"
SET Y="rRNA"
if X="SCEI"
SET Y="SceI"
if X="TAQI"
SET Y="TaqI"
if X="TRFA"
SET Y="TrfA"
if X="TRKA"
SET Y="trkA"
if $LENGTH($GET(Y))
QUIT
+7 if X="TRKB"
SET Y="trkB"
if X="TRNA"
SET Y="tRNA"
if $LENGTH($GET(Y))
QUIT
+8 IF "^BATH^CITH^CITY^EAST^ERIE^FORT^HOME^IOWA^IRON^JUAN^JULY^JUNE^LAKE^LOMA^LONG^LYON^PALM^PALO^PARK^RENO^ROCK^SALT^SIDE^WACO^WEST^YORK^"[X
SET Y=$$MX(X)
QUIT
+9 IF "^BADR^BDEM^BMIC^EADT^MAGI^MEDA^MEDB^MEDC^MEDF^MHPE^RXIV^RXOP^"[X
SET Y=$$UP(X)
QUIT
+10 IF "^RXUD^SCL1^SCL2^HISA^HPSA^CRNA^HCFA^"[X
SET Y=$$UP(X)
QUIT
+11 ;I "^^"[X S Y=$$UP(X) Q
+12 IF "^A1B5^A1BG^A4A7^A4A8^A6K7^ABSV^ACKQ^DENT^DGHI^DGPW^DGY1^DGY3^DGYA^DGYB^DGYC^DGYD^DGYF^DGYG^DGYJ^DGYK^DGYL^DGYN^DGYO^DGYP^DGYQ^DGYR^DGYS^"[X
SET Y=$$UP(X)
QUIT
+13 IF "^DGYU^DGYV^DGYW^DGYX^DGYZ^DIPK^DVBA^DVBC^DVBQ^DVBT^DVBU^DVBW^DVBX^DVBY^EEOA^EEOP^ENXE^ENXF^ENXG^ENXI^"[X
SET Y=$$UP(X)
QUIT
+14 IF "^ENXJ^ENXK^FBAA^GECD^GECP^GECS^GMA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^GHRH^GLUT^GYKI^HCMV^HIDA^HMSN^HSAN^HTLV^IDDM^INTP^IPPB^KAFO^LATS^LHRH^MAGE^MLVP^MPTP^"[X
SET Y=$$UP(X)
QUIT
+22 IF "^ANIT^CAMP^DOPS^MPTP^HETE^OERR^GMPT^GMPL^MTLU^UMLS^BPDE^DMBA^PABA^"[X
SET Y=$$UP(X)
QUIT
+23 IF "^MPTP^NADH^NADP^NAPS^NETT^NGFI^NRDC^NSCL^PAPS^POMC^PSAP^RTEM^SACH^SGOT^SNAP^SRIF^SRIH^TAPA^TATA^TCDD^TENS^TIMP^TLSO^UDPG^VIII^VLDL^WHFO^XIII^"[X
SET Y=$$UP(X)
QUIT
+24 IF "^USED^EACH^DTMN,FOUR^FIVE^NINE^HOUR^INTO^LESS^LIKE^MORE^ONLY^OPEN^OVER^PART^SITE^THAN^TYPE^WITH^"[X
SET Y=$$LO(X)
QUIT
+25 IF "^BEST^IT'S^LATE^SITE^FROM^SOME^WITH^UPON^THEY^THEN^INTO^MORE^THAN^THAT^THIS^THUS^HAVE^BEEN^NOTE^DONE^MUST^MERE^SURE^KIND^WHEN^WHAT^"[X
SET Y=$$LO(X)
QUIT
+26 IF "^LOST^LIKE^OURS^ALSO^EACH^ONLY^HERE^SUCH^SEEN^SAME^LESS^AREA^MANY^EVEN^LEFT^MOST^"[X
SET Y=$$LO(X)
QUIT
+27 QUIT
+28 ;
LO(X) QUIT $TRANSLATE(X,"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz")
UP(X) QUIT $TRANSLATE(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
MX(X) QUIT $TRANSLATE($EXTRACT(X,1),"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")_$TRANSLATE($EXTRACT(X,2,$LENGTH(X)),"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz")