Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
  "identifier": "043fc8cb-0459-4b39-b71c-abc15f13a5dd",
  "version": "1",
  "name": "IRS-2020-06-24-Dynamic-Task-Test-Plan",
  "title": "IRS 2020-06-24 Dynamic Task Test Plan",
  "status": "active",
  "date": "2020-06-24",
  "effectivePeriod": {
    "start": "2020-06-24",
    "end": "2020-12-31"
  },
  "useContext": [],
  "jurisdiction": [
    {
      "code": "450171666fffaf7f-cc14f16f-4f2f4713-b83fa1ac-4a72ce17bf910cf6e2fe7f2a"
    }
  ],
  "goal": [
    {
      "id": "IRS",
      "description": "Spray structures in the operational area",
      "priority": "medium-priority",
      "target": [
        {
          "measure": "Percent of structures sprayed",
          "detail": {
            "detailQuantity": {
              "value": 90,
              "comparator": ">=",
              "unit": "Percent"
            }
          },
          "due": "2020-12-31"
        }
      ]
    }
  ],
  "action": [
    {
      "identifier": "b646cfe1-7180-4494-80b5-ee20579dc343",
      "prefix": 1,
      "title": "Spray Structures",
      "description": "Visit each structure in the operational area and attempt to spray",
      "code": "IRS",
      "trigger": [
          {
            "type": "named-event",
            "name": "plan-activation"
          },
          {
            "type": "named-event",
            "name": "event-submission",
            "conditionexpression": {
              "expression": "questionnaire = 'Register_Structure'"
            }
          }
        ],
        "condition": [
          {
            "kind": "applicability",
            "expression": {
              "description": "Structure is residential",
              "expression": "Location$this.is(FHIR.QuestionnaireResponse) or $this.type.where(id='locationType').text = 'Residential Structure'"
            }
          },
          {
            "kind": "applicability",
            "expression": {
              "description": "Register stucture Event submitted for a residential structure",
              "expression": "$this.is(FHIR.Location) or (questionnaire = 'Register_Structure' ANDand item.where(linkId='structureType').answer.value ='Residential Structure')"
            }
          }
        ],
      "timingPeriod": {
        "start": "2020-06-24",
        "end": "2020-12-31"
      },
      "reason": "Routine",
      "goalId": "IRS",
      "subjectCodableConcept": {
        "text": "Location"
      },
      "definitionUri": "spray_form.json"
    }
  ]
}

...