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

ATX50P1.m

Go to the documentation of this file.
  1. ATX50P1 ; IHS/OHPRD/TMJ - UPDATE SURVEILLANCE TB TAXONOMY WITH NEW ICD9 CODE ; [ 02/04/97 11:29 AM ]
  1. ;;5.1;TAXONOMY;;FEB 04, 1997
  1. ;
  1. ;
  1. ;add new icd diagnosis codes to SURV TAXONOMY
  1. ;add new ATX ADR NOTIFICATION BULLETIN AND TAXONOMY
  1. ;
  1. EP ;
  1. ;fix taxonomy 21 nodes
  1. S X=0 F S X=$O(^ATXAX(X)) Q:X'=+X I $G(^ATXAX(X,21,0))["02102" S Y=^ATXAX(X,21,0),^ATXAX(X,21,0)="^9002226.2101A^"_$P(Y,U,3)_"^"_$P(Y,U,4)
  1. SURVTB ;
  1. W !,"Editing SURVEILLANCE TUBERCULOSIS Taxonomy..."
  1. S ATXTX=$O(^ATXAX("B","SURVEILLANCE TUBERCULOSIS",0)) I ATXTX="" W !,"Taxonomy does not exist.",!! Q
  1. S ^ATXAX(ATXTX,21,0)="^9002226.02101^4^4"
  1. S ^ATXAX(ATXTX,21,4,0)="V12.01^V12.01"
  1. S DA=ATXTX,DIK="^ATXAX(" D IX1^DIK
  1. S ATXX=ATXTX D ZTM^ATXAX ;update all these codes in icd9 file
  1. W !!,"All Done."
  1. K ATXTX,DIK,DA
  1. ADR ;adr notification taxonomy
  1. BULL ;add bulletin
  1. G:$D(^XMB(3.6,"B","ATX ADR NOTIFICATION")) ADRTAX
  1. K DA,DR,DIC S X="ATX ADR NOTIFICATION",DIADD=1,DLAYGO=3.6,DIC(0)="L",DIC="^XMB(3.6," D ^DIC
  1. I Y=-1 W !,$C(7),$C(7),"Creating bulletin failed..." G ADRTAX
  1. S ATXIEN=+Y
  1. S $P(^XMB(3.6,ATXIEN,0),U,2)="PATIENT SEEN FOR AN ENTRY WITHIN A TAXONOMY"
  1. S ^XMB(3.6,ATXIEN,1,0)="9^^11^11^"_$S($G(DT)]"":DT,1:"2950430")
  1. S ^XMB(3.6,ATXIEN,1,1,0)="Patient Name: |2| Chart No.: |99|"
  1. S ^XMB(3.6,ATXIEN,1,2,0)="Visit Date: |3|"
  1. S ^XMB(3.6,ATXIEN,1,3,0)="Location: |15|"
  1. S ^XMB(3.6,ATXIEN,1,4,0)="ICD9 Code: |1|"
  1. S ^XMB(3.6,ATXIEN,1,5,0)="ICD9 Description: |8|"
  1. S ^XMB(3.6,ATXIEN,1,6,0)="Provider Stated: |4|"
  1. S ^XMB(3.6,ATXIEN,1,7,0)="Taxonomy: |20|"
  1. S ^XMB(3.6,ATXIEN,1,8,0)=" "
  1. S ^XMB(3.6,ATXIEN,1,9,0)="This may be an adverse drug reaction which requires you investigation."
  1. S ^XMB(3.6,ATXIEN,1,10,0)="Please review the client's medical record at your earliest convenience."
  1. S ^XMB(3.6,ATXIEN,1,11,0)="for further information on this visit."
  1. S DIK="^XMB(3.6,",DA=ATXIEN D IX1^DIK
  1. ADRTAX ;
  1. S ATXFLG="" W !,"Creating Adverse Drug Reaction Taxonomy..."
  1. G:$D(^ATXAX("B","ATX ADR NOTIFICATION")) EXIT
  1. S X="ATX ADR NOTIFICATION",DIC="^ATXAX(",DIC(0)="L",DIADD=1,DLAYGO=9002226 D ^DIC K DIC,DA,DR,DIADD,DLAYGO,D0
  1. I Y=-1 W !!,"ERROR IN CREATING ATX ADR NOTIFICATION TAX" Q
  1. S ATXTX=+Y,$P(^ATXAX(ATXTX,0),U,2)="Adverse Drug Reaction Taxonomy",$P(^(0),U,5)=DUZ,$P(^(0),U,8)=1,$P(^(0),U,9)=DT,$P(^(0),U,11)="B",$P(^(0),U,12)=31,$P(^(0),U,13)=1,$P(^(0),U,15)=80,$P(^(0),U,14)="BA",$P(^(0),U,16)=1
  1. S ^ATXAX(ATXTX,21,0)="^9002226.02101A^3^3",^ATXAX(ATXTX,21,1,0)="960.0^979.9",^ATXAX(ATXTX,21,2,0)="V14.0^V14.9",^ATXAX(ATXTX,21,3,0)="995.0^995.4"
  1. S DA=ATXTX,DIK="^ATXAX(" D IX1^DIK
  1. S DIE="^ATXAX(",DA=ATXTX,DR=".07///ATX ADR NOTIFICATION" D ^DIE K DIE,DA,DR,DIU,DIY,DIW,DIV
  1. I $D(Y) W !!,"ERROR IN UPDATING BULLETIN OF ADR NOTIFICATION TAX"
  1. S ATXX=ATXTX D ZTM^ATXAX ;update all these codes in icd9 file
  1. EXIT ;
  1. W !!,$C(7),$C(7),"If your site wants to utilize the Adverse drug Reaction notification bulletin,",!,"you must do the following:"
  1. W !?5,"- create a mail group for adverse drug reaction (you could use the ",!?5,"PHARM MGR group if it exists)"
  1. W !?5,"- add members to the group"
  1. W !?5,"- add this group to the bulletin entry called 'ATX ADR NOTIFICATION'"
  1. K ATXIEN,ATXTX,ATXX,X,Y,ATXFLG
  1. Q