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