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

SC40447P.m

Go to the documentation of this file.
  1. SC40447P ;BP-CIOFO/TEH CROSS-REFERENCE REPAIR UTILITY ; 28 Apr 04 04:11PM
  1. ;;5.3;Scheduling;**365**;Apr 28 2004
  1. ;;
  1. ;;
  1. ;;This utility will verify that in the PCMM HL7 TRANSMISSION LOG
  1. ;;file that if the 'ACK RECIEVED DATE/TIME" field is set and the
  1. ;;STATUS file does not have a "A" for accepted then a correct will
  1. ;;be done to the STATUS field and the "ASTAT" x-ref will be corrected.
  1. ;;
  1. ;;This routine should not be run while transmitting PCMM HL7 data.
  1. Q
  1. EN N SCX,SCACKDT,DA,DR,SCXX,DIE
  1. S SCX="" F S SCX=$O(^SCPT(404.471,"ASTAT","T",SCX)) Q:SCX<1 D
  1. .S SCXX=$G(^SCPT(404.471,SCX,0)) Q:SCXX=""
  1. .;CHECK FOR ACK RECIEVED DATE/TIME
  1. .S SCACKDT=$P(SCXX,"^",5) Q:'SCACKDT D
  1. ..;CORRECT STATUS AND X-REF
  1. ..S DIE="^SCPT(404.471,",DA=SCX,DR=".04////A" D ^DIE
  1. Q