@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/Encounter/EjemploEmaEncounter> a fhir:Encounter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "EjemploEmaEncounter"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://emahealth.io/fhir/cl/StructureDefinition/ema-encounter" ;
       fhir:index 0 ;
       fhir:link <https://emahealth.io/fhir/cl/StructureDefinition/ema-encounter>
     ]
  ] ;
  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: Encounter EjemploEmaEncounter</b></p><a name=\"EjemploEmaEncounter\"> </a><a name=\"hcEjemploEmaEncounter\"> </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-encounter.html\">EMA Encounter</a></p></div><p><b>status</b>: Finished</p><p><b>class</b>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-AMB\">ActCode: AMB</a> (ambulatory)</p><p><b>type</b>: <span title=\"Codes:{https://emahealth.io/fhir/cl/CodeSystem/cs-encounter-tipo consulta-medica}\">Consulta Médica</span></p><p><b>subject</b>: <a href=\"Patient-EjemploEmaPatient.html\">María Fernández (official) Female, DoB: 1968-03-15 ( RUN (use: official, ))</a></p><h3>Participants</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Individual</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"PractitionerRole-EjemploEmaPractitionerRole.html\">PractitionerRole: specialty = General medicine</a></td></tr></table><p><b>period</b>: 2026-03-14 09:00:00-0300 --&gt; 2026-03-14 09:30:00-0300</p><h3>Locations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Location</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Location-EjemploEmaLocation.html\">Location Consulta 3</a></td></tr></table><p><b>serviceProvider</b>: <a href=\"Organization-EjemploEmaOrganization.html\">Organization Centro Médico EMA</a></p></div>"
  ] ;
  fhir:Encounter.status [ fhir:value "finished"] ;
  fhir:Encounter.class [
     fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ] ;
     fhir:Coding.code [ fhir:value "AMB" ]
  ] ;
  fhir:Encounter.type [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://emahealth.io/fhir/cl/CodeSystem/cs-encounter-tipo" ] ;
       fhir:Coding.code [ fhir:value "consulta-medica" ] ;
       fhir:Coding.display [ fhir:value "Consulta Médica" ]
     ]
  ] ;
  fhir:Encounter.subject [
     fhir:link <https://emahealth.io/fhir/cl/Patient/EjemploEmaPatient> ;
     fhir:Reference.reference [ fhir:value "Patient/EjemploEmaPatient" ]
  ] ;
  fhir:Encounter.participant [
     fhir:index 0 ;
     fhir:Encounter.participant.individual [
       fhir:link <https://emahealth.io/fhir/cl/PractitionerRole/EjemploEmaPractitionerRole> ;
       fhir:Reference.reference [ fhir:value "PractitionerRole/EjemploEmaPractitionerRole" ]
     ]
  ] ;
  fhir:Encounter.period [
     fhir:Period.start [ fhir:value "2026-03-14T09:00:00-03:00"^^xsd:dateTime ] ;
     fhir:Period.end [ fhir:value "2026-03-14T09:30:00-03:00"^^xsd:dateTime ]
  ] ;
  fhir:Encounter.location [
     fhir:index 0 ;
     fhir:Encounter.location.location [
       fhir:link <https://emahealth.io/fhir/cl/Location/EjemploEmaLocation> ;
       fhir:Reference.reference [ fhir:value "Location/EjemploEmaLocation" ]
     ]
  ] ;
  fhir:Encounter.serviceProvider [
     fhir:link <https://emahealth.io/fhir/cl/Organization/EjemploEmaOrganization> ;
     fhir:Reference.reference [ fhir:value "Organization/EjemploEmaOrganization" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://emahealth.io/fhir/cl/Encounter/EjemploEmaEncounter.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

