@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/AuditEvent/patient-created-avx-audit-event> a fhir:AuditEvent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "patient-created-avx-audit-event"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://resmed.com/fhir/core/StructureDefinition/auditevent-rmd-avx-create"^^xsd:anyURI ;
       fhir:link <http://resmed.com/fhir/core/StructureDefinition/auditevent-rmd-avx-create>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: AuditEvent</b><a name=\"patient-created-avx-audit-event\"> </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 AuditEvent &quot;patient-created-avx-audit-event&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-auditevent-rmd-avx-create.html\">ResMed Create AVX AuditEvent</a></p></div><p><b>type</b>: Restful Operation (Details: http://terminology.hl7.org/CodeSystem/audit-event-type code rest = 'RESTful Operation', stated as 'Restful Operation')</p><p><b>subtype</b>: create (Details: http://hl7.org/fhir/restful-interaction code create = 'create', stated as 'create')</p><p><b>action</b>: C</p><p><b>recorded</b>: Sep 21, 2023, 1:24:04 PM</p><p><b>outcome</b>: 0</p><blockquote><p><b>agent</b></p><p><b>type</b>: Source Role ID <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://hl7.org/fhir/R4/codesystem-dicom-dcim.html\">DICOM</a>#110153)</span></p><p><b>who</b>: <span>Integrator Id: <a href=\"http://terminology.hl7.org/5.0.0/NamingSystem-uri.html\">#</a>urn:uuid:3b268924-cf70-11eb-b8bc-0242ac130003</span></p><p><b>name</b>: auditLoggerUFO3</p><p><b>requestor</b>: false</p><h3>Networks</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Address</b></td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td>192.168.123.132</td><td>2</td></tr></table></blockquote><blockquote><p><b>agent</b></p><p><b>type</b>: Destination Role ID <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://hl7.org/fhir/R4/codesystem-dicom-dcim.html\">DICOM</a>#110152)</span></p><p><b>who</b>: <span>id: AVX</span></p><p><b>requestor</b>: false</p><h3>Networks</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Address</b></td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td>api.dev-amr.airview-ufo-dev.dht.live</td><td>5</td></tr></table></blockquote><blockquote><p><b>agent</b></p><p><b>type</b>: User OAuth Agent participant <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://profiles.ihe.net/ITI/BALP/1.1.2/CodeSystem-UserAgentTypes.html\">The code used to identifiy a User Agent</a>#UserOauthAgent)</span></p><p><b>who</b>: <span>id: 0oa1rruww2eexJV3S0h8</span></p><p><b>requestor</b>: true</p><p><b>policy</b>: <code>AT.E5DnL5WMH6kRrobRnzcyin2J-ZKuLFnIAYNqc_Tm-d0</code></p></blockquote><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Site</b></td><td><b>Observer</b></td></tr><tr><td style=\"display: none\">*</td><td>api.dev-amr.airview-ufo-dev.dht.live</td><td><span>id: AVX</span></td></tr></table><blockquote><p><b>entity</b></p><p><b>what</b>: <span>id: 61dbee25-67c3-5aa0-814f-b2d8573a7214</span></p><p><b>type</b>: transport specific unique identifier where http X-Request-Id is used (Details: https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType code XrequestId = 'transport specific unique identifier where http X-Request-Id is used', stated as 'null')</p></blockquote><blockquote><p><b>entity</b></p><p><b>what</b>: <span>EasyCare Number: <a href=\"http://terminology.hl7.org/5.0.0/NamingSystem-uri.html\">#</a>urn:uuid:3b268924-cf70-11eb-b8bc-0242ac130003</span></p><p><b>type</b>: Person (Details: http://terminology.hl7.org/CodeSystem/audit-entity-type code 1 = 'Person', stated as 'Person')</p><p><b>role</b>: Patient (Details: http://terminology.hl7.org/CodeSystem/object-role code 1 = 'Patient', stated as 'Patient')</p></blockquote><blockquote><p><b>entity</b></p><p><b>what</b>: <span>organisation: <a href=\"NamingSystem-NamingSystemResMedEcoDbEntity.html\">#</a>/organisation/id/1234</span></p><p><b>type</b>: Organization (Details: http://terminology.hl7.org/CodeSystem/audit-entity-type code 3 = 'Organization', stated as 'Organization')</p><p><b>role</b>: Practitioner (Details: http://terminology.hl7.org/CodeSystem/object-role code 15 = 'Practitioner', stated as 'Practitioner')</p></blockquote><blockquote><p><b>entity</b></p><p><b>type</b>: System Object (Details: http://terminology.hl7.org/CodeSystem/audit-entity-type code 2 = 'System Object', stated as 'System Object')</p><p><b>role</b>: Query (Details: http://terminology.hl7.org/CodeSystem/object-role code 24 = 'Query', stated as 'Query')</p><p><b>description</b>: POST api.dev-amr.airview-ufo-dev.dht.live/exchange/v4/orgs/2/patients/</p><p><b>query</b>: (base64 data - 96 bytes)</p></blockquote></div>"
  ] ; # 
  fhir:type [
     fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/audit-event-type"^^xsd:anyURI ] ;
     fhir:code [ fhir:v "rest" ] ;
     fhir:display [ fhir:v "Restful Operation" ]
  ] ; # 
  fhir:subtype ( [
     fhir:system [ fhir:v "http://hl7.org/fhir/restful-interaction"^^xsd:anyURI ] ;
     fhir:code [ fhir:v "create" ] ;
     fhir:display [ fhir:v "create" ]
  ] ) ; # 
  fhir:action [ fhir:v "C"] ; # 
  fhir:recorded [ fhir:v "2023-09-21T13:24:04.621Z"^^xsd:dateTime] ; # 
  fhir:outcome [ fhir:v "0"] ; # 
  fhir:agent ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://dicom.nema.org/resources/ontology/DCM"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "110153" ] ;
         fhir:display [ fhir:v "Source Role ID" ]
       ] )
     ] ;
     fhir:who [
       fhir:identifier [
         fhir:type [
           fhir:coding ( [
             fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/resmed-user-identifier"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "IntegratorId" ]
           ] )
         ] ;
         fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "urn:uuid:3b268924-cf70-11eb-b8bc-0242ac130003" ]
       ]
     ] ;
     fhir:name [ fhir:v "auditLoggerUFO3" ] ;
     fhir:requestor [ fhir:v "false"^^xsd:boolean ] ;
     fhir:network [
       fhir:address [ fhir:v "192.168.123.132" ] ;
       fhir:type [ fhir:v "2" ]
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://dicom.nema.org/resources/ontology/DCM"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "110152" ] ;
         fhir:display [ fhir:v "Destination Role ID" ]
       ] )
     ] ;
     fhir:who [
       fhir:identifier [
         fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/resmed-system-identifier"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "AVX" ]
       ]
     ] ;
     fhir:requestor [ fhir:v "false"^^xsd:boolean ] ;
     fhir:network [
       fhir:address [ fhir:v "api.dev-amr.airview-ufo-dev.dht.live" ] ;
       fhir:type [ fhir:v "5" ]
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "https://profiles.ihe.net/ITI/BALP/CodeSystem/UserAgentTypes"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "UserOauthAgent" ]
       ] )
     ] ;
     fhir:who [
       fhir:identifier [
         fhir:system [ fhir:v "https://resmed-sandbox-dht.oktapreview.com/oauth2/aus13xvvtnecfY6Hf0h8"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "0oa1rruww2eexJV3S0h8" ]
       ]
     ] ;
     fhir:requestor [ fhir:v "true"^^xsd:boolean ] ;
     fhir:policy ( [ fhir:v "AT.E5DnL5WMH6kRrobRnzcyin2J-ZKuLFnIAYNqc_Tm-d0"^^xsd:anyURI ] )
  ] ) ; # 
  fhir:source [
     fhir:site [ fhir:v "api.dev-amr.airview-ufo-dev.dht.live" ] ;
     fhir:observer [
       fhir:identifier [
         fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/resmed-system-identifier"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "AVX" ]
       ]
     ]
  ] ; # 
  fhir:entity ( [
     fhir:what [
       fhir:identifier [
         fhir:value [ fhir:v "61dbee25-67c3-5aa0-814f-b2d8573a7214" ]
       ]
     ] ;
     fhir:type [
       fhir:system [ fhir:v "https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "XrequestId" ]
     ]
  ] [
     fhir:what [
       fhir:identifier [
         fhir:type [
           fhir:coding ( [
             fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/resmed-user-identifier"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "ECN" ]
           ] )
         ] ;
         fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "urn:uuid:3b268924-cf70-11eb-b8bc-0242ac130003" ]
       ]
     ] ;
     fhir:type [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/audit-entity-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "1" ] ;
       fhir:display [ fhir:v "Person" ]
     ] ;
     fhir:role [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/object-role"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "1" ] ;
       fhir:display [ fhir:v "Patient" ]
     ]
  ] [
     fhir:what [
       fhir:identifier [
         fhir:type [
           fhir:coding ( [
             fhir:system [ fhir:v "http://resmed.com/fhir/core/CodeSystem/rmd-ecoDbTable-cs"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "organisation" ]
           ] )
         ] ;
         fhir:system [ fhir:v "http://identifier.resmed.com/eco"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "/organisation/id/1234" ] ;
         fhir:assigner [
           fhir:display [ fhir:v "AMR-DEV" ]
         ]
       ]
     ] ;
     fhir:type [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/audit-entity-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "3" ] ;
       fhir:display [ fhir:v "Organization" ]
     ] ;
     fhir:role [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/object-role"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "15" ] ;
       fhir:display [ fhir:v "Practitioner" ]
     ]
  ] [
     fhir:type [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/audit-entity-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "2" ] ;
       fhir:display [ fhir:v "System Object" ]
     ] ;
     fhir:role [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/object-role"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "24" ] ;
       fhir:display [ fhir:v "Query" ]
     ] ;
     fhir:description [ fhir:v "POST api.dev-amr.airview-ufo-dev.dht.live/exchange/v4/orgs/2/patients/" ] ;
     fhir:query [ fhir:v "VUU5VFZDQmhjR2t1WkdWMkxXRnRjaTVoYVhKMmFXVjNMWFZtYnkxa1pYWXVaR2gwTG14cGRtVXZaWGhqYUdGdVoyVXZkalF2YjNKbmN5OHlMM0JoZEdsbGJuUnpMdz09"^^xsd:base64Binary ]
  ] ) . # 

# -------------------------------------------------------------------------------------

