@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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 -------------------------------------------------------------------

# A paired Observation uses coded SampledData to annotate each sample in the referenced EKG waveform.

<http://hl7.org/fhir/Observation/ekg-coded-annotations> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ekg-coded-annotations"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>This Observation annotates samples in the EKG waveform referenced by derivedFrom. SampledData code 426783006 indicates sinus rhythm; code 5370000 indicates atrial flutter. The contained ConceptMap maps those SNOMED CT codes to LOINC answer codes.</p>\n    </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:contained ( [
     a fhir:ConceptMap ;
     fhir:id [ fhir:v "ekg-annotation-map" ] ;
     fhir:status [ fhir:v "draft" ] ;
     fhir:experimental [ fhir:v true ] ;
     fhir:group ( [
       fhir:source [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:target [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:element ( [
         fhir:code [ fhir:v "426783006" ] ;
         fhir:display [ fhir:v "ECG: sinus rhythm" ] ;
         fhir:target ( [
           fhir:code [ fhir:v "LA17718-0" ] ;
           fhir:display [ fhir:v "Sinus rhythm" ] ;
           fhir:relationship [ fhir:v "equivalent" ]
         ] )
       ] [
         fhir:code [ fhir:v "5370000" ] ;
         fhir:display [ fhir:v "Atrial flutter" ] ;
         fhir:target ( [
           fhir:code [ fhir:v "LA17085-4" ] ;
           fhir:display [ fhir:v "Atrial flutter" ] ;
           fhir:relationship [ fhir:v "equivalent" ]
         ] )
       ] )
     ] )
  ] ) ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:code [
     a loinc:76281-5 ;
     fhir:coding ( [
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "76281-5" ] ;
       fhir:display [ fhir:v "Type of arrhythmia on EKG" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/f001> ;
     fhir:reference [ fhir:v "Patient/f001" ] ;
     fhir:display [ fhir:v "P. van de Heuvel" ]
  ] ; # 
  fhir:effective [
     a fhir:DateTime ;
     fhir:v "2015-02-19T09:30:35+01:00"^^xsd:dateTime
  ] ; # 
  fhir:performer ( [
     fhir:l <http://hl7.org/fhir/Practitioner/f005> ;
     fhir:reference [ fhir:v "Practitioner/f005" ] ;
     fhir:display [ fhir:v "A. Langeveld" ]
  ] ) ; # 
  fhir:value [
     a fhir:SampledData ;
     fhir:origin [
       fhir:value [ fhir:v "2048"^^xsd:decimal ]
     ] ;
     fhir:interval [ fhir:v "10"^^xsd:decimal ] ;
     fhir:intervalUnit [ fhir:v "ms" ] ;
     fhir:dimensions [ fhir:v "1"^^xsd:positiveInteger ] ;
     fhir:codeMap [
       fhir:v "#ekg-annotation-map"^^xsd:anyURI ;
       fhir:l <#ekg-annotation-map>
     ] ;
     fhir:data [ fhir:v "426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 426783006 5370000 5370000 5370000 5370000 5370000 5370000 5370000 5370000 5370000 426783006 426783006 426783006 426783006 426783006 426783006 426783006" ]
  ] ; # 
  fhir:derivedFrom ( [
     fhir:l <http://hl7.org/fhir/Observation/ekg> ;
     fhir:reference [ fhir:v "Observation/ekg" ] ;
     fhir:display [ fhir:v "EKG waveform" ]
  ] ) . # 

<http://hl7.org/fhir/Patient/f001> a fhir:Patient .

<http://hl7.org/fhir/Practitioner/f005> a fhir:Practitioner .

<http://hl7.org/fhir/Observation/ekg> a fhir:Observation .

# -------------------------------------------------------------------------------------

