@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@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/DocumentReference/EjemploEmaDocumentReference> a fhir:DocumentReference ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "EjemploEmaDocumentReference"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://emahealth.io/fhir/cl/StructureDefinition/ema-document-reference" ;
       fhir:index 0 ;
       fhir:link <https://emahealth.io/fhir/cl/StructureDefinition/ema-document-reference>
     ]
  ] ;
  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: DocumentReference EjemploEmaDocumentReference</b></p><a name=\"EjemploEmaDocumentReference\"> </a><a name=\"hcEjemploEmaDocumentReference\"> </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-document-reference.html\">EMA DocumentReference</a></p></div><p><b>status</b>: Current</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 11506-3}\">Epicrisis de consulta</span></p><p><b>subject</b>: <a href=\"Patient-EjemploEmaPatient.html\">María Fernández</a></p><p><b>date</b>: 2026-03-10 12:00:00-0300</p><p><b>author</b>: <a href=\"Practitioner-EjemploEmaPractitioner.html\">Dr. Andrés Soto</a></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Url</b></td><td><b>Title</b></td></tr><tr><td style=\"display: none\">*</td><td>application/pdf</td><td><a href=\"https://emahealth.io/docs/epicrisis-ejemplo.pdf\">https://emahealth.io/docs/epicrisis-ejemplo.pdf</a></td><td>Epicrisis María Fernández — 2026-03-10</td></tr></table></blockquote></div>"
  ] ;
  fhir:DocumentReference.status [ fhir:value "current"] ;
  fhir:DocumentReference.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:11506-3 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "11506-3" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Epicrisis de consulta" ]
  ] ;
  fhir:DocumentReference.subject [
     fhir:link <https://emahealth.io/fhir/cl/Patient/EjemploEmaPatient> ;
     fhir:Reference.reference [ fhir:value "Patient/EjemploEmaPatient" ] ;
     fhir:Reference.display [ fhir:value "María Fernández" ]
  ] ;
  fhir:DocumentReference.date [ fhir:value "2026-03-10T12:00:00-03:00"^^xsd:dateTime] ;
  fhir:DocumentReference.author [
     fhir:index 0 ;
     fhir:link <https://emahealth.io/fhir/cl/Practitioner/EjemploEmaPractitioner> ;
     fhir:Reference.reference [ fhir:value "Practitioner/EjemploEmaPractitioner" ] ;
     fhir:Reference.display [ fhir:value "Dr. Andrés Soto" ]
  ] ;
  fhir:DocumentReference.content [
     fhir:index 0 ;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "application/pdf" ] ;
       fhir:Attachment.url [ fhir:value "https://emahealth.io/docs/epicrisis-ejemplo.pdf" ] ;
       fhir:Attachment.title [ fhir:value "Epicrisis María Fernández — 2026-03-10" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://emahealth.io/fhir/cl/DocumentReference/EjemploEmaDocumentReference.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

