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

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

## PlanDefinition: OHH PlanDefinition 

| | |
| :--- | :--- |
| *Official URL*:https://api.openhealthhub.com/OpenHealthhub/fhir/4/PlanDefinition/a7b4be95-7fd1-480c-9f62-0100adfde3db | *Version*:0.1.0 |
| Active as of 2023-11-29 | *Computable Name*:Test_PlanDefinition |
| **Usage:**Program: Invites from FHIR Viewer | |

Language: en

Profile: [OHH Plan Definition Profile](StructureDefinition-ohh-plan-definition.md)

**url**: [PlanDefinition Test_PlanDefinition](PlanDefinition-a7b4be95-7fd1-480c-9f62-0100adfde3db.md)

**version**: 0.1.0

**name**: Test_PlanDefinition

**status**: Active

**date**: 2023-11-29 13:15:00+0000

**publisher**: Open Health Hub

**contact**: Open Health Hub: [https://www.openhealthhub.com](https://www.openhealthhub.com),[support@openhealthhub.com](mailto:support@openhealthhub.com)

### UseContexts

| | | |
| :--- | :--- | :--- |
| - | **Code** | **Value[x]** |
| * | [UsageContextType: program](http://terminology.hl7.org/7.0.0/CodeSystem-usage-context-type.html#usage-context-type-program)(Program) | Invites from FHIR Viewer |

> **goal**
> **id**goal-db117ee7-8059-450e-b425-f16e474eccd3
**description**:Patient Task
> **target**

### Dues

| | |
| :--- | :--- |
| - | **Extension** |
| * |  |



> **goal**
> **id**goal-e67a25eb-f8b7-4fcc-a392-051e5eb56c4c
**description**:Patient Notification Task
> **target**

### Dues

| | |
| :--- | :--- |
| - | **Extension** |
| * |  |



> **goal**
> **id**goal-a54b5c56-98d9-4731-bbe1-b4e37baf51ec
**description**:Caregiver Task
> **target**

### Dues

| | |
| :--- | :--- |
| - | **Extension** |
| * |  |



> **action**
> **id**db117ee7-8059-450e-b425-f16e474eccd3
**title**: Patient Task**description**: Example Questionnaire for Patient**goalId**: goal-db117ee7-8059-450e-b425-f16e474eccd3

### RelatedActions

| | | | |
| :--- | :--- | :--- | :--- |
| - | **ActionId** | **Relationship** | **Offset[x]** |
| * | c84bb624-b91b-4156-afe0-e369951193e8 | After | No display for Duration () |

### Participants

| | |
| :--- | :--- |
| - | **Type** |
| * | Patient |

**definition**:[OHH Questionnaire for Caregiver](Questionnaire-57953eb8-2455-4f96-a9dd-c86f31f28c9c.md)
> **action****code**:send notification to user

### RelatedActions

| | | | |
| :--- | :--- | :--- | :--- |
| - | **ActionId** | **Relationship** | **Offset[x]** |
| * | db117ee7-8059-450e-b425-f16e474eccd3 | After Start | No display for Duration () |

### Participants

| | |
| :--- | :--- |
| - | **Type** |
| * | Patient |

**type**:Fire Event

> **action**
> **id**e67a25eb-f8b7-4fcc-a392-051e5eb56c4c
**title**: Patient Notification Task**description**: Example Questionnaire for Patient**goalId**: goal-e67a25eb-f8b7-4fcc-a392-051e5eb56c4c**timing**: No display for Duration ()

### Participants

| | |
| :--- | :--- |
| - | **Type** |
| * | Patient |

**definition**:[OHH Questionnaire for Caregiver](Questionnaire-57953eb8-2455-4f96-a9dd-c86f31f28c9c.md)
> **action****code**:send notification to user

### RelatedActions

| | | | |
| :--- | :--- | :--- | :--- |
| - | **ActionId** | **Relationship** | **Offset[x]** |
| * | db117ee7-8059-450e-b425-f16e474eccd3 | After Start | No display for Duration () |

### Participants

| | |
| :--- | :--- |
| - | **Type** |
| * | Patient |

**type**:Fire Event

> **action**
> **id**a54b5c56-98d9-4731-bbe1-b4e37baf51ec
**title**: Practitioner Task**description**: Example Questionnaire for Practitioner**goalId**: goal-a54b5c56-98d9-4731-bbe1-b4e37baf51ec**timing**: No display for Duration ()

### Participants

| | | |
| :--- | :--- | :--- |
| - | **Type** | **Role** |
| * | Practitioner | psychiatrist |

**definition**:[Example Open Health Hub Questionnaire](Questionnaire-cf1aa9a1-051d-4c0d-bb63-71a95276a71c.md)



## Resource Content

```json
{
  "resourceType" : "PlanDefinition",
  "id" : "a7b4be95-7fd1-480c-9f62-0100adfde3db",
  "meta" : {
    "profile" : [
      "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/ohh-plan-definition"
    ]
  },
  "language" : "en",
  "url" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/PlanDefinition/a7b4be95-7fd1-480c-9f62-0100adfde3db",
  "version" : "0.1.0",
  "name" : "Test_PlanDefinition",
  "status" : "active",
  "date" : "2023-11-29T13:15:00+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"
        }
      ]
    }
  ],
  "useContext" : [
    {
      "code" : {
        "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
        "code" : "program",
        "display" : "Program"
      },
      "valueCodeableConcept" : {
        "coding" : [
          {
            "system" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/CodeSystem/program-use-context",
            "code" : "fhir-viewer-invite",
            "display" : "Invites from FHIR Viewer"
          }
        ]
      }
    }
  ],
  "goal" : [
    {
      "id" : "goal-db117ee7-8059-450e-b425-f16e474eccd3",
      "description" : {
        "text" : "Patient Task"
      },
      "target" : [
        {
          "due" : {
            "extension" : [
              {
                "url" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/iso-8601-duration",
                "valueString" : "P8DT4H"
              }
            ]
          }
        }
      ]
    },
    {
      "id" : "goal-e67a25eb-f8b7-4fcc-a392-051e5eb56c4c",
      "description" : {
        "text" : "Patient Notification Task"
      },
      "target" : [
        {
          "due" : {
            "extension" : [
              {
                "url" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/iso-8601-duration",
                "valueString" : "P8DT4H"
              }
            ]
          }
        }
      ]
    },
    {
      "id" : "goal-a54b5c56-98d9-4731-bbe1-b4e37baf51ec",
      "description" : {
        "text" : "Caregiver Task"
      },
      "target" : [
        {
          "due" : {
            "extension" : [
              {
                "url" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/iso-8601-duration",
                "valueString" : "P10DT8H"
              }
            ]
          }
        }
      ]
    }
  ],
  "action" : [
    {
      "id" : "db117ee7-8059-450e-b425-f16e474eccd3",
      "title" : "Patient Task",
      "description" : "Example Questionnaire for Patient",
      "goalId" : ["goal-db117ee7-8059-450e-b425-f16e474eccd3"],
      "relatedAction" : [
        {
          "actionId" : "c84bb624-b91b-4156-afe0-e369951193e8",
          "relationship" : "after",
          "offsetDuration" : {
            "extension" : [
              {
                "url" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/iso-8601-duration",
                "valueString" : "P10DT5H"
              }
            ]
          }
        }
      ],
      "participant" : [
        {
          "type" : "patient"
        }
      ],
      "definitionCanonical" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/Questionnaire/57953eb8-2455-4f96-a9dd-c86f31f28c9c",
      "action" : [
        {
          "code" : [
            {
              "coding" : [
                {
                  "system" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/CodeSystem/action-type",
                  "code" : "PUSH_NOTIFICATION"
                }
              ]
            }
          ],
          "relatedAction" : [
            {
              "actionId" : "db117ee7-8059-450e-b425-f16e474eccd3",
              "relationship" : "after-start",
              "offsetDuration" : {
                "extension" : [
                  {
                    "url" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/iso-8601-duration",
                    "valueString" : "PT0S"
                  }
                ]
              }
            }
          ],
          "participant" : [
            {
              "type" : "patient"
            }
          ],
          "type" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/action-type",
                "code" : "fire-event",
                "display" : "Fire Event"
              }
            ]
          }
        }
      ]
    },
    {
      "id" : "e67a25eb-f8b7-4fcc-a392-051e5eb56c4c",
      "title" : "Patient Notification Task",
      "description" : "Example Questionnaire for Patient",
      "goalId" : ["goal-e67a25eb-f8b7-4fcc-a392-051e5eb56c4c"],
      "timingDuration" : {
        "extension" : [
          {
            "url" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/iso-8601-duration",
            "valueString" : "P10DT5H"
          }
        ]
      },
      "participant" : [
        {
          "type" : "patient"
        }
      ],
      "definitionCanonical" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/Questionnaire/57953eb8-2455-4f96-a9dd-c86f31f28c9c",
      "action" : [
        {
          "code" : [
            {
              "coding" : [
                {
                  "system" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/CodeSystem/action-type",
                  "code" : "PUSH_NOTIFICATION"
                }
              ]
            }
          ],
          "relatedAction" : [
            {
              "actionId" : "db117ee7-8059-450e-b425-f16e474eccd3",
              "relationship" : "after-start",
              "offsetDuration" : {
                "extension" : [
                  {
                    "url" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/iso-8601-duration",
                    "valueString" : "PT0S"
                  }
                ]
              }
            }
          ],
          "participant" : [
            {
              "type" : "patient"
            }
          ],
          "type" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/action-type",
                "code" : "fire-event",
                "display" : "Fire Event"
              }
            ]
          }
        }
      ]
    },
    {
      "id" : "a54b5c56-98d9-4731-bbe1-b4e37baf51ec",
      "title" : "Practitioner Task",
      "description" : "Example Questionnaire for Practitioner",
      "goalId" : ["goal-a54b5c56-98d9-4731-bbe1-b4e37baf51ec"],
      "timingDuration" : {
        "extension" : [
          {
            "url" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/iso-8601-duration",
            "valueString" : "P1DT2H"
          }
        ]
      },
      "participant" : [
        {
          "type" : "practitioner",
          "role" : {
            "text" : "psychiatrist"
          }
        }
      ],
      "definitionCanonical" : "https://api.openhealthhub.com/OpenHealthhub/fhir/4/Questionnaire/cf1aa9a1-051d-4c0d-bb63-71a95276a71c"
    }
  ]
}

```
