source: smart/trunk/p/C0SMART.m@ 1534

Last change on this file since 1534 was 1534, checked in by George Lilly, 12 years ago

fixes for snomed lookup

File size: 1.8 KB
Line 
1C0SMART ; GPL - Smart Container Entry Points;2/22/12 17:05
2 ;;0.1;C0S;nopatch;noreleasedate;Build 2
3 ;Copyright 2012 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
21EN(ZRTN,ZPATID,ZTYP,ZFORM,DEBUG) ; return a Smart RDF file section ZTYP
22 ; for patient ZPATID; ZFORM defaults to rdf
23 ; ZRTN is passed by reference
24 ; For now, ZPATID is the DFN
25 ;
26 I '$D(ZFORM) S ZFORM="rdf"
27 K ZRTN ; CLEAN RETURN
28 N C0SARY
29 I ZTYP="patient" D EN^C0SNHIN(.C0SARY,ZPATID,"patient")
30 E D EN^C0SNHIN(.C0SARY,ZPATID,"patient;"_ZTYP)
31 I $G(C0SARY("patient",1,"id@value"))'=ZPATID D Q ;
32 . W !,"Error Retreiving Patient Record"
33 ;
34 K C0XFDA
35 ;
36 N C0SGR ; graph
37 ;
38 ; processing table
39 ;
40 N C0SCTRL
41 S C0SCTRL("med")="D MED^C0SMED(.C0SGR,.C0SARY)"
42 S C0SCTRL("patient")="D PATIENT^C0SDEM(.C0SGR,.C0SARY)"
43 S C0SCTRL("lab")="D LAB^C0SLAB(.C0SGR,.C0SARY)"
44 S C0SCTRL("problem")="D PROB^C0SPROB2(.C0SGR,.C0SARY)"
45 ;
46 I '$D(C0SCTRL(ZTYP)) W !,ZTYP," ","Not Supported" Q ;
47 N ZX
48 S ZX=C0SCTRL(ZTYP)
49 X ZX ;
50 ;
51 I '$D(C0SGR) Q ;
52 ;
53 D getGraph^C0XGET1(.ZRTN,C0SGR,ZFORM)
54 ;
55 Q
56 ;
Note: See TracBrowser for help on using the repository browser.