Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls
Print Page as PDF
Routine: HBHCTXT2

Package: Hospital Based Home Care

Routine: HBHCTXT2


Information

HBHCTXT2 ; LR VAMC(IRMS)/MJT-HBHC Medical Foster Home (MFH) delimited text file output, user selects Inspection or Training data, includes all data on file ; Dec 2007

Source Information

Source file <HBHCTXT2.m>

Entry Points

Name Comments DBIA/ICR reference
EN ; Prompt for whether Inspection or Training report
DQ ; De-queue
LOOP ; Loop thru ^HBHC(633.2 Inspection multiples; 1 = Nurse, 2 = Social Work, 3 = Dietitian, 4 = Fire/Safety
LOOP2 ; Loop thru ^HBHC(633.2 Training multiples; 5 = Home Operation, 6 = Fire/Safety, 7 = Medication Management, 8 = Personal Care, 9 = Infection Control, 10 = End of Life, 11 = Other
EXIT ; Exit module
SET ; Set ^TMP node for valid record
; quit if no Inspection or Training data
NAME ; Obtain Provider Name from VA(200 file

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: "Medical Foster Home Name"_HBHCDLMT_"MFH Closure Date"_HBHCDLMT
  • Line Location: DQ+3
Function Call: WRITE
  • Prompt: "Inspection Discipline"_HBHCDLMT_"Inspection Date"_HBHCDLMT_"Inspector Name"
  • Line Location: DQ+4
Function Call: WRITE
  • Prompt: "Training Category"_HBHCDLMT_"Training Date"_HBHCDLMT_"Other Training Topic"
  • Line Location: DQ+5
Function Call: WRITE
  • Prompt: !,$P(^HBHC(633.2,HBHCI,0),U)_HBHCDLMT_HBHCCLOS_HBHCDLMT
  • Line Location: SET+6
Function Call: WRITE
  • Prompt: $S(HBHCJ=1:"Nurse",HBHCJ=2:"Social Work",HBHCJ=3:"Dietitian",1:"Fire/Safety")
  • Line Location: SET+7
Function Call: WRITE
  • Prompt: $S(HBHCJ=5:"Home Operation",HBHCJ=6:"Fire/Safety",HBHCJ=7:"Medication Management",HBHCJ=8:"Personal Care",HBHCJ=9:"Infection Control",HBHCJ=10:"End of Life",1:"Other")
  • Line Location: SET+8
Function Call: WRITE
  • Prompt: HBHCDLMT_$E($P(HBHCNODE,U),4,5)_"-"_$E($P(HBHCNODE,U),6,7)_"-"_$S($E($P(HBHCNODE,U))=3:20,1:19)_$E($P(HBHCNODE,U),2,3)
  • Line Location: SET+9
Function Call: WRITE
  • Prompt: HBHCDLMT_$S(HBHCPRV]"":HBHCPRV,1:"")
  • Line Location: SET+10
Info |  Source |  Entry Points |  Interaction Calls