My IPeople

Community discussion for IPeople products and services
Welcome to My IPeople Sign in | Help
in
Home Blogs Forums

string extractions used in select criteria

Last post 09-27-2006, 10:17 AM by Anonymous. 2 replies.
Sort Posts: Previous Next
  •  09-25-2006, 1:26 PM 292

    • KimberlyC is not online. Last active: 09-29-2009, 5:01 PM KimberlyC
    • Top 75 Contributor
    • Joined on 08-16-2006
    • Samaritan Health Services Albany Oregon
    • Posts 1

    string extractions used in select criteria

    is it possible to use string extractions on a select criteria.

    I want to be able to enter a varied number of characters in a select criteria to pull specific insurance policy numbers.

    For instance, I'd like to pull all patients that have insurance policy numbers that start with "TGT". Then I'd like to run report again and second time pull all patients that have insurance policy numbers that start with the letter "R" etc.

    I know how to write the string extactions or operators but I dont'  know to setup using a select criteria so the report can be used for different or variable strings.

    thank you

  •  09-25-2006, 2:18 PM 293 in reply to 292

    RE: string extractions used in select criteria

    Yes, it is possible.  I know of two possibilities:

     

    1. You might try the operator, CO, (rather than EQ, IG, etc.).  This will find the string entered but I think it is not restricted to looking at only the beginning of the field.

    Example policy.number  CO  Enter String:

     

    1. To restrict the search to only the beginning of the field:
      1. define a field xx.string  Example:  DAT=FREE,LEN=10,VAL=c.xx.string
      2. define a field xx.select Example:  DAT=FREE, LEN=1,VAL=IF{c.xx.string=(@policy.number$(L(c.xx.string))) “Y”;”N”}
      3. in select add xx.string IG Enter String
      4. in select add xx.select EQ “Y”

     

    Give this a try and let me know if I made any “typos”.

     

    Thanks.

     

    Kay Calvert
    Interface People, LP
    www.interfacepeople.com
    214-222-1125 x218


    From: meditech@myipeople.com [mailto:meditech@myipeople.com] On Behalf Of KimberlyC
    Sent: Monday, September 25, 2006 1:27 PM
    To: Kay Calvert
    Subject: [MEDITECH Report Writer] string extractions used in select criteria

     

    is it possible to use string extractions on a select criteria.

    I want to be able to enter a varied number of characters in a select criteria to pull specific insurance policy numbers.

    For instance, I'd like to pull all patients that have insurance policy numbers that start with "TGT". Then I'd like to run report again and second time pull all patients that have insurance policy numbers that start with the letter "R" etc.

    I know how to write the string extactions or operators but I dont'  know to setup using a select criteria so the report can be used for different or variable strings.

    thank you




    Click reply to respond directly to the list. Unsubscribe at http://myipeople.com/forums/ForumSubscriptions.aspx

  •  09-27-2006, 10:17 AM 294 in reply to 293

    Re: RE: string extractions used in select criteria

    Kay, the idea and syntax worked quite well. I ended up creating the select calculated field xx.string = IG with the LEN=10 and VAL=""

    then I used a LC instead of the calculated field and entered LC=c.xx.string=(@ins.policy.number$(L(c.xx.string))) on the Detail line. creating the xx.select field to control the policy numbers took a really long time to compile. when I replaced the calculated field with the LINE CHECK option, it ran much faster.

     Thanks

     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems