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

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

initial load of WorldVistAEHR

File size: 1.1 KB
Line 
1PXKFIMM1 ;ISL/JVS - IMMUNIAZTIONS ROUTINE #2 ;11/5/96 14:29
2 ;;1.0;PCE PATIENT CARE ENCOUNTER;**11**;Aug 12, 1996
3 ;
4 ;
5CPT ;
6 N PXKSEQ1
7 I PXKFGAD=1 D CPTADD
8 I PXKFGDE=1 D CPTDEL
9 Q
10CPTADD ;
11 S PXKSEQ1=PXKSEQ+PXKXX
12 S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,0,"AFTER")=$P($P(PXKPXD(PXKX),"^",2),";")_"^"_$G(PXKAV(0,2))_"^"_$G(PXKAV(0,3))
13 S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,12,"AFTER")=$G(PXKAFT(12))
14 S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,812,"AFTER")=$G(PXKAFT(812))
15 S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,"IEN")=""
16 Q
17CPTDEL ;
18 S PXKSEQ1=PXKSEQ+PXKXX
19 S (XPFG,XP)=0 F Q:XPFG S XP=$O(^AUPNVIMM("AD",PXKVST,XP)) Q:XP="" D
20 .I $P(^AUPNVIMM(XP,0),"^",1)=$P($P(PXKPXD(PXKX),"^",2),";") D
21 ..S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,0,"BEFORE")=$G(^AUPNVIMM(XP,0))
22 ..S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,12,"BEFORE")=$G(^AUPNVIMM(XP,12))
23 ..S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,812,"BEFORE")=$G(^AUPNVIMM(XP,812))
24 ..S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,"IEN")=XP
25 ..S XPFG=1
26 I '$G(XPFG) Q
27 S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,0,"AFTER")="@"
28 S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,12,"AFTER")=""
29 S ^TMP("PXKSAVE",$J,"IMM",PXKSEQ1,812,"AFTER")=""
30 K XPFG,XP
31 Q
Note: See TracBrowser for help on using the repository browser.