/* * 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_AMBSTATUSCODE_H_ #define HL7_AMBSTATUSCODE_H_ #pragma interface #include /* * CODE * * AmbStatusCode(user_defined) -- ambulatory status */ class AmbStatusCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, NoFunLim = first + 0, A0val = first + 0,//no functional limitations AmbWithAssDev = first + 1, A1val = first + 1,//ambulates with assistive device WheStrBound = first + 2, A2val = first + 2,//wheelchair/stretcher bound ComNonRes = first + 3, A3val = first + 3,//comatose; non-responsive Dis = first + 4, A4val = first + 4,//disoriented VisImp = first + 5, A5val = first + 5,//vision impaired HeaImp = first + 6, A6val = first + 6,//hearing impaired SpeImp = first + 7, A7val = first + 7,//speech impaired NonSpe = first + 8, A8val = first + 8,//nonenglish speaking FunLevelUnk = first + 9, A9val = first + 9,//functional level unknown OxyThe = first + 10, B1val = first + 10,//oxygen therapy SpeEquTubesIvsCat = first + 11, B2val = first + 11,//special equipment (tubes, ivs, catheters) Amp = first + 12, B3val = first + 12,//amputee Mas = first + 13, B4val = first + 13,//mastectomy ParaPle = first + 14, B5val = first + 14,//paraplegic Pre = first + 15, B6val = first + 15,//pregnant last = 15, size = last - first + 1 }; AmbStatusCode(); AmbStatusCode(Value val); AmbStatusCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline AmbStatusCode::AmbStatusCode() : LinearCode(_table,(size_t)size) {} inline AmbStatusCode::AmbStatusCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline AmbStatusCode::AmbStatusCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline AmbStatusCode::operator AmbStatusCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! HL7_AMBSTATUSCODE_H_ */