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

ICD1830G.m

Go to the documentation of this file.
  1. ICD1830G ;;BAY/JAT - FY 2007 UPDATE;
  1. ;;18.0;DRG Grouper;**30**;Oct 13,2000;Build 5
  1. ;
  1. D CC
  1. Q
  1. CC ; update complications/comorbidities field in diag file
  1. N LINE,X,ICDDIAG,ENTRY,IDENT,DA,DIE,DR,DUPE
  1. F LINE=1:1 S X=$T(CCID+LINE) S ICDDIAG=$P(X,";;",2) Q:ICDDIAG="EXIT" D
  1. .S ENTRY=+$O(^ICD9("BA",$P(ICDDIAG,U)_" ",0)) I ENTRY D
  1. ..; check for any dupe (there are some in MNTVBB)
  1. ..S DUPE=+$O(^ICD9("BA",$P(ICDDIAG,U)_" ",ENTRY)) I DUPE Q
  1. ..S IDENT=1
  1. ..S DA=ENTRY,DIE="^ICD9("
  1. ..S DR="70///^S X=IDENT"
  1. ..D ^DIE
  1. Q
  1. CCID ;
  1. ;;799.02^
  1. ;;EXIT