@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://hl7chile.cl/fhir/ig/mhd/DocumentReference/ReferDocEjemplo> a fhir:DocumentReference ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ReferDocEjemplo"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://hl7chile.cl/fhir/ig/mhd/StructureDefinition/ReferenciaDocumental" ;
       fhir:index 0 ;
       fhir:link <https://hl7chile.cl/fhir/ig/mhd/StructureDefinition/ReferenciaDocumental>
     ]
  ] ;
  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 ReferDocEjemplo</b></p><a name=\"ReferDocEjemplo\"> </a><a name=\"hcReferDocEjemplo\"> </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-ReferenciaDocumental.html\">ReferenciaDocumental</a></p></div><p><b>masterIdentifier</b>: Identifier type for XDS UniqueId/IPS-ARG-2026-00001</p><p><b>status</b>: Current</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 34133-9}\">Summary of episode note</span></p><p><b>category</b>: <span title=\"Codes:{http://loinc.org 60591-5}\">Resumen clínico de paciente</span></p><p><b>subject</b>: <a href=\"Bundle-BundleDocumentoIpsEjemplo.html#urn-uuid-991a7102-d221-498d-9157-c4192934e3b7\">Pablo Fernandez Perez(official) Male, DoB: 1912-06-12 ( https://www.registrocivil.cl/run#99999999-9 (use: official))</a></p><p><b>date</b>: 2026-07-06 10:30:00-0300</p><p><b>author</b>: <a href=\"Practitioner-PrestadorCLInline.html\">María Laura Gómez (official) (RNPI: 987654 (use: usual))</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><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>application/fhir+json</td><td><a href=\"Bundle-bundle-mhd-referencia-documental-ejemplo.html#urn-uuid-3e1f5c8b-0d4a-4f9e-9c6b-2d7e5f8a1b2c\">Bundle: identifier = http://hsisalud.org/documentos#DOC-IPS-CL-0001; type = document; timestamp = 2026-07-06 10:30:00-0300</a></td><td>Documento IPS Chileno mínimo</td><td>2026-07-06 10:30:00-0300</td></tr></table></blockquote><h3>Contexts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Period</b></td></tr><tr><td style=\"display: none\">*</td><td>2026-07-06 10:30:00-0300 --&gt; (ongoing)</td></tr></table></div>"
  ] ;
  fhir:DocumentReference.masterIdentifier [
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://profiles.ihe.net/ITI/MHD/CodeSystem/IHE.MHD.MHDIdentifierType" ] ;
         fhir:Coding.code [ fhir:value "uniqueId" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "https://repositorio.hsi.ar/documentos/ips" ] ;
     fhir:Identifier.value [ fhir:value "IPS-ARG-2026-00001" ]
  ] ;
  fhir:DocumentReference.status [ fhir:value "current"] ;
  fhir:DocumentReference.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:34133-9 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "34133-9" ] ;
       fhir:Coding.display [ fhir:value "Summary of episode note" ]
     ]
  ] ;
  fhir:DocumentReference.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:60591-5 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "60591-5" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Resumen clínico de paciente" ]
  ] ;
  fhir:DocumentReference.subject [
     fhir:Reference.reference [ fhir:value "urn:uuid:991a7102-d221-498d-9157-c4192934e3b7" ]
  ] ;
  fhir:DocumentReference.date [ fhir:value "2026-07-06T10:30:00-03:00"^^xsd:dateTime] ;
  fhir:DocumentReference.author [
     fhir:index 0 ;
     fhir:link <https://hl7chile.cl/fhir/ig/mhd/Practitioner/PrestadorCLInline> ;
     fhir:Reference.reference [ fhir:value "Practitioner/PrestadorCLInline" ]
  ] ;
  fhir:DocumentReference.content [
     fhir:index 0 ;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "application/fhir+json" ] ;
       fhir:Attachment.url [ fhir:value "urn:uuid:3e1f5c8b-0d4a-4f9e-9c6b-2d7e5f8a1b2c" ] ;
       fhir:Attachment.title [ fhir:value "Documento IPS Chileno mínimo" ] ;
       fhir:Attachment.creation [ fhir:value "2026-07-06T10:30:00-03:00"^^xsd:dateTime ]
     ]
  ] ;
  fhir:DocumentReference.context [
     fhir:DocumentReference.context.period [
       fhir:Period.start [ fhir:value "2026-07-06T10:30:00-03:00"^^xsd:dateTime ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://hl7chile.cl/fhir/ig/mhd/DocumentReference/ReferDocEjemplo.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

