{
  "resourceType" : "CodeSystem",
  "id" : "task-business-status",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem task-business-status</b></p><a name=\"task-business-status\"> </a><a name=\"hctask-business-status\"> </a><p>This case-sensitive code system <code>https://projo.evoleen.com/fhir/CodeSystem/task-business-status</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\">waiting-for-delivery<a name=\"task-business-status-waiting-for-delivery\"> </a></td><td>Waiting for delivery</td><td>Task accepted by handleTaskDue; CommunicationRequest created; awaiting sidecar send confirmation.</td></tr><tr><td style=\"white-space:nowrap\">invited<a name=\"task-business-status-invited\"> </a></td><td>Invited</td><td>(Historical) Invitation template sent to patient.</td></tr><tr><td style=\"white-space:nowrap\">reminder-sent<a name=\"task-business-status-reminder-sent\"> </a></td><td>Reminder sent</td><td>(Historical) Reminder template sent to patient.</td></tr><tr><td style=\"white-space:nowrap\">collecting-responses<a name=\"task-business-status-collecting-responses\"> </a></td><td>Collecting responses</td><td>(Historical) One or more answers received; QR in progress.</td></tr><tr><td style=\"white-space:nowrap\">responses-collected<a name=\"task-business-status-responses-collected\"> </a></td><td>Responses collected</td><td>CommunicationRequest.status=completed; QR completed; Task.status=completed.</td></tr><tr><td style=\"white-space:nowrap\">delivery-failed<a name=\"task-business-status-delivery-failed\"> </a></td><td>Delivery failed</td><td>(Historical) Sidecar reported send failure.</td></tr><tr><td style=\"white-space:nowrap\">expired<a name=\"task-business-status-expired\"> </a></td><td>Expired</td><td>Response window elapsed without a completed QR. Task.status=cancelled.</td></tr></table></div>"
  },
  "url" : "https://projo.evoleen.com/fhir/CodeSystem/task-business-status",
  "version" : "0.1.0",
  "name" : "TaskBusinessStatus",
  "title" : "Projo Task Business Status",
  "status" : "draft",
  "experimental" : true,
  "date" : "2024-01-01",
  "publisher" : "Projo",
  "contact" : [{
    "name" : "Projo",
    "telecom" : [{
      "system" : "url",
      "value" : "https://projo.evoleen.com"
    }]
  }],
  "description" : "Lifecycle states for a Projo Task (single questionnaire dispatch). Carried on Task.businessStatus.coding. Projo currently writes only a subset: waiting-for-delivery, responses-collected, expired. The remaining codes (invited, reminder-sent, collecting-responses, delivery-failed) are documented for historical compatibility — they may appear on older Tasks but are no longer written by current code.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "CH",
      "display" : "Switzerland"
    }]
  }],
  "purpose" : "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" : "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" : true,
  "content" : "complete",
  "count" : 7,
  "concept" : [{
    "code" : "waiting-for-delivery",
    "display" : "Waiting for delivery",
    "definition" : "Task accepted by handleTaskDue; CommunicationRequest created; awaiting sidecar send confirmation."
  },
  {
    "code" : "invited",
    "display" : "Invited",
    "definition" : "(Historical) Invitation template sent to patient."
  },
  {
    "code" : "reminder-sent",
    "display" : "Reminder sent",
    "definition" : "(Historical) Reminder template sent to patient."
  },
  {
    "code" : "collecting-responses",
    "display" : "Collecting responses",
    "definition" : "(Historical) One or more answers received; QR in progress."
  },
  {
    "code" : "responses-collected",
    "display" : "Responses collected",
    "definition" : "CommunicationRequest.status=completed; QR completed; Task.status=completed."
  },
  {
    "code" : "delivery-failed",
    "display" : "Delivery failed",
    "definition" : "(Historical) Sidecar reported send failure."
  },
  {
    "code" : "expired",
    "display" : "Expired",
    "definition" : "Response window elapsed without a completed QR. Task.status=cancelled."
  }]
}