source: ePrescribing/trunk/p/C0PEWD2.m@ 979

Last change on this file since 979 was 514, checked in by George Lilly, 15 years ago

web service test routines

File size: 2.0 KB
RevLine 
[514]1C0PEWD2 ; CCDCCR/GPL - ePrescription utilities; 4/24/09
2 ;;0.1;CCDCCR;nopatch;noreleasedate
3 ;Copyright 2009 George Lilly. Licensed under the terms of the GNU
4 ;General Public License See attached copy of the License.
5 ;
6 ;This program is free software; you can redistribute it and/or modify
7 ;it under the terms of the GNU General Public License as published by
8 ;the Free Software Foundation; either version 2 of the License, or
9 ;(at your option) any later version.
10 ;
11 ;This program is distributed in the hope that it will be useful,
12 ;but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;GNU General Public License for more details.
15 ;
16 ;You should have received a copy of the GNU General Public License along
17 ;with this program; if not, write to the Free Software Foundation, Inc.,
18 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 ;
20 Q
21TEST ;
22 s URL="https://preproduction.newcropaccounts.com/InterfaceV7/NewrxFDB.xml"
23 D GET1URL(URL) ;
24 S URL="http://preproduction.newcropaccounts.com/InterfaceV7/NCScript-RegisterLP.xml"
25 D GET1URL(URL)
26 S URL="http://preproduction.newcropaccounts.com/InterfaceV7/GenTestRenewalFDB.xml"
27 D GET1URL(URL)
28 S URL="http://preproduction.newcropaccounts.com/InterfaceV7/NewrxFDB.xml"
29 D GET1URL(URL)
30 S URL="http://preproduction.newcropaccounts.com/InterfaceV7/NewrxRxNorm.xml"
31 D GET1URL(URL)
32 S URL="http://preproduction.newcropaccounts.com/InterfaceV7/NewrxExternalDrugOpt1.xml"
33 D GET1URL(URL)
34 S URL="http://preproduction.newcropaccounts.com/InterfaceV7/NewrxExternalDrugOpt2.xml"
35 D GET1URL(URL)
36 S URL="http://preproduction.newcropaccounts.com/InterfaceV7/RenewalResponseAccept.xml"
37 D GET1URL(URL)
38 S URL="http://preproduction.newcropaccounts.com/InterfaceV7/RenewalResponseDeny.xml"
39 D GET1URL(URL)
40 Q
41 ;
42GET1URL(URL) ;
43 s ok=$$httpGET^%zewdGTM(URL,.gpl)
44 D INDEX^C0CXPATH("gpl","gpl2")
45 W !,"S URL=""",URL,"""",!
46 S G=""
47 F S G=$O(gpl2(G)) Q:G="" D ;
48 . W " S VDX(""",G,""")=""",gpl2(G),"""",!
49 W !
50 Q
51 ;
Note: See TracBrowser for help on using the repository browser.