Skip to content

Commit 26f3d11

Browse files
committed
Fix an issue where "target" was on the excluded list
1 parent 8cedfa7 commit 26f3d11

File tree

2 files changed

+74
-1
lines changed

2 files changed

+74
-1
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<http://hl7.org/fhir/MolecularSequence/example-pgx-1> rdf:type fhir:MolecularSequence .
2+
<http://hl7.org/fhir/MolecularSequence/example-pgx-2> rdf:type fhir:MolecularSequence .
3+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:DomainResource.extension _:b1 .
4+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:DomainResource.text _:b2 .
5+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:Observation.code _:b3 .
6+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:Observation.derivedFrom _:b4 .
7+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:Observation.derivedFrom _:b5 .
8+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:Observation.issued _:b6 .
9+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:Observation.specimen _:b7 .
10+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:Observation.status _:b8 .
11+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:Observation.subject _:b9 .
12+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:Observation.valueCodeableConcept _:b10 .
13+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:Resource.id _:b11 .
14+
<http://hl7.org/fhir/Observation/example-haplotype1> fhir:nodeRole fhir:treeRoot .
15+
<http://hl7.org/fhir/Observation/example-haplotype1> rdf:type fhir:Observation .
16+
<http://hl7.org/fhir/Observation/example-haplotype1.ttl> rdf:type owl:Ontology .
17+
<http://hl7.org/fhir/Observation/example-haplotype1.ttl> owl:imports fhir:fhir.ttl .
18+
<http://hl7.org/fhir/Observation/example-haplotype1.ttl> owl:versionIRI <http://build.fhir.org/Observation/example-haplotype1.ttl> .
19+
<http://hl7.org/fhir/Patient/727127> rdf:type fhir:Patient .
20+
<http://hl7.org/fhir/Specimen/genetics-example1-somatic> rdf:type fhir:Specimen .
21+
_:b11 fhir:value "example-haplotype1" .
22+
_:b2 fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example-haplotype1</p><p><b>status</b>: unknown</p><p><b>code</b>: Genetic analysis master panel-- This is the parent OBR for the panel holding all of the associated observations that can be reported with a molecular genetics analysis result. <span>(Details : {LOINC code '55233-1' = 'Genetic analysis master panel - Blood or Tissue by Molecular genetics method', given as 'Genetic analysis master panel-- This is the parent OBR for the panel holding all of the associated observations that can be reported with a molecular genetics analysis result.'})</span></p><p><b>subject</b>: <a>J*********** C***********</a></p><p><b>issued</b>: Apr 3, 2013 3:30:10 PM</p><p><b>value</b>: *35B <span>(Details : {http://pharmakb.org code 'PA165971587' = 'PA165971587', given as '*35B'})</span></p><p><b>specimen</b>: <a>Molecular Specimen ID: MLD45-Z4-1234</a></p><p><b>derivedFrom</b>: </p><ul><li><a>MolecularSequence/example-pgx-1</a></li><li><a>MolecularSequence/example-pgx-2</a></li></ul></div>" .
23+
_:b2 fhir:Narrative.status _:b12 .
24+
_:b12 fhir:value "generated" .
25+
_:b1 fhir:Extension.url _:b13 .
26+
_:b1 fhir:Extension.valueCodeableConcept _:b14 .
27+
_:b1 fhir:index "0"^^xsd:integer .
28+
_:b13 fhir:value "http://hl7.org/fhir/StructureDefinition/observation-geneticsGene" .
29+
_:b14 fhir:CodeableConcept.coding _:b15 .
30+
_:b15 fhir:Coding.code _:b16 .
31+
_:b15 fhir:Coding.display _:b17 .
32+
_:b15 fhir:Coding.system _:b18 .
33+
_:b15 fhir:index "0"^^xsd:integer .
34+
_:b18 fhir:value "http://www.genenames.org" .
35+
_:b16 fhir:value "2625" .
36+
_:b17 fhir:value "CYP2D6" .
37+
_:b8 fhir:value "unknown" .
38+
_:b3 fhir:CodeableConcept.coding _:b19 .
39+
_:b19 fhir:Coding.code _:b20 .
40+
_:b19 fhir:Coding.display _:b21 .
41+
_:b19 fhir:Coding.system _:b22 .
42+
_:b19 fhir:index "0"^^xsd:integer .
43+
_:b19 rdf:type loinc:55233-1 .
44+
_:b22 fhir:value "http://loinc.org" .
45+
_:b20 fhir:value "55233-1" .
46+
_:b21 fhir:value "Genetic analysis master panel-- This is the parent OBR for the panel holding all of the associated observations that can be reported with a molecular genetics analysis result." .
47+
_:b9 fhir:Reference.display _:b23 .
48+
_:b9 fhir:Reference.reference _:b24 .
49+
_:b9 fhir:link <http://hl7.org/fhir/Patient/727127> .
50+
_:b24 fhir:value "Patient/727127" .
51+
_:b23 fhir:value "J*********** C***********" .
52+
_:b6 fhir:value "2013-04-03T15:30:10+01:00"^^xsd:dateTime .
53+
_:b10 fhir:CodeableConcept.coding _:b25 .
54+
_:b25 fhir:Coding.code _:b26 .
55+
_:b25 fhir:Coding.display _:b27 .
56+
_:b25 fhir:Coding.system _:b28 .
57+
_:b25 fhir:index "0"^^xsd:integer .
58+
_:b28 fhir:value "http://pharmakb.org" .
59+
_:b26 fhir:value "PA165971587" .
60+
_:b27 fhir:value "*35B" .
61+
_:b7 fhir:Reference.display _:b29 .
62+
_:b7 fhir:Reference.reference _:b30 .
63+
_:b7 fhir:link <http://hl7.org/fhir/Specimen/genetics-example1-somatic> .
64+
_:b30 fhir:value "Specimen/genetics-example1-somatic" .
65+
_:b29 fhir:value "Molecular Specimen ID: MLD45-Z4-1234" .
66+
_:b4 fhir:Reference.reference _:b31 .
67+
_:b4 fhir:index "0"^^xsd:integer .
68+
_:b4 fhir:link <http://hl7.org/fhir/MolecularSequence/example-pgx-1> .
69+
_:b31 fhir:value "MolecularSequence/example-pgx-1" .
70+
_:b5 fhir:Reference.reference _:b32 .
71+
_:b5 fhir:index "1"^^xsd:integer .
72+
_:b5 fhir:link <http://hl7.org/fhir/MolecularSequence/example-pgx-2> .
73+
_:b32 fhir:value "MolecularSequence/example-pgx-2" .

tests/test_utils/test_n3_mapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class N3MapperUnitTest(unittest.TestCase):
1010
def test_basics(self):
1111
source_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'source')
12-
target_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'target')
12+
target_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'object')
1313
new_files = False
1414

1515
os.makedirs(target_dir, exist_ok=True)

0 commit comments

Comments
 (0)