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

PXRMMHV.m

Go to the documentation of this file.
  1. PXRMMHV ; SLC/PKR - Clinical Reminders entry points. ; 10/19/2005
  1. ;;2.0;CLINICAL REMINDERS;**4**;Feb 04, 2005;Build 21
  1. ;Supports DBIA #4811.
  1. ;==========================================================
  1. MHVC(DFN) ;Return the MHV combined output for all the active patient
  1. ;reminders.
  1. N RIEN
  1. K ^TMP("PXRMMHVC",$J)
  1. S RIEN=0
  1. F S RIEN=$O(^PXD(811.9,"P",RIEN)) Q:+RIEN'>0 D
  1. . I $P(^PXD(811.9,RIEN,0),U,6)=1 Q
  1. . D MAIN^PXRM(DFN,RIEN,12,0)
  1. Q
  1. ;
  1. ;==========================================================
  1. PREMLIST ;Return a list of the active patient reminders.
  1. N NAME,RIEN,TEMP
  1. K ^TMP("PXRMMHVL",$J)
  1. S RIEN=0
  1. F S RIEN=$O(^PXD(811.9,"P",RIEN)) Q:+RIEN'>0 D
  1. . S TEMP=^PXD(811.9,RIEN,0)
  1. . I $P(TEMP,U,6)=1 Q
  1. . S ^TMP("PXRMMHVL",$J,RIEN)=$P(TEMP,U,1)_U_$P(TEMP,U,3)_U_$P(^PXD(811.9,RIEN,100),U,1)
  1. Q
  1. ;
  1. ;==========================================================
  1. WEBALL ;Return the web site information for all the active patient reminders.
  1. N NAME,RIEN,TEMP
  1. K ^TMP("PXRMMHVW",$J)
  1. S RIEN=0
  1. F S RIEN=$O(^PXD(811.9,"P",RIEN)) Q:+RIEN'>0 D
  1. . S TEMP=^PXD(811.9,RIEN,0)
  1. . I $P(TEMP,U,6)=1 Q
  1. . D WEBI(RIEN,"PXRMMHVW")
  1. Q
  1. ;
  1. ;==========================================================
  1. WEBI(RIEN,NODE) ;Return the web site information for an individual reminder.
  1. N IEN,IND,NL,TEMP,URL
  1. I '$D(^PXD(811.9,RIEN,50)) Q
  1. S IEN=0
  1. F S IEN=+$O(^PXD(811.9,RIEN,50,IEN)) Q:IEN=0 D
  1. . S TEMP=$G(^PXD(811.9,RIEN,50,IEN,0))
  1. . S URL=$P(TEMP,U,1)
  1. . I URL="" Q
  1. . S ^TMP(NODE,$J,RIEN,"WEB",IEN,"URL")=URL
  1. . S ^TMP(NODE,$J,RIEN,"WEB",IEN,"TITLE")=$P(TEMP,U,2)
  1. .;If there is a description output it.
  1. . I '$D(^PXD(811.9,RIEN,50,IEN,1)) Q
  1. . S (IND,NL)=0
  1. . F S IND=+$O(^PXD(811.9,RIEN,50,IEN,1,IND)) Q:IND=0 D
  1. .. S NL=NL+1
  1. .. S ^TMP(NODE,$J,RIEN,"WEB",IEN,"DESCRIPTION",NL)=^PXD(811.9,RIEN,50,IEN,1,IND,0)
  1. Q
  1. ;