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

BLSRLC.m

Go to the documentation of this file.
  1. BLSRLC ; IHS/CMI/LAB - wipe out all loinc codes ; [ 11/19/2002 8:26 AM ]
  1. ;;5.2;LR;**1015**;NOV 18, 2002
  1. ;
  1. W !!,"This routine will remove all loinc codes from file 60.",!
  1. S DIR(0)="Y",DIR("A")="Do you want to continue",DIR("B")="N" KILL DA D ^DIR KILL DIR
  1. Q:$D(DIRUT)
  1. Q:'Y
  1. S BLSX=0 F S BLSX=$O(^LAB(60,BLSX)) Q:BLSX'=+BLSX D
  1. .S BLSS=0 F S BLSS=$O(^LAB(60,BLSX,1,BLSS)) Q:BLSS'=+BLSS D
  1. ..I '$D(^LAB(60,BLSX,1,BLSS,95.3)) Q ;no loinc code
  1. ..W ".",BLSX
  1. ..S DA(1)=BLSX,DA=BLSS,DIE="^LAB(60,"_BLSX_",1,",DR="95.3///@" D ^DIE
  1. ..I $D(Y) Q
  1. ..Q
  1. .Q
  1. W !!,"Loinc codes have been removed from file 60."
  1. Q