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

SDESGETAPPTTYPE.m

Go to the documentation of this file.
  1. SDESGETAPPTTYPE ;ALB/BLB,TJB - SDES GET APPT TYPE RPC ;Oct 05, 2023
  1. ;;5.3;Scheduling;**842,864**;Aug 13, 1993;Build 15
  1. ;;Per VHA Directive 6402, this routine should not be modified
  1. Q
  1. ;
  1. GETTYPES(JSONRETURN) ;
  1. N RETURN,APPTTYPES
  1. ;
  1. D BUILD(.APPTTYPES)
  1. M RETURN=APPTTYPES D BUILDJSON(.JSONRETURN,.RETURN)
  1. Q
  1. ;
  1. BUILD(APPTTYPES) ;
  1. N COUNT,APPTTYPEIEN
  1. ;
  1. S APPTTYPEIEN=0,COUNT=0
  1. F S APPTTYPEIEN=$O(^SD(409.1,APPTTYPEIEN)) Q:'APPTTYPEIEN D
  1. . Q:$$GET1^DIQ(409.1,APPTTYPEIEN,3,"I")
  1. . S COUNT=COUNT+1
  1. . S APPTTYPES("AppointmentTypes",COUNT)=$$GET1^DIQ(409.1,APPTTYPEIEN,.01,"E")
  1. Q
  1. ;
  1. BUILDJSON(JSONRETURN,RETURN) ;
  1. D ENCODE^XLFJSON("RETURN","JSONRETURN")
  1. Q
  1. ;