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

VAFCMGB.m

Go to the documentation of this file.
  1. VAFCMGB ;ALB/JRP,PTD-DEMOGRAPHIC MERGE SCREEN BUILDER ;18-OCT-1996
  1. ;;5.3;Registration;**149,479**;Aug 13, 1993
  1. ;
  1. ;NOTE: The VAFCMGB* routines contain line tags used to build the
  1. ; display screen of a List Manager interface. All line tags
  1. ; assume that the following variables are defined and contained
  1. ; in the local partition.
  1. ;
  1. ;Input : VAFCDFN - Pointer to entry in PATIENT file (#2) to merge
  1. ; data into
  1. ; VAFCARR - Array contain data to merge (full global reference)
  1. ; VAFCARR() should be set as follows:
  1. ; VAFCARR(File,Field) = Value
  1. ; Where File = File number Value is from
  1. ; Field = Field number Value is from
  1. ; Value = Info to merge
  1. ; Notes: Dates must be in FileMan format
  1. ; : Special considerations for Value
  1. ; "@" - Displays <DELETE> and deletes
  1. ; local value if merged
  1. ; "^text" - Displays text and ignores
  1. ; field if merged
  1. ; NULL - Displays <UNSPECIFIED> and
  1. ; ignores field if merged
  1. ; Doesn't exist - Displays <UNSPECIFIED>
  1. ; and ignores field
  1. ; if merged
  1. ; VAFCFROM - Text denoting where merge data cam from (1-35)
  1. ; VAFCEVDT - Date/time merge data was instantiated (FileMan)
  1. ; VAFCDOTS - Flag indicating if progress dots should be printed
  1. ; 0 = No
  1. ; 1 = Yes
  1. ; All variables set by List Manager Interface
  1. ;Output : Display area and variables required List Manager interface
  1. ; Display
  1. ; VALMAR(Line,0) = Line of text in display
  1. ; Indexes
  1. ; VALMAR("IDX",Line,Entry) = ""
  1. ; VALMAR("E2F",Entry,N) = File^Field
  1. ; N => Allows for multiple fields per entry (starts with 1)
  1. ; VALMAR("E2G",Entry) = Group entry is contained in
  1. ; VALMAR("GRP",Group) = First line of group in display
  1. ; Note: The E2F and E2G indexes are only set if the data
  1. ; to merge does not match the local data
  1. ;Notes : Existance/validity of input variables is assumed
  1. ; : Dates are converted to internal format for comparison
  1. ; : Phone # are converted to HL7 format for comparison & display
  1. ;
  1. BLDALL ;Main entry point to build entire List Manager display
  1. ;
  1. ;Input : See note above
  1. ;Output : See note above
  1. ;
  1. ;Declare variables
  1. N LASTNTRY
  1. ;Build logical group 1
  1. D GROUP1^VAFCMGB0
  1. ;White space
  1. S LASTNTRY=+$O(@VALMAR@("IDX",VALMCNT-1,0))
  1. S @VALMAR@(VALMCNT,0)=" "
  1. S @VALMAR@("IDX",VALMCNT,LASTNTRY)=""
  1. S VALMCNT=VALMCNT+1
  1. ;Build logical group 2
  1. D GROUP2^VAFCMGB1
  1. ;White space
  1. ;S LASTNTRY=+$O(@VALMAR@("IDX",VALMCNT-1,0))
  1. ;S @VALMAR@(VALMCNT,0)=" "
  1. ;S @VALMAR@("IDX",VALMCNT,LASTNTRY)=""
  1. ;S VALMCNT=VALMCNT+1
  1. ;Build logical group 3
  1. D GROUP3^VAFCMGB2
  1. ;White space - eliminated with **479
  1. ;S LASTNTRY=+$O(@VALMAR@("IDX",VALMCNT-1,0))
  1. ;S @VALMAR@(VALMCNT,0)=" "
  1. ;S @VALMAR@("IDX",VALMCNT,LASTNTRY)=""
  1. ;S VALMCNT=VALMCNT+1
  1. ;S @VALMAR@(VALMCNT,0)=" "
  1. ;S @VALMAR@("IDX",VALMCNT,LASTNTRY)=""
  1. ;S VALMCNT=VALMCNT+1
  1. ;Build logical group 4
  1. D GROUP4^VAFCMGB3
  1. ;Done
  1. Q
  1. ;
  1. RBLDGRP(GROUP) ;Rebuild specified group in List Manager display
  1. ;
  1. ;Input : GROUP - Number denoting which logical group in display
  1. ; should be rebuilt
  1. ; Groups 1, 2, 3, and 4 are currently supported
  1. ; See above note on input variables
  1. ;Output : See above note on output
  1. ;
  1. ;Check input
  1. S GROUP=+$G(GROUP)
  1. ;Declare variables
  1. N VALMCNT
  1. ;Get starting line number of group
  1. S VALMCNT=+$G(@VALMAR@("GRP",GROUP))
  1. ;Rebuild logical group 1 - done
  1. I (GROUP=1) D GROUP1^VAFCMGB0 Q
  1. ;Rebuild logical group 2 - done
  1. I (GROUP=2) D GROUP2^VAFCMGB1 Q
  1. ;Rebuild logical group 3 - done
  1. I (GROUP=3) D GROUP3^VAFCMGB2 Q
  1. ;Rebuild logical group 4 - done
  1. I (GROUP=4) D GROUP4^VAFCMGB3 Q
  1. ;Done - did nothing
  1. Q