/* * 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_OBSRESSTATUSCODESINTCODE_H_ #define HL7_OBSRESSTATUSCODESINTCODE_H_ #pragma interface #include /* * CODE * * ObsResStatusCodesIntCode(hl7_standard) -- observation result status codes interpretation */ class ObsResStatusCodesIntCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, RecComOverIsACorAndThusRepARes = first + 0, Cval = first + 0,//record coming over is a correction and thus replaces a result DelTheObxRec = first + 1, Dval = first + 1,//deletes the obx record FinalResCanOnlyBeChaWithACorRes = first + 2, Fval = first + 2,//final results; can only be changed with a corrected result. SpeInLabResPen = first + 3, Ival = first + 3,//specimen in lab; results pending PreRes = first + 4, Pval = first + 4,//preliminary results ResEntNotVer = first + 5, Rval = first + 5,//results entered -- not verified ParRes = first + 6, Sval = first + 6,//partial results ResStatusChaToFinalResDidNotChaDonTTransMitTest = first + 7, Uval = first + 7,//results status change to final. results did not change ( don't transmit test). ResCanBeObtForThisObs = first + 8, Xval = first + 8,//results cannot be obtained for this observation last = 8, size = last - first + 1 }; ObsResStatusCodesIntCode(); ObsResStatusCodesIntCode(Value val); ObsResStatusCodesIntCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline ObsResStatusCodesIntCode::ObsResStatusCodesIntCode() : LinearCode(_table,(size_t)size) {} inline ObsResStatusCodesIntCode::ObsResStatusCodesIntCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline ObsResStatusCodesIntCode::ObsResStatusCodesIntCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline ObsResStatusCodesIntCode::operator ObsResStatusCodesIntCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! HL7_OBSRESSTATUSCODESINTCODE_H_ */