@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 -------------------------------------------------------------------

<http://fhir.msal.gob.ar/core/DocumentReference/DocumentReference-IPS-Fernandez-Perez-Pablo> a fhir:DocumentReference;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "DocumentReference-IPS-Fernandez-Perez-Pablo"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.msal.gob.ar/core/StructureDefinition/DocumentReference-ar-core";
       fhir:index 0;
       fhir:link <http://fhir.msal.gob.ar/core/StructureDefinition/DocumentReference-ar-core>
     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>masterIdentifier</b>: id: 3f69e0a5-2177-4540-baab-7a5d0877428f</p><p><b>identifier</b>: id: 3f69e0a5-2177-4540-baab-7a5d0877428f</p><p><b>status</b>: current</p><p><b>docStatus</b>: final</p><p><b>type</b>: <span title=\"Codes: {http://loinc.org 60591-5}\">Patient summary Document</span></p><p><b>subject</b>: <span></span></p><p><b>custodian</b>: <span></span></p><blockquote><p><b>content</b></p></blockquote></div>"
  ];
  fhir:DocumentReference.masterIdentifier [
     fhir:Identifier.system [ fhir:value "http://dummy.org.ar/documentos" ];
     fhir:Identifier.value [ fhir:value "3f69e0a5-2177-4540-baab-7a5d0877428f" ]
  ];
  fhir:DocumentReference.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "http://dummy.org.ar/documentos" ];
     fhir:Identifier.value [ fhir:value "3f69e0a5-2177-4540-baab-7a5d0877428f" ]
  ];
  fhir:DocumentReference.status [ fhir:value "current"];
  fhir:DocumentReference.docStatus [ fhir:value "final"];
  fhir:DocumentReference.type [
     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:DocumentReference.subject [
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "http://dummy.com.ar" ];
       fhir:Identifier.value [ fhir:value "20918292" ]
     ]
  ];
  fhir:DocumentReference.custodian [
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://federador.msal.gob.ar/uri" ];
       fhir:Identifier.value [ fhir:value "32818" ]
     ]
  ];
  fhir:DocumentReference.content [
     fhir:index 0;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "application/fhir+json" ];
       fhir:Attachment.url [ fhir:value "http://dummy.org/fhir/binary/3f69e0a5-2177-4540-baab-7a5d0877428f" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.msal.gob.ar/core/DocumentReference/DocumentReference-IPS-Fernandez-Perez-Pablo.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

