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

VAFHLMRG.m

Go to the documentation of this file.
  1. VAFHLMRG ;ALB/JLU;creates the MRG segment
  1. ;;5.3;Registration;**91**;Jun 06, 1996
  1. ;
  1. EN(DFN,BEF) ;this line tag will creat the MRG segment.
  1. ;
  1. ;The variable HLFS must be defined before calling this entry point
  1. ;DFN - the DFN of the Patient.
  1. ;BEF - the value of PID before it was changed.
  1. ;
  1. ;This function call creates the MRG segment.
  1. ;
  1. N MRG
  1. I $S('$D(DFN):1,DFN="":1,1:0) S MRG="-1^Patient not identified." G EX
  1. I $S('$D(BEF):1,BEF="":1,1:0) S MRG="-1^Value of PID not defined." G EX
  1. S MRG="MRG"_HLFS_DFN_HLFS_HLFS_HLFS_BEF
  1. EX Q MRG