source: FOIAVistA/trunk/r/PCE_PATIENT_CARE_ENCOUNTER-AUTN-EFDP-PX-VSIT--PXRM/PXRHS13.m@ 1757

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

initial load of FOIAVistA 6/30/08 version

File size: 579 bytes
Line 
1PXRHS13 ;ISL/SBW - PCE Patient Location of Home extract ;6/7/96
2 ;;1.0;PCE PATIENT CARE ENCOUNTER;;Aug 12, 1996
3LOC(DFN) ; Control branching
4 ;INPUT : DFN - Pointer to PATIENT file (#2)
5 ;OUTPUT :
6 ; Data from PATIENT/IHS FILE (9000001) file
7 ; ^TMP("PXLOC",$J,LINE#) = LOCATION OF HOME [E;1201]
8 ;
9 Q:$G(DFN)']""!'$O(^AUPNPAT(DFN,12,0))
10 N DIC,DIQ,DR,DA,REC,CNT
11 K ^TMP("PXLOC",$J)
12 S DIC=9000001,DA=DFN,DIQ="REC("
13 S DR=1201
14 D EN^DIQ1
15 Q:'$D(REC)
16 S CNT=0
17 F S CNT=$O(REC(9000001,DFN,1201,CNT)) Q:CNT'>0 D
18 . S ^TMP("PXLOC",$J,CNT)=$G(REC(9000001,DFN,1201,CNT))
19 Q
Note: See TracBrowser for help on using the repository browser.