Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: SCMCTSK4

SCMCTSK4.m

Go to the documentation of this file.
  1. SCMCTSK4 ;ALB/JDS - PCMM Inactivation Reports ; 18 Apr 2003 9:36 AM
  1. ;;5.3;Scheduling;**297,526,1015**;AUG 13, 1993;Build 21
  1. Q
  1. POSCHK ;
  1. N NAME S NAME=$P($G(^SD(403.46,+$P(INFO,U,3),0)),U)
  1. I "RESIDENT (PHYSICIAN)INTERN (PHYSICIAN)"[NAME S $P(DATA,U,3)=1 Q
  1. I "NURSE PRACTITIONERPHYSICIAN ASSISTANT"[NAME S $P(DATA,U,3)=2 Q
  1. I "PHYSICIAN-ATTENDINGPHYSICIAN-PRIMARY CARENURSE PRACTITIONERPHYSICIAN ASSISTANTPHYSICIAN-PSYCHIATRIST"[NAME D Q
  1. .S $P(DATA,U,3)=3
  1. Q
  1. DIOBEG ;
  1. N PG,DC
  1. N Y,% W @IOF,!,$G(SCDHD) D NOW^%DTC S Y=% W:$X>(IOM-40) ! W ?(IOM-40)
  1. W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12)
  1. W ?(IOM-15),"PAGE: 1"
  1. S Y="",$P(Y,"-",IOM)="" W !,Y,!!
  1. W ?(IOM/2-24),"**** Report Parameters Selected ****",!
  1. S SC="^TMP(""SC"",$J)"
  1. S X=$$PPAR^SCMCTSK8(.SC,.SCT)
  1. S (PG,DC)=1
  1. F Q:$Y>(IOSL-3) W !
  1. ;I IOST["C" W !! R SCX:DT I SCX[U S DIOUT=1
  1. Q
  1. DIOEND ;print key
  1. N Y,% W @IOF,!,$G(SCDHD) D NOW^%DTC S Y=% W:$X>(IOM-40) ! W ?(IOM-40)
  1. W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12)
  1. W ?(IOM-15),"PAGE: "_($G(DC)+1)
  1. S Y="",$P(Y,"-",IOM)="" W !,Y,!!
  1. W !," REPORT KEY"
  1. W !," Field Name Explanation of field name"
  1. W !," Patient Name Name of patient scheduled to be inactivated from their primary care team and position/provider"
  1. W !," SSN Patient SSN."
  1. W !," PC Team Patient's assigned Primary Care team in PCMM."
  1. W !," Provider Name of primary care practitioner/provider currently assigned to the patient. This will be an"
  1. W !," Associate PC Provider if the patient is assigned to an AP, or it will be a Primary Care Provider"
  1. W !," (PCP) if the patient is not assigned to an Associate PC Provider (AP.)"
  1. W !," Team Position The name of the team position to which the current practitioner/provider is assigned."
  1. W !," Institution/Division Institution name, previously called Division, in which patient receives primary care."
  1. W !," Sched Date for Inactiva Date patient will be inactivated from PCMM and their Primary Care team and provider/position"
  1. W !," panels. If the patient has a completed outpatient encounter with their current PCP or an"
  1. W !," assigned AP before this date, the patient will not be inactivated. If the patient's"
  1. W !," inactivation date is extended for 60 days, with the PCMM Extend Patient's Inactivation Date"
  1. W !," option, the patient's inactivation will not occur until the new extended date for inactivation."
  1. W !," Note: There is a patient reassignment option, which allows an inactivated patient to be"
  1. W !," reactivated to their previous Primary Care team and position if they return for care."
  1. W !," Next Appt Date Patient is scheduled for an appointment on this date."
  1. W !," May indicate patient wants to continue their assignment to their Primary Care team and provider."
  1. W !," Clinic for next Appt The clinic in which the patient has their next scheduled appointment."
  1. Q
  1. DIOEND1 ;print Key
  1. N Y,% W @IOF,!,$G(SCDHD) D NOW^%DTC S Y=% W:$X>(IOM-40) ! W ?(IOM-40)
  1. W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12)
  1. W ?(IOM-15),"PAGE: "_($G(DC)+1)
  1. S Y="",$P(Y,"-",IOM)="" W !,Y,!!
  1. W !," REPORT KEY"
  1. W !," Field Name Explanation of field name"
  1. W !," Patient Name Name of patient scheduled to be inactivated from their primary care team and position/provider."
  1. W !," SSN Patient SSN."
  1. W !," Institution Institution name, previously called Division, in which patient receives primary care."
  1. W !," PC Team Patient's assigned Primary Care team in PCMM."
  1. W !," Provider/ Name of Primary Care practitioner/provider currently assigned to the patient."
  1. W !," This may be an Associate PC Provider (AP,) if the patient is assigned to an AP, or"
  1. W !," it may be a Primary Care Provider (PCP) if the patient is not assigned to an"
  1. W !," Associate PC Provider (AP.)"
  1. W !," Team Position The name of the team position to which the current provider is assigned."
  1. W !," Preceptor Name of Preceptor/Primary Care Provider (PCP) if the patient is assigned to an Associate Provider."
  1. W !," If this field is blank then the patient is assigned to a PCP, who displays in the Provider field."
  1. W !," Date Patient Date patient was inactivated from PCMM and their Primary Care team and provider/position."
  1. W !," Inactivated Note: There is a PCMM patient re-assignment option."
  1. W !," Reason Patient Reason for patient's automated unassignment from their Primary Care team and provider/position."
  1. W !," Inactivated No Appt The patient has been assigned to their current Primary Care Provider (PCP) for"
  1. W !," 12 months, and does not have a completed appointment encounter with their PCP or any assigned"
  1. W !," Associated Primary Care Provider (AP) within those 12 months. Therefore, they are considered"
  1. W !," an inactive patient. Alternatively, the patient has been assigned to their current PCP for at"
  1. W !," least 12 months, and does not have a completed appointment encounter with their PCP or any"
  1. W !," assigned Associated Primary Care Provider (AP) in the past 24 months. Therefore, they are"
  1. W !," considered an inactive patient."
  1. W !," Death - Patient's death, a date of death was entered in the Registration Package"
  1. Q
  1. DIOEND2 ;print Key