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

ATXAX.m

Go to the documentation of this file.
  1. ATXAX ; IHS/OHPRD/TMJ - TAXONOMY FOR ICD9 CODES INTO ICD DIAG FILE ; 23 Aug 2012 6:40 AM
  1. ;;5.1;TAXONOMY;**11**;FEB 04, 1997;Build 48
  1. ;
  1. ;
  1. ; -- ADD A NEW TAXONOMY OR ADD CODES TO A TAXONOMY
  1. DESC ;
  1. ;;This option should ONLY be used if you want to set up a bulletin
  1. ;;that will be sent to a Mail Group you define.
  1. ;;A bulletin for a taxonomy is an email message sent to a specified
  1. ;;group of recipients when a patient's purpose of visit matches one
  1. ;;of the entries within the taxonomy. The selection of a taxonomy
  1. ;;within the 'Enter Bulletin for a Taxonomy' option will automatically
  1. ;;create a bulletin to be sent to the recipients within the designated mail group.
  1. ;;
  1. ;;$$END
  1. N I,X F I=1:1 S X=$P($T(DESC+I),";;",2) Q:X["$$END" D EN^DDIOL(X)
  1. ;GET TAXONOMY
  1. W !!,"Please select the ICD Diagnosis Taxonomy that you wish to have"
  1. W !,"a bulletin set up for. You must first create the taxonomy using"
  1. W !,"the taxonomy set up option. Please Note: You can only set up"
  1. W !,"a bulletin for a taxonomy that you created.",!
  1. S ATXFLG="",ATXSTP=0
  1. S DIC="^ATXAX(",DIC(0)="AEMQ",DIC("DR")="",DIC("S")="I $P(^(0),U,5)=DUZ,$P(^(0),U,15)=80" D ^DIC K DIC,DLAYGO
  1. I Y=-1 W !,"Taxonomy not selected." D XIT Q
  1. S ATXX=+Y
  1. ;set created by taxonomy system
  1. S DIE="^ATXAX(",DR=".08///1",DA=ATXX D ^DIE
  1. ZTM ;
  1. D DFNS
  1. ;now do what atxbull did
  1. D ENTER^ATXBULL2 ;create the bulletin
  1. D XIT
  1. Q
  1. ;
  1. DFNS ;EP - GET LO AND HIGH DFNS FOR THIS TAXONOMY
  1. K ATXARR
  1. D BLDTAX^ATXAPI($P(^ATXAX(ATXX,0),U,1),"ATXARR",ATXX,"T")
  1. S ATX1="",ATXQ=0 F S ATX1=$O(ATXARR(ATX1)) Q:ATX1="" D
  1. .;set icd9 41 multiple
  1. .S DIE="^ICD9(",DR="9999999.41///"_"`"_ATXX,DA=ATX1 I DA]"",'$D(^ICD9(DA,9999999.41,"B",ATXX)) D ^DIE,^XBFMK
  1. Q
  1. ;
  1. XIT ;
  1. D EN^XBVK("ATX")
  1. Q