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

PXRMXXT.m

Go to the documentation of this file.
  1. PXRMXXT ; SLC/DLT - Formatting for extract print templates ;8/14/00 18:30
  1. ;;2.0;CLINICAL REMINDERS;;Feb 04, 2005
  1. ;
  1. ;======================================================================
  1. FORMATB ;Format body of report that prints the findings
  1. ; Variables that need to be deleted from the template logic follow
  1. ; PXRME,PXRMB,PXRMSEX,PXRMFD
  1. D DELVAR^PXRMXXT
  1. N DFN,VADM,VA
  1. S PXRME=^PXRMXT(810.3,D0,1,D1,0)
  1. S DFN=+$P(PXRME,"^",1)
  1. D DEM^VADPT
  1. S PXRMB=$$FMTE^XLFDT(+VADM(3),"2D")
  1. I '$L(PXRMB) S PXRMB="Missing DOB"
  1. S PXRMSSN=$P(VADM(2),"^",2)
  1. S PXRMSEX=$P(VADM(5),"^",1)
  1. S PXRMFD=$$FMTE^XLFDT($P(PXRME,"^",6),"2D")
  1. S PXRMENCT=$S($P(PXRME,"^",8)="I":"Inpatient ",1:"Outpatient")
  1. Q
  1. ;
  1. PDEM ;Print SSN with dashes
  1. W PXRMSSN
  1. Q
  1. ;
  1. PFIND ;Print findings data from the template
  1. W " "_PXRMENCT_" "_$E(PXRMFD,1,8)
  1. Q
  1. ;
  1. DELVAR ;Delete variables used in the processing
  1. K PXRME,PXRMB,PXRMSEX,PXRMFD,PXRMSSN,PXRMFD,PXRMENCT
  1. Q
  1. ;