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

BPXRMEX1.m

Go to the documentation of this file.
  1. BPXRMEX1 ; IHS/MSC/MGH - Packing save routines. ;13-Aug-2015 12:06;du
  1. ;;2.0;CLINICAL REMINDERS;**1005**;Feb 04, 2005;Build 23
  1. ;==========================================
  1. SROC(FILENUM,ROCIEN,PACKLIST) ;Reminder Order Checks.
  1. ;packed order check structure up
  1. D SGENR^PXRMEXPS(FILENUM,ROCIEN,.PACKLIST)
  1. N GBL,SUB,DRCL,FNUM,OI,OLIST,PHAR,RIEN,ROUTINE,TIEN,TLIST,WPNODE
  1. ;Process the pharmacy multiple.
  1. S PHAR=""
  1. F S PHAR=$O(^PXD(801,ROCIEN,1.5,"B",PHAR)) Q:PHAR="" D
  1. . S IEN=$P(PHAR,";"),GBL=$P(PHAR,";",2)
  1. . S FNUM=$$GETFNUM^PXRMEXPS(GBL)
  1. . S ROUTINE=$$GETSRTN^PXRMEXPS(FNUM)_"(FNUM,IEN,.PACKLIST)"
  1. . D @ROUTINE
  1. ;packed list of Orderable Item
  1. I $D(^PXD(801,ROCIEN,2)) D
  1. .S SUB=0 F S SUB=$O(^PXD(801,ROCIEN,2,SUB)) Q:SUB'>0 D
  1. ..S OI=$P($G(^PXD(801,ROCIEN,2,SUB,0)),U) Q:OI'>0
  1. ..S ROUTINE=$$GETSRTN^PXRMEXPS(101.43)_"(101.43,OI,.PACKLIST)"
  1. ..D @ROUTINE
  1. ;loop through rules and packed definitions or terms
  1. S SUB=0 F S SUB=$O(^PXD(801,ROCIEN,3,SUB)) Q:SUB'>0 D
  1. .S RIEN=$P($G(^PXD(801,ROCIEN,3,SUB,0)),U) Q:RIEN'>0
  1. .S ROUTINE=$$GETSRTN^PXRMEXPS(801.1)_"(801.1,RIEN,.PACKLIST)"
  1. .D @ROUTINE
  1. Q
  1. SRULE(FILENUM,RULEIEN,PACKLIST) ;Reminder Order Check Rules.
  1. ;packed order check structure up
  1. D SGENR^PXRMEXPS(FILENUM,RULEIEN,.PACKLIST)
  1. N OLIST,RIEN,ROUTINE,TIEN,TLIST
  1. I $D(^PXD(801.1,RULEIEN,3,4))>0 D
  1. .;search for TIU Objects
  1. .D TIUSRCH^PXRMEXU1("^PXD(801.1,",RULEIEN,",4",.OLIST,.TLIST)
  1. .I $D(OLIST)>0 D
  1. ..S ROUTINE=$$GETSRTN^PXRMEXPS(8925.1)_"(8925.1,.OLIST,.PACKLIST)"
  1. ..D @ROUTINE K OLIST
  1. .K TLIST
  1. .;packed term up only
  1. S TIEN=$P($G(^PXD(801.1,RULEIEN,2)),U) I TIEN>0 D Q
  1. .S ROUTINE=$$GETSRTN^PXRMEXPS(811.5)_"(811.5,TIEN,.PACKLIST)"
  1. .D @ROUTINE
  1. ;packed definition up if defined
  1. S RIEN=$P($G(^PXD(801.1,RULEIEN,3)),U) I RIEN>0 D
  1. .S ROUTINE=$$GETSRTN^PXRMEXPS(811.9)_"(811.9,RIEN,.PACKLIST)"
  1. .D @ROUTINE
  1. Q
  1. ;