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

VSITPUT.m

Go to the documentation of this file.
  1. VSITPUT ;ISD/RJP - Verify/Set Fields and File Visit Record ;7/29/96
  1. ;;1.0;PCE PATIENT CARE ENCOUNTER;**76**;Aug 12, 1996
  1. ; Patch PX*1*76 changes the 2nd line of all VSIT* routines to reflect
  1. ; the incorporation of the module into PCE. For historical reference,
  1. ; the old (VISIT TRACKING) 2nd line is included below to reference VSIT
  1. ; patches.
  1. ;
  1. ;;2.0;VISIT TRACKING;;Aug 12, 1996;
  1. ;
  1. ; - verify/set visit record fields
  1. ; - called by ^VSIT
  1. ;
  1. N FLD,FLDINDX,VSITREC
  1. S FLDINDX=""
  1. F S FLDINDX=$O(^TMP("VSITDD",$J,FLDINDX)) Q:FLDINDX="" D
  1. . S FLD=^TMP("VSITDD",$J,FLDINDX)
  1. . S:$P(VSIT(FLDINDX),"^")]"" $P(VSITREC($P(FLD,";",3)),"^",$P(FLD,";",4))=$P(VSIT(FLDINDX),"^")
  1. ;
  1. Q:'$D(VSITREC(0))
  1. ;
  1. D ^VSITPUT1
  1. ;
  1. QUIT ; - exit
  1. Q
  1. ERR(ERR) ; - send error bulletin
  1. ; sent at QUIT^VSIT
  1. ; mail group = vsit create error
  1. ;
  1. D VAR^VSITBUL(ERR)
  1. Q
  1. ;
  1. WRN(ERR) ; - send warning bulletin
  1. ; sent at QUIT^VSIT
  1. ; mail group = vsit create error
  1. D VAR^VSITBUL(ERR)
  1. Q