@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://johnmoehrke.github.io/correction/Condition/ex-corrected> a fhir:Condition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ex-corrected"] ; # 
  fhir:meta [
     fhir:security ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActReason>
       ] ;
       fhir:code [ fhir:v "HTEST" ]
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Condition ex-corrected</b></p><a name=\"ex-corrected\"> </a><a name=\"hcex-corrected\"> </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\"/><p style=\"margin-bottom: 0px\">Security Label: test health data (Details: ActReason code HTEST = 'test health data')</p></div><p><b>identifier</b>: <code>http://example.org/condition-identifiers</code>/condition-diabetes-001</p><p><b>clinicalStatus</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/condition-clinical active}\">Active</span></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 44054006}\">Diabetes mellitus type 2</span></p><p><b>subject</b>: <a href=\"https://example.org/Patient/ex-patient\">https://example.org/Patient/ex-patient</a></p><p><b>onset</b>: 2019-05-20 00:00:00+0000</p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://example.org/condition-identifiers"^^xsd:anyURI ;
       fhir:l <http://example.org/condition-identifiers>
     ] ;
     fhir:value [ fhir:v "condition-diabetes-001" ]
  ] ) ; # 
  fhir:clinicalStatus [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/condition-clinical>
       ] ;
       fhir:code [ fhir:v "active" ]
     ] )
  ] ; # 
  fhir:code [
     fhir:coding ( [
       a sct:44054006 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "44054006" ]
     ] ) ;
     fhir:text [ fhir:v "Diabetes mellitus type 2" ]
  ] ; # 
  fhir:subject [
     fhir:l <https://example.org/Patient/ex-patient> ;
     fhir:reference [ fhir:v "https://example.org/Patient/ex-patient" ]
  ] ; # 
  fhir:onset [
     a fhir:DateTime ;
     fhir:v "2019-05-20T00:00:00Z"^^xsd:dateTime
  ] . # 

# -------------------------------------------------------------------------------------

