/* * This file is automatically Generated by ProtoGen r1.3. * Do not edit it. * * Copyright (c) 1995, 1996 Gunther Schadow. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef HL7_RESSTATUSCODE_H_ #define HL7_RESSTATUSCODE_H_ #pragma interface #include /* * CODE * * ResStatusCode(hl7_standard) -- result status */ class ResStatusCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, CorToRes = first + 0, Cval = first + 0,//correction to results FinalResOrderIsComAndVer = first + 1, Fval = first + 1,//final results; order is complete and verified NoResAvaSpeRecProInc = first + 2, Ival = first + 2,//no results available; specimen received, procedure incomplete OrderRecSpeNotYetRec = first + 3, Oval = first + 3,//order received; specimen not yet received PreAVerEarlyResIsAvaFinalResNotYetObt = first + 4, Pval = first + 4,//preliminary; a verified early result is available, final results not yet obtained ResStoNotYetVer = first + 5, Rval = first + 5,//results stored; not yet verified NoResAvaProSchButNotDone = first + 6, Sval = first + 6,//no results available; procedure scheduled, but not done NoResAvaOrderCanUsedOnlyOnQue = first + 7, Xval = first + 7,//no results available; order canceled. (used only on queries) NoOrderOnRecForThisTestUsedOnlyOnQue = first + 8, Yval = first + 8,//no order on record for this test. (used only on queries) NoRecOfThisPatUsedOnlyOnQue = first + 9, Zval = first + 9,//no record of this patient. (used only on queries) last = 9, size = last - first + 1 }; ResStatusCode(); ResStatusCode(Value val); ResStatusCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline ResStatusCode::ResStatusCode() : LinearCode(_table,(size_t)size) {} inline ResStatusCode::ResStatusCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline ResStatusCode::ResStatusCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline ResStatusCode::operator ResStatusCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! HL7_RESSTATUSCODE_H_ */