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

SDWL120.m

Go to the documentation of this file.
  1. SDWL120 ;IOFO BAY PINES/esw- EWL- 120 delay appt message ;1/11/16 10:32am
  1. ;;5.3;scheduling;**446,645**;AUG 13, 1993;Build 7
  1. ;
  1. MESS(DFN,SDWLDA,SDPR) ;
  1. ; SDWLDA - EWL IEN to 409.3
  1. ; SDPR - flag indicating creation of 409.32 clinic entry
  1. ; 0 - no entry
  1. ; 1 - entry created
  1. S ^TMP("SDWL120",$J,.01)="An open Wait List entry was created with a 120 days flag, indicating that it"
  1. S ^TMP("SDWL120",$J,.02)="was not possible to schedule an appointment for the listed clinic within"
  1. ; SD*5.3*645 - replaced desired date with CID/Preferred Date
  1. ; S ^TMP("SDWL120",$J,.03)="120 days of the desired date."
  1. S ^TMP("SDWL120",$J,.03)="120 days of the CID/Preferred Date."
  1. S ^TMP("SDWL120",$J,.04)=""
  1. N SDAPPT,Y
  1. S ^TMP("SDWL120",$J,.05)="An EWL Entry was created for the following patient,"
  1. S ^TMP("SDWL120",$J,.06)=""
  1. S ^TMP("SDWL120",$J,.07)=$$FORM^SDFORM("PATIENT NAME",23,"SSN",12,"EWL",35)
  1. S ^TMP("SDWL120",$J,.08)="--------------------------------------------------------------------------"
  1. S ^TMP("SDWL120",$J,.09)=$$FORM^SDFORM($E($$GET1^DIQ(2,DFN_",",.01,"I"),1,25),23,$$GET1^DIQ(2,DFN_",",.09,"I"),12,$$GET1^DIQ(409.3,SDWLDA_",",8),35)
  1. S ^TMP("SDWL120",$J,.1)=""
  1. I SDPR S ^TMP("SDWL120",$J,.11)="SD WL CLINIC LOCATION parameter entry created."
  1. N XMSUB,XMY,XMTEXT,XMDUZ
  1. S XMSUB="EWL opened entry with a 120 days flag"
  1. S XMY("G.SD EWL BACKGROUND UPDATE")=""
  1. S XMTEXT="^TMP(""SDWL120"",$J,"
  1. S XMDUZ="POSTMASTER"
  1. D ^XMD K ^TMP("SDWL120",$J)
  1. Q
  1. ;
  1. MESS2(SC) ;
  1. ; SC - pointer to file 44
  1. S ^TMP("SDWL120",$J,.01)="An attempt has been made to create an EWL Entry after the lack of"
  1. S ^TMP("SDWL120",$J,.02)="any availability on the clinic,"
  1. S ^TMP("SDWL120",$J,.03)=$$GET1^DIQ(44,SC,.01)
  1. ; SD*5.3*645 - replaced desired date with CID/Preferred Date
  1. ; S ^TMP("SDWL120",$J,.04)="within 120 days of a patient's desired date."
  1. S ^TMP("SDWL120",$J,.04)="within 120 days of a patient's CID/Preferred Date."
  1. S ^TMP("SDWL120",$J,.05)=""
  1. S ^TMP("SDWL120",$J,.06)="The clinic has no linked Institution or Division which are required"
  1. S ^TMP("SDWL120",$J,.07)="to create the association with a Wait List."
  1. N XMSUB,XMY,XMTEXT,XMDUZ
  1. S XMSUB="EWL Location entry could not be created"
  1. S XMY("G.SD EWL BACKGROUND UPDATE")=""
  1. S XMTEXT="^TMP(""SDWL120"",$J,"
  1. S XMDUZ="POSTMASTER"
  1. D ^XMD
  1. K ^TMP("SDWL120",$J)
  1. Q