Changeset 1534 for smart/trunk/p/C0SPROB2.m
- Timestamp:
- Sep 26, 2012, 3:56:51 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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(""))
Note:
See TracChangeset
for help on using the changeset viewer.