@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/CodeSystem/task-code> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "task-code"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2026-05-20T15:02:53.575+00:00"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem task-code</b></p><a name=\"task-code\"> </a><a name=\"hctask-code\"> </a><p>This case-sensitive code system <code>http://hl7.org/fhir/CodeSystem/task-code</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style=\"white-space:nowrap\">approve<a name=\"task-code-approve\"> </a></td><td>Activate/approve the focal resource</td><td>Take what actions are needed to transition the focus resource from 'draft' to 'active' or 'in-progress', as appropriate for the resource type.  This may involve additing additional content, approval, validation, etc.</td></tr><tr><td style=\"white-space:nowrap\">fulfill<a name=\"task-code-fulfill\"> </a></td><td>Fulfill the focal request</td><td>Act to perform the actions described in the focus request.  This might result in a 'more assertive' request (order for a plan or proposal, filler order for a placer order), but is intend to eventually result in events.  The degree of fulfillment requested might be limited by Task.restriction.</td></tr><tr><td style=\"white-space:nowrap\">instantiate<a name=\"task-code-instantiate\"> </a></td><td>Instantiate the focal definition</td><td>Act to perform the actions defined in the focus definition resource (ActivityDefinition, PlanDefinition, Questionnaire, etc.)  For PlanDefinition or ActivityDefinition, this might result in a 'more assertive' request (order for a plan or proposal, filler order for a placer order), but is intend to eventually result in events.  For Questionnaire, this would result in a QuestionnaireResponse - and possibly resources constructed using data extracted from the response.  The degree of fulfillment requested might be limited by Task.restriction.</td></tr><tr><td style=\"white-space:nowrap\">abort<a name=\"task-code-abort\"> </a></td><td>Mark the focal resource as no longer active</td><td>Abort, cancel or withdraw the focal resource, as appropriate for the type of resource.</td></tr><tr><td style=\"white-space:nowrap\">replace<a name=\"task-code-replace\"> </a></td><td>Replace the focal resource with the input resource</td><td>Replace the focal resource with the specified input resource</td></tr><tr><td style=\"white-space:nowrap\">change<a name=\"task-code-change\"> </a></td><td>Change the focal resource</td><td>Update the focal resource of the owning system to reflect the content specified as the Task.focus</td></tr><tr><td style=\"white-space:nowrap\">suspend<a name=\"task-code-suspend\"> </a></td><td>Suspend the focal resource</td><td>Transition the focal resource from 'active' or 'in-progress' to 'suspended'</td></tr><tr><td style=\"white-space:nowrap\">resume<a name=\"task-code-resume\"> </a></td><td>Re-activate the focal resource</td><td>Transition the focal resource from 'suspended' to 'active' or 'in-progress' as appropriate for the resource type.</td></tr><tr><td style=\"white-space:nowrap\">data-request<a name=\"task-code-data-request\"> </a></td><td>Data request task</td><td>A type of Task asking the Task.owner to deliver the data corresponding to the characteristics defined by the Task.inputs to the Task.requester</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "oo"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "normative"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm>
     ] ;
     fhir:value [
       a fhir:Integer ;
       fhir:v 4
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/CodeSystem/task-code"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/CodeSystem/task-code>
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.4.1397" ]
  ] ) ; # 
  fhir:version [ fhir:v "6.0.0-ballot4"] ; # 
  fhir:name [ fhir:v "TaskCode"] ; # 
  fhir:title [ fhir:v "Task Codes"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:publisher [ fhir:v "HL7 International"] ; # 
  fhir:description [ fhir:v "Codes indicating the type of action that is expected to be performed"] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
         fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>
       ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] ) ; # 
  fhir:caseSensitive [ fhir:v true] ; # 
  fhir:valueSet [
     fhir:v "http://hl7.org/fhir/ValueSet/task-code.html"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/ValueSet/task-code.html>
  ] ; # 
  fhir:hierarchyMeaning [] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "approve" ] ;
     fhir:display [ fhir:v "Activate/approve the focal resource" ] ;
     fhir:definition [ fhir:v "Take what actions are needed to transition the focus resource from 'draft' to 'active' or 'in-progress', as appropriate for the resource type.  This may involve additing additional content, approval, validation, etc." ]
  ] [
     fhir:code [ fhir:v "fulfill" ] ;
     fhir:display [ fhir:v "Fulfill the focal request" ] ;
     fhir:definition [ fhir:v "Act to perform the actions described in the focus request.  This might result in a 'more assertive' request (order for a plan or proposal, filler order for a placer order), but is intend to eventually result in events.  The degree of fulfillment requested might be limited by Task.restriction." ]
  ] [
     fhir:code [ fhir:v "instantiate" ] ;
     fhir:display [ fhir:v "Instantiate the focal definition" ] ;
     fhir:definition [ fhir:v "Act to perform the actions defined in the focus definition resource (ActivityDefinition, PlanDefinition, Questionnaire, etc.)  For PlanDefinition or ActivityDefinition, this might result in a 'more assertive' request (order for a plan or proposal, filler order for a placer order), but is intend to eventually result in events.  For Questionnaire, this would result in a QuestionnaireResponse - and possibly resources constructed using data extracted from the response.  The degree of fulfillment requested might be limited by Task.restriction." ]
  ] [
     fhir:code [ fhir:v "abort" ] ;
     fhir:display [ fhir:v "Mark the focal resource as no longer active" ] ;
     fhir:definition [ fhir:v "Abort, cancel or withdraw the focal resource, as appropriate for the type of resource." ]
  ] [
     fhir:code [ fhir:v "replace" ] ;
     fhir:display [ fhir:v "Replace the focal resource with the input resource" ] ;
     fhir:definition [ fhir:v "Replace the focal resource with the specified input resource" ]
  ] [
     fhir:code [ fhir:v "change" ] ;
     fhir:display [ fhir:v "Change the focal resource" ] ;
     fhir:definition [ fhir:v "Update the focal resource of the owning system to reflect the content specified as the Task.focus" ]
  ] [
     fhir:code [ fhir:v "suspend" ] ;
     fhir:display [ fhir:v "Suspend the focal resource" ] ;
     fhir:definition [ fhir:v "Transition the focal resource from 'active' or 'in-progress' to 'suspended'" ]
  ] [
     fhir:code [ fhir:v "resume" ] ;
     fhir:display [ fhir:v "Re-activate the focal resource" ] ;
     fhir:definition [ fhir:v "Transition the focal resource from 'suspended' to 'active' or 'in-progress' as appropriate for the resource type." ]
  ] [
     fhir:code [ fhir:v "data-request" ] ;
     fhir:display [ fhir:v "Data request task" ] ;
     fhir:definition [ fhir:v "A type of Task asking the Task.owner to deliver the data corresponding to the characteristics defined by the Task.inputs to the Task.requester" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

