@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/uv/pddi/MedicationRequest/medicationrequest-warfarin-nsaid-aldosteroneantagonist-prefetch> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "medicationrequest-warfarin-nsaid-aldosteroneantagonist-prefetch"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest medicationrequest-warfarin-nsaid-aldosteroneantagonist-prefetch</b></p><a name=\"medicationrequest-warfarin-nsaid-aldosteroneantagonist-prefetch\"> </a><a name=\"hcmedicationrequest-warfarin-nsaid-aldosteroneantagonist-prefetch\"> </a><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/medication-statement-category outpatient}\">Outpatient</span></p><p><b>medication</b>: <span title=\"Codes:{http://www.nlm.nih.gov/research/umls/rxnorm 198223}\">Spironolactone 50 MG Oral Tablet</span></p><p><b>subject</b>: <a href=\"Patient-patient-warfarin-nsaid-over65-prefetch.html\">Anonymous Patient Male, DoB: 1948-05-10</a></p><p><b>authoredOn</b>: <code>Value calculated by: </code><span title=\"text/cql\"><code>Today() - 10 days</code></span></p><blockquote><p><b>dosageInstruction</b></p><p><b>timing</b>: Once per 1.0 days</p><p><b>asNeeded</b>: false</p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/dose-rate-type calculated}\">Calculated</span></td><td>1.0 tablet</td></tr></table></blockquote><blockquote><p><b>dispenseRequest</b></p><p><b>validityPeriod</b>: ?? --&gt; (ongoing)</p><p><b>numberOfRepeatsAllowed</b>: 1</p><h3>ExpectedSupplyDurations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Unit</b></td><td><b>System</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>90</td><td>days</td><td><a href=\"http://tx.fhir.org/r4/ValueSet/x-ucum\">http://unitsofmeasure.org</a></td><td>d</td></tr></table></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/medication-statement-category"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/medication-statement-category>
       ] ;
       fhir:code [ fhir:v "outpatient" ]
     ] )
  ] ) ; # 
  fhir:medication [
     a fhir:CodeableConcept ;
     fhir:coding ( [
       fhir:system [
         fhir:v "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI ;
         fhir:l <http://www.nlm.nih.gov/research/umls/rxnorm>
       ] ;
       fhir:code [ fhir:v "198223" ] ;
       fhir:display [ fhir:v "Spironolactone 50 MG Oral Tablet" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/uv/pddi/Patient/patient-warfarin-nsaid-over65-prefetch> ;
     fhir:reference [ fhir:v "Patient/patient-warfarin-nsaid-over65-prefetch" ]
  ] ; # 
  fhir:authoredOn [
     fhir:extension ( [
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-expression"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-expression>
       ] ;
       fhir:value [
         a fhir:Expression ;
         fhir:language [ fhir:v "text/cql" ] ;
         fhir:expression [ fhir:v "Today() - 10 days" ]
       ]
     ] )
  ] ; # 
  fhir:dosageInstruction ( [
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v 1.0 ] ;
         fhir:periodUnit [ fhir:v "d" ]
       ]
     ] ;
     fhir:asNeeded [
       a fhir:Boolean ;
       fhir:v false
     ] ;
     fhir:doseAndRate ( [
       fhir:type [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/dose-rate-type"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/dose-rate-type>
           ] ;
           fhir:code [ fhir:v "calculated" ]
         ] )
       ] ;
       fhir:dose [
         a fhir:Quantity ;
         fhir:value [ fhir:v 1.0 ] ;
         fhir:unit [ fhir:v "tablet" ]
       ]
     ] )
  ] ) ; # 
  fhir:dispenseRequest [
     fhir:validityPeriod [
       fhir:extension ( [
         fhir:url [
           fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-expression"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-expression>
         ] ;
         fhir:value [
           a fhir:Expression ;
           fhir:language [ fhir:v "text/cql" ] ;
           fhir:expression [ fhir:v "FHIR.Period { start: FHIR.dateTime { value: Today() - 10 days }, end: FHIR.dateTime { value: Today() } }" ]
         ]
       ] )
     ] ;
     fhir:numberOfRepeatsAllowed [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
     fhir:expectedSupplyDuration [
       fhir:value [ fhir:v "90"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "days" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "d" ]
     ]
  ] . # 

<http://hl7.org/fhir/uv/pddi/Patient/patient-warfarin-nsaid-over65-prefetch> a fhir:Uv .

# -------------------------------------------------------------------------------------

