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

PXRMTDUP.m

Go to the documentation of this file.
  1. PXRMTDUP ; SLC/PKR - Update Taxonomy Dialog Selectable codes.;04/04/2003
  1. ;;2.0;CLINICAL REMINDERS;;Feb 04, 2005
  1. ;
  1. ;=======================================================
  1. BUILD(TIEN) ;Build the list of selectable codes for one taxonomy.
  1. N DATEBLT,FILE,NODE,PTR,TEMP
  1. S TEMP=$G(^PXD(811.3,TIEN,0))
  1. S DATEBLT=$P(TEMP,U,2)
  1. ;Make sure the expansion exists.
  1. I DATEBLT="" D EXPAND^PXRMBXTL(TIEN,"")
  1. ;Copy the expansion into the selectable lists.
  1. F FILE=80,81 D
  1. . S NODE=$S(FILE=80:"SDX",FILE=81:"SPR")
  1. . S PTR=$S(FILE=80:"ICD9P",FILE=81:"ICPTP")
  1. . K ^PXD(811.2,TIEN,NODE)
  1. . M ^PXD(811.2,TIEN,NODE)=^PXD(811.3,TIEN,FILE)
  1. . M ^PXD(811.2,TIEN,NODE,"B")=^PXD(811.3,TIEN,FILE,PTR)
  1. . K ^PXD(811.2,TIEN,NODE,PTR)
  1. Q
  1. ;