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

SDESHOLIDAY.m

Go to the documentation of this file.
SDESHOLIDAY ;ALB/BWF - VISTA SCHEDULING RPCS GET HOLIDAYS ; APR 20,2023
 ;;5.3;Scheduling;**844**;Aug 13, 1993;Build 12
 ;;Per VHA Directive 6402, this routine should not be modified
 ;
 Q
GETHOLIDAYS(RES) ;
 N RESULT,STRTDT,CNT
 S CNT=0
 S STRTDT=$$FMADD^XLFDT(DT,-1)
 F  S STRTDT=$O(^HOLIDAY(STRTDT)) Q:'STRTDT  D
 .S CNT=CNT+1
 .S RESULT("Holiday",CNT,"Date")=$$FMTISO^SDAMUTDT($$GET1^DIQ(40.5,STRTDT,.01,"I"))
 .S RESULT("Holiday",CNT,"Name")=$$GET1^DIQ(40.5,STRTDT,2,"E")
 D BUILDJSON^SDESBUILDJSON(.RES,.RESULT)
 Q