@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://johnmoehrke.github.io/SlicingSlicedExtension/AuditEvent/ex-WithNpiPrn> a fhir:AuditEvent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ex-WithNpiPrn"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://johnmoehrke.github.io/SlicingSlicedExtension/StructureDefinition/ThirdSliceProfile" ;
       fhir:index 0 ;
       fhir:link <http://johnmoehrke.github.io/SlicingSlicedExtension/StructureDefinition/ThirdSliceProfile>
     ] ;
     fhir:Meta.security [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ] ;
       fhir:Coding.code [ fhir:value "HTEST" ]
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: AuditEvent ex-WithNpiPrn</b></p><a name=\"ex-WithNpiPrn\"> </a><a name=\"hcex-WithNpiPrn\"> </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\">Profile: <a href=\"StructureDefinition-ThirdSliceProfile.html\">Slicing a Sliced Extension Profile</a></p><p style=\"margin-bottom: 0px\">Security Label: <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-v3-ActReason.html\">test health data (Details: ActReason code HTEST = 'test health data')</a></p></div><p><b>type</b>: <a href=\"http://hl7.org/fhir/R4/codesystem-dicom-dcim.html#dicom-dcim-110100\">DICOM: 110100</a> (Application Activity)</p><p><b>subtype</b>: unknown: poke (Boredom poke)</p><p><b>action</b>: Read/View/Print</p><p><b>recorded</b>: 2021-12-03 09:49:00+0000</p><p><b>outcome</b>: Success</p><blockquote><p><b>agent</b></p><p><b>AuditEvent.agent other identifiers</b>: National provider identifier/1234567@myNPIregistry.example.org</p><p><b>AuditEvent.agent other identifiers</b>: Provider number/JohnD</p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType IRCP}\">information recipient</span></p><p><b>who</b>: Identifier: <code>https://sts.sykehuspartner.no</code>/05086900124</p><p><b>requestor</b>: true</p></blockquote><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Site</b></td><td><b>Observer</b></td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td>server.example.com</td><td>my server</td><td><a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-security-source-type.html#security-source-type-4\">Audit Event Source Type: 4</a> (Application Server)</td></tr></table></div>"
  ] ;
  fhir:AuditEvent.type [
     fhir:Coding.system [ fhir:value "http://dicom.nema.org/resources/ontology/DCM" ] ;
     fhir:Coding.code [ fhir:value "110100" ] ;
     fhir:Coding.display [ fhir:value "Application Activity" ]
  ] ;
  fhir:AuditEvent.subtype [
     fhir:index 0 ;
     fhir:Coding.system [ fhir:value "urn:ietf:rfc:1438" ] ;
     fhir:Coding.code [ fhir:value "poke" ] ;
     fhir:Coding.display [ fhir:value "Boredom poke" ]
  ] ;
  fhir:AuditEvent.action [ fhir:value "R"] ;
  fhir:AuditEvent.recorded [ fhir:value "2021-12-03T09:49:00.000Z"^^xsd:dateTime] ;
  fhir:AuditEvent.outcome [ fhir:value "0"] ;
  fhir:AuditEvent.agent [
     fhir:index 0 ;
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "http://johnmoehrke.github.io/SlicingSlicedExtension/StructureDefinition/OtherId" ] ;
       fhir:Extension.valueIdentifier [
         fhir:Identifier.type [
           fhir:CodeableConcept.coding [
             fhir:index 0 ;
             fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
             fhir:Coding.code [ fhir:value "NPI" ]
           ]
         ] ;
         fhir:Identifier.value [ fhir:value "1234567@myNPIregistry.example.org" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:Extension.url [ fhir:value "http://johnmoehrke.github.io/SlicingSlicedExtension/StructureDefinition/OtherId" ] ;
       fhir:Extension.valueIdentifier [
         fhir:Identifier.type [
           fhir:CodeableConcept.coding [
             fhir:index 0 ;
             fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
             fhir:Coding.code [ fhir:value "PRN" ]
           ]
         ] ;
         fhir:Identifier.value [ fhir:value "JohnD" ]
       ]
     ] ;
     fhir:AuditEvent.agent.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" ] ;
         fhir:Coding.code [ fhir:value "IRCP" ] ;
         fhir:Coding.display [ fhir:value "information recipient" ]
       ]
     ] ;
     fhir:AuditEvent.agent.who [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://sts.sykehuspartner.no" ] ;
         fhir:Identifier.value [ fhir:value "05086900124" ]
       ]
     ] ;
     fhir:AuditEvent.agent.requestor [ fhir:value "true"^^xsd:boolean ]
  ] ;
  fhir:AuditEvent.source [
     fhir:AuditEvent.source.site [ fhir:value "server.example.com" ] ;
     fhir:AuditEvent.source.observer [
       fhir:Reference.display [ fhir:value "my server" ]
     ] ;
     fhir:AuditEvent.source.type [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/security-source-type" ] ;
       fhir:Coding.code [ fhir:value "4" ] ;
       fhir:Coding.display [ fhir:value "Application Server" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://johnmoehrke.github.io/SlicingSlicedExtension/AuditEvent/ex-WithNpiPrn.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

