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

VAFCPV1.m

Go to the documentation of this file.
  1. VAFCPV1 ;ALB/PKE PV1 segment for message builder;
  1. ;;5.3;Registration;**91,298**;Jun 06, 1996
  1. ;
  1. ;07/07/00 ACS - Added sequence 21 (physical treating specialty - ward
  1. ;location) and sequence 39 (facility+suffix) to the inpatient string
  1. ;of fields. Added sequence 39 to the outpatient string of fields.
  1. ;
  1. ;set the v2.3 PV1
  1. ;called from VAFCMSG3
  1. EN(DFN) ;if not a scheduling event and an inpatient
  1. I $G(@EVNTINFO@("SERVER PROTOCOL"))'="VAFC ADT-A08-SDAM SERVER"
  1. IF I $G(^DPT(DFN,.1))]"" DO
  1. .;get inpatient pv1
  1. . S VAFSTR="2,3,6,7,10,18,21,39,44,45,50"
  1. . S PV1=$$EN^VAFHAPV1(DFN,EVNTDATE,VAFSTR)
  1. E DO
  1. .;get outpatient pv1
  1. . S VAFSTR="2,3,7,18,39,44,50"
  1. . N EVENT,VPTR
  1. . S EVENT=$G(@EVNTINFO@("EVENT-NUM"))
  1. . S VPTR=$G(@EVNTINFO@("VAR-PTR"))
  1. . S PV1=$$OPV1^VAFHCPV(DFN,EVENT,EVNTDATE,VPTR,VAFSTR,1)
  1. ;
  1. Q PV1