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

SDES2GRECAPTYPE.m

Go to the documentation of this file.
  1. SDES2GRECAPTYPE ;ALB/BWF - SDES2 get recall appointment types ;APR 30, 2024
  1. ;;5.3;Scheduling;**877**;Aug 13, 1993;Build 14
  1. ;;Per VHA Directive 6402, this routine should not be modified
  1. ;
  1. Q
  1. GETRECREMTYPES(RES,SDCONTEXT,SDINPUT) ;
  1. N SDECCNT,SDI,RECTYPES,ERRORS
  1. D VALCONTEXT^SDES2VALCONTEXT(.ERRORS,.SDCONTEXT)
  1. I $D(ERRORS) S ERRORS("RecallReminderType",1)="" D BUILDJSON^SDES2JSON(.RES,.ERRORS) Q
  1. S SDECCNT=0
  1. S SDI=0 F S SDI=$O(^SD(403.51,SDI)) Q:'SDI D
  1. .S SDECCNT=SDECCNT+1
  1. .S RECTYPES("RecallReminderType",SDECCNT,"IEN")=SDI
  1. .S RECTYPES("RecallReminderType",SDECCNT,"Name")=$$GET1^DIQ(403.51,SDI,.01,"E")
  1. .S RECTYPES("RecallReminderType",SDECCNT,"Synonym")=$$GET1^DIQ(403.51,SDI,1,"E")
  1. I '$D(RECTYPES) S RECTYPES("RecallReminderType",1)=""
  1. D BUILDJSON^SDES2JSON(.RES,.RECTYPES)
  1. Q