source: WorldVistAEHR/trunk/r/REMOTE_ORDER_ENTRY_SYSTEM-RMPF-RMPJ/RMPFDD1.m@ 1450

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

initial load of WorldVistAEHR

File size: 854 bytes
RevLine 
[613]1RMPFDD1 ;DDC/KAW-DETERMINE PATIENT'S DDC ELIGIBILITY; [ 06/16/95 3:06 PM ]
2 ;;2.0;REMOTE ORDER/ENTRY SYSTEM;;JUN 16, 1995
3 ;;input: RMPFVET,RMPFDOD,RMPFELS,RMPFF (opt.)
4 ;;output: RMPFE,RMPFTE
5ELIG S RMPFE="I",RMPFMSG="VALID ELIGIBILITY NOT IN DHCP PATIENT FILE"
6 I RMPFVET="N" S RMPFMSG="PATIENT IS NOT A VETERAN"
7 I RMPFDOD'="" S RMPFMSG="PATIENT IS DECEASED"
8 I $D(RMPFELS),RMPFELS'?1"V".E S RMPFMSG="ELIGIBILITY NOT VERIFIED" G ELGE
9 I RMPFVET="N" S X=0 F I=1:1 S X=$O(RMPFF(X)) Q:'X I RMPFF(X)["ALLIED"!(RMPFF(X)["OTHER GOV") S RMPFMSG=RMPFF(X),RMPFE="E" G ELGE
10 I $D(RMPFF(1)) S RMPFMSG=RMPFF(1),RMPFE="E"
11ELGE S:RMPFE="I" RMPFTE=""
12 W !!?23,"Patient is: ",$S(RMPFE="E":"ELIGIBLE",1:"ELIGIBILITY CANNOT BE DETERMINED")
13 W ! W:RMPFE="E" ?2 W "Priority Reason for ",$S(RMPFE="E":"E",1:"Ine"),"ligibility: ",$E(RMPFMSG,1,44)
14END K RMPFMSG,X,I Q
Note: See TracBrowser for help on using the repository browser.