source: WorldVistAEHR/trunk/r/PCE_PATIENT_CARE_ENCOUNTER-AUTN-EFDP-PX-VSIT--PXRM/PXBGPED.m@ 1154

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

initial load of WorldVistAEHR

File size: 1.2 KB
Line 
1PXBGPED ;ISL/PKR - Gather patient education data. Follow the convention established by PXBGCPT. ;7/24/96 14:00
2 ;;1.0;PCE PATIENT CARE ENCOUNTER;;Aug 12, 1996
3 ;
4EDU(VISIT) ;Gather the entries in the V Health Factor file.
5 N DA,DIC,DIQ,DR,IEN
6 ;
7 K ^TMP("PXBU",$J)
8 I $D(^AUPNVPED("AD",VISIT)) D
9 . S IEN=0
10 . F S IEN=$O(^AUPNVPED("AD",VISIT,IEN)) Q:IEN'>0 D
11 .. S ^TMP("PXBU",$J,"PED",IEN)=""
12 ;
13 N ENCDT,ENCPRV,PATIENT,PEDA,TEMP,TOPIC,UNDSTD
14 I $D(^TMP("PXBU",$J,"PED")) D
15 . S IEN=0
16 . F S IEN=$O(^TMP("PXBU",$J,"PED",IEN)) Q:IEN'>0 D
17 .. K TEMP
18 .. S DIC=9000010.16,DA=IEN
19 .. S DR=".01;.02;.06;1201;1204;811"
20 .. S DIQ="TEMP(",DIQ(0)="E"
21 .. D EN^DIQ1
22 .. S TOPIC=$G(TEMP(9000010.16,DA,.01,"E"))
23 .. S PATIENT=$G(TEMP(9000010.16,DA,.02,"E"))
24 .. S UNDSTD=$G(TEMP(9000010.16,DA,.06,"E"))
25 .. S ENCDT=$G(TEMP(9000010.16,DA,1201,"E"))
26 .. S ENCPRV=$G(TEMP(9000010.16,DA,1204,"E"))
27 .. S PEDA(TOPIC,IEN)=TOPIC_U_PATIENT_U_UNDSTD_U_ENCDT_U_ENCPRV
28 ;
29 N PXBC
30 S PXBC=0
31 I $D(PEDA) D
32 . S TOPIC=""
33 . F S TOPIC=$O(PEDA(TOPIC)) Q:TOPIC="" D
34 .. S IEN=0
35 .. F S IEN=$O(PEDA(TOPIC,IEN)) Q:IEN="" D
36 ... S PXBC=PXBC+1
37 ... S PXBKY(TOPIC,IEN)=PEDA(TOPIC,IEN)
38 ... S PXBSAM(PXBC)=PEDA(TOPIC,IEN)
39 ... S PXBSKY(PXBC,IEN)=PEDA(TOPIC,IEN)
40 ;
41 K ^TMP("PXBU",$J)
42 S PXBCNT=PXBC
43 Q
Note: See TracBrowser for help on using the repository browser.