{
  "resourceType": "PlanDefinition",
  "identifier": [
    {
      "system": "http://someIdentifier.com",
      "value": "LungDiagnosis_PD3"
    }
  ],
  "name": "Lung Cancer 6 month followup",
  "title": "Lung Cancer 6 month followup",
  "type": {
    "coding": [
      {
        "code": "workflow-definition"
      }
    ]
  },
  "status": "active",
  "action": [
    {
      "title": "Lung_Cancer_6_month_followup",
      "trigger": [
        {
          "type": "data-added",
          "data": [
            {
              "type": "Observation",
              "codeFilter": [
                {
                  "code": [
                    {
                      "system": "http://radlex.org",
                      "code": "RID50138",
                      "display": "Lung-RADS 3"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "condition": [
        {
          "kind": "start",
          "expression": {
            "language": "text/cql",
            "expression": "1. Check if there are existing low dose cts between today and 5 years prior to today 2. If these are multiple, sort by ascending date  3. If the last date + 5 years >= today's date then order low does ct  4. Do within six momths of last chest ct"
          }
        }
      ]
    }
  ]
}