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

PXRMFFH.m

Go to the documentation of this file.
  1. PXRMFFH ;SLC/PKR - Routines for function finding help. ;03/01/2013
  1. ;;2.0;CLINICAL REMINDERS;**12,18,26**;Feb 04, 2005;Build 404
  1. ;
  1. ;======================================================
  1. FSXHELP ;Function finding function string executable help.
  1. N DIR0,DONE,IND,TEXT
  1. S DONE=0
  1. ;Load the general help text.
  1. F IND=1:1 Q:DONE D
  1. . S TEXT(IND)=$P($T(GHTEXT+IND),";",3)
  1. . I TEXT(IND)="**End Text**" K TEXT(IND) S DONE=1 Q
  1. ;Load the help text for the functions.
  1. D GFTEXT(IND-2,.TEXT)
  1. D BROWSE^DDBR("TEXT","NR","Function Finding Help")
  1. I $D(DDS) D REFRESH^DDSUTL S DY=IOSL-7,DX=0 X IOXY S $Y=DY,$X=DX
  1. Q
  1. ;
  1. ;======================================================
  1. GFTEXT(START,TEXT) ;Load descriptions of available function finding
  1. ;GFTEXT(START,FUN,TEXT) ;Load descriptions of available function finding
  1. ;functions into the TEXT array starting at line START.
  1. N IEN,IND,FUNCTION,NDL,NL,PNAME
  1. S NL=START
  1. S FUNCTION=""
  1. F S FUNCTION=$O(^PXRMD(802.4,"B",FUNCTION)) Q:FUNCTION="" D
  1. . S NL=NL+1,TEXT(NL)=" "_FUNCTION
  1. S NL=NL+1,TEXT(NL)=""
  1. S NL=NL+1,TEXT(NL)="Details for each function follow."
  1. ;
  1. S FUNCTION=""
  1. F S FUNCTION=$O(^PXRMD(802.4,"B",FUNCTION)) Q:FUNCTION="" D
  1. . S IEN=$O(^PXRMD(802.4,"B",FUNCTION,""))
  1. . S PNAME=$P(^PXRMD(802.4,IEN,0),U,4)
  1. . S NL=NL+1,TEXT(NL)=" "
  1. . S NL=NL+1,TEXT(NL)="Function: "_FUNCTION
  1. . S NL=NL+1,TEXT(NL)="Print Name: "_PNAME
  1. .;Load the description
  1. . S NL=NL+1,TEXT(NL)="Description:"
  1. . S NDL=+$P($G(^PXRMD(802.4,IEN,1,0)),U,4)
  1. . F IND=1:1:NDL S NL=NL+1,TEXT(NL)=^PXRMD(802.4,IEN,1,IND,0)
  1. Q
  1. ;
  1. ;======================================================
  1. GHTEXT ;Function finding general help text.
  1. ;;The general form for a function finding string is:
  1. ;; FUN1(arg1,arg2,...argN) oper1 FUN2(arg1,arg2,...,argN) ...
  1. ;; where FUN1 stands for function 1, FUN2 function 2, and so on.
  1. ;; arg1,arg2,...,argN are the regular findings whose data are arguments
  1. ;; to the function and oper1 stands for a MUMPS operator.
  1. ;; The operators can be any of the following MUMPS operators:
  1. ;; !&-+*/\#<>='][
  1. ;;
  1. ;;When a function finding is evaluated, the result will be treated as a logical
  1. ;;true or false, where 0 is false and non-zero is true.
  1. ;;
  1. ;;An example of a function finding string is:
  1. ;; MRD(1,2)>MRD(5,6,7)
  1. ;;
  1. ;;This function finding will be true if the most recent date
  1. ;;of regular findings 1 and 2 is greater than the most recent
  1. ;;date of regular findings 5, 6, and 7.
  1. ;;
  1. ;;Comparisons to fixed values can also be made. An example of this is:
  1. ;;
  1. ;; MRD(1,2)>0
  1. ;;
  1. ;;Some dates associated with findings include time. For those functions
  1. ;;that have dates as arguments, if a date includes time, the full date
  1. ;;and time will be used in the calculation.
  1. ;;
  1. ;;The function finding functions are:
  1. ;;**End Text**
  1. Q
  1. ;