source: FOIAVistA/trunk/r/SCHEDULING-SD-SC/SDWLE1.m@ 1582

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

initial load of FOIAVistA 6/30/08 version

File size: 2.2 KB
Line 
1SDWLE1 ;;IOFO BAY PINES/TEH - WAITING LIST-ENTER/EDIT;06/12/2002 ; 20 Aug 2002 2:10 PM
2 ;;5.3;scheduling;**263,417**;AUG 13 1993
3 ;
4 ;
5 ;******************************************************************
6 ; CHANGE LOG
7 ;
8 ; DATE PATCH DESCRIPTION
9 ; ---- ----- -----------
10 ; 07/20/02 263 This routine should be re-designed for release 1 if time
11 ; permits. Otherwise for release 2. Requirements were not provided
12 ; timely and retrofiting created poorly constructed routine.
13 ;
14 ; 02/16/05 417 API updates, modified PCMM API calls. Modified POSITION display.
15 ;
16 ;
17 ;
18PCM ;Check ^SCTM(404.41) for Outpatient Profile Data. - KF requirement - recieved 07/18/02
19 S (SDWLSTO,SDWLSPO,SDWLSSO,SDWLSCO,SDWLCT)="",SDWLTEM=0,SDWLPOS=0 N SDWLCPT,SDWLPOS,SDWLCN S SDWLCN=0
20 S SDWLCP1=$P($$NMPCPR^SCAPMCU2(DFN,DT,1),U,2)
21 S SDWLCP2=$P($$NMPCPR^SCAPMCU2(DFN,DT,2),U,2)
22 ;patch SD*5.3*417
23 S SDWLCP3=$P($$NMPCTM^SCAPMCU2(DFN,DT,1),U,2),SDWLCT=$P($$NMPCTM^SCAPMCU2(DFN,DT,1),U,1) S:+SDWLCT>0 SDWLCN=SDWLCN+1
24 S SDWLCP4=$P($$NMPCTP^SCAPMCU2(DFN,DT,1),U,2),SDWLCP4N=$P($$NMPCTP^SCAPMCU2(DFN,DT,1),U,1)
25 S SDWLCP5=$P($$NMPCTP^SCAPMCU2(DFN,DT,2),U,2)
26 S SDWLCP6=$P($$NMPCPR^SCAPMCU2(DFN,DT,3),U,2)
27 S SDWLPCMM=1
28 Q
29PCMD ;Display PCMM data
30 S SDWLTEM=0,SDWLPOS=0
31 I SDWLPCMM D
32 .W !
33 .;PATCH SD*5.3*417
34 .I $D(SDWLCP3),SDWLCP3'="" W !,"PC Team: ",SDWLCP3 S SDWLTEM=1
35 .I $D(SDWLCP1),SDWLCP1'="" W !,"PC Practitioner: ",SDWLCP1 S SDWLPOS=1
36 .I $D(SDWLCP2),SDWLCP2'="" W !,"PC Attending:",SDWLCP2
37 .I $D(SDWLCP5),SDWLCP5'="" W !,"PC Attending Position: ",SDWLCP5 S SDWLPOS=1
38 .I $D(SDWLCP6),SDWLCP6'="" W !,"Associate PC Provider: ",SDWLCP6
39 .;patch SD*5.3*417
40 .I $D(SDWLCP4),SDWLCP4'="" W !,"PC Team Position: ",SDWLCP4 S SDWPPOS=1
41 I $D(SDWLDA),SDWLDA,$D(^SDWL(409.3,SDWLDA,0)) S SDWPCMM=$G(^(0)) D
42 .I $P(^SDWL(409.3,SDWLDA,0),U,5) S SDWLCP3=$$EXTERNAL^DILFD(409.3,5,,$P(^(0),U,5))
43 .I $P(^SDWL(409.3,SDWLDA,0),U,6) S SDWLCP5=$$EXTERNAL^DILFD(409.3,6,,$P(^(0),U,6))
44 Q
Note: See TracBrowser for help on using the repository browser.