Changeset 1534
- Timestamp:
- Sep 26, 2012, 3:56:51 AM (12 years ago)
- Location:
- smart/trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
smart/trunk/p/C0SMART.m
r1526 r1534 42 42 S C0SCTRL("patient")="D PATIENT^C0SDEM(.C0SGR,.C0SARY)" 43 43 S C0SCTRL("lab")="D LAB^C0SLAB(.C0SGR,.C0SARY)" 44 S C0SCTRL("problem")="D PROB^C0SPROB (.C0SGR,.C0SARY)"44 S C0SCTRL("problem")="D PROB^C0SPROB2(.C0SGR,.C0SARY)" 45 45 ; 46 46 I '$D(C0SCTRL(ZTYP)) W !,ZTYP," ","Not Supported" Q ; -
smart/trunk/p/C0SPROB2.m
r1526 r1534 256 256 S GRTN="" ; default to no problems 257 257 N C0SGRF 258 S C0SGRF=" /vista/smart/"_ZPATID_"/problems"258 S C0SGRF="vistaSmart:"_ZPATID_"/problems" 259 259 I $D(DEBUG) W !,"Processing ",C0SGRF 260 260 D DELGRAPH^C0XF2N(C0SGRF) ; delete the old graph … … 319 319 . S ZR("rdf:type")="sp:Code" 320 320 . S ZR("sp:system")="http://purl.bioontology.org/ontology/SNOMEDCT" 321 . I ZR("sp:system")["icd9" S ZR("sp:system")="http://purl.bioontology.org/ontology/ICD9"321 . I SNOGRF["icd9" S ZR("sp:system")="http://purl.bioontology.org/ontology/ICD9" 322 322 . S ZR("dcterms:identifier")=SNOMED 323 323 . S ZR("dcterms:title")=SNOTIT … … 332 332 ; requires the mapping table installed in the triplestore 333 333 ; 334 N ZSN,ZARY,ZSUB 335 S ZSUB=$$subject^C0XGET1(,ZICD) ; subject of the ICD9 code 334 N ZSN,ZARY,ZSUB,ZSUBS 335 I $E(ZICD,$L(ZICD))="." S ZICD=$P(ZICD,".",1) ; handle trailing dots 336 D subjects^C0XGET1(.ZSUBS,"cg:ontology#code",ZICD) ; subjects with the ICD9 code 337 S ZSUB=$O(ZSUBS("")) ; pick the first one 338 I ZSUB="" Q "" 336 339 D objects^C0XGET1(.ZARY,ZSUB,"cg:ontology#toCode") 337 340 S ZSN=$O(ZARY("")) -
smart/trunk/p/C0STBL.m
r1526 r1534 27 27 S ZI=BEGDFN 28 28 S ZCNT=0 29 F S ZI=$O(^DPT(ZI)) Q:(+ZI= "")!(ZCNT>DFNCNT) D ;29 F S ZI=$O(^DPT(ZI)) Q:(+ZI=0)!(ZCNT>DFNCNT) D ; 30 30 . S ZCNT=ZCNT+1 31 31 . W ZI," " … … 44 44 . ;K G 45 45 . D EN^C0SMART(.G,ZI,"problem") 46 . I $D(G) W !,$$output^C0XGET1("G")46 . ;I $D(G) W !,$$output^C0XGET1("G") 47 47 Q 48 48 ;
Note:
See TracChangeset
for help on using the changeset viewer.