<?xml version="1.0" encoding="UTF-8"?>

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="task-output"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: CodeSystem task-output</b></p><a name="task-output"> </a><a name="hctask-output"> </a><p>This case-sensitive code system <code>https://projo.evoleen.com/fhir/CodeSystem/task-output</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">communication-request<a name="task-output-communication-request"> </a></td><td>CommunicationRequest</td><td>Task.output entry referencing the dispatched CommunicationRequest.</td></tr><tr><td style="white-space:nowrap">questionnaire-response<a name="task-output-questionnaire-response"> </a></td><td>QuestionnaireResponse</td><td>Task.output entry referencing the completed QuestionnaireResponse.</td></tr></table></div>
  </text>
  <url value="https://projo.evoleen.com/fhir/CodeSystem/task-output"/>
  <version value="0.1.0"/>
  <name value="TaskOutput"/>
  <title value="Projo Task Output Type"/>
  <status value="draft"/>
  <experimental value="true"/>
  <date value="2024-01-01"/>
  <publisher value="Projo"/>
  <contact>
    <name value="Projo"/>
    <telecom>
      <system value="url"/>
      <value value="https://projo.evoleen.com"/>
    </telecom>
  </contact>
  <description value="Type codes for Task.output entries. The orchestrator stamps Task.output with these codes to link a Task to its side-effect resources: the CommunicationRequest it dispatched (code=communication-request) and the QuestionnaireResponse it ultimately collected (code=questionnaire-response). Used because HAPI does not auto-index CommunicationRequest.about (HAPI-0524), so the link is carried on Task.output rather than searched via ?about=."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="CH"/>
      <display value="Switzerland"/>
    </coding>
  </jurisdiction>
  <purpose value="Documentation-only artifact. Projo's runtime extensions, code systems, identifier systems and search parameter are TypeScript constants and bootstrap-time resources, NOT deployed StructureDefinitions. This StructureDefinition exists to document the contract; the source of truth is src/functions/src/lib/fhir/types.ts and docs/FHIR_EXTENSIONS.md."/>
  <copyright value="Copyright (c) Projo. Licensed under CC0-1.0 (public domain dedication). FHIR(R) is the registered trademark of HL7 and is used with permission. This IG references WhatsApp(R), a trademark of Meta Platforms, Inc., for descriptive purposes only."/>
  <caseSensitive value="true"/>
  <content value="complete"/>
  <count value="2"/>
  <concept>
    <code value="communication-request"/>
    <display value="CommunicationRequest"/>
    <definition value="Task.output entry referencing the dispatched CommunicationRequest."/>
  </concept>
  <concept>
    <code value="questionnaire-response"/>
    <display value="QuestionnaireResponse"/>
    <definition value="Task.output entry referencing the completed QuestionnaireResponse."/>
  </concept>
</CodeSystem>