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

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

initial load of WorldVistAEHR

File size: 1.4 KB
RevLine 
[613]1PXBGSK ;ISL/PKR - Gather skin test data. Follow the convention established by PXBGCPT. ;7/24/96 14:01
2 ;;1.0;PCE PATIENT CARE ENCOUNTER;;Aug 12, 1996
3 ;
4SK(VISIT) ;Gather the entries in the V Skin Test file.
5 N DA,DIC,DIQ,DR,IEN
6 ;
7 K ^TMP("PXBU",$J)
8 I $D(^AUPNVSK("AD",VISIT)) D
9 . S IEN=0
10 . F S IEN=$O(^AUPNVSK("AD",VISIT,IEN)) Q:IEN'>0 D
11 .. S ^TMP("PXBU",$J,"SK",IEN)=""
12 ;
13 N DATEREAD,ENCDT,ENCPRV,PATIENT,READING,RESULT,SERIES,SKINTEST,SKT,TEMP
14 I $D(^TMP("PXBU",$J,"SK")) D
15 . S IEN=0
16 . F S IEN=$O(^TMP("PXBU",$J,"SK",IEN)) Q:IEN'>0 D
17 .. K TEMP
18 .. S DIC=9000010.12,DA=IEN
19 .. S DR=".01;.02;.04;.05;.06;1201;1204;811"
20 .. S DIQ="TEMP(",DIQ(0)="E"
21 .. D EN^DIQ1
22 .. S SKT=$G(TEMP(9000010.12,DA,.01,"E"))
23 .. S PATIENT=$G(TEMP(9000010.12,DA,.02,"E"))
24 .. S RESULT=$G(TEMP(9000010.12,DA,.04,"E"))
25 .. S READING=$G(TEMP(9000010.12,DA,.05,"E"))
26 .. S DATEREAD=$G(TEMP(9000010.12,DA,.06,"E"))
27 .. S ENCDT=$G(TEMP(9000010.12,DA,1201,"E"))
28 .. S ENCPRV=$G(TEMP(9000010.12,DA,1204,"E"))
29 .. S SKINTEST(SKT,IEN)=SKT_U_PATIENT_U_RESULT_U_READING_U_DATEREAD_U_ENCDT_U_ENCPRV
30 ;
31 N PXBC
32 S PXBC=0
33 I $D(SKINTEST) D
34 . S SKT=""
35 . F S SKT=$O(SKINTEST(SKT)) Q:SKT="" D
36 .. S IEN=0
37 .. F S IEN=$O(SKINTEST(SKT,IEN)) Q:IEN="" D
38 ... S PXBC=PXBC+1
39 ... S PXBKY(SKT,IEN)=SKINTEST(SKT,IEN)
40 ... S PXBSAM(PXBC)=SKINTEST(SKT,IEN)
41 ... S PXBSKY(PXBC,IEN)=SKINTEST(SKT,IEN)
42 ;
43 K ^TMP("PXBU",$J)
44 S PXBCNT=PXBC
45 Q
Note: See TracBrowser for help on using the repository browser.