-
Notifications
You must be signed in to change notification settings - Fork 2
/
patientreport.ofn
39 lines (31 loc) · 1.75 KB
/
patientreport.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
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/patientreport.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://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 Reports ###########################
Declaration(ObjectProperty(fhir:DiagnosticReport.subject.link))
SubObjectPropertyOf(
ObjectPropertyChain(fhir:DiagnosticReport.subject fhir:link) fhir:DiagnosticReport.subject.link)
# Class declaration
Declaration(Class(:PatientReport))
AnnotationAssertion(dc:title :PatientReport
"DiagnosticReports whose subjects are patients")
EquivalentClasses(:PatientReport
ObjectSomeValuesFrom(fhir:DiagnosticReport.subject.link fhir:Patient))
)