public static bool TryParse(string value, out CarePlanGoalStatus result)
            {
                result = default(CarePlanGoalStatus);

                if (value == "in progress")
                {
                    result = CarePlanGoalStatus.InProgress;
                }
                else if (value == "achieved")
                {
                    result = CarePlanGoalStatus.Achieved;
                }
                else if (value == "sustaining")
                {
                    result = CarePlanGoalStatus.Sustaining;
                }
                else if (value == "abandoned")
                {
                    result = CarePlanGoalStatus.Abandoned;
                }
                else
                {
                    return(false);
                }

                return(true);
            }
 public static string ToString(CarePlanGoalStatus value)
 {
     if (value == CarePlanGoalStatus.InProgress)
     {
         return("in progress");
     }
     else if (value == CarePlanGoalStatus.Achieved)
     {
         return("achieved");
     }
     else if (value == CarePlanGoalStatus.Sustaining)
     {
         return("sustaining");
     }
     else if (value == CarePlanGoalStatus.Abandoned)
     {
         return("abandoned");
     }
     else
     {
         throw new ArgumentException("Unrecognized CarePlanGoalStatus value: " + value.ToString());
     }
 }