RE: [EXTERNAL] [mdws] How to get listing of open orders from MDWS?

All, getImagingOrders will be implemented in a MDWS future release. As of date the only way to retrieve the orders are via the DDRLister service. Rick Ross Lead MDWS Developer From: Apache [mailto:apache@groups.osehra.org] On Behalf Of frankfont Sent: Tuesday, March 04, 2014 9:41 AM To: MDWS Subject: [EXTERNAL] [mdws] How to get listing of open orders from MDWS? I'm just getting started with MDWS, looking at some code that was put together a few years ago to read open orders from the DDRLister service in MDWS. Someone told me that is not advisable. Is there a better way to get open imaging orders? (E.g., CT, MRI etc)? Thanks in advance for any tips! Promote content Email this post to members of all groups: No -- Full post: http://www.osehra.org/content/how-get-listing-open-orders-mdws Manage my subscriptions: http://www.osehra.org/og_mailinglist/subscriptions Stop emails for this post: http://www.osehra.org/og_mailinglist/unsubscribe/3677
like0

Comments

Timing and why not DDRLister?

frank font's picture

Thanks for the quick reply.  Any idea on when the new MDWS feature will be available?  Also, any insight on why I am being warned away from usng DDRLister in the meantime?

 

like0

RE: [EXTERNAL] [mdws] How to get listing of open orders from MDW

Rick Ross's picture

At this time, I have no date when the MDWS new features will be available. The RPC are being set up on the VistA network now and that process and how long it takes is out of my control.

Not sure what you mean that you are being warned not to use the DDRLister. Who is telling you that? The DDRLister is a legitimate RPC and it works.

Rick

From: Apache [mailto:apache@groups.osehra.org] On Behalf Of frankfont
Sent: Wednesday, March 05, 2014 12:03 AM
To: MDWS
Subject: Re: [mdws] RE: [EXTERNAL] [mdws] How to get listing of open orders from MDWS?

Thanks for the quick reply. Any idea on when the new MDWS feature will be available? Also, any insight on why I am being warned away from usng DDRLister in the meantime?

--
Full post: http://www.osehra.org/content/re-external-mdws-how-get-listing-open-orde...
Manage my subscriptions: http://www.osehra.org/og_mailinglist/subscriptions
Stop emails for this post: http://www.osehra.org/og_mailinglist/unsubscribe/3679

like0

ddrlister etc

frank font's picture

Sorry, I don't remember why I was warned away from the ddrlister and dont have anything about it in my notes.  Where can I find more information about the ddrlister?  Here are some basic questions, perhaps you can point me to some existing documentation that would answer them? 

For example, I'm looking at some existing client code that has this...

<code>

        $MDWSResponse = $queryClient->ddrLister(array(

            'file'=>'75.1', 
            'iens'=>'',
            'fields'=>'.01I;21;16;2;6;4;3;5;20;1.1;22;14;26;.01;19I', 
            'flags'=>'P',
            'maxrex'=>'', 
            'from'=>'',
            'part'=>'',
            'xref'=>'#',
            'screen'=>'',
            'identifier'=>''
            ));
</code>
 
The code returns data, but I don't have documentation on what the allowed content for each of the above items would be and a mapping legend for what fields each of the delimited entries (e.g., .01I, 21, 16, etc) translate into.
 
Would be great if I had a way of knowing what my filtering options are and if there is a "key field" value I can save and pass in later to return the same "row" of data.
 
Thanks in advance for any insight.

Sincerely,
Frank Font
like0

RE: [EXTERNAL] [mdws] How to get listing of open orders from MDW

Joel Mewton's picture

Howdy Frank,

You were probably steered away because canned RPCs are usually much, much
easier to use. If they exist, of course. There are lots of business rules
and security already in place with those. You're on your own with DDR
LISTER, so to speak.

You don't need the "I" modifier on your fields if you change your flags to
"IP".

DDR LISTER is invoking LIST^DIC under the hood. You can find some good
technical info on the HardHats site:
http://www.hardhats.org/fileman/pm/db_dic_l.htm

The OSEHRA Data Dictionary is a great tool for exploring the schema of
Vista. Just find the link for file 75.1 and you should see lots of
documentation about your Vista file:
http://code.osehra.org/dox/filemanfiles.html

One last thing - if you want just a single record, I'd recommend using DDR
GETS ENTRY instead of DDR LISTER. You *can* fetch one record with DDR
LISTER but you have to massage the IEN a bit for the FROM argument so that
LIST^DIC returns the correct record. DDR GETS ENTRY takes the IEN of the
record you want. DDR GETS ENTRY invokes GETS^DIQ, btw:
http://www.hardhats.org/fileman/pm/db_diqgs.htm

Buen suerte!

On Thu, Mar 6, 2014 at 9:04 PM, frankfont <mrfont@room4me.com> wrote:

> Sorry, I don't remember why I was warned away from the ddrlister and dont
> have anything about it in my notes. Where can I find more information
> about the ddrlister? Here are some basic questions, perhaps you can point
> me to some existing documentation that would answer them?
>
> For example, I'm looking at some existing client code that has this...
>
> <code>
>
> $MDWSResponse = $queryClient->ddrLister(array(
> 'file'=>'75.1',
> 'iens'=>'',
> 'fields'=>'.01I;21;16;2;6;4;3;5;20;1.1;22;14;26;.01;19I',
> 'flags'=>'P',
> 'maxrex'=>'',
> 'from'=>'',
> 'part'=>'',
> 'xref'=>'#',
> 'screen'=>'',
> 'identifier'=>''
> ));
> </code>
>
> The code returns data, but I don't have documentation on what the allowed
> content for each of the above items would be and a mapping legend for what
> fields each of the delimited entries (e.g., .01I, 21, 16, etc) translate
> into.
>
> Would be great if I had a way of knowing what my filtering options are and
> if there is a "key field" value I can save and pass in later to return the
> same "row" of data.
>
> Thanks in advance for any insight.
> Sincerely,
> Frank Font
> --
> Full post:
> http://www.osehra.org/content/re-external-mdws-how-get-listing-open-orde...
> Manage my subscriptions:
> http://www.osehra.org/og_mailinglist/subscriptions
> Stop emails for this post:
> http://www.osehra.org/og_mailinglist/unsubscribe/3679
>

--

Joel Mewton
Senior Software Engineer
VistA Whisperer
m. 989.370.4929
[image: Bitscopic Inc] <http://bitscopic.com>

--
This transmission is intended only for the use of the individual or entity
to which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, or the employee or agent
responsible for delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by telephone or email
and destroy the original communication.

like0