Jim,

Can I use your code separate from Apache?  I assume I can.  If so, it would be GREAT.  As my wading through Fileman is about as fun decompiling assembly code.  I have been "decompiling" it from its current "paragraph-all-on-one-LONG-line" format into a more modern one-step-on-one-line format.  Then I can use my debugger to step through the code and work on understanding what it is doing.  Then I would figure out how to make it a quiet function (no user interaction).  It would ne nice to avoid all that.

It looks like you are using a "iterater" approach.  I learned about this briefly when studying some of the standard libararies for c++.  It was a different way of doing things then I was used to (i.e. compared to Borland's VCL).

But I don't mind learning to use your code, if I can make it work at my site.

By the way, you guys seem to have a buch of great code.  Do you have a programer's reference that gives an overview of your library, and then details of the API's?

Thanks
Kevin


On 1/1/06, Jim Self <[EMAIL PROTECTED]> wrote:
Kevin wrote:
>... not having a built in function to do
>this is just slack.  Am I really the only one that would want such
>functionality??

I too believe that there is a need for a generic search capability that is not tied to the
old roll-and-scroll user interface.

Here is a little bit of info on a general database query capability included in M2Web
http://vista.vmth.ucdavis.edu/notebook/index/26.html

This makes use of a relatively simple but general iteration object that covers a large
class of MUMPS data structures, including pretty much all Fileman data to any depth of
subfile and cross references, including linked cross references.
(see http://vista.vmth.ucdavis.edu/rtn/iterator.html)

Here is an example of use of an iteration object (kexample) for Kevin's example:

  ;-- kfilter is a filter condition (or screen), to be evaluated as IF @kfilter
  ;   This variable is just a convenience for constructing kspec.
  ;   It is the essential condition of Kevin's example search in context
  ;   of subfile 50.6814 (ACTIVE INGREDIENTS).
  ;   The variable name "ActvIngr" was derived from the Fileman field name.
  ;   Its characteristics beyond those defined by Fileman are stored in
  ;   ^view(50.6814,"var","ActvIngr").
  ;   The MUMPS code to define it and ActvIngr("Name") will be generated when kspec
  ;   is parsed by new^iterator
  ;
  n kfilter s kfilter="ActvIngr(""Name"")[""ACETAMINOPHEN"""
  ;
  ;-- kspec is essentially a global reference with embedded iteration variables
  ;   It introduces the iteration variables VaPrdNo and ActIngNo (and ActvIngr
  ;   from kfilter). These names are also defined in ^view.
  ;     Using variable names defined in ^view is not necessary to the general
  ;   iteration except that it enables the automatic generation of supporting
  ;   code for the simple _expression_ of potentially complex filter conditions.
  ;
  n kspec s kspec="^PSNDF(50.68;VaPrdNo;2;ActIngNo:0:%:"_kfilter
  ;
  ;-- kexample will be defined here as an iteration object based on kspec
  ;
  n kexample d new^iterator(.kexample,kspec,50.6814)
  ;
  ;-- now the actual iteration
  ;
  n VaPrdNo,ActIngNo,ActvIngr ;the iteration variables
  n item f item=1:1 d step^iterator(.kexample) q:kexample=""  d whatever

Also, here is a related web based query that lists drugs where "ACETAMINOPHEN" is
contained in the ACTIVE INGREDIENTS (multiple) but not in the NAME.
(http://vista.vmth.ucdavis.edu/query?dbfile=50.68&index=VaPrdNo&filter=ActvIngr%5B%22ACETAMINOPHEN%22%2CName'%5B%22ACETAMINOPHEN%22&format=INGREDIENTS&limit=200 )

After decoding the URL, the filter parameter is a list of MUMPS conditional expressions
that can be used as the indirect argument of an IF command

filter = ActvIngr["ACETAMINOPHEN",Name'["ACETAMINOPHEN"

---------------------------------------
Jim Self
Systems Architect, Lead Developer
VMTH Computer Services, UC Davis
(http://www.vmth.ucdavis.edu/us/jaself )


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to