public static bool TryParse(string value, out DiagnosticOrderStatus result) { result = default(DiagnosticOrderStatus); if (value == "requested") { result = DiagnosticOrderStatus.Requested; } else if (value == "received") { result = DiagnosticOrderStatus.Received; } else if (value == "accepted") { result = DiagnosticOrderStatus.Accepted; } else if (value == "inprogress") { result = DiagnosticOrderStatus.Inprogress; } else if (value == "review") { result = DiagnosticOrderStatus.Review; } else if (value == "complete") { result = DiagnosticOrderStatus.Complete; } else if (value == "suspended") { result = DiagnosticOrderStatus.Suspended; } else if (value == "rejected") { result = DiagnosticOrderStatus.Rejected; } else if (value == "failed") { result = DiagnosticOrderStatus.Failed; } else { return(false); } return(true); }
public static string ToString(DiagnosticOrderStatus value) { if (value == DiagnosticOrderStatus.Requested) { return("requested"); } else if (value == DiagnosticOrderStatus.Received) { return("received"); } else if (value == DiagnosticOrderStatus.Accepted) { return("accepted"); } else if (value == DiagnosticOrderStatus.Inprogress) { return("inprogress"); } else if (value == DiagnosticOrderStatus.Review) { return("review"); } else if (value == DiagnosticOrderStatus.Complete) { return("complete"); } else if (value == DiagnosticOrderStatus.Suspended) { return("suspended"); } else if (value == DiagnosticOrderStatus.Rejected) { return("rejected"); } else if (value == DiagnosticOrderStatus.Failed) { return("failed"); } else { throw new ArgumentException("Unrecognized DiagnosticOrderStatus value: " + value.ToString()); } }
public static bool TryParse(string value, out DiagnosticOrderStatus result) { result = default(DiagnosticOrderStatus); if( value=="requested") result = DiagnosticOrderStatus.Requested; else if( value=="received") result = DiagnosticOrderStatus.Received; else if( value=="accepted") result = DiagnosticOrderStatus.Accepted; else if( value=="inprogress") result = DiagnosticOrderStatus.Inprogress; else if( value=="review") result = DiagnosticOrderStatus.Review; else if( value=="complete") result = DiagnosticOrderStatus.Complete; else if( value=="suspended") result = DiagnosticOrderStatus.Suspended; else if( value=="rejected") result = DiagnosticOrderStatus.Rejected; else if( value=="failed") result = DiagnosticOrderStatus.Failed; else return false; return true; }
public static string ToString(DiagnosticOrderStatus value) { if( value==DiagnosticOrderStatus.Requested ) return "requested"; else if( value==DiagnosticOrderStatus.Received ) return "received"; else if( value==DiagnosticOrderStatus.Accepted ) return "accepted"; else if( value==DiagnosticOrderStatus.Inprogress ) return "inprogress"; else if( value==DiagnosticOrderStatus.Review ) return "review"; else if( value==DiagnosticOrderStatus.Complete ) return "complete"; else if( value==DiagnosticOrderStatus.Suspended ) return "suspended"; else if( value==DiagnosticOrderStatus.Rejected ) return "rejected"; else if( value==DiagnosticOrderStatus.Failed ) return "failed"; else throw new ArgumentException("Unrecognized DiagnosticOrderStatus value: " + value.ToString()); }