Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

Example CodeSystem/task-code (Turtle)

Orders and Observations Work GroupMaturity Level: N/AStandards Status: Informative

Raw Turtle (+ also see Turtle/RDF Format Specification)

Definition for Code SystemTaskCode

@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

# - resource -------------------------------------------------------------------

[] a fhir:CodeSystem;
  fhir:Resource.id [ fhir:value "task-code"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2022-09-07T10:58:29.429+10:00" ];
     fhir:Meta.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/shareablecodesystem" ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:DomainResource.extension [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ];
     fhir:Extension.value [ fhir:value "oo" ]
  ];
  fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/CodeSystem/task-code"];
  fhir:CanonicalResource.identifier [
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.4.1397" ]
  ];
  fhir:CanonicalResource.version [ fhir:value "5.0.0-ballot"];
  fhir:CanonicalResource.name [ fhir:value "TaskCode"];
  fhir:CanonicalResource.title [ fhir:value "Task Codes"];
  fhir:CanonicalResource.status [ fhir:value "active"];
  fhir:CanonicalResource.experimental [ fhir:value "false"];
  fhir:CanonicalResource.description [ fhir:value "Codes indicating the type of action that is expected to be performed"];
  fhir:CodeSystem.url [ fhir:value "http://hl7.org/fhir/CodeSystem/task-code"];
  fhir:CodeSystem.identifier [
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.4.1397" ]
  ];
  fhir:CodeSystem.version [ fhir:value "5.0.0-ballot"];
  fhir:CodeSystem.name [ fhir:value "TaskCode"];
  fhir:CodeSystem.title [ fhir:value "Task Codes"];
  fhir:CodeSystem.status [ fhir:value "active"];
  fhir:CodeSystem.experimental [ fhir:value "false"];
  fhir:CodeSystem.description [ fhir:value "Codes indicating the type of action that is expected to be performed"];
  fhir:CodeSystem.caseSensitive [ fhir:value "true"];
  fhir:CodeSystem.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/task-code.html"];
  fhir:CodeSystem.content [ fhir:value "complete"];
  fhir:CodeSystem.concept [
     fhir:ConceptDefinitionComponent.code [ fhir:value "approve" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Activate/approve the focal resource" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "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:ConceptDefinitionComponent.code [ fhir:value "fulfill" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Fulfill the focal request" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "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:ConceptDefinitionComponent.code [ fhir:value "instantiate" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Instantiate the focal definition" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "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:ConceptDefinitionComponent.code [ fhir:value "abort" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Mark the focal resource as no longer active" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "Abort, cancel or withdraw the focal resource, as appropriate for the type of resource." ]
  ], [
     fhir:ConceptDefinitionComponent.code [ fhir:value "replace" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Replace the focal resource with the input resource" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "Replace the focal resource with the specified input resource" ]
  ], [
     fhir:ConceptDefinitionComponent.code [ fhir:value "change" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Change the focal resource" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "Update the focal resource of the owning system to reflect the content specified as the Task.focus" ]
  ], [
     fhir:ConceptDefinitionComponent.code [ fhir:value "suspend" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Suspend the focal resource" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "Transition the focal resource from 'active' or 'in-progress' to 'suspended'" ]
  ], [
     fhir:ConceptDefinitionComponent.code [ fhir:value "resume" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Re-activate the focal resource" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "Transition the focal resource from 'suspended' to 'active' or 'in-progress' as appropriate for the resource type." ]
  ] .

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


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.