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

PXRMEXWB.m

Go to the documentation of this file.
  1. PXRMEXWB ;SLC/PKR - Reminder Exchange Web routines. ;05/06/2020
  1. ;;2.0;CLINICAL REMINDERS;**26,47,46**;Feb 04, 2005;Build 236
  1. ;==========================================
  1. LWEB(URL) ;Load a prd file from a web site into ^TMP, then into the
  1. ;Exchange file.
  1. N DIR,HDR,NODE,RESULT,TEXT,X,Y
  1. S DIR(0)="F^10:245"
  1. S DIR("A")="Input the URL for the .prd file"
  1. D ^DIR
  1. S URL=Y
  1. I (Y="")!(Y="^") S URL="" Q 0
  1. S Y=$$LOW^XLFSTR(Y)
  1. ;Load the file contents into ^TMP.
  1. S NODE="EXHF"
  1. K ^TMP($J,NODE),^TMP($J,"WEBPRD")
  1. ;DBIA #5553
  1. S RESULT=$$GETURL^XTHC10(URL,10,"^TMP($J,""WEBPRD"")",.HDR)
  1. I $P(RESULT,U,1)'=200 D Q 0
  1. . S TEXT="Could not load the .prd file: "
  1. . S TEXT=TEXT_"Error "_$P(RESULT,U,1)_" "_$P(RESULT,U,2)
  1. . D EN^DDIOL(.TEXT) H 2
  1. . K ^TMP($J,"WEBPRD")
  1. D RBLCKWEB^PXRMTXIM("WEBPRD",NODE)
  1. K ^TMP($J,"WEBPRD")
  1. ;Load the ^TMP into the Exchange file.
  1. D LTMP^PXRMEXHF(.RESULT,NODE)
  1. K ^TMP($J,NODE)
  1. Q RESULT
  1. ;