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

FBCH780.m

Go to the documentation of this file.
  1. FBCH780 ;AISC/DMK-7078/AUTHORIZATION CON'T ;8/18/2004
  1. ;;3.5;FEE BASIS;**82**;JAN 30, 1995
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. DISP D HOME^%ZIS W @IOF
  1. W !! S DA=FBAA78,DR="0;1",DIC="^FB7078(" D EN^DIQ
  1. ASK S DIR(0)="Y",DIR("A")="Is this Correct",DIR("B")="NO" D ^DIR K DIR S:$D(DIRUT) FBOUT=1 Q:$G(FBOUT) G EDIT:'Y
  1. S DFN=+$P($G(^FB7078(+FBAA78,0)),"^",3)
  1. W !,?2,"....Posting to 1358",! D WAIT^DICD,POST Q
  1. END W ! Q
  1. EDIT W ! S (DIC,DIE)="^FB7078(",DA=FBAA78,DR="[FBCH EDIT 7078]" D ^DIE
  1. G DISP
  1. HELP W !!,"Select one of the following: ",!,?18,"'00' FOR SURGICAL",!,?18,"'10' FOR MEDICAL",!,?18,"'86' FOR PSYCHIATRY",! Q
  1. POST S PRCS("X")=FBCHOB,PRCS("TYPE")="FB" D EN3^PRCS58 I Y=-1 W !!,*7,"1358 not available for posting!",! Q
  1. S FBCOMM=$S($D(FBNAME):FBNAME_" - "_FBSSN,1:"Estimated amount")
  1. D NOW^%DTC S X=FBCHOB_"^"_%_"^"_FBEST_"^"_""_"^"_FBSEQ_"^"_FBCOMM_"^"_DFN_";"_+FBAA78_";"_$P(FBCHOB,"-",2),PRCS("TYPE")="FB"
  1. D EN2^PRCS58 Q
  1. NULL W !,*7,"Enter the reason for pending disposition or an '^' to exit",! G FBPDIS^FBCH78
  1. NULL1 W !,*7,"This is a required response. Enter an '^' to exit.",! Q
  1. ;
  1. DISCH(X) ;X = Pointer for 7078
  1. ;output = patient's Type of Discharge
  1. N Y
  1. S Y=$O(^FBAAI("E",X_";FB7078(",0))
  1. I 'Y Q Y
  1. S Y=+$P($G(^FBAAI(Y,0)),U,21)
  1. Q $S($P($G(^FBAA(162.6,Y,0)),U)]"":$P(^(0),U),1:"")
  1. ;
  1. PTF ;called to create a non-va ptf record at admission time for an
  1. ;authorized claim. Called from FBCH78.
  1. ;
  1. ; input
  1. ; DFN - ien of patient in file #2
  1. ; FBAA78 - ien of 7078 authorization in file #162.4
  1. ;
  1. N FBDT
  1. ;
  1. ; obtain Authorization From Date from 7078 authorization to use
  1. ; as the admission date on the PTF record
  1. S:$G(FBAA78) FBDT=$P($G(^FB7078(+FBAA78,0)),U,4)
  1. ;
  1. ; call utility to attempt creation of a Non-VA PTF record
  1. D PTFC^FBUTL6($G(DFN),$G(FBDT))
  1. Q