@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/RiskAssessment/cardiac> a fhir:RiskAssessment ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "cardiac"] ; # 
  fhir:text [
     fhir:status [ fhir:v "additional" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <table>\n        <tr>\n          <td colspan=\"2\">\n            <h1>Information about your risk score:</h1>\n          </td>\n        </tr>\n        <tr>\n          <td>\n            <strong>Age:</strong>\n          </td>\n          <td>39</td>\n        </tr>\n        <tr>\n          <td>\n            <strong>Gender:</strong>\n          </td>\n          <td>male</td>\n        </tr>\n        <tr>\n          <td>\n            <strong>Total Cholesterol:</strong>\n          </td>\n          <td>244 mg/dL</td>\n        </tr>\n        <tr>\n          <td>\n            <strong>HDL Cholesterol:</strong>\n          </td>\n          <td>50 mg/dL\n          </td>\n        </tr>\n        <tr>\n          <td>\n            <strong>Smoker:</strong>\n          </td>\n          <td>No</td>\n        </tr>\n        <tr>\n          <td>\n            <strong>Systolic Blood Pressure:</strong>\n          </td>\n          <td>107 mm/Hg</td>\n        </tr>\n        <tr>\n          <td>\n            <strong>On medication for HBP:</strong>\n          </td>\n          <td>No</td>\n        </tr>\n        <tr>\n          <td valign=\"top\">\n            <b>Risk Score*</b>\n          </td>\n          <td>2%<br/>Means 2 of 100 people with this level of risk will have a heart attack in the next 10 years.</td>\n        </tr>\n        <tr>\n          <td colspan=\"2\">* Your risk score was calculated using an equation.  Other NCEP products, such as printed ATP III materials, use a point system to determine a risk score that is close to the equation score.</td>\n        </tr>\n        <tr>\n          <td colspan=\"2\">To find out what your risk score means and how to lower your risk for a heart attack, go to<br/>\n            <a href=\"http://www.nhlbi.nih.gov/health/public/heart/chol/hbc_what.htm\">\"High Blood Cholesterol—What You Need to Know\"</a>.<br/>\n            <a href=\"http://www.nhlbi.nih.gov/health/public/heart/chol/chol_tlc.htm\">Your Guide to Lowering Cholesterol with Therapeutic Lifestyle Changes (TLC)</a><br/>\n            <a href=\"http://www.nhlbi.nih.gov/health/public/heart/other/hhw/index.htm\">The Healthy Heart Handbook for Women</a>\n          </td>\n        </tr>\n      </table>\n    </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [
       fhir:v "http://example.org"^^xsd:anyURI ;
       fhir:l <http://example.org>
     ] ;
     fhir:value [ fhir:v "risk-assessment-cardiac" ]
  ] ) ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/pat2> ;
     fhir:reference [ fhir:v "Patient/pat2" ]
  ] ; # 
  fhir:encounter [
     fhir:l <http://hl7.org/fhir/Encounter/example> ;
     fhir:reference [ fhir:v "Encounter/example" ]
  ] ; # 
  fhir:occurrence [
     a fhir:DateTime ;
     fhir:v "2014-07-19T16:04:00Z"^^xsd:dateTime
  ] ; # 
  fhir:performer [
     fhir:display [ fhir:v "http://cvdrisk.nhlbi.nih.gov/#cholesterol" ]
  ] ; # 
  fhir:basis ( [
     fhir:l <http://hl7.org/fhir/Patient/pat2> ;
     fhir:reference [ fhir:v "Patient/pat2" ]
  ] [
     fhir:l <http://hl7.org/fhir/DiagnosticReport/lipids> ;
     fhir:reference [ fhir:v "DiagnosticReport/lipids" ]
  ] [
     fhir:l <http://hl7.org/fhir/Observation/blood-pressure> ;
     fhir:reference [ fhir:v "Observation/blood-pressure" ]
  ] ) ; # 
  fhir:prediction ( [
     fhir:outcome [
       fhir:text [ fhir:v "Heart Attack" ]
     ] ;
     fhir:probability [
       a fhir:Quantity ;
       fhir:value [ fhir:v 0.02 ] ;
       fhir:unit [ fhir:v "%" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "%" ]
     ] ;
     fhir:when [
       a fhir:Range ;
       fhir:low [
         fhir:value [ fhir:v "39"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "years" ] ;
         fhir:system [
           fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
           fhir:l <http://unitsofmeasure.org>
         ] ;
         fhir:code [ fhir:v "a" ]
       ] ;
       fhir:high [
         fhir:value [ fhir:v "49"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "years" ] ;
         fhir:system [
           fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
           fhir:l <http://unitsofmeasure.org>
         ] ;
         fhir:code [ fhir:v "a" ]
       ]
     ]
  ] ) . # 

<http://hl7.org/fhir/Patient/pat2> a fhir:Patient .

<http://hl7.org/fhir/Encounter/example> a fhir:Encounter .

<http://hl7.org/fhir/DiagnosticReport/lipids> a fhir:DiagnosticReport .

<http://hl7.org/fhir/Observation/blood-pressure> a fhir:Observation .

# -------------------------------------------------------------------------------------

