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

BLSLOINC.m

Go to the documentation of this file.
  1. BLSLOINC ; IHS/CMI/LAB - USED TO ADD LOINC CODES TO MASTER FILE ; [ 11/18/2002 1:59 PM ]
  1. ;;5.2;LR;**1015**;NOV 18, 2002
  1. ;
  1. ;
  1. Q
  1. ML ;assign loinc codes to master.
  1. I '$D(DUZ) W !!,"Log into Kernel first using XUP." Q
  1. W:$D(IOF) @IOF
  1. W !!,"Hi Dorothy! Have fun Loincing!!!",!!!!
  1. S BLSQUIT=0
  1. S BLSN="" F S BLSN=$O(^BLSLMAST("B",BLSN)) Q:BLSN=""!(BLSQUIT) D
  1. .S BLSY=0 F S BLSY=$O(^BLSLMAST("B",BLSN,BLSY)) Q:BLSY'=+BLSY!(BLSQUIT) D ML1
  1. W !!,"So long for now..................."
  1. K BLSN,BLSQUIT D ^XBFMK
  1. Q
  1. ML1 ;
  1. Q:$P(^BLSLMAST(BLSY,0),U,4) ;already loinc
  1. Q:$P(^BLSLMAST(BLSY,0),U,6) ;no loincing
  1. W !!!,"Test Name: ",BLSN
  1. I $P(^BLSLMAST(BLSY,0),U,7)]"" W !," ",$P(^BLSLMAST(BLSY,0),U,7)
  1. I $P($G(^BLSLMAST(BLSY,11)),U)]"" W !," ",$P($G(^BLSLMAST(BLSY,11)),U)
  1. W !,"Site/Specimen: ",$P(^BLSLMAST(BLSY,0),U,2)
  1. W !,"Units: ",$P(^BLSLMAST(BLSY,0),U,3)
  1. W ! S DIR(0)="S^1:Assign a Loinc;2:Skip this one for now;3:Mark as Un-Loincable;4:Quit Loinc-ing",DIR("A")="Select Action",DIR("B")="1" KILL DA D ^DIR KILL DIR
  1. I $D(DIRUT) S BLSQUIT=1 Q
  1. I Y=4 S BLSQUIT=1 Q
  1. I Y=2 Q
  1. I Y=3 S $P(^BLSLMAST(BLSY,0),U,6)=1 W " marked as not Loinc-able.." Q
  1. S DA=BLSY,DR=.04,DIE="^BLSLMAST(" D ^DIE K DIE,DA,DR D ^XBFMK
  1. Q