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

SD53589P.m

Go to the documentation of this file.
SD53589P ;BP/DMR POST INIT ROUTINE
 ;;5.3;Scheduling;**589**;Aug 13, 1993;Build 41
 ;
 ;Populate file MH PCMM STOP CODES (#404.61).
 ;
INIT ;Set temp global
 S ^TMP("SD53589P",$J,524)="ACTIVE DUTY SEXUAL TRAUMA"
 S ^TMP("SD53589P",$J,445)="C&P VIA CVT PROV SITE^YES"
 S ^TMP("SD53589P",$J,444)="C&P VIA CVT PT SITE^YES"
 S ^TMP("SD53589P",$J,450)="COMP & PENS (C&P) EXAMS^YES"
 S ^TMP("SD53589P",$J,554)="DAY HOSPITAL-GROUP"
 S ^TMP("SD53589P",$J,506)="DAY HOSPITAL-INDIVIDUAL"
 S ^TMP("SD53589P",$J,553)="DAY TREATMENT-GROUP"
 S ^TMP("SD53589P",$J,505)="DAY TREATMENT-INDIVIDUAL"
 S ^TMP("SD53589P",$J,448)="DES EXAM^YES"
 S ^TMP("SD53589P",$J,504)="GRANT & PER DIEM GROUP"
 S ^TMP("SD53589P",$J,511)="GRANT & PER DIEM INDIV"
 S ^TMP("SD53589P",$J,508)="HCHV/HCMI GROUP"
 S ^TMP("SD53589P",$J,529)="HCHV/HCMI INDIV"
 S ^TMP("SD53589P",$J,507)="HUD/VASH GROUP"
 S ^TMP("SD53589P",$J,522)="HUD/VASH INDIV"
 S ^TMP("SD53589P",$J,447)="IDES VIA CVT PROV SITE^YES"
 S ^TMP("SD53589P",$J,446)="IDES VIA CVT PT SITE^YES"
 S ^TMP("SD53589P",$J,547)="INTNSE SUB USE DSRDER GRP"
 S ^TMP("SD53589P",$J,548)="INTNSE SUB USE DSRDER IND"
 S ^TMP("SD53589P",$J,502)="MENTAL HEALTH CLINIC - IND"
 S ^TMP("SD53589P",$J,550)="MENTAL HEALTH CLINIC-GROUP"
 S ^TMP("SD53589P",$J,568)="MH CWT/SE FACE TO FACE"
 S ^TMP("SD53589P",$J,574)="MH CWT/TWE FACE TO FACE"
 S ^TMP("SD53589P",$J,573)="MH INCENTIVE THERAPY F TO F"
 S ^TMP("SD53589P",$J,503)="MH RESIDENTIAL CARE IND"
 S ^TMP("SD53589P",$J,535)="MH VOCATIONAL ASSISTANCE - IND"
 S ^TMP("SD53589P",$J,575)="MH VOCATIONAL ASSISTANCE-GRP"
 S ^TMP("SD53589P",$J,567)="MHICM - GROUP"
 S ^TMP("SD53589P",$J,552)="MHICM - INDIVIDUAL"
 S ^TMP("SD53589P",$J,373)="MOVE! PGM GROUP^YES"
 S ^TMP("SD53589P",$J,372)="MOVE! PGM INDIV^YES"
 S ^TMP("SD53589P",$J,523)="OPIOID SUBSTITUTION"
 S ^TMP("SD53589P",$J,561)="PCT-POST TRAUMATIC STRESS-GRP"
 S ^TMP("SD53589P",$J,583)="PRRC GROUP"
 S ^TMP("SD53589P",$J,582)="PRRC INDIVIDUAL"
 S ^TMP("SD53589P",$J,557)="PSYCHIATRY - GROUP"
 S ^TMP("SD53589P",$J,509)="PSYCHIATRY - INDIVIDUAL"
 S ^TMP("SD53589P",$J,577)="PSYCHOGERIATRIC - GROUP"
 S ^TMP("SD53589P",$J,576)="PSYCHOGERIATRIC - INDIVIDUAL"
 S ^TMP("SD53589P",$J,558)="PSYCHOLOGY-GROUP"
 S ^TMP("SD53589P",$J,510)="PSYCHOLOGY-INDIVIDUAL"
 S ^TMP("SD53589P",$J,516)="PTSD - GROUP"
 S ^TMP("SD53589P",$J,562)="PTSD - INDIVIDUAL"
 S ^TMP("SD53589P",$J,540)="PTSD CLINICAL TEAM PTS IND"
 S ^TMP("SD53589P",$J,580)="PTSD DAY HOSPITAL"
 S ^TMP("SD53589P",$J,596)="RRTP ADMISSION SCREENING SRVCS"
 S ^TMP("SD53589P",$J,595)="RRTP AFTERCARE GRP"
 S ^TMP("SD53589P",$J,588)="RRTP AFTERCARE IND"
 S ^TMP("SD53589P",$J,598)="RRTP PRE-ADMIT IND"
 S ^TMP("SD53589P",$J,572)="SERV-MH GROUP"
 S ^TMP("SD53589P",$J,571)="SERV-MH INDIVIDUAL"
 S ^TMP("SD53589P",$J,707)="SMOKING CESSATION^YES"
 S ^TMP("SD53589P",$J,514)="SUB USE DISORDER HOME VST"
 S ^TMP("SD53589P",$J,519)="SUBST USE DISORDER/PTSD TEAMS"
 S ^TMP("SD53589P",$J,513)="SUBSTANCE USE DISORDER IND"
 S ^TMP("SD53589P",$J,560)="SUBSTANCE USE DISORDR GRP"
 S ^TMP("SD53589P",$J,708)="TELE SMOKE CESS PROV SITE^YES"
 S ^TMP("SD53589P",$J,525)="WOMEN'S STRESS DISORDER TEAMS"
 ;
 D START
 S $P(^SCTM(404.61,0),"^",3)=CC
 S $P(^SCTM(404.61,0),"^",4)=CC
 D EXIT
 Q
 ;
START ;
 ;
 S (IEN,SC,CC,REC)=""
 S SC="" F  S SC=$O(^TMP("SD53589P",$J,SC)) Q:SC=""  D
 .S IEN="" F  S IEN=$O(^DIC(40.7,"C",SC,IEN)) Q:IEN=""  D
 ..Q:$$GET1^DIQ(40.7,IEN,2)'=""
 ..S CC=CC+1 S REC=""
 ..I $P(^TMP("SD53589P",$J,SC),"^",2)="YES" D
 ...S ^SCTM(404.61,CC,0)=IEN_"^"_1 S REC=1
 ...S ^SCTM(404.61,"AC",1,CC)=""
 ..I REC="" S ^SCTM(404.61,CC,0)=IEN
 ..S ^SCTM(404.61,"B",IEN,CC)=""
 Q
 ;
EXIT ;
 K IEN,CC,SC,REC
 K ^TMP("SD53589P",$J)
 Q