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

TIUCCRPOST.m

Go to the documentation of this file.
TIUCCRPOST ;CCRA/LB,PB - POST INSTALL ROUTINE;JUN 17, 2020
 ;;1.0;TEXT INTEGRATION UTILITIES;**337**;Jun 17, 2020;Build 5
 ;
 Q
 ;
POST ;CREATES A GENERIC CONSULT NOTE - JMC/337- ADD CHECKS FOR GMRCCCRA NOTIFICATIONS MAIL GROUP
 N NAME,TYPE,STATUS,PARENT,STDTITLE,Y,X,VALM
 ;
 S NAME="HSRM COMMUNITY CARE COORDINATION PLAN NOTE"
 S TYPE="DOC"
 S STATUS=11
 S PARENT=$O(^TIU(8925.1,"B","CONSULTS",""))  ;164 
 S STDTITLE=$O(^TIU(8926.1,"B","CONSULT",""))  ;"CONSULT"
 D CRDD^TIUCRDD(NAME,TYPE,STATUS,PARENT,STDTITLE)
 ;
 D MAILGRP
 Q
 ;
MAILGRP ;
 ; Mail Group already exists
 N Y,X,VALM
 I $D(^XMB(3.8,"B","GMRCCCRA TIU NOTIFICATIONS")) Q
 ;
 ; Mail Group does not exist
 I '$D(^XMB(3.8,"B","GMRCCCRA TIU NOTIFICATIONS")) D
 . K DO,DD
 . S DIC(0)="",DIC="^XMB(3.8,",X="GMRCCCRA TIU NOTIFICATIONS"
 . D FILE^DICN
 . S VALM=+Y
 . I $G(VALM)>0 D
 . . S $P(^XMB(3.8,VALM,0),"^",2)="PU"  ;Make this a public group
 . . S $P(^XMB(3.8,VALM,0),"^",3)="y" ;Yes, you can add yourself to the list of recipients.
 K DIC,DIC(0)
 Q