@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 -------------------------------------------------------------------

<https://emahealth.io/fhir/cl/AuditEvent/EjemploEmaAuditEvent> a fhir:AuditEvent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "EjemploEmaAuditEvent"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://emahealth.io/fhir/cl/StructureDefinition/ema-audit-event" ;
       fhir:index 0 ;
       fhir:link <https://emahealth.io/fhir/cl/StructureDefinition/ema-audit-event>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: AuditEvent EjemploEmaAuditEvent</b></p><a name=\"EjemploEmaAuditEvent\"> </a><a name=\"hcEjemploEmaAuditEvent\"> </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-ema-audit-event.html\">EMA AuditEvent</a></p></div><p><b>type</b>: <a href=\"http://hl7.org/fhir/R4/codesystem-dicom-dcim.html#dicom-dcim-110114\">DICOM: 110114</a> (User Authentication)</p><p><b>subtype</b>: <a href=\"http://hl7.org/fhir/R4/codesystem-dicom-dcim.html#dicom-dcim-110122\">DICOM: 110122</a> (Login)</p><p><b>action</b>: Execute</p><p><b>recorded</b>: 2026-03-14 08:55:00-0300</p><p><b>outcome</b>: Success</p><h3>Agents</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Who</b></td><td><b>Requestor</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Practitioner-EjemploEmaPractitioner.html\">Practitioner Carlos Muñoz (official)</a></td><td>true</td></tr></table><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Observer</b></td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Organization-EjemploEmaOrganization.html\">Organization Centro Médico EMA</a></td><td><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-security-source-type.html#security-source-type-4\">Audit Event Source Type: 4</a> (Application Server)</td></tr></table><h3>Entities</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>What</b></td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Practitioner-EjemploEmaPractitioner.html\">Practitioner Carlos Muñoz (official)</a></td><td><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-audit-entity-type.html#audit-entity-type-1\">Audit event entity type: 1</a> (Person)</td></tr></table></div>"
  ] ;
  fhir:AuditEvent.type [
     fhir:Coding.system [ fhir:value "http://dicom.nema.org/resources/ontology/DCM" ] ;
     fhir:Coding.code [ fhir:value "110114" ]
  ] ;
  fhir:AuditEvent.subtype [
     fhir:index 0 ;
     fhir:Coding.system [ fhir:value "http://dicom.nema.org/resources/ontology/DCM" ] ;
     fhir:Coding.code [ fhir:value "110122" ]
  ] ;
  fhir:AuditEvent.action [ fhir:value "E"] ;
  fhir:AuditEvent.recorded [ fhir:value "2026-03-14T08:55:00-03:00"^^xsd:dateTime] ;
  fhir:AuditEvent.outcome [ fhir:value "0"] ;
  fhir:AuditEvent.agent [
     fhir:index 0 ;
     fhir:AuditEvent.agent.who [
       fhir:link <https://emahealth.io/fhir/cl/Practitioner/EjemploEmaPractitioner> ;
       fhir:Reference.reference [ fhir:value "Practitioner/EjemploEmaPractitioner" ]
     ] ;
     fhir:AuditEvent.agent.requestor [ fhir:value "true"^^xsd:boolean ]
  ] ;
  fhir:AuditEvent.source [
     fhir:AuditEvent.source.observer [
       fhir:link <https://emahealth.io/fhir/cl/Organization/EjemploEmaOrganization> ;
       fhir:Reference.reference [ fhir:value "Organization/EjemploEmaOrganization" ]
     ] ;
     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:AuditEvent.entity [
     fhir:index 0 ;
     fhir:AuditEvent.entity.what [
       fhir:link <https://emahealth.io/fhir/cl/Practitioner/EjemploEmaPractitioner> ;
       fhir:Reference.reference [ fhir:value "Practitioner/EjemploEmaPractitioner" ]
     ] ;
     fhir:AuditEvent.entity.type [
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/audit-entity-type" ] ;
       fhir:Coding.code [ fhir:value "1" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://emahealth.io/fhir/cl/AuditEvent/EjemploEmaAuditEvent.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

