Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: LEX2073H

LEX2073H.m

Go to the documentation of this file.
LEX2073H ;ISL/KER - LEX*2.0*73 Post-Install - Missing 1 ;01/03/2011
 ;;2.0;LEXICON UTILITY;**73**;Sep 23, 1996;Build 10
 ;               
 ; External Global Variables
 ;    None
 ;               
 ; External References
 ;    FILE^DIE            ICR   2053
 ;    ^DIK                ICR  10013
 ;    IX1^DIK             ICR  10013
 ;    MES^XPDUTL          ICR  10141
 ;    
 Q
EN ; Main Entry Point
 D C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11
 Q
C1 ; Inactivate code 5295
 N ACT,AF,EX,EXP,INA,LD,LH,LN,MC,PF,PM,SA,SI,SO
 S SI=3421,EX=12249,SO=5295,SA=17,MC=2525,PF=1,AF=1,PM=1,EXP="Back Strain",ACT=3020701,INA=3030926
 S LD=$O(^LEX(757.02,SI,4,"B"," "),-1),LH=$O(^LEX(757.02,SI,4,"B",+LD," "),-1),LN=$G(^LEX(757.02,SI,4,+LH,0))
 I $P(LN,U,2)>0,$P(LN,U,1)<+INA D
 . N DA,DIK,HN,NH,SN S NH=LH+1 Q:NH'>1  S SN=EX_U_SO_U_SA_U_MC_U_PF_U_AF_U_PM,HN=INA_U_"0"
 . S ^LEX(757.02,SI,0)=SN,^LEX(757.02,SI,4,NH,0)=HN,DA=SI,DIK="^LEX(757.02," D IX1^DIK
 Q
C2 ; 6100    0% Impairment of Auditory Acuity
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=3587 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXSI=38197 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304635
 S LEXMC=164265
 S LEXSO=6100
 S LEXSA=17
 S LEXPF=1
 S LEXAF=1
 S LEXPM=1
 S LEXSN=LEXEX_U_LEXSO_U_LEXSA_U_LEXMC_U_LEXPF_U_LEXAF_U_LEXPM
 S LEXHI="^757.28D^2^2"
 S LEXAC=2871218
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2990610
 S LEXH2=LEXIN_U_"0"
 S LEXEP="0% Impairment of Auditory Acuity"
 S LEXSR=497
 S LEXCA=4
 S ^LEX(757.02,LEXSI,0)=LEXSN
 S ^LEX(757.02,LEXSI,4,0)=LEXHI
 S ^LEX(757.02,LEXSI,4,1,0)=LEXH1
 S ^LEX(757.02,LEXSI,4,2,0)=LEXH2
 S DA=LEXSI,DIK="^LEX(757.02," D IX1^DIK
 K LEXFD S LEXIS=LEXEX_",",LEXFD(757.01,LEXIS,.01)=$G(LEXEP)
 D FILE^DIE("","LEXFD") S DA=LEXEX,DIK="^LEX(757.01," D IX1^DIK
 Q
C3 ; 6101   10% Impairment of Auditory Acuity
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38198 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304636
 S LEXMC=164266
 S LEXSO=6101
 S LEXSA=17
 S LEXPF=1
 S LEXAF=1
 S LEXPM=1
 S LEXSN=LEXEX_U_LEXSO_U_LEXSA_U_LEXMC_U_LEXPF_U_LEXAF_U_LEXPM
 S LEXHI="^757.28D^2^2"
 S LEXAC=2871218
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2990610
 S LEXH2=LEXIN_U_"0"
 S LEXEP="10% Impairment of Auditory Acuity"
 S LEXSR=497
 S LEXCA=4
 S ^LEX(757.02,LEXSI,0)=LEXSN
 S ^LEX(757.02,LEXSI,4,0)=LEXHI
 S ^LEX(757.02,LEXSI,4,1,0)=LEXH1
 S ^LEX(757.02,LEXSI,4,2,0)=LEXH2
 S DA=LEXSI,DIK="^LEX(757.02," D IX1^DIK
 K LEXFD S LEXIS=LEXEX_",",LEXFD(757.01,LEXIS,.01)=$G(LEXEP)
 D FILE^DIE("","LEXFD") S DA=LEXEX,DIK="^LEX(757.01," D IX1^DIK
 Q
