@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/uv/testing/TestReport/testreport-example> a fhir:TestReport ;
  fhir:resourceDefinition http://hl7.org/fhir/StructureDefinition/TestReport|0.1.0-SNAPSHOT ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "testreport-example"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: TestReport testreport-example</b></p><a name=\"testreport-example\"> </a><a name=\"hctestreport-example\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Language: en</p></div><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/7.0.1/NamingSystem-uri.html\" title=\"As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt #xD;#xA;#xD;#xA;This oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid: #xD;#xA;#xD;#xA;Note that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.#xD;#xA;#xD;#xA;This OID may also be used in CD.codeSystem.\">Uniform Resource Identifier (URI)</a>/urn:oid:1.3.6.1.4.1.21367.2005.3.7.9878</p><p><b>name</b>: TestReport Example</p><p><b>description</b>: </p><div><p>An example of a TestReport</p>\n</div><p><b>status</b>: Completed</p><p><b>testScript</b>: <a href=\"http://hl7.org/fhir/R5/testscript-example.html\">http://example.com/TestScript/testscript-example</a></p><p><b>result</b>: Pass</p><p><b>score</b>: 100.0</p><p><b>tester</b>: HL7 Execution Engine</p><p><b>issued</b>: 2016-10-07 08:25:34-0500</p><blockquote><p><b>participant</b></p><p><b>type</b>: Test Engine</p><p><b>uri</b>: <a href=\"http://example.org/projectcrucible\">http://example.org/projectcrucible</a></p><p><b>display</b>: Crucible</p></blockquote><blockquote><p><b>participant</b></p><p><b>type</b>: Server</p><p><b>uri</b>: <a href=\"http://example.org/healthintersections\">http://example.org/healthintersections</a></p><p><b>display</b>: HealthIntersections</p></blockquote><blockquote><p><b>setup</b></p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>DELETE Patient</p>\n</div></td><td><a href=\"http://example.org/projectcrucible/permalink/1\">http://example.org/projectcrucible/permalink/1</a></td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>HTTP 204</p>\n</div></td><td>http://example.org/projectcrucible/permalink/1</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>POST Patient/fixture-patient-create</p>\n</div></td><td><a href=\"http://example.org/projectcrucible/permalink/1\">http://example.org/projectcrucible/permalink/1</a></td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>HTTP 201</p>\n</div></td><td>http://example.org/projectcrucible/permalink/1</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>01-ReadPatient</blockquote><p><b>name</b>: Read Patient</p><p><b>description</b>: Read a Patient and validate response.</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>GET Patient/fixture-patient-create</p>\n</div></td><td><a href=\"http://example.org/projectcrucible/permalink/2\">http://example.org/projectcrucible/permalink/2</a></td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>HTTP 200</p>\n</div></td><td>http://example.org/projectcrucible/permalink/2</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>Last-Modified Present</p>\n</div></td><td>http://example.org/projectcrucible/permalink/2</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>Response is Patient</p>\n</div></td><td>http://example.org/projectcrucible/permalink/2</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>Response validates</p>\n</div></td><td>http://example.org/projectcrucible/permalink/2</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>Patient.name.family 'Chalmers'</p>\n</div></td><td>http://example.org/projectcrucible/permalink/2</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>Patient.name.given 'Peter'</p>\n</div></td><td>http://example.org/projectcrucible/permalink/2</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>Patient.name.family 'Chalmers'</p>\n</div></td><td>http://example.org/projectcrucible/permalink/2</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>Patient.name.family 'Chalmers'</p>\n</div></td><td>http://example.org/projectcrucible/permalink/2</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>Patient expected values.</p>\n</div></td><td>http://example.org/projectcrucible/permalink/2</td></tr></table></blockquote></blockquote><blockquote><p><b>teardown</b></p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Result</b></td><td><b>Message</b></td><td><b>Detail</b></td></tr><tr><td style=\"display: none\">*</td><td>Pass</td><td><div><p>DELETE Patient/fixture-patient-create.</p>\n</div></td><td><a href=\"http://example.org/projectcrucible/permalink/3\">http://example.org/projectcrucible/permalink/3</a></td></tr></table></blockquote></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:1.3.6.1.4.1.21367.2005.3.7.9878" ]
  ] ; # 
  fhir:name [ fhir:v "TestReport Example"] ; # 
  fhir:description [ fhir:v "An example of a TestReport"] ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:testScript [
     fhir:v "http://example.com/TestScript/testscript-example"^^xsd:anyURI ;
     fhir:l <http://example.com/TestScript/testscript-example>
  ] ; # 
  fhir:result [ fhir:v "pass"] ; # 
  fhir:score [ fhir:v 100.0] ; # 
  fhir:tester [ fhir:v "HL7 Execution Engine"] ; # 
  fhir:issued [ fhir:v "2016-10-07T08:25:34-05:00"^^xsd:dateTime] ; # 
  fhir:participant ( [
     fhir:type [ fhir:v "test-engine" ] ;
     fhir:uri [
       fhir:v "http://example.org/projectcrucible"^^xsd:anyURI ;
       fhir:l <http://example.org/projectcrucible>
     ] ;
     fhir:display [ fhir:v "Crucible" ]
  ] [
     fhir:type [ fhir:v "server" ] ;
     fhir:uri [
       fhir:v "http://example.org/healthintersections"^^xsd:anyURI ;
       fhir:l <http://example.org/healthintersections>
     ] ;
     fhir:display [ fhir:v "HealthIntersections" ]
  ] ) ; # 
  fhir:setup [
     fhir:action ( [
       fhir:operation [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "DELETE Patient" ] ;
         fhir:detail [
           fhir:v "http://example.org/projectcrucible/permalink/1"^^xsd:anyURI ;
           fhir:l <http://example.org/projectcrucible/permalink/1>
         ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "HTTP 204" ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/1" ]
       ]
     ] [
       fhir:operation [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "POST Patient/fixture-patient-create" ] ;
         fhir:detail [
           fhir:v "http://example.org/projectcrucible/permalink/1"^^xsd:anyURI ;
           fhir:l <http://example.org/projectcrucible/permalink/1>
         ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "HTTP 201" ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/1" ]
       ]
     ] )
  ] ; # 
  fhir:test ( [
     fhir:id [ fhir:v "01-ReadPatient" ] ;
     fhir:name [ fhir:v "Read Patient" ] ;
     fhir:description [ fhir:v "Read a Patient and validate response." ] ;
     fhir:action ( [
       fhir:operation [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "GET Patient/fixture-patient-create" ] ;
         fhir:detail [
           fhir:v "http://example.org/projectcrucible/permalink/2"^^xsd:anyURI ;
           fhir:l <http://example.org/projectcrucible/permalink/2>
         ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "HTTP 200" ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/2" ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "Last-Modified Present" ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/2" ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "Response is Patient" ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/2" ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "Response validates" ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/2" ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "Patient.name.family 'Chalmers'" ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/2" ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "Patient.name.given 'Peter'" ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/2" ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "Patient.name.family 'Chalmers'" ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/2" ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "Patient.name.family 'Chalmers'" ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/2" ]
       ]
     ] [
       fhir:assert [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "Patient expected values." ] ;
         fhir:detail [ fhir:v "http://example.org/projectcrucible/permalink/2" ]
       ]
     ] )
  ] ) ; # 
  fhir:teardown [
     fhir:action ( [
       fhir:operation [
         fhir:result [ fhir:v "pass" ] ;
         fhir:message [ fhir:v "DELETE Patient/fixture-patient-create." ] ;
         fhir:detail [
           fhir:v "http://example.org/projectcrucible/permalink/3"^^xsd:anyURI ;
           fhir:l <http://example.org/projectcrucible/permalink/3>
         ]
       ]
     ] )
  ] . # 

# -------------------------------------------------------------------------------------

