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

BQI24P2.m

Go to the documentation of this file.
  1. BQI24P2 ;GDHS/HCS/ALA-Version 2.4 Patch 2 ; 02 Nov 2015 3:11 PM
  1. ;;2.4;ICARE MANAGEMENT SYSTEM;**2**;Apr 01, 2015;Build 10
  1. ;
  1. ;
  1. PRE ;
  1. Q
  1. ;
  1. POS ; EP
  1. NEW DZ,FN,TF
  1. I $D(^BQICARE(.5)) K ^BQICARE(.5)
  1. S DZ=0
  1. F S DZ=$O(^BQICARE(DZ)) Q:'DZ D
  1. . S FN=0 Q:DZ'=1074
  1. . F S FN=$O(^BQICARE(DZ,10,FN)) Q:'FN D
  1. .. S TF=1
  1. .. I $P($G(^BQICARE(DZ,10,FN,1,TF,0)),"^",2)="T-6M" D
  1. ... NEW IENS,DA
  1. ... S DA(2)=DZ,DA(1)=FN,DA=TF,IENS=$$IENS^DILF(.DA)
  1. ... S BQIUPD(90505.1,IENS,.02)="T-2M"
  1. D FILE^DIE("","BQIUPD","ERROR")
  1. ;
  1. NEW DFN
  1. S DFN=0
  1. F S DFN=$O(^BQIPAT(DFN)) Q:'DFN I $P($G(^BQIPAT(DFN,0)),"^",1)="" S $P(^BQIPAT(DFN,0),"^",1)=DFN,^BQIPAT("B",DFN,DFN)=""
  1. Q