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

ORWMHV.m

Go to the documentation of this file.
  1. ORWMHV ;;SLC OIFO/CLA - My HealtheVet Indicator for CPRS GUI;[01/025/06]
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**215**;Dec 17, 1999
  1. ;
  1. MHV(ORY,ORDFN) ; Returns "MHV" if patient has My HealtheVet data
  1. ;Ouput Variable
  1. ; ORY = 0 if patient does not have My HealtheVet (MHV) data
  1. ; = "MHV" if patient does have My HealtheVet data
  1. ;
  1. N I,ORX
  1. S ORY=0
  1. ;
  1. ; check for My HealtheVet data:
  1. D TFL^VAFCTFU1(.ORX,ORDFN) ; DBIA #2990
  1. S I=0 F S I=$O(ORX(I)) Q:'I D
  1. .;pt has MHV treat fac (200MH) and event reason wasn't "discharge" (3):
  1. .I $P(ORX(I),U)="200MH",$P(ORX(I),U,4)'=3 D
  1. ..S $P(ORY,U)="MHV",$P(ORY,U,2)="Patient has data in My HealtheVet"
  1. ;
  1. Q