source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORWMHV.m@ 846

Last change on this file since 846 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 671 bytes
Line 
1ORWMHV ;;SLC OIFO/CLA - My HealtheVet Indicator for CPRS GUI;[01/025/06]
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**215**;Dec 17, 1999
3 ;
4MHV(ORY,ORDFN) ; Returns "MHV" if patient has My HealtheVet data
5 ;Ouput Variable
6 ; ORY = 0 if patient does not have My HealtheVet (MHV) data
7 ; = "MHV" if patient does have My HealtheVet data
8 ;
9 N I,ORX
10 S ORY=0
11 ;
12 ; check for My HealtheVet data:
13 D TFL^VAFCTFU1(.ORX,ORDFN) ; DBIA #2990
14 S I=0 F S I=$O(ORX(I)) Q:'I D
15 .;pt has MHV treat fac (200MH) and event reason wasn't "discharge" (3):
16 .I $P(ORX(I),U)="200MH",$P(ORX(I),U,4)'=3 D
17 ..S $P(ORY,U)="MHV",$P(ORY,U,2)="Patient has data in My HealtheVet"
18 ;
19 Q
Note: See TracBrowser for help on using the repository browser.