Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/SCHEDULING-SD-SC/SCRPRAC2.m

    r628 r636  
    11SCRPRAC2 ;ALB/CMM - Practitioner Demographics continued ; 29 Jun 99  04:11PM
    2  ;;5.3;Scheduling;**41,177,520**;AUG 13, 1993;Build 26
     2 ;;5.3;Scheduling;**41,177**;AUG 13, 1993
    33 ;
    44 ;Practitioner Demographics Report
     
    4040 .S MAX=$P(NODE,"^",8) ;max patient assignments to position
    4141 .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
    4443 .;
    4544 .;Get preceptor
     
    5756 .D SET1("Phone",PHONE),SET2("Pts. Assigned",ASSIGN)
    5857 .I $L($G(PRCP)) D SET3(1,"Preceptor: "_PRCP)
    59  .D SET3(4,"Assoc. Clinic: ")
    60  .D SETCNAME(.CNAME)
     58 .D SET3(4,"Assoc.")
     59 .D SET3(4,"Clinic: "_CNAME)
    6160 .I $L(PCLASS(1)) D
    6261 ..D SET3(4,"Person"),SET3(5,"Class: "_PCLASS(1)) D
     
    8382 Q
    8483 ;
    85 SETASCL(PIEN,CNAME,SCCLIEN) ;SET ASSOCIATED CLINICS
    86  N I,CNT1
    87  S CNT1=0,I=0
    88  F  S I=$O(^SCTM(404.57,PIEN,5,I)) Q:'I  D
    89  .S SCCLIEN(CNT1)=I,CNAME(CNT1)=$P($G(^SC(I,0)),U),CNT1=CNT1+1
    90  Q
    9184SET1(LABEL,VALUE) ;Set output line
    9285 S SCLN=SCLN+1
     
    109102 Q
    110103 ;
    111 SETCNAME(CNAME) ;associated clinics
    112  N A
    113  S A="" F  S A=$O(CNAME(A)) Q:A=""  D SET3(12,CNAME(A))
    114  Q
    115  ;
    116104PINFO(VAE,PRACT,OPH,ROOM,SERV) ;
    117  ;practitioner information from new person file
     105 ;practitioner information form new person file
    118106 S PRACT=$P($G(^VA(200,VAE,0)),"^") ;practitioner name
    119107 S OPH=$P($G(^VA(200,VAE,.13)),"^",2) ;office phone
Note: See TracChangeset for help on using the changeset viewer.