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/SCRPITP2.m

    r628 r636  
    11SCRPITP2 ;ALB/CMM - Individual Team Profile Continued ;7/25/99  18:24
    2  ;;5.3;Scheduling;**41,177,520**;AUG 13, 1993;Build 26
     2 ;;5.3;Scheduling;**41,177**;AUG 13, 1993
    33 ;
    44 ;Individual Team Profile
     
    1616 S POS=$P(TNODE,"^") ;position name
    1717 S ROL=$P($G(^SD(403.46,+$P(TNODE,"^",3),0)),"^") ;standard position
    18  S PPC=$S($P(TNODE,"^",4)'=1:"NPC",+$$OKPREC3^SCMCLK(TPOS,DT)>0:" AP",1:"PCP") ;primary care position
     18 S PPC=$S($P(TNODE,"^",4)'=1:"NPC",+$$OKPREC3^SCMCLK(TPOS,DT)>1:" AP",1:"PCP") ;primary care position
    1919 S MAX=$P(TNODE,"^",8)
    2020 ;
     
    2424 S SCPTASS=$$PCPOSCNT^SCAPMCU1(TPOS,DT,0)
    2525 ;
    26  ;D FORMAT(POS,PPC,MAX,DIV,TM,TPOS,ROL,SCPROV,SCPTASS)
     26 S CIEN=+$P(TNODE,"^",9) ;clinic ien
     27 S PCLIN=""
     28 I CIEN>0 S PCLIN=$P($G(^SC(CIEN,0)),"^") ;associated clinic
    2729 ;
    28  D SETASCL^SCRPRAC2(TPOS,.CNAME,.CLIEN)
    29  S CNAME=$G(CNAME(0))
    30  ;S CIEN=+$P(TNODE,"^",9) ;clinic ien ;USING MULTIPLE WITH SD*5.3*520
    31  ;S PCLIN=""
    32  ;I CIEN>0 S PCLIN=$P($G(^SC(CIEN,0)),"^") ;associated clinic
     30 D FORMAT(POS,PPC,MAX,DIV,TM,TPOS,ROL,PCLIN,SCPROV,SCPTASS)
    3331 ;
    34  D FORMAT(POS,PPC,MAX,DIV,TM,TPOS,ROL,CNAME,SCPROV,SCPTASS)
    35  N AC
    36  S AC=0
    37  F  S AC=$O(CNAME(AC)) Q:AC=""  D FORMATAC(POS,DIV,TM,TPOS,CNAME(AC))
    38  K CNAME
    3932 Q
    4033 ;
     
    10194 S $E(@STORE@(DIV,TM,"P",POS),82)=$J(MAX,6,0) ;number of patients allowed
    10295 S $E(@STORE@(DIV,TM,"P",POS),92)=$J(SCPTASS,6,0) ;patients assigned
    103  S $E(@STORE@(DIV,TM,"P",POS),103)=$E(CNAME,1,30)
    104  Q
    105  ;
    106 FORMATAC(POS,DIV,TM,TPOS,CNAME) ;clinic name
    107  S $E(@STORE@(DIV,TM,"P",POS,AC),103)=$E(CNAME,1,30)
     96 S $E(@STORE@(DIV,TM,"P",POS),103)=$E(CNAME,1,30) ;clinic name
    10897 Q
    10998 ;
Note: See TracChangeset for help on using the changeset viewer.