@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://icr.healthcampaigns.org/Task/example-irs-task> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-irs-task"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://icr.healthcampaigns.org/StructureDefinition/ICRCampaignTask" ;
       fhir:index 0 ;
       fhir:link <https://icr.healthcampaigns.org/StructureDefinition/ICRCampaignTask>
     ] ;
     fhir:Meta.tag [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://icr.healthcampaigns.org/CodeSystem/icr-project-tag-cs" ] ;
       fhir:Coding.code [ fhir:value "gallery" ] ;
       fhir:Coding.display [ fhir:value "Gallery" ]
     ]
  ] ;
  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: Task example-irs-task</b></p><a name=\"example-irs-task\"> </a><a name=\"hcexample-irs-task\"> </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-ICRCampaignTask.html\">ICR Campaign Task</a></p><p style=\"margin-bottom: 0px\">Tag: <a href=\"CodeSystem-icr-project-tag-cs.html\">Gallery (Details: ICR Project Tag code gallery = 'Gallery')</a></p></div><p><b>Delivery Strategy</b>: <span title=\"Codes:{https://icr.healthcampaigns.org/CodeSystem/icr-delivery-strategy-cs house-to-house}\">House-to-house</span></p><p><b>Task Origin</b>: pre-planned</p><p><b>instantiatesCanonical</b>: <a href=\"ActivityDefinition-example-irs-activity.html\">Spray interior walls of eligible structures (indoor residual spraying)</a></p><p><b>basedOn</b>: <a href=\"CarePlan-example-irs-round.html\">CarePlan IRS, Rokupr settlement, 2026 annual round</a></p><p><b>status</b>: Completed</p><p><b>intent</b>: order</p><p><b>code</b>: <span title=\"Codes:\">Spray structure — Pirimiphos-methyl 300CS</span></p><p><b>for</b>: <a href=\"Location-example-dwelling.html\">Location Dwelling — Rokupr block 4, house 12</a></p><p><b>executionPeriod</b>: 2026-05-06 10:15:00+0000 --&gt; 2026-05-06 10:40:00+0000</p><p><b>location</b>: <a href=\"Location-example-dwelling.html\">Location Dwelling — Rokupr block 4, house 12</a></p><h3>Outputs</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:\">Structure sprayed — rooms treated</span></td><td>4</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://icr.healthcampaigns.org/StructureDefinition/delivery-strategy" ] ;
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://icr.healthcampaigns.org/CodeSystem/icr-delivery-strategy-cs" ] ;
         fhir:Coding.code [ fhir:value "house-to-house" ] ;
         fhir:Coding.display [ fhir:value "House-to-house" ]
       ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Extension.url [ fhir:value "https://icr.healthcampaigns.org/StructureDefinition/task-origin" ] ;
     fhir:Extension.valueCode [ fhir:value "pre-planned" ]
  ] ;
  fhir:Task.instantiatesCanonical [
     fhir:value "https://icr.healthcampaigns.org/ActivityDefinition/example-irs-activity" ;
     fhir:link <https://icr.healthcampaigns.org/ActivityDefinition/example-irs-activity>
  ] ;
  fhir:Task.basedOn [
     fhir:index 0 ;
     fhir:link <https://icr.healthcampaigns.org/CarePlan/example-irs-round> ;
     fhir:Reference.reference [ fhir:value "CarePlan/example-irs-round" ]
  ] ;
  fhir:Task.status [ fhir:value "completed"] ;
  fhir:Task.intent [ fhir:value "order"] ;
  fhir:Task.code [
     fhir:CodeableConcept.text [ fhir:value "Spray structure — Pirimiphos-methyl 300CS" ]
  ] ;
  fhir:Task.for [
     fhir:link <https://icr.healthcampaigns.org/Location/example-dwelling> ;
     fhir:Reference.reference [ fhir:value "Location/example-dwelling" ]
  ] ;
  fhir:Task.executionPeriod [
     fhir:Period.start [ fhir:value "2026-05-06T10:15:00Z"^^xsd:dateTime ] ;
     fhir:Period.end [ fhir:value "2026-05-06T10:40:00Z"^^xsd:dateTime ]
  ] ;
  fhir:Task.location [
     fhir:link <https://icr.healthcampaigns.org/Location/example-dwelling> ;
     fhir:Reference.reference [ fhir:value "Location/example-dwelling" ]
  ] ;
  fhir:Task.output [
     fhir:index 0 ;
     fhir:Task.output.type [
       fhir:CodeableConcept.text [ fhir:value "Structure sprayed — rooms treated" ]
     ] ;
     fhir:Task.output.valueUnsignedInt [ fhir:value "4"^^xsd:nonNegativeInteger ]
  ] .

# - ontology header ------------------------------------------------------------

<https://icr.healthcampaigns.org/Task/example-irs-task.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

