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

GMTSP112.m

Go to the documentation of this file.
  1. GMTSP112 ;BP/WAT - Pre/Post Init GMTS*2.7*112 ;03/26/15 05:27
  1. ;;2.7;Health Summary;**112**;Oct 20, 1995;Build 3
  1. ;post-install routine to add HS Components released in GMTS*2.7*99 to the PDX exchange process
  1. ;ICR reference
  1. ;2053, WP^DIE
  1. ;10141 B/MES^XPDUTL
  1. ;
  1. POST ; do post
  1. D DOPDX
  1. D WPDIE
  1. Q
  1. ;
  1. DOPDX ;add to PDX
  1. N GMTSNAME,GMTSTIML,GMTSOCCL,GMTSLIST,GMTSCNTR
  1. S GMTSLIST="MAS CONTACTS^MAS MH CLINIC VISITS FUTURE^MH HIGH RISK PRF HX^MH TREATMENT COORDINATOR^"
  1. F GMTSCNTR=1:1:4 D
  1. .S GMTSNAME=$P(GMTSLIST,U,GMTSCNTR),GMTSTIML="",GMTSOCCL="" D PDX^GMTSXPD5(GMTSNAME,GMTSTIML,GMTSOCCL)
  1. Q
  1. ;
  1. WPDIE ;udpate CNB description field
  1. ;OLD DESCRIPTION: This component displays Consults in a brief format, to include
  1. ;the consult number, request date, requesting service, last action, last action
  1. ;date, and the consult "TO" service.
  1. D BMES^XPDUTL("Updating the DESCRIPTION for the CNB component...")
  1. N FILE,IENS,FIELD,GMTSERR
  1. S FILE="142.1",IENS="240,",FIELD="3.5"
  1. K ^TMP($J,"CNB")
  1. S ^TMP($J,"CNB",1)="This component displays Consults in a brief format, to include the consult "
  1. S ^TMP($J,"CNB",2)="number, request date, requesting service, last action, clinically indicated "
  1. S ^TMP($J,"CNB",3)="date, last action date, and the consult ""TO"" service."
  1. D WP^DIE(FILE,IENS,FIELD,,"^TMP($J,""CNB"")")
  1. I $D(^TMP("DIERR",$J,1,"TEXT"))=10 D Q
  1. .D BMES^XPDUTL("Recording an error has ocurred")
  1. .D MES^XPDUTL(^TMP("DIERR",$J,1,"TEXT",1))
  1. D BMES^XPDUTL("Update completed...")
  1. Q