R5 Final QA

This page is part of the FHIR Specification (v5.0.0-draft-final: Final QA Preview for R5 - see ballot notes). 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 R3

Example PlanDefinition/plandefinition-predecessor-example (JSON)

Clinical Decision Support Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw JSON (canonical form + also see JSON Format Specification)

Plan Definition Illustrating Predecessor Relationship

{
  "resourceType" : "PlanDefinition",
  "id" : "plandefinition-predecessor-example",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n         \n      <table class=\"grid dict\">\n            \n        <tr>\n               \n          <td>\n                  \n            <b>Id: </b>\n               \n          </td>\n            \n        </tr>\n            \n        <tr>\n               \n          <td style=\"padding-left: 25px; padding-right: 25px;\">PlanDefinition/zika-virus-intervention-initial</td>\n            \n        </tr>\n         \n      </table>\n         \n      <p/>\n         \n      <table class=\"grid dict\">\n            \n        <tr>\n               \n          <td>\n                  \n            <b>Identifier: </b>\n               \n          </td>\n            \n        </tr>\n            \n        <tr>\n               \n          <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  \n            <b>value: </b>\n                  \n            <span>zika-virus-intervention</span>\n               \n          </td>\n            \n        </tr>\n         \n      </table>\n         \n      <p/>\n         \n      <table class=\"grid dict\">\n            \n        <tr>\n               \n          <td>\n                  \n            <b>Title: </b>\n               \n          </td>\n            \n        </tr>\n            \n        <tr>\n               \n          <td style=\"padding-left: 25px; padding-right: 25px;\">Example Zika Virus Intervention</td>\n            \n        </tr>\n         \n      </table>\n         \n      <p/>\n         \n      <table class=\"grid dict\">\n            \n        <tr>\n               \n          <td>\n                  \n            <b>Status: </b>\n               \n          </td>\n            \n        </tr>\n            \n        <tr>\n               \n          <td style=\"padding-left: 25px; padding-right: 25px;\">active</td>\n            \n        </tr>\n         \n      </table>\n         \n      <p/>\n         \n      <table class=\"grid dict\">\n            \n        <tr>\n               \n          <td>\n                  \n            <b>Description: </b>\n               \n          </td>\n            \n        </tr>\n            \n        <tr>\n               \n          <td style=\"padding-left: 25px; padding-right: 25px;\">Zika Virus Management intervention describing the CDC Guidelines for Zika Virus Reporting and Management.</td>\n            \n        </tr>\n         \n      </table>\n         \n      <p/>\n         \n      <table class=\"grid dict\">\n            \n        <tr>\n               \n          <td>\n                  \n            <b>Topic: </b>\n               \n          </td>\n            \n        </tr>\n            \n        <tr>\n               \n          <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  \n            <span>\n                     \n              <b>text: </b>\n                     \n              <span>Zika Virus Management</span>\n                  \n            </span>\n               \n          </td>\n            \n        </tr>\n         \n      </table>\n         \n      <p/>\n         \n      <table class=\"grid dict\">\n            \n        <tr>\n               \n          <td>\n                  \n            <b>Library: </b>\n               \n          </td>\n            \n        </tr>\n            \n        <tr>\n               \n          <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  \n            <b>reference: </b>\n                  \n            <span>Library/zika-virus-intervention-logic</span>\n               \n          </td>\n            \n        </tr>\n         \n      </table>\n         \n      <p/>\n         \n      <h2>Actions</h2>\n         \n      <p style=\"width: 100%;\" class=\"hierarchy\">\n            \n        <span>\n               \n          <b>Step: </b>\n               \n          <br/>\n               \n          <span style=\"padding-left: 25px;\">\n                  \n            <b>title: </b>\n                  \n            <span>Zika Virus Assessment</span>\n                  \n            <br/>\n               \n          </span>\n               \n          <span style=\"padding-left: 25px;\">\n                  \n            <b>condition: </b>\n                  \n            <br/>\n                  \n            <span style=\"padding-left: 50px;\">\n                     \n              <b>type: </b>\n                     \n              <span>applicability</span>\n                     \n              <br/>\n                  \n            </span>\n                  \n            <span style=\"padding-left: 50px;\">\n                     \n              <b>expression: </b>\n                     \n              <span>Is Patient Pregnant</span>\n                     \n              <br/>\n                  \n            </span>\n               \n          </span>\n               \n          <span style=\"padding-left: 25px;\">\n                  \n            <span>\n                     \n              <b>Step: </b>\n                     \n              <br/>\n                     \n              <span style=\"padding-left: 50px;\">\n                        \n                <b>condition: </b>\n                        \n                <br/>\n                        \n                <span style=\"padding-left: 75px;\">\n                           \n                  <b>type: </b>\n                           \n                  <span>applicability</span>\n                           \n                  <br/>\n                        \n                </span>\n                        \n                <span style=\"padding-left: 75px;\">\n                           \n                  <b>expression: </b>\n                           \n                  <span>Should Administer Zika Virus Exposure Assessment</span>\n                           \n                  <br/>\n                        \n                </span>\n                     \n              </span>\n                     \n              <span style=\"padding-left: 50px;\">\n                        \n                <b>condition: </b>\n                        \n                <br/>\n                        \n                <span style=\"padding-left: 75px;\">\n                           \n                  <b>reference: </b>\n                           \n                  <br/>\n                           \n                  <span style=\"padding-left: 100px;\">#administer-zika-virus-exposure-assessment</span>\n                           \n                  <br/>\n                           \n                  <span>\n\t\t\t\t\t\t\t \n                    <span style=\"padding-left: 75px;\">\n\t\t\t\t\t\t\t\t\n                      <b>description: </b>\n\t\t\t\t\t\t\t\t\n                      <span>Administer Zika Virus Exposure Assessment</span>\n\t\t\t\t\t\t\t\t\n                      <br/>\n\t\t\t\t\t\t\t \n                    </span>\n\t\t\t\t\t\t\t \n                    <span style=\"padding-left: 75px;\">\n\t\t\t\t\t\t\t\t\n                      <b>category: </b>\n\t\t\t\t\t\t\t\t\n                      <span>procedure</span>\n\t\t\t\t\t\t\t\t\n                      <br/>\n\t\t\t\t\t\t\t \n                    </span>\n                           \n                  </span>\n                        \n                </span>\n                     \n              </span>\n                     \n              <span style=\"padding-left: 50px;\"/>\n                  \n            </span>\n                  \n            <span>\n                     \n              <b>Step: </b>\n                     \n              <br/>\n                     \n              <span style=\"padding-left: 75px;\">\n                        \n                <b>condition: </b>\n                        \n                <br/>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>type: </b>\n                           \n                  <span>applicability</span>\n                           \n                  <br/>\n                        \n                </span>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>expression: </b>\n                           \n                  <span>Should Order Serum + Urine rRT-PCR Test</span>\n                           \n                  <br/>\n                        \n                </span>\n                     \n              </span>\n                     \n              <span style=\"padding-left: 75px;\">\n                        \n                <b>condition: </b>\n                        \n                <br/>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>reference: </b>\n                           \n                  <br/>\n                           \n                  <span style=\"padding-left: 125px;\">ActivityDefinition/order-serum-urine-rrt-pcr-test</span>\n                           \n                  <br/>\n                        \n                </span>\n                     \n              </span>\n                     \n              <span style=\"padding-left: 50px;\"/>\n                  \n            </span>\n                  \n            <span>\n                     \n              <b>Step: </b>\n                     \n              <br/>\n                     \n              <span style=\"padding-left: 75px;\">\n                        \n                <b>condition: </b>\n                        \n                <br/>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>type: </b>\n                           \n                  <span>applicability</span>\n                           \n                  <br/>\n                        \n                </span>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>expression: </b>\n                           \n                  <span>Should Order Serum Zika Virus IgM + Dengue Virus IgM</span>\n                           \n                  <br/>\n                        \n                </span>\n                     \n              </span>\n                     \n              <span style=\"padding-left: 75px;\">\n                        \n                <b>condition: </b>\n                        \n                <br/>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>reference: </b>\n                           \n                  <br/>\n                           \n                  <span style=\"padding-left: 125px;\">#order-serum-zika-dengue-virus-igm</span>\n                           \n                  <br/>\n                           \n                  <span>\n                              \n                    <span style=\"padding-left: 50px;\">\n                                 \n                      <span style=\"padding-left: 50px;\">\n                                    \n                        <b>description: </b>\n                                    \n                        <span>Order Serum Zika and Dengue Virus IgM</span>\n                                    \n                        <br/>\n                                 \n                      </span>\n                                 \n                      <span style=\"padding-left: 75px;\">\n                                    \n                        <b>related:</b>\n                                    \n                        <br/>\n                                    \n                        <span style=\"padding-left: 100px;\">\n                                       \n                          <b>type: </b>\n                                       \n                          <span>documentation</span>\n                                       \n                          <br/>\n                                    \n                        </span>\n                                    \n                        <span style=\"padding-left: 100px;\">\n                                       \n                          <b>display: </b>\n                                       \n                          <span>Explanation of diagnostic tests for Zika virus and which to use based on the patients clinical and exposure history.</span>\n                                       \n                          <br/>\n                                    \n                        </span>\n                                 \n                      </span>\n                                 \n                      <span style=\"padding-left: 100px;\">\n                                    \n                        <b>category: </b>\n                                    \n                        <span>diagnostic</span>\n                                    \n                        <br/>\n                                 \n                      </span>\n                              \n                    </span>\n                           \n                  </span>\n                           \n                  <span/>\n                        \n                </span>\n                     \n              </span>\n                     \n              <span style=\"padding-left: 50px;\"/>\n                  \n            </span>\n                  \n            <span>\n                     \n              <b>Step: </b>\n                     \n              <br/>\n                     \n              <span style=\"padding-left: 75px;\">\n                        \n                <b>condition: </b>\n                        \n                <br/>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>type: </b>\n                           \n                  <span>applicability</span>\n                           \n                  <br/>\n                        \n                </span>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>expression: </b>\n                           \n                  <span>Should Consider IgM Antibody Testing</span>\n                           \n                  <br/>\n                        \n                </span>\n                     \n              </span>\n                     \n              <span style=\"padding-left: 75px;\">\n                        \n                <b>condition: </b>\n                        \n                <br/>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>reference: </b>\n                           \n                  <br/>\n                           \n                  <span style=\"padding-left: 125px;\">ActivityDefinition/consider-igm-antibody-testing</span>\n                           \n                  <br/>\n                        \n                </span>\n                     \n              </span>\n                     \n              <span style=\"padding-left: 50px;\"/>\n                  \n            </span>\n                  \n            <span>\n                     \n              <b>Step: </b>\n                     \n              <br/>\n                     \n              <span style=\"padding-left: 75px;\">\n                        \n                <b>condition: </b>\n                        \n                <br/>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>type: </b>\n                           \n                  <span>applicability</span>\n                           \n                  <br/>\n                        \n                </span>\n                        \n                <span style=\"padding-left: 100px;\">\n                           \n                  <b>expression: </b>\n                           \n                  <span>Should Provide Mosquito Prevention and Contraception Advice</span>\n                           \n                  <br/>\n                        \n                </span>\n                     \n              </span>\n                     \n              <span style=\"padding-left: 50px;\">\n                        \n                <span>\n                           \n                  <b>Step: </b>\n                           \n                  <br/>\n                           \n                  <span style=\"padding-left: 75px;\">\n                              \n                    <b>condition: </b>\n                              \n                    <br/>\n                              \n                    <span style=\"padding-left: 100px;\">\n                                 \n                      <b>reference: </b>\n                                 \n                      <br/>\n                                 \n                      <span style=\"padding-left: 125px;\">#provide-mosquito-prevention-advice</span>\n                                 \n                      <span>\n                                    \n                        <span style=\"padding-left: 75px;\">\n                                       \n                          <br/>\n                                       \n                          <span style=\"padding-left: 100px;\">\n                                          \n                            <b>description: </b>\n                                          \n                            <span>Provide mosquito prevention advice</span>\n                                          \n                            <br/>\n                                       \n                          </span>\n                                       \n                          <span style=\"padding-left: 75px;\">\n                                          \n                            <b>related:</b>\n                                          \n                            <br/>\n                                          \n                            <span style=\"padding-left: 100px;\">\n                                             \n                              <b>type: </b>\n                                             \n                              <span>documentation</span>\n                                             \n                              <br/>\n                                          \n                            </span>\n                                          \n                            <span style=\"padding-left: 100px;\">\n                                             \n                              <b>display: </b>\n                                             \n                              <span>Advice for patients about how to avoid Mosquito bites.</span>\n                                             \n                              <br/>\n                                          \n                            </span>\n                                       \n                          </span>\n                                       \n                          <span style=\"padding-left: 75px;\">\n                                          \n                            <b>related:</b>\n                                          \n                            <br/>\n                                          \n                            <span style=\"padding-left: 100px;\">\n                                             \n                              <b>type: </b>\n                                             \n                              <span>documentation</span>\n                                             \n                              <br/>\n                                          \n                            </span>\n                                          \n                            <span style=\"padding-left: 100px;\">\n                                             \n                              <b>display: </b>\n                                             \n                              <span>Advice for patients about which mosquito repellents are effective and safe to use in pregnancy. [DEET, IF3535 and Picardin are safe during]</span>\n                                             \n                              <br/>\n                                          \n                            </span>\n                                       \n                          </span>\n                                       \n                          <span style=\"padding-left: 100px;\">\n                                          \n                            <b>category: </b>\n                                          \n                            <span>communication</span>\n                                          \n                            <br/>\n                                       \n                          </span>\n                                    \n                        </span>\n                                 \n                      </span>\n                              \n                    </span>\n                           \n                  </span>\n                           \n                  <span style=\"padding-left: 75px;\"/>\n                        \n                </span>\n                        \n                <span>\n                           \n                  <b>Step: </b>\n                           \n                  <br/>\n                           \n                  <span style=\"padding-left: 75px;\">\n                              \n                    <b>condition: </b>\n                              \n                    <br/>\n                              \n                    <span style=\"padding-left: 100px;\">\n                                 \n                      <b>reference: </b>\n                                 \n                      <br/>\n                                 \n                      <span style=\"padding-left: 125px;\">ActivityDefinition/provide-contraception-advice</span>\n                                 \n                      <br/>\n                              \n                    </span>\n                           \n                  </span>\n                        \n                </span>\n                     \n              </span>\n                  \n            </span>\n               \n          </span>\n            \n        </span>\n         \n      </p>\n      \n    </div>"
  },
  "url" : "http://example.org/PlanDefinition/plandefinition-predecessor-example",
  "identifier" : [{
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:oid:2.16.840.1.113883.4.642.11.9"
  },
  {
    "use" : "official",
    "value" : "plandefinition-predecessor-example"
  }],
  "version" : "1.0.0",
  "name" : "ExampleZikaVirusIntervention",
  "title" : "Example Zika Virus Intervention",
  "status" : "active",
  "date" : "2016-11-14",
  "description" : "Zika Virus Management intervention describing the CDC Guidelines for Zika Virus Reporting and Management.",
  "topic" : [{
    "text" : "Zika Virus Management"
  }],
  "relatedArtifact" : [{
    "type" : "derived-from",
    "document" : {
      "url" : "https://www.cdc.gov/mmwr/volumes/65/wr/mm6539e1.htm?s_cid=mm6539e1_w"
    }
  },
  {
    "type" : "successor",
    "resource" : "http://example.org/fhir/PlanDefinition/zika-virus-intervention"
  }],
  "library" : ["http://example.org/fhir/Library/zika-virus-intervention-logic"],
  "action" : [{
    "title" : "Zika Virus Assessment",
    "trigger" : [{
      "type" : "named-event",
      "name" : "patient-view"
    }],
    "condition" : [{
      "kind" : "applicability",
      "expression" : {
        "language" : "text/cql",
        "expression" : "Is Patient Pregnant"
      }
    }],
    "action" : [{
      "condition" : [{
        "kind" : "applicability",
        "expression" : {
          "language" : "text/cql",
          "expression" : "Should Administer Zika Virus Exposure Assessment"
        }
      }],
      "definitionCanonical" : "http://example.org/fhir/ActivityDefinition/administer-zika-virus-exposure-assessment"
    },
    {
      "condition" : [{
        "kind" : "applicability",
        "expression" : {
          "language" : "text/cql",
          "expression" : "Should Order Serum + Urine rRT-PCR Test"
        }
      }],
      "definitionCanonical" : "http://example.org/fhir/ActivityDefinition/order-serum-urine-rrt-pcr-test"
    },
    {
      "condition" : [{
        "kind" : "applicability",
        "expression" : {
          "language" : "text/cql",
          "expression" : "Should Order Serum Zika Virus IgM + Dengue Virus IgM"
        }
      }],
      "definitionCanonical" : "http://example.org/fhir/ActivityDefinition/order-serum-zika-dengue-virus-igm"
    },
    {
      "condition" : [{
        "kind" : "applicability",
        "expression" : {
          "language" : "text/cql",
          "expression" : "Should Consider IgM Antibody Testing"
        }
      }],
      "definitionCanonical" : "http://example.org/fhir/ActivityDefinition/consider-igm-antibody-testing"
    },
    {
      "condition" : [{
        "kind" : "applicability",
        "expression" : {
          "language" : "text/cql",
          "expression" : "Should Provide Mosquito Prevention and Contraception Advice"
        }
      }],
      "action" : [{
        "definitionCanonical" : "http://example.org/fhir/ActivityDefinition/provide-mosquito-prevention-advice"
      },
      {
        "definitionCanonical" : "http://example.org/fhir/ActivityDefinition/provide-contraception-advice"
      }]
    }]
  }]
}

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.