C4 ; 6102   20% Impairment of Auditory Acuity
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38199 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304637
 S LEXMC=164267
 S LEXSO=6102
 S LEXSA=17
 S LEXPF=1
 S LEXAF=1
 S LEXPM=1
 S LEXSN=LEXEX_U_LEXSO_U_LEXSA_U_LEXMC_U_LEXPF_U_LEXAF_U_LEXPM
 S LEXHI="^757.28D^2^2"
 S LEXAC=2871218
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2990610
 S LEXH2=LEXIN_U_"0"
 S LEXEP="20% Impairment of Auditory Acuity"
 S LEXSR=497
 S LEXCA=4
 S ^LEX(757.02,LEXSI,0)=LEXSN
 S ^LEX(757.02,LEXSI,4,0)=LEXHI
 S ^LEX(757.02,LEXSI,4,1,0)=LEXH1
 S ^LEX(757.02,LEXSI,4,2,0)=LEXH2
 S DA=LEXSI,DIK="^LEX(757.02," D IX1^DIK
 K LEXFD S LEXIS=LEXEX_",",LEXFD(757.01,LEXIS,.01)=$G(LEXEP)
 D FILE^DIE("","LEXFD") S DA=LEXEX,DIK="^LEX(757.01," D IX1^DIK
 Q
C5 ; 6103   30% Impairment of Auditory Acuity
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38200 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304638
 S LEXMC=164268
 S LEXSO=6103
 S LEXSA=17
 S LEXPF=1
 S LEXAF=1
 S LEXPM=1
 S LEXSN=LEXEX_U_LEXSO_U_LEXSA_U_LEXMC_U_LEXPF_U_LEXAF_U_LEXPM
 S LEXHI="^757.28D^2^2"
 S LEXAC=2871218
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2990610
 S LEXH2=LEXIN_U_"0"
 S LEXEP="30% Impairment of Auditory Acuity"
 S LEXSR=497
 S LEXCA=4
 S ^LEX(757.02,LEXSI,0)=LEXSN
 S ^LEX(757.02,LEXSI,4,0)=LEXHI
 S ^LEX(757.02,LEXSI,4,1,0)=LEXH1
 S ^LEX(757.02,LEXSI,4,2,0)=LEXH2
 S DA=LEXSI,DIK="^LEX(757.02," D IX1^DIK
 K LEXFD S LEXIS=LEXEX_",",LEXFD(757.01,LEXIS,.01)=$G(LEXEP)
 D FILE^DIE("","LEXFD") S DA=LEXEX,DIK="^LEX(757.01," D IX1^DIK
 Q
C6 ; 6104   40% Impairment of Auditory Acuity
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38201 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304639
 S LEXMC=164269
 S LEXSO=6104
 S LEXSA=17
 S LEXPF=1
 S LEXAF=1
 S LEXPM=1
 S LEXSN=LEXEX_U_LEXSO_U_LEXSA_U_LEXMC_U_LEXPF_U_LEXAF_U_LEXPM
 S LEXHI="^757.28D^2^2"
 S LEXAC=2871218
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2990610
 S LEXH2=LEXIN_U_"0"
 S LEXEP="40% Impairment of Auditory Acuity"
 S LEXSR=497
 S LEXCA=4
 S ^LEX(757.02,LEXSI,0)=LEXSN
 S ^LEX(757.02,LEXSI,4,0)=LEXHI
 S ^LEX(757.02,LEXSI,4,1,0)=LEXH1
 S ^LEX(757.02,LEXSI,4,2,0)=LEXH2
 S DA=LEXSI,DIK="^LEX(757.02," D IX1^DIK
 K LEXFD S LEXIS=LEXEX_",",LEXFD(757.01,LEXIS,.01)=$G(LEXEP)
 D FILE^DIE("","LEXFD") S DA=LEXEX,DIK="^LEX(757.01," D IX1^DIK
 Q
C7 ; 6105   50% Impairment of Auditory Acuity
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38202 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304640
 S LEXMC=164270
 S LEXSO=6105
 S LEXSA=17
 S LEXPF=1
 S LEXAF=1
 S LEXPM=1
 S LEXSN=LEXEX_U_LEXSO_U_LEXSA_U_LEXMC_U_LEXPF_U_LEXAF_U_LEXPM
 S LEXHI="^757.28D^2^2"
 S LEXAC=2871218
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2990610
 S LEXH2=LEXIN_U_"0"
 S LEXEP="50% Impairment of Auditory Acuity"
 S LEXSR=497
 S LEXCA=4
 S ^LEX(757.02,LEXSI,0)=LEXSN
 S ^LEX(757.02,LEXSI,4,0)=LEXHI
 S ^LEX(757.02,LEXSI,4,1,0)=LEXH1
 S ^LEX(757.02,LEXSI,4,2,0)=LEXH2
 S DA=LEXSI,DIK="^LEX(757.02," D IX1^DIK
 K LEXFD S LEXIS=LEXEX_",",LEXFD(757.01,LEXIS,.01)=$G(LEXEP)
 D FILE^DIE("","LEXFD") S DA=LEXEX,DIK="^LEX(757.01," D IX1^DIK
 Q
C8 ; 6106   60% Impairment of Auditory Acuity
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38203 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304641
 S LEXMC=164271
 S LEXSO=6106
 S LEXSA=17
 S LEXPF=1
 S LEXAF=1
 S LEXPM=1
 S LEXSN=LEXEX_U_LEXSO_U_LEXSA_U_LEXMC_U_LEXPF_U_LEXAF_U_LEXPM
 S LEXHI="^757.28D^2^2"
 S LEXAC=2871218
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2990610
 S LEXH2=LEXIN_U_"0"
 S LEXEP="60% Impairment of Auditory Acuity"
 S LEXSR=497
 S LEXCA=4
 S ^LEX(757.02,LEXSI,0)=LEXSN
 S ^LEX(757.02,LEXSI,4,0)=LEXHI
 S ^LEX(757.02,LEXSI,4,1,0)=LEXH1
 S ^LEX(757.02,LEXSI,4,2,0)=LEXH2
 S DA=LEXSI,DIK="^LEX(757.02," D IX1^DIK
 K LEXFD S LEXIS=LEXEX_",",LEXFD(757.01,LEXIS,.01)=$G(LEXEP)
 D FILE^DIE("","LEXFD") S DA=LEXEX,DIK="^LEX(757.01," D IX1^DIK
 Q
C9 ; 6107   70% Impairment of Auditory Acuity
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38204 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304642
 S LEXMC=164272
 S LEXSO=6107
 S LEXSA=17
 S LEXPF=1
 S LEXAF=1
 S LEXPM=1
 S LEXSN=LEXEX_U_LEXSO_U_LEXSA_U_LEXMC_U_LEXPF_U_LEXAF_U_LEXPM
 S LEXHI="^757.28D^2^2"
 S LEXAC=2871218
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2990610
 S LEXH2=LEXIN_U_"0"
 S LEXEP="70% Impairment of Auditory Acuity"
 S LEXSR=497
 S LEXCA=4
 S ^LEX(757.02,LEXSI,0)=LEXSN
 S ^LEX(757.02,LEXSI,4,0)=LEXHI
 S ^LEX(757.02,LEXSI,4,1,0)=LEXH1
 S ^LEX(757.02,LEXSI,4,2,0)=LEXH2
 S DA=LEXSI,DIK="^LEX(757.02," D IX1^DIK
 K LEXFD S LEXIS=LEXEX_",",LEXFD(757.01,LEXIS,.01)=$G(LEXEP)
 D FILE^DIE("","LEXFD") S DA=LEXEX,DIK="^LEX(757.01," D IX1^DIK
 Q
C10 ; 6108   80% Impairment of Auditory Acuity
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38205 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304643
 S LEXMC=164273
 S LEXSO=6108
 S LEXSA=17
 S LEXPF=1
 S LEXAF=1
 S LEXPM=1
 S LEXSN=LEXEX_U_LEXSO_U_LEXSA_U_LEXMC_U_LEXPF_U_LEXAF_U_LEXPM
 S LEXHI="^757.28D^2^2"
 S LEXAC=2871218
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2990610
 S LEXH2=LEXIN_U_"0"
 S LEXEP="80% Impairment of Auditory Acuity"
 S LEXSR=497
 S LEXCA=4
 S ^LEX(757.02,LEXSI,0)=LEXSN
 S ^LEX(757.02,LEXSI,4,0)=LEXHI
 S ^LEX(757.02,LEXSI,4,1,0)=LEXH1
 S ^LEX(757.02,LEXSI,4,2,0)=LEXH2
 S DA=LEXSI,DIK="^LEX(757.02," D IX1^DIK
 K LEXFD S LEXIS=LEXEX_",",LEXFD(757.01,LEXIS,.01)=$G(LEXEP)
 D FILE^DIE("","LEXFD") S DA=LEXEX,DIK="^LEX(757.01," D IX1^DIK
 Q
C11 ; 6109   90% Impairment of Auditory Acuity
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38206 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304644
 S LEXMC=164274
 S LEXSO=6109
 S LEXSA=17
 S LEXPF=1
 S LEXAF=1
 S LEXPM=1
 S LEXSN=LEXEX_U_LEXSO_U_LEXSA_U_LEXMC_U_LEXPF_U_LEXAF_U_LEXPM
 S LEXHI="^757.28D^2^2"
 S LEXAC=2871218
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2990610
 S LEXH2=LEXIN_U_"0"
 S LEXEP="90% Impairment of Auditory Acuity"
 S LEXSR=497
 S LEXCA=4
 S ^LEX(757.02,LEXSI,0)=LEXSN
 S ^LEX(757.02,LEXSI,4,0)=LEXHI
 S ^LEX(757.02,LEXSI,4,1,0)=LEXH1
 S ^LEX(757.02,LEXSI,4,2,0)=LEXH2
 S DA=LEXSI,DIK="^LEX(757.02," D IX1^DIK
 K LEXFD S LEXIS=LEXEX_",",LEXFD(757.01,LEXIS,.01)=$G(LEXEP)
 D FILE^DIE("","LEXFD") S DA=LEXEX,DIK="^LEX(757.01," D IX1^DIK
 Q