@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://interoperabilidad.minsal.cl/fhir/ig/snre/MedicationRequest/Ejemplo1-prescipcion> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "Ejemplo1-prescipcion"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://interoperabilidad.minsal.cl/fhir/ig/snre/StructureDefinition/RecetaPrescripcionCl" ;
       fhir:index 0 ;
       fhir:link <https://interoperabilidad.minsal.cl/fhir/ig/snre/StructureDefinition/RecetaPrescripcionCl>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: PrescripciónMedicaciónTODO  /PrescripcionMedicamento Ejemplo1-prescipcion</b></p><a name=\"Ejemplo1-prescipcion\"> </a><a name=\"hcEjemplo1-prescipcion\"> </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-RecetaPrescripcionCl.html\">CL Prescripción</a></p></div><p><b>Identificación de un medicamento bajo su marca comercial</b>: <a href=\"Medication-Medicamento1.html\">Medication Tareg - D 160 / 25 comprimido recubierto (Novartis)</a></p><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/medicationrequest-category community}\">community</span></p><p><b>medication</b>: <a href=\"Medication-Medicamento2.html\">VALSARTAN-HIDROCLOROTIAZIDA</a></p><p><b>subject</b>: <a href=\"Patient-Paciente1.html\">Xime  Female, DoB: 1983-03-24 ( Chile: 15.236.327-k (use: official, ))</a></p><p><b>requester</b>: <a href=\"Practitioner-Prestador1.html\">Practitioner Leonidas Rey Esparta (official)</a></p><p><b>groupIdentifier</b>: 7f5b95f78a375236d71f</p><p><b>courseOfTherapyType</b>: <span title=\"Codes:{https://interoperabilidad.minsal.cl/fhir/ig/snre/CodeSystem/CSCodificacionPatron acute}\">Terapia a corto plazo (aguda)</span></p><p><b>note</b>: </p><blockquote><div><p>En caso de fiebre</p>\n</div></blockquote><blockquote><p><b>dosageInstruction</b></p><p><b>sequence</b>: 1</p><p><b>text</b>: Administrar 1 Supositorio cada 12 horas por 5 días</p><p><b>timing</b>: Once per 12 hours</p><p><b>route</b>: <span title=\"Codes:{https://interoperabilidad.minsal.cl/fhir/ig/snre/CodeSystem/CSViasAdmin 37161004}\">vía de administración en el recto (calificador)</span></p><p><b>method</b>: <span title=\"Codes:{https://interoperabilidad.minsal.cl/fhir/ig/snre/CodeSystem/CSMetodos 738993004}\">Inserción (método de administración)</span></p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>1 Supositorio<span style=\"background: LightGoldenRodYellow\"> (Details: CSUnidadAsistencial  codesupositorio = 'supositorio')</span></td></tr></table></blockquote><h3>DispenseRequests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ValidityPeriod</b></td></tr><tr><td style=\"display: none\">*</td><td>2022-08-20 --&gt; 2022-08-27</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://interoperabilidad.minsal.cl/fhir/ig/snre/StructureDefinition/ProdComercial" ] ;
     fhir:Extension.valueReference [
       fhir:link <https://interoperabilidad.minsal.cl/fhir/ig/snre/Medication/Medicamento1> ;
       fhir:Reference.reference [ fhir:value "Medication/Medicamento1" ]
     ]
  ] ;
  fhir:MedicationRequest.status [ fhir:value "active"] ;
  fhir:MedicationRequest.intent [ fhir:value "order"] ;
  fhir:MedicationRequest.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/medicationrequest-category" ] ;
       fhir:Coding.code [ fhir:value "community" ] ;
       fhir:Coding.display [ fhir:value "community" ]
     ]
  ] ;
  fhir:MedicationRequest.medicationReference [
     fhir:link <https://interoperabilidad.minsal.cl/fhir/ig/snre/Medication/Medicamento2> ;
     fhir:Reference.reference [ fhir:value "Medication/Medicamento2" ] ;
     fhir:Reference.display [ fhir:value "VALSARTAN-HIDROCLOROTIAZIDA" ]
  ] ;
  fhir:MedicationRequest.subject [
     fhir:link <https://interoperabilidad.minsal.cl/fhir/ig/snre/Patient/Paciente1> ;
     fhir:Reference.reference [ fhir:value "Patient/Paciente1" ]
  ] ;
  fhir:MedicationRequest.requester [
     fhir:link <https://interoperabilidad.minsal.cl/fhir/ig/snre/Practitioner/Prestador1> ;
     fhir:Reference.reference [ fhir:value "Practitioner/Prestador1" ]
  ] ;
  fhir:MedicationRequest.groupIdentifier [
     fhir:Identifier.value [ fhir:value "7f5b95f78a375236d71f" ]
  ] ;
  fhir:MedicationRequest.courseOfTherapyType [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://interoperabilidad.minsal.cl/fhir/ig/snre/CodeSystem/CSCodificacionPatron" ] ;
       fhir:Coding.code [ fhir:value "acute" ] ;
       fhir:Coding.display [ fhir:value "Terapia a corto plazo (aguda)" ]
     ]
  ] ;
  fhir:MedicationRequest.note [
     fhir:index 0 ;
     fhir:Annotation.text [ fhir:value "En caso de fiebre" ]
  ] ;
  fhir:MedicationRequest.dosageInstruction [
     fhir:index 0 ;
     fhir:Dosage.sequence [ fhir:value "1"^^xsd:integer ] ;
     fhir:Dosage.text [ fhir:value "Administrar 1 Supositorio cada 12 horas por 5 días" ] ;
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         fhir:Timing.repeat.boundsDuration [
           fhir:Quantity.value [ fhir:value "5"^^xsd:decimal ] ;
           fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
           fhir:Quantity.code [ fhir:value "d" ]
         ] ;
         fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:positiveInteger ] ;
         fhir:Timing.repeat.period [ fhir:value "12"^^xsd:decimal ] ;
         fhir:Timing.repeat.periodUnit [ fhir:value "h" ]
       ]
     ] ;
     fhir:Dosage.route [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://interoperabilidad.minsal.cl/fhir/ig/snre/CodeSystem/CSViasAdmin" ] ;
         fhir:Coding.code [ fhir:value "37161004" ] ;
         fhir:Coding.display [ fhir:value "vía de administración en el recto (calificador)" ]
       ]
     ] ;
     fhir:Dosage.method [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://interoperabilidad.minsal.cl/fhir/ig/snre/CodeSystem/CSMetodos" ] ;
         fhir:Coding.code [ fhir:value "738993004" ] ;
         fhir:Coding.display [ fhir:value "Inserción (método de administración)" ]
       ]
     ] ;
     fhir:Dosage.doseAndRate [
       fhir:index 0 ;
       fhir:Dosage.doseAndRate.doseQuantity [
         fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "Supositorio" ] ;
         fhir:Quantity.system [ fhir:value "https://rme.hl7chile.cl/CodeSystem/CSUnidadAsistencial" ] ;
         fhir:Quantity.code [ fhir:value "supositorio" ]
       ]
     ]
  ] ;
  fhir:MedicationRequest.dispenseRequest [
     fhir:MedicationRequest.dispenseRequest.validityPeriod [
       fhir:Period.start [ fhir:value "2022-08-20"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2022-08-27"^^xsd:date ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://interoperabilidad.minsal.cl/fhir/ig/snre/MedicationRequest/Ejemplo1-prescipcion.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

