/* * 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_ISOCODE_H_ #define HL7_ISOCODE_H_ #pragma interface #include /* * CODE * * IsoCode(unused) -- isolation */ class IsoCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, AntResPre = first + 0, _0val = first + 0,//antibiotic resistance precautions BloodAndNeePre = first + 1, _1val = first + 1,//blood and needle precautions EntPre = first + 2, _2val = first + 2,//enteric precautions NeuPre = first + 3, _3val = first + 3,//neutropenic precautions PreWomenPre = first + 4, _4val = first + 4,//pregnant women precautions ResIso = first + 5, _5val = first + 5,//respiratory isolation SecExcPre = first + 6, _6val = first + 6,//secretion/excretion precautions StrIso = first + 7, _7val = first + 7,//strict isolation WoundAndSkinPre = first + 8, _8val = first + 8,//wound and skin precautions Pre = first + 9, _9val = first + 9,//precautions last = 9, size = last - first + 1 }; IsoCode(); IsoCode(Value val); IsoCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline IsoCode::IsoCode() : LinearCode(_table,(size_t)size) {} inline IsoCode::IsoCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline IsoCode::IsoCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline IsoCode::operator IsoCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! HL7_ISOCODE_H_ */