# OHH CarePlan Task - Open Health Hub FHIR Implementation Guide v0.1.0

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **OHH CarePlan Task**

## Resource Profile: OHH CarePlan Task 

| | |
| :--- | :--- |
| *Official URL*:https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/ohh-care-plan-task | *Version*:0.1.0 |
| Active as of 2025-12-03 | *Computable Name*:OhhCarePlanTask |

 
A profile on the Task resource for CarePlan activities. 

**Usages:**

* Refer to this Profile: [OHH Create Care Plan Profile](StructureDefinition-ohh-create-care-plan.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/ohh-fhir|current/StructureDefinition/ohh-care-plan-task)

### Formal Views of Profile Content

 [Description of Profiles, Differentials, Snapshots and how the different presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](StructureDefinition-ohh-care-plan-task.csv), [Excel](StructureDefinition-ohh-care-plan-task.xlsx), [Schematron](StructureDefinition-ohh-care-plan-task.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "ohh-care-plan-task",
  "url" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/ohh-care-plan-task",
  "version" : "0.1.0",
  "name" : "OhhCarePlanTask",
  "title" : "OHH Care Plan Task Profile",
  "status" : "active",
  "date" : "2025-12-03T12:00:57+00:00",
  "publisher" : "Open Health Hub",
  "contact" : [
    {
      "name" : "Open Health Hub",
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.openhealthhub.com"
        },
        {
          "system" : "email",
          "value" : "support@openhealthhub.com"
        }
      ]
    }
  ],
  "description" : "A profile on the Task resource for CarePlan activities.",
  "fhirVersion" : "4.0.1",
  "mapping" : [
    {
      "identity" : "workflow",
      "uri" : "http://hl7.org/fhir/workflow",
      "name" : "Workflow Pattern"
    },
    {
      "identity" : "rim",
      "uri" : "http://hl7.org/v3",
      "name" : "RIM Mapping"
    },
    {
      "identity" : "w5",
      "uri" : "http://hl7.org/fhir/fivews",
      "name" : "FiveWs Pattern Mapping"
    },
    {
      "identity" : "v2",
      "uri" : "http://hl7.org/v2",
      "name" : "HL7 v2 Mapping"
    }
  ],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Task",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation" : "constraint",
  "differential" : {
    "element" : [
      {
        "id" : "Task",
        "path" : "Task",
        "constraint" : [
          {
            "key" : "register-program-requires-create-user",
            "severity" : "error",
            "human" : "Cannot use register-program without also enabling create-user",
            "expression" : "input.where(type.coding.where(code = 'register-program').exists()).empty() or input.where(type.coding.where(code = 'create-user').exists()).value.allTrue()",
            "source" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/ohh-care-plan-task"
          }
        ]
      },
      {
        "id" : "Task.status",
        "path" : "Task.status",
        "fixedCode" : "requested"
      },
      {
        "id" : "Task.intent",
        "path" : "Task.intent",
        "fixedCode" : "original-order"
      },
      {
        "id" : "Task.input",
        "path" : "Task.input",
        "slicing" : {
          "discriminator" : [
            {
              "type" : "value",
              "path" : "type.coding.code"
            }
          ],
          "rules" : "closed"
        },
        "min" : 1,
        "mustSupport" : true
      },
      {
        "id" : "Task.input:createUser",
        "path" : "Task.input",
        "sliceName" : "createUser",
        "min" : 0,
        "max" : "1",
        "mustSupport" : true
      },
      {
        "id" : "Task.input:createUser.type.coding",
        "path" : "Task.input.type.coding",
        "min" : 1,
        "max" : "1",
        "mustSupport" : true
      },
      {
        "id" : "Task.input:createUser.type.coding.code",
        "path" : "Task.input.type.coding.code",
        "min" : 1,
        "patternCode" : "create-user"
      },
      {
        "id" : "Task.input:createUser.value[x]",
        "path" : "Task.input.value[x]",
        "type" : [
          {
            "code" : "boolean"
          }
        ],
        "mustSupport" : true
      },
      {
        "id" : "Task.input:registerProgram",
        "path" : "Task.input",
        "sliceName" : "registerProgram",
        "min" : 0,
        "max" : "1",
        "mustSupport" : true
      },
      {
        "id" : "Task.input:registerProgram.type.coding",
        "path" : "Task.input.type.coding",
        "min" : 1,
        "max" : "1",
        "mustSupport" : true
      },
      {
        "id" : "Task.input:registerProgram.type.coding.code",
        "path" : "Task.input.type.coding.code",
        "min" : 1,
        "patternCode" : "register-program"
      },
      {
        "id" : "Task.input:registerProgram.value[x]",
        "path" : "Task.input.value[x]",
        "type" : [
          {
            "code" : "boolean"
          }
        ],
        "mustSupport" : true
      },
      {
        "id" : "Task.input:sendInvitationMail",
        "path" : "Task.input",
        "sliceName" : "sendInvitationMail",
        "min" : 0,
        "max" : "1",
        "mustSupport" : true
      },
      {
        "id" : "Task.input:sendInvitationMail.type.coding",
        "path" : "Task.input.type.coding",
        "min" : 1,
        "max" : "1",
        "mustSupport" : true
      },
      {
        "id" : "Task.input:sendInvitationMail.type.coding.code",
        "path" : "Task.input.type.coding.code",
        "min" : 1,
        "patternCode" : "send-invitation-mail"
      },
      {
        "id" : "Task.input:sendInvitationMail.value[x]",
        "path" : "Task.input.value[x]",
        "type" : [
          {
            "code" : "boolean"
          }
        ],
        "mustSupport" : true
      }
    ]
  }
}

```
