@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/Consent/Consent-ar-core-example> a fhir:Consent;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "Consent-ar-core-example"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.msal.gob.ar/core/StructureDefinition/Consent-ar-core";
       fhir:index 0;
       fhir:link <http://fhir.msal.gob.ar/core/StructureDefinition/Consent-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>identifier</b>: id: 20425239-2021-09-02T10:30:00</p><p><b>status</b>: active</p><p><b>scope</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/consentscope patient-privacy}\">Privacy consent</span></p><p><b>category</b>: <span title=\"Codes: {http://loinc.org 59284-0}\">Patient Consent</span></p><p><b>patient</b>: <span></span></p><h3>Provisions</h3><table class=\"grid\"><tr><td>-</td><td><b>Type</b></td></tr><tr><td>*</td><td>deny</td></tr></table></div>"
  ];
  fhir:Consent.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "http://consent.msal.gob.ar/uri" ];
     fhir:Identifier.value [ fhir:value "20425239-2021-09-02T10:30:00" ]
  ];
  fhir:Consent.status [ fhir:value "active"];
  fhir:Consent.scope [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/consentscope" ];
       fhir:Coding.code [ fhir:value "patient-privacy" ];
       fhir:Coding.display [ fhir:value "Privacy consent" ]
     ]
  ];
  fhir:Consent.category [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a loinc:59284-0;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "59284-0" ];
       fhir:Coding.display [ fhir:value "Patient Consent" ]
     ]
  ];
  fhir:Consent.patient [
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "http://www.renaper.gob.ar/dni" ];
       fhir:Identifier.value [ fhir:value "20425239" ]
     ]
  ];
  fhir:Consent.provision [
     fhir:Consent.provision.type [ fhir:value "deny" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.msal.gob.ar/core/Consent/Consent-ar-core-example.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

