Use case for GreenDot goal with status change
greendot goal created first time as draft
CarePlan - "Measurement guideline plan" with unique "identifier.value" that identifies that particular goal uniquely at source "status" - "draft"
Note: This is assuming that the bundle only contains event related to the goal selection. If there is any BG (blood glucose) entry Device, DeviceComponent and DeviceMetric resources will be necessary.
greendot goal status change selected to in-progress
Care Plan - "Measurement guideline plan" with "identifier.value" that identifies that particular goal uniquely at source "status" - "active"
greendot goal status change selected to cancelled
Care Plan 1 - "Measurement guideline plan" with "identifier.value" that identifies that particular goal uniquely at source status "cancelled"
Care Plan 2 - "Measurement guideline plan" with "identifier.value" that identifies that particular goal uniquely at source "status" - "draft"
greendot goal status change selected to expired
Care Plan - "Measurement guideline plan" with "identifier.value" that identifies that particular goal uniquely at source "status" - "completed" "note" - "expired"
greendot goal status change selected from in-progress to completed
Care Plan - "Measurement guideline plan" with "identifier.value" that identifies that particular plan uniquely at source "status" - "completed" "note" - "completed"