@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://resmed.com/fhir/core/Provenance/alertsReviewed> a fhir:Provenance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "alertsReviewed"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://resmed.com/fhir/core/StructureDefinition/patient-alerts-reviewed"^^xsd:anyURI ;
       fhir:link <http://resmed.com/fhir/core/StructureDefinition/patient-alerts-reviewed>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Provenance</b><a name=\"alertsReviewed\"> </a></p><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\">Resource Provenance &quot;alertsReviewed&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-patient-alerts-reviewed.html\">Patient Alerts Reviewed Provenance</a></p></div><p><b>target</b>: <a href=\"Patient-patient-ECN1234.html\">Patient/patient-ECN1234</a></p><p><b>recorded</b>: Jan 1, 2021, 9:34:00 AM</p><p><b>location</b>: <a href=\"Location-airview-location-example.html\">Location/airview-location-example</a> &quot;Sleepy Location&quot;</p><p><b>reason</b>: coordination of care <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-ActReason.html\">ActReason</a>#COC)</span></p><p><b>activity</b>: Marked As Read <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-resmed-provenance-activity-type-code-system.html\">ResMed Provenance activity type CodeSystem</a>#REVIEWED)</span></p><h3>Agents</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Role</b></td><td><b>Who</b></td></tr><tr><td style=\"display: none\">*</td><td>performer <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-ParticipationType.html\">ParticipationType</a>#PRF)</span></td><td>healthcare provider <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-RoleClass.html\">RoleClass</a>#PROV)</span></td><td><a href=\"Practitioner-practitioner-airview-user.html\">Practitioner/practitioner-airview-user</a></td></tr></table><blockquote><p><b>entity</b></p><p><b>role</b>: source</p><p><b>what</b>: <a name=\"containedAHIAlert\"> </a></p><blockquote><p/><p><a name=\"containedAHIAlert\"> </a></p><p><b>identifier</b>: id: DetectedIssue/patient-ECN1234/TherapyNotification_AHI</p><p><b>status</b>: preliminary</p><p><b>code</b>: TherapyNotification_AHI <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-resmed-detected-issue-code-code-system.html\">ResMed DetectedIssue code CodeSystem</a>#TherapyNotification_AHI)</span></p><p><b>detail</b>: {&quot;Leak&quot;: 1234}</p></blockquote></blockquote><blockquote><p><b>entity</b></p><p><b>role</b>: source</p><p><b>what</b>: <a name=\"containedUsageAlert\"> </a></p><blockquote><p/><p><a name=\"containedUsageAlert\"> </a></p><p><b>identifier</b>: id: DetectedIssue/patient-ECN1234/Usage</p><p><b>status</b>: preliminary</p><p><b>code</b>: Usage <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-resmed-detected-issue-code-code-system.html\">ResMed DetectedIssue code CodeSystem</a>#Usage)</span></p><p><b>detail</b>: {&quot;Usage&quot;: 4567}</p></blockquote></blockquote><hr/><blockquote><p><b>Generated Narrative: DetectedIssue #containedAHIAlert</b><a name=\"containedAHIAlert\"> </a></p><p><b>identifier</b>: id: DetectedIssue/patient-ECN1234/TherapyNotification_AHI</p><p><b>status</b>: preliminary</p><p><b>code</b>: TherapyNotification_AHI <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-resmed-detected-issue-code-code-system.html\">ResMed DetectedIssue code CodeSystem</a>#TherapyNotification_AHI)</span></p><p><b>detail</b>: {&quot;Leak&quot;: 1234}</p></blockquote><hr/><blockquote><p><b>Generated Narrative: DetectedIssue #containedUsageAlert</b><a name=\"containedUsageAlert\"> </a></p><p><b>identifier</b>: id: DetectedIssue/patient-ECN1234/Usage</p><p><b>status</b>: preliminary</p><p><b>code</b>: Usage <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-resmed-detected-issue-code-code-system.html\">ResMed DetectedIssue code CodeSystem</a>#Usage)</span></p><p><b>detail</b>: {&quot;Usage&quot;: 4567}</p></blockquote></div>"
  ] ; # 
  fhir:contained ( [
     a fhir:DetectedIssue ;
     fhir:id [ fhir:v "containedAHIAlert" ] ;
     fhir:meta [
       fhir:profile ( [
         fhir:v "http://resmed.com/fhir/core/StructureDefinition/contained-detected-issue"^^xsd:anyURI ;
         fhir:link <http://resmed.com/fhir/core/StructureDefinition/contained-detected-issue>
       ] )
     ] ;
     fhir:identifier ( [
       fhir:value [ fhir:v "DetectedIssue/patient-ECN1234/TherapyNotification_AHI" ]
     ] ) ;
     fhir:status [ fhir:v "preliminary" ] ;
     fhir:code [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/detectedissue-category"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "TherapyNotification_AHI" ]
       ] )
     ] ;
     fhir:detail [ fhir:v "{\"Leak\": 1234}" ]
  ] [
     a fhir:DetectedIssue ;
     fhir:id [ fhir:v "containedUsageAlert" ] ;
     fhir:meta [
       fhir:profile ( [
         fhir:v "http://resmed.com/fhir/core/StructureDefinition/contained-detected-issue"^^xsd:anyURI ;
         fhir:link <http://resmed.com/fhir/core/StructureDefinition/contained-detected-issue>
       ] )
     ] ;
     fhir:identifier ( [
       fhir:value [ fhir:v "DetectedIssue/patient-ECN1234/Usage" ]
     ] ) ;
     fhir:status [ fhir:v "preliminary" ] ;
     fhir:code [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/detectedissue-category"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "Usage" ]
       ] )
     ] ;
     fhir:detail [ fhir:v "{\"Usage\": 4567}" ]
  ] ) ; # 
  fhir:target ( [
     fhir:link <http://resmed.com/fhir/core/Patient/patient-ECN1234> ;
     fhir:reference [ fhir:v "Patient/patient-ECN1234" ]
  ] ) ; # 
  fhir:recorded [ fhir:v "2021-01-01T09:34:00Z"^^xsd:dateTime] ; # 
  fhir:location [
     fhir:link <http://resmed.com/fhir/core/Location/airview-location-example> ;
     fhir:reference [ fhir:v "Location/airview-location-example" ]
  ] ; # 
  fhir:reason ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "COC" ]
     ] )
  ] ) ; # 
  fhir:activity [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/provenance-activity-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "REVIEWED" ]
     ] )
  ] ; # 
  fhir:agent ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "PRF" ]
       ] )
     ] ;
     fhir:role ( [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-RoleClass"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "PROV" ]
       ] )
     ] ) ;
     fhir:who [
       fhir:link <http://resmed.com/fhir/core/Practitioner/practitioner-airview-user> ;
       fhir:reference [ fhir:v "Practitioner/practitioner-airview-user" ] ;
       fhir:type [ fhir:v "Practitioner"^^xsd:anyURI ]
     ]
  ] ) ; # 
  fhir:entity ( [
     fhir:role [ fhir:v "source" ] ;
     fhir:what [
       fhir:reference [ fhir:v "#containedAHIAlert" ]
     ]
  ] [
     fhir:role [ fhir:v "source" ] ;
     fhir:what [
       fhir:reference [ fhir:v "#containedUsageAlert" ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

