Changeset 636 for FOIAVistA/tag/r/SCHEDULING-SD-SC/SCRPRAC2.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/SCHEDULING-SD-SC/SCRPRAC2.m
r628 r636 1 1 SCRPRAC2 ;ALB/CMM - Practitioner Demographics continued ; 29 Jun 99 04:11PM 2 ;;5.3;Scheduling;**41,177 ,520**;AUG 13, 1993;Build 262 ;;5.3;Scheduling;**41,177**;AUG 13, 1993 3 3 ; 4 4 ;Practitioner Demographics Report … … 40 40 .S MAX=$P(NODE,"^",8) ;max patient assignments to position 41 41 .S ASSIGN=+$$PCPOSCNT^SCAPMCU1(PIEN,DT,0) ;assigned patients 42 .N CNAME,SCCLIEN 43 .D SETASCL(PIEN,.CNAME,.SCCLIEN) ;associated clinics 42 .S CNAME=$P($G(^SC(+$P(NODE,U,9),0)),U) ;associated clinic 44 43 .; 45 44 .;Get preceptor … … 57 56 .D SET1("Phone",PHONE),SET2("Pts. Assigned",ASSIGN) 58 57 .I $L($G(PRCP)) D SET3(1,"Preceptor: "_PRCP) 59 .D SET3(4,"Assoc. Clinic:")60 .D SET CNAME(.CNAME)58 .D SET3(4,"Assoc.") 59 .D SET3(4,"Clinic: "_CNAME) 61 60 .I $L(PCLASS(1)) D 62 61 ..D SET3(4,"Person"),SET3(5,"Class: "_PCLASS(1)) D … … 83 82 Q 84 83 ; 85 SETASCL(PIEN,CNAME,SCCLIEN) ;SET ASSOCIATED CLINICS86 N I,CNT187 S CNT1=0,I=088 F S I=$O(^SCTM(404.57,PIEN,5,I)) Q:'I D89 .S SCCLIEN(CNT1)=I,CNAME(CNT1)=$P($G(^SC(I,0)),U),CNT1=CNT1+190 Q91 84 SET1(LABEL,VALUE) ;Set output line 92 85 S SCLN=SCLN+1 … … 109 102 Q 110 103 ; 111 SETCNAME(CNAME) ;associated clinics112 N A113 S A="" F S A=$O(CNAME(A)) Q:A="" D SET3(12,CNAME(A))114 Q115 ;116 104 PINFO(VAE,PRACT,OPH,ROOM,SERV) ; 117 ;practitioner information f rom new person file105 ;practitioner information form new person file 118 106 S PRACT=$P($G(^VA(200,VAE,0)),"^") ;practitioner name 119 107 S OPH=$P($G(^VA(200,VAE,.13)),"^",2) ;office phone
Note:
See TracChangeset
for help on using the changeset viewer.