source: ccr/trunk/p/CCRUNIT.m@ 258

Last change on this file since 258 was 175, checked in by Sam Habiel, 16 years ago

Refactored CCRDPT and updated GPLACTOR accordingly

File size: 769 bytes
Line 
1CCRUNIT ; A routine that tests some crap
2 ;;0.1;CCDCCR;;JUL 13, 2007;Build 0
3 Q
4 ;
5MEDS
6 N DEBUG S DEBUG=0
7 N DFN S DFN=1
8 K ^TMP($J)
9 W "Loading CCR Template into T using LOAD^GPLCCR0($NA(^TMP($J,""CCR"")))",!!
10 N T S T=$NA(^TMP($J,"CCR")) D LOAD^GPLCCR0(T)
11 N XPATH S XPATH="//ContinuityOfCareRecord/Body/Medications"
12 W "XPATH is: "_XPATH,!
13 W "Getting Med Template into MINXML using",!
14 W "QUERY^GPLXPATH(T,XPATH,""MINXML"")",!!
15 D QUERY^GPLXPATH(T,XPATH,"MINXML")
16 W "Executing EXTRACT^CCRMEDS(MINXML,DFN,OUTXML)",!
17 W "OUTXML will be ^TMP($J,""OUT"")",!
18 N OUTXML S OUTXML=$NA(^TMP($J,"OUT"))
19 D EXTRACT^CCRMEDS($NA(MINXML),DFN,OUTXML)
20 Q
Note: See TracBrowser for help on using the repository browser.