/* * 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_ROUTEOFADMCODE_H_ #define HL7_ROUTEOFADMCODE_H_ #pragma interface #include /* * CODE * * RouteOfAdmCode(hl7_standard) -- route of administration */ class RouteOfAdmCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, ApplyExt = first + 0, APval = first + 0,//apply externally Buc = first + 1, Bval = first + 1,//buccal Den = first + 2, DTval = first + 2,//dental GasTube = first + 3, GTTval = first + 3,//gastronomy tube GuIrr = first + 4, GUval = first + 4,//gu irrigant IntraArt = first + 5, IAval = first + 5,//intra-arterial IntraCar = first + 6, ICval = first + 6,//intracardiac IntraDer = first + 7, IDval = first + 7,//intradermal Inh = first + 8, IHval = first + 8,//inhalation IntraMus = first + 9, IMval = first + 9,//intramuscular IntraNasal = first + 10, INval = first + 10,//intranasal IntraOcu = first + 11, IOval = first + 11,//intraocular IntraPer = first + 12, IPval = first + 12,//intraperitoneal IntraSyn = first + 13, ISval = first + 13,//intrasynovial IntraThe = first + 14, ITval = first + 14,//intrathecal IntraVen = first + 15, IVval = first + 15,//intravenous Nas = first + 16, NGval = first + 16,//nasogastric Nasal = first + 17, NSval = first + 17,//nasal Oph = first + 18, OPval = first + 18,//ophthalmic Otic = first + 19, OTval = first + 19,//otic Oral = first + 20, POval = first + 20,//oral Rec = first + 21, PRval = first + 21,//rectal SubCut = first + 22, SCval = first + 22,//subcutaneous SubLin = first + 23, SLval = first + 23,//sublingual TransDer = first + 24, TDval = first + 24,//transdermal TransLin = first + 25, TLval = first + 25,//translingual Top = first + 26, TPval = first + 26,//topical Ure = first + 27, URval = first + 27,//urethral Vag = first + 28, VGval = first + 28,//vaginal last = 28, size = last - first + 1 }; RouteOfAdmCode(); RouteOfAdmCode(Value val); RouteOfAdmCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline RouteOfAdmCode::RouteOfAdmCode() : LinearCode(_table,(size_t)size) {} inline RouteOfAdmCode::RouteOfAdmCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline RouteOfAdmCode::RouteOfAdmCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline RouteOfAdmCode::operator RouteOfAdmCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! HL7_ROUTEOFADMCODE_H_ */