{
  "format": "thendoo-template/v1",
  "id": "vitamin-medication-schedule",
  "name": "Vitamin and medication schedule",
  "locale": "en",
  "templates": [
    {
      "type": "task",
      "name": "Refill before I run out",
      "body": {
        "items": [
          {
            "title": "Count how many days of supply are left",
            "offset_days": -10,
            "checklist": [],
            "notes": "If it's less than you thought, move the next steps earlier."
          },
          {
            "title": "Request the refill or a new prescription",
            "offset_days": -7,
            "checklist": [
              "Pharmacy or prescriber contacted",
              "Any appointment needed is booked"
            ],
            "notes": null
          },
          {
            "title": "Pick up the refill or confirm delivery",
            "offset_days": -3,
            "checklist": [],
            "notes": null
          },
          {
            "title": "Start the new supply and note when it will run out",
            "offset_days": 0,
            "checklist": [
              "Old packaging recycled",
              "Next run-out date written down",
              "Refill plan applied again with the new date"
            ],
            "notes": null
          }
        ],
        "body_md": null
      }
    }
  ],
  "habits": [
    {
      "key": "morning-dose",
      "name": "Take my morning vitamins or medication",
      "action_text": "Keep the organizer next to the kettle.",
      "cue": "When I make my first coffee or tea",
      "trigger": {
        "type": "time",
        "at_min": 480
      },
      "schedule": {
        "kind": "daily"
      },
      "streak_rule": {
        "misses_per_week": 0
      },
      "color": null,
      "icon": null
    },
    {
      "key": "evening-dose",
      "name": "Take my evening vitamins or medication",
      "action_text": "Put the organizer on the table as I set it.",
      "cue": "When I sit down for dinner",
      "trigger": {
        "type": "time",
        "at_min": 1140
      },
      "schedule": {
        "kind": "daily"
      },
      "streak_rule": {
        "misses_per_week": 0
      },
      "color": null,
      "icon": null
    },
    {
      "key": "fill-organizer",
      "name": "Fill the pill organizer for the week",
      "action_text": "Open the organizer and line up the boxes.",
      "cue": "After Sunday breakfast",
      "trigger": {
        "type": "none"
      },
      "schedule": {
        "kind": "weekdays",
        "days": [
          "SU"
        ]
      },
      "streak_rule": {
        "misses_per_week": 1
      },
      "color": null,
      "icon": null
    }
  ],
  "categories": []
}
