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

PSSXREF.m

Go to the documentation of this file.
PSSXREF  ;BIR/TTH-REINDEX "AND" X-REFERENCE ON DRUG FILE (#50) ; 4-FEB-2000 14:17
 ;;1.0; PHARMACY DATA MANAGEMENT;**31**;9/30/97
 ;
INDEX ;Re-index AND cross-reference.
 S DIK="^PSDRUG(",DIK(1)="20^AND" D ENALL^DIK
 K DIK
 Q
DD202 ;Remove Field.
 I $$VFIELD^DILFD(50,202) D
 .F XX=0:0 S XX=$O(^PSDRUG(XX)) Q:'XX  I $D(^PSDRUG(1,"CH")) S DA=XX,DIE=50,DR="202///@" D ^DIE K DA,DIE,DR
 .S DIK="^DD(50,",DA=202,DA(1)=50
 .D ^DIK
 Q