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

PX1P204.m

Go to the documentation of this file.
  1. PX1P204 ;ALB/LLS - update ENTRY ACTION of protocol PXCE NEW ENCOUNTER
  1. ;;1.0;PCE PATIENT CARE ENCOUNTER;**204**;Aug 12, 1996;Build 14
  1. ;
  1. Q
  1. ;
  1. PROCESS ; Look at all entries in the PATIENT file (#2).
  1. N PXIEN,PXNODE
  1. S PXIEN=$O(^ORD(101,"B","PXCE NEW ENCOUNTER",""))
  1. ;
  1. K ^XTMP("PX1P204",$J)
  1. I PXIEN="" S ^XTMP("PX1P204",$J,"OLD")="DID NOT EXIST" G SNDMSG
  1. ;
  1. ; set up 0 node of ^XTMP to allow the system to purge after 90 days
  1. S (^XTMP("PX1P204",0),^XTMP("PX1P204",$J,0))=$$FMADD^XLFDT(DT,90)_U_DT_U_"Update ENTRY ACTION of protocol PXCE NEW ENCOUNTER"
  1. ;
  1. I '$D(^ORD(101,PXIEN,20)) S ^XTMP("PX1P204",$J,"OLD")="DID NOT EXIST" G SNDMSG
  1. S ^XTMP("PX1P204",$J,"OLD")=^ORD(101,PXIEN,20)
  1. S ^ORD(101,PXIEN,20)="S PXCEVIEN="""" D SDSALONE^PXCEPAT D:$G(PXCEPAT)>0 EN^PXCEVFIL(""SIT"")"
  1. S ^XTMP("PX1P204",$J,"NEW")=^ORD(101,PXIEN,20)
  1. SNDMSG ;
  1. D MES^XPDUTL("------------------------------------------------------------------------")
  1. D MES^XPDUTL("The process to update ENTRY ACTION of protocol PXCE NEW ENCOUNTER is complete")
  1. D MES^XPDUTL(" OLD value: ")
  1. D MES^XPDUTL(" "_$G(^XTMP("PX1P204",$J,"OLD")))
  1. D MES^XPDUTL(" NEW value: ")
  1. D MES^XPDUTL(" "_$G(^XTMP("PX1P204",$J,"NEW")))
  1. D MES^XPDUTL("------------------------------------------------------------------------")
  1. Q