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

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

initial load of WorldVistAEHR

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