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

LEX2073J.m

Go to the documentation of this file.
LEX2073J ;ISL/KER - LEX*2.0*73 Post-Install - Missing 3 ;01/03/2011
 ;;2.0;LEXICON UTILITY;**73**;Sep 23, 1996;Build 10
 ;               
 ; 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,C12
 Q
C1 ; 9207  Major Depression with Psychotic Features
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38218 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=186652
 S LEXSO=9207
 S LEXSA=17
 S LEXMC=63686
 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=2871217
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2961107
 S LEXH2=LEXIN_U_"0"
 S LEXEP="Major Depression with Psychotic Features"
 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
C2 ; 9402  Neurosis, Conversion Disorder 
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38219 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=28140
 S LEXSO=9402
 S LEXSA=17
 S LEXMC=5895
 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=2871217
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2961107
 S LEXH2=LEXIN_U_"0"
 S LEXEP="Neurosis, Conversion Disorder"
 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 ; 9405  Neurosis, Dysthymic Disorder
 N DA,DIK,LEXAC,LEXAF,LEXCA,LEXEX,LEXEP,LEXFD,LEXH1,LEXH2,LEXHI,LEXIN,LEXIS,LEXMC,LEXPF,LEXPM,LEXSA,LEXSI,LEXSN,LEXSO,LEXSR
 S LEXSI=38220 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=32958
 S LEXSO=9405
 S LEXSA=17
 S LEXMC=6869
 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=2871217
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2961107
 S LEXH2=LEXIN_U_"0"
 S LEXEP="Neurosis, Dysthymic Disorder"
 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 ; 6277   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=38221 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304643
 S LEXMC=164273
 S LEXSO=6277
 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=2781001
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2790101
 S LEXH2=LEXIN_U_"0"
 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
 Q
C5 ; 6278   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=38222 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304641
 S LEXMC=164271
 S LEXSO=6278
 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=2781001
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2790101
 S LEXH2=LEXIN_U_"0"
 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
 Q
C6 ; 6284   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=38223 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304639
 S LEXMC=164269
 S LEXSO=6284
 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=2781001
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2790101
 S LEXH2=LEXIN_U_"0"
 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
 Q
C7 ; 6281   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=38224 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304637
 S LEXMC=164267
 S LEXSO=6281
 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=2781001
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2790101
 S LEXH2=LEXIN_U_"0"
 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
 Q
C8 ; 6282   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=38225 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304636
 S LEXMC=164266
 S LEXSO=6282
 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=2781001
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2790101
 S LEXH2=LEXIN_U_"0"
 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
 Q
C9 ; 6294    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=38226 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304635
 S LEXMC=164265
 S LEXSO=6294
 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=2781001
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2790101
 S LEXH2=LEXIN_U_"0"
 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
 Q
C10 ; 6288   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=38227 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304639
 S LEXMC=164269
 S LEXSO=6288
 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=2791001
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2810101
 S LEXH2=LEXIN_U_"0"
 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
 Q
C11 ; 6286   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=38228 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304637
 S LEXMC=164267
 S LEXSO=6286
 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=2791001
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2810101
 S LEXH2=LEXIN_U_"0"
 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
 Q
C12 ; 6287   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=38229 I $D(^LEX(757.02,+LEXSI,0)) S DA=LEXSI,DIK="^LEX(757.02," D ^DIK
 S LEXEX=304636
 S LEXMC=164266
 S LEXSO=6287
 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=2791001
 S LEXH1=LEXAC_U_"1"
 S LEXIN=2810101
 S LEXH2=LEXIN_U_"0"
 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
 Q