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

BRNPTN.m

Go to the documentation of this file.
BRNPTN ; IHS/PHXAO/TMJ - ROI CUMMULATIVE PATIENT HX FOR CHART ; 
 ;;2.0;RELEASE OF INFO SYSTEM;**4**;APR 10, 2003;Build 15
 ;;IHS/OIT/GAB PATCH 4 - FIX UNDEFINED ERROR; April 2017
SERVICE ;PICK PATIENT NAME ENTRY
 W !!!
 S DIC=2 S DIC("A")="Enter a Patient Name: " S DIC(0)="AEMIQO" D ^DIC
 G END:Y<1 S BRNPTN=+Y
 I BRNPTN="" Q
 D CKDIS           ;IHS/OIT/GAB PATCH 4 CHECK FOR ANY DISCLOSURES
 G RETURN:NODIS=1  ;IHS/OIT/GAB PATCH 4 END SINCE NO DISCLOSURES
PRINT ;PRINT CUMMULATIVE PATIENT RECORD OF ALL DISCLOSURES
 W !
 S FLDS="[BRN GS ACCOUNTING RECORD]",BY="@INTERNAL(#.03)",DIC="^BRNREC(",L=0
 S FR=BRNPTN,TO=BRNPTN
 K DHIT,DIOEND,DIOBEG
 D EN1^DIP
 G RETURN
 Q
CKDIS ; IHS/OIT/GAB PATCH 4 - FIX UNDEF ERROR WHEN THERE ARE NO DISCLOSURES
 S NODIS=""
 I '$D(^BRNREC("AA",BRNPTN)) W !!,?20,"******** NO EXISTING DISCLOSURES FOR THIS PATIENT ***" S NODIS=1
 Q
RETURN ;   /IHS/GAB ADDED PATCH #4
 ; Press return to continue
 W !
 S DIR(0)="E"
 S DIR("A")="Press return to continue..."
 D ^DIR
 K DIR
END ;
 K BRNPTN,X,DD0,B Q