All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

David ---   The principle is simple; you create a computed variable (or
line check) to look for specific combinations.  Here would be one way to
do it from LAB.L.TEST:

xx.select
DAT=PINT
LEN=1
VAL=IF{(@mnemonic="TEST"&(@rg.report.name="Amphetamines"))!(@mnemonic=
VAL="TEST2"&(@rg.report.name="Tetracycline")) 1}

I too am no Lab expert, so the variables I chose may be incorrect, but
the logic of the statement would be somewhat close to what you want.
Note the placement of parentheses to keep the variables together.

Douglas B. McGaw
Hospital Info Svcs Coordinator
Newman Regional Health
1201 W. 12th Ave.
Emporia, KS  66801
 
Voice:  620-343-6800 x 1130
Fax:  620-340-6133
Email: [EMAIL PROTECTED]
======================================

I am trying to write a microbiology report that will select a culture
result based on a couple of the antibiotic results.  For example, I want
all Ecoli that are Resistant to Ampicillin but Sensitive to Tetracycline
(forgive me if that doesn't make sense - I'm not a microbiologist!!).  I
keep thinking it will be something like selecting antibiotic A reaction
eq S and Antibiotic B reaction eq R (or S) but am stumped on how to set
up the select.

I would like a generic technique (so if your example isn't micro I'm
fine with that) as I can see this applying to so many other reports in
Lab.

Thanks in advance 

David Gibbs 
Lab IS Analyst 
Fraser Health 
cell 604-614-6629


_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to