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

APCLDQMT.m

Go to the documentation of this file.
  1. APCLDQMT ; IHS/CMI/LAB - fix to QMAN DICT OF TERMS - AKA ;
  1. ;;2.0;IHS PCC SUITE;;MAY 14, 2009
  1. ;
  1. DEL ;delete "P O V" AKA multiple from the DIAGNOSIS entry
  1. N DIC,REC
  1. S DIC="^AMQQ(5,",DIC(0)="OZ",X="DIAGNOSIS"
  1. D ^DIC K DIC
  1. S REC=+Y
  1. S DIC="^AMQQ(5,"_REC_",1,",DIC(0)="OZ",X="P O V"
  1. D ^DIC K DIC
  1. I Y=-1 D NONE G QUIT
  1. S DA(1)=REC
  1. S DIK="^AMQQ(5,"_REC_",1,",DA=+Y
  1. D ^DIK K DIK
  1. W !!,"......deleting the ""P O V"" AKA multiple from the DIAGNOSIS term entry.",!!
  1. QUIT K REC
  1. Q
  1. NONE ;no "P O V" found
  1. W !?5,"No ""P O V"" entry found.....nothing deleted",!
  1. Q