-
Notifications
You must be signed in to change notification settings - Fork 2
/
cancerreport.ofn
43 lines (35 loc) · 2.24 KB
/
cancerreport.ofn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Prefix(owl:=<http://www.w3.org/2002/07/owl#>)
Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>)
Prefix(xml:=<http://www.w3.org/XML/1998/namespace>)
Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>)
Prefix(fhir:=<http://hl7.org/fhir/>)
Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>)
Prefix(sct:=<http://snomed.info/id/>)
Prefix(sctm:=<http://snomed.info/sct/subset/>)
Prefix(dc:=<http://purl.org/dc/elements/1.1/>)
Prefix(:=<http://example.org/yosemite/>)
Ontology(<https://raw.githubusercontent.com/yosemiteproject/Tutorial-FHIR-RDF-as-a-Bridge/master/cancerreport.ofn>
######################## Imports ###########################
# To avoid version mismatches and 404s, we are using previously downloaded
# snapshots of imported files, instead of downloading the latest.
# Use a saved snapshot instead of downloading from the web:
# Import(<http://snomed.info/sct/900000000000207008cancer_subset>)
Import(<https://raw.githubusercontent.com/yosemiteproject/Tutorial-FHIR-RDF-as-a-Bridge/master/snomed_cancer_subset.ttl>)
# Use a saved snapshot instead of downloading from the web:
# Import(<http://hl7.org/fhir/fhir.ttl>)
Import(<https://raw.githubusercontent.com/yosemiteproject/Tutorial-FHIR-RDF-as-a-Bridge/master/fhir.ttl>)
# Use a saved snapshot instead of downloading from the web:
# Import(<http://hl7.org/fhir/DiagnosticReport/f201.ttl>)
Import(<https://raw.githubusercontent.com/yosemiteproject/Tutorial-FHIR-RDF-as-a-Bridge/master/diagnosticreport-example-f201-brainct.ttl>)
######################## Target Diagnosis ###########################
# Classifier Example -- DiagnosticReports have the codes for malignant neoplastic disease
# Property chain for the actual coding
Declaration(ObjectProperty(fhir:DiagnosticReport.conclusionCode.coding))
SubObjectPropertyOf(
ObjectPropertyChain(fhir:DiagnosticReport.conclusionCode fhir:CodeableConcept.coding) fhir:DiagnosticReport.conclusionCode.coding)
# Class declaration
Declaration(Class(:ReportWithCancerDiagnosis))
AnnotationAssertion(dc:title :ReportWithCancerDiagnosis
"The set of diagnoses that are instances of malignant neoplastic disease (sct:363346000)")
EquivalentClasses(:ReportWithCancerDiagnosis ObjectSomeValuesFrom(fhir:DiagnosticReport.conclusionCode.coding sct:363346000))
)