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 |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: DGMSTR2

Package: Registration

Routine: DGMSTR2


Information

DGMSTR2 ;ALB/SCK - MST DETAILED DEMOGRAPHIC REPORT ; 11/19/03 10:56am

Source Information

Source file <DGMSTR2.m>

Entry Points

Name Comments DBIA/ICR reference
EN ; Main entry point for report
; Variable List
; DGBEG - Beginning of date range (FM date)
; DGEND - End of date range (FM Date)
; DGMST - array of MST status codes
; DGSEX - Patient gender to filter on
; DGPOS - array of period of service values to filter on
; DGDISP - Sort report on
; DGSDAT - start date selection
; DGEDAT - end date selection
; RPTREF - location of report data array
; RPTARRY - temporary location of report array
; DGX - temporary variable
; MSTST - temporary variable holding MST status
; MSTPOS - temporary array of selected POS's
; MSTNAME - temporary variable, patient name
; MSTIEN - temporary variable, IEN in MST HISTORY File (#29.11)
; MSTACT - temporary array, service in country indicated
; MSTDT - temporary variable, MST status change date
RPT ; Main entry point for printing report form KERNEL device utility
BUILD(DGBEG,DGEND,DGMST,DGSEX,DGPOS,DGDISP,RPTARRY) ;
PRNNAME(DGBEG,DGEND,DGDSP,RPTARRY,DGMST) ;
; Print out report on patient name sort. One level of sort in the ^TMP global
PRNPOS(DGBEG,DGEND,DGDSP,RPTARRY,DGMST) ;
; Print out report on period of service sort, Two levels of sort.
PRNTLN1(DFN,MSTIEN) ; Format and print data for patient passed in
HEADER(MSTST,DGDISP,DGBEG,DGEND) ; Print report header
ACTION(DFN,MSTRSLT) ; Check for service indicated fields in PATIENT File (#2) for
; patient passed in. Return local array with all entries flaged as yes in the
; respective fields
; .32101 - Vietnam
; .3221 - Lebanon
; .3224 - Grenada
; .3227 - Panama
; .32201 - Persian Gulf
; .322016 - Somalia
; Output
; MSTRSLT(n)="VIETNAM"
SERVICE(NDX) ; Convert field number to text value
GETMST(MST) ; Multiple MST status code seletion, loops until user quites
NEXT

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"This report is formatted for 132 characters, and will not format"
  • Line Location: EN+72
Function Call: WRITE
  • Prompt: !,"correctly on either an 80 column terminal or printer."
  • Line Location: EN+73
Function Call: WRITE
  • Prompt: !!,"This report may take a while to build and print. In order to"
  • Line Location: EN+74
Function Call: WRITE
  • Prompt: !,"free up your workstation, please queue this report to print device."
  • Line Location: EN+75
Function Call: WRITE
  • Prompt: !!?5,"No data for MST status "_MSTST_" found."
  • Line Location: PRNNAME+8
Function Call: WRITE
  • Prompt: !!?5,"No data for these parameters found."
  • Line Location: PRNPOS+6
Function Call: WRITE
  • Prompt: !!?5,"No data for MST status "_MSTST_" found."
  • Line Location: PRNPOS+12
Function Call: WRITE
  • Prompt: !,VA("BID")
  • Line Location: PRNTLN1+4
Function Call: WRITE
  • Prompt: ?6,$E(VADM(1),1,25)
  • Line Location: PRNTLN1+5
Function Call: WRITE
  • Prompt: ?32,$E(VAPA(1),1,25)
  • Line Location: PRNTLN1+6
Function Call: WRITE
  • Prompt: ?58,$P(VADM(5),U)
  • Line Location: PRNTLN1+7
Function Call: WRITE
  • Prompt: ?61,$E($P(VAEL(1),U,2),1,15)
  • Line Location: PRNTLN1+8
Function Call: WRITE
  • Prompt: ?80,$E($P(VAEL(2),U,2),1,15)
  • Line Location: PRNTLN1+9
Function Call: WRITE
  • Prompt: ?100,$G(MSTACT(1))
  • Line Location: PRNTLN1+10
Function Call: WRITE
  • Prompt: !
  • Line Location: PRNTLN1+11
Function Call: WRITE
  • Prompt: ?32,$S($G(VAPA(2))]"":$E(VAPA(2),1,25),1:DGX)
  • Line Location: PRNTLN1+13
Function Call: WRITE
  • Prompt: ?100,$G(MSTACT(2))
  • Line Location: PRNTLN1+14
Function Call: WRITE
  • Prompt: !
  • Line Location: PRNTLN1+15
Function Call: WRITE
  • Prompt: ?32,$S($G(VAPA(2))]"":DGX,1:VAPA(8))
  • Line Location: PRNTLN1+16
Function Call: WRITE
  • Prompt: ?100,$G(MSTACT(3))
  • Line Location: PRNTLN1+17
Function Call: WRITE
  • Prompt: !
  • Line Location: PRNTLN1+18
Function Call: WRITE
  • Prompt: ?32,$S($G(VAPA(2))]"":VAPA(8),1:"")
  • Line Location: PRNTLN1+19
Function Call: WRITE
  • Prompt: ?100,$G(MSTACT(4))
  • Line Location: PRNTLN1+20
Function Call: WRITE
  • Prompt: !?100,$G(MSTACT(5))
  • Line Location: PRNTLN1+23
Function Call: WRITE
  • Prompt: !?100,$G(MSTACT(6))
  • Line Location: PRNTLN1+25
Function Call: WRITE
  • Prompt: !
  • Line Location: PRNTLN1+26
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: HEADER+5
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: HEADER+7
Function Call: WRITE
  • Prompt: !,LINE_STR
  • Line Location: HEADER+11
Function Call: WRITE
  • Prompt: !,LINE_STR
  • Line Location: HEADER+14
Function Call: WRITE
  • Prompt: !,LINE_STR
  • Line Location: HEADER+17
Function Call: WRITE
  • Prompt: !,LINE_STR
  • Line Location: HEADER+20
Function Call: WRITE
  • Prompt: !,LINE_STR
  • Line Location: HEADER+23
Function Call: WRITE
  • Prompt: !!
  • Line Location: HEADER+24
Function Call: WRITE
  • Prompt: !?32,"ADDRESS",?82,"PERIOD"
  • Line Location: HEADER+25
Function Call: WRITE
  • Prompt: !?6,"PATIENT",?32,"AND",?63,"ELIGIBILITY",?82,"OF"
  • Line Location: HEADER+26
Function Call: WRITE
  • Prompt: !,"SSN",?6,"NAME",?32,"PHONE",?57,"SEX",?63,"CODE",?82,"SERVICE",?100,"SERVICE IND."
  • Line Location: HEADER+27
Function Call: WRITE
  • Prompt: !
  • Line Location: HEADER+28
Function Call: WRITE
  • Prompt: SDASH,!
  • Line Location: HEADER+30

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DPT - [#2] GETS^DIQ
Info |  Source |  Entry Points |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call