1 | PXBGHF ;ISL/PKR - Gather skin test data. Follow the convention established by PXBGCPT. ;7/24/96 14:00
|
---|
2 | ;;1.0;PCE PATIENT CARE ENCOUNTER;;Aug 12, 1996
|
---|
3 | ;
|
---|
4 | HF(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(^AUPNVHF("AD",VISIT)) D
|
---|
9 | . S IEN=0
|
---|
10 | . F S IEN=$O(^AUPNVHF("AD",VISIT,IEN)) Q:IEN'>0 D
|
---|
11 | .. S ^TMP("PXBU",$J,"HF",IEN)=""
|
---|
12 | ;
|
---|
13 | N ENCDT,ENCPRV,HF,HFCTR,LVL,PATIENT,TEMP
|
---|
14 | I $D(^TMP("PXBU",$J,"HF")) D
|
---|
15 | . S IEN=0
|
---|
16 | . F S IEN=$O(^TMP("PXBU",$J,"HF",IEN)) Q:IEN'>0 D
|
---|
17 | .. K TEMP
|
---|
18 | .. S DIC=9000010.23,DA=IEN
|
---|
19 | .. S DR=".01;.02;.04;1201;1204;811"
|
---|
20 | .. S DIQ="TEMP(",DIQ(0)="E"
|
---|
21 | .. D EN^DIQ1
|
---|
22 | .. S HF=$G(TEMP(9000010.23,DA,.01,"E"))
|
---|
23 | .. S PATIENT=$G(TEMP(9000010.23,DA,.02,"E"))
|
---|
24 | .. S LVL=$G(TEMP(9000010.23,DA,.04,"E"))
|
---|
25 | .. S ENCDT=$G(TEMP(9000010.23,DA,1201,"E"))
|
---|
26 | .. S ENCPRV=$G(TEMP(9000010.23,DA,1204,"E"))
|
---|
27 | .. S HFCTR(HF,IEN)=HF_U_PATIENT_U_LVL_U_ENCDT_U_ENCPRV
|
---|
28 | ;
|
---|
29 | N PXBC
|
---|
30 | S PXBC=0
|
---|
31 | I $D(HFCTR) D
|
---|
32 | . S HF=""
|
---|
33 | . F S HF=$O(HFCTR(HF)) Q:HF="" D
|
---|
34 | .. S IEN=0
|
---|
35 | .. F S IEN=$O(HFCTR(HF,IEN)) Q:IEN="" D
|
---|
36 | ... S PXBC=PXBC+1
|
---|
37 | ... S PXBKY(HF,IEN)=HFCTR(HF,IEN)
|
---|
38 | ... S PXBSAM(PXBC)=HFCTR(HF,IEN)
|
---|
39 | ... S PXBSKY(PXBC,IEN)=HFCTR(HF,IEN)
|
---|
40 | ;
|
---|
41 | K ^TMP("PXBU",$J)
|
---|
42 | S PXBCNT=PXBC
|
---|
43 | Q
|
---|