/* * 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_DIAGNOSERSECIDCODE_H_ #define HL7_DIAGNOSERSECIDCODE_H_ #pragma interface #include /* * CODE * * DiaGnoSerSecIdCode(hl7_standard) -- diagnostic service section id */ class DiaGnoSerSecIdCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, AudioLogy = first + 0, AUval = first + 0,//audiology BloodGases = first + 1, BGval = first + 1,//blood gases BloodBank = first + 2, BLBval = first + 2,//blood bank Che = first + 3, CHval = first + 3,//chemistry CytLogy = first + 4, CPval = first + 4,//cytopathology CatScan = first + 5, CTval = first + 5,//cat scan CarCat = first + 6, CTHval = first + 6,//cardiac catheterization CarUlt = first + 7, CUSval = first + 7,//cardiac ultrasound EleEGEkgEecHol = first + 8, ECval = first + 8,//electrocardiac (e.g., ekg, eec, holter) EleEegEmg = first + 9, ENval = first + 9,//electroneuro (eeg, emg) HemLogy = first + 10, HMval = first + 10,//hematology Imm = first + 11, IMMval = first + 11,//immunologogy MicroBio = first + 12, MBval = first + 12,//microbiology MycLogy = first + 13, MCBval = first + 13,//mycobacteriology MycoLogy = first + 14, MYCval = first + 14,//mycology NucMagRes = first + 15, NMRval = first + 15,//nuclear magnetic resonance NucMedScan = first + 16, NMSval = first + 16,//nuclear medicine scan NurSerMea = first + 17, NRSval = first + 17,//nursing service measures OutLab = first + 18, OSLval = first + 18,//outside lab OccThe = first + 19, OTval = first + 19,//occupational therapy Other = first + 20, OTHval = first + 20,//other ObUlt = first + 21, OUSval = first + 21,//ob ultrasound PulFun = first + 22, PFval = first + 22,//pulmonary function Pha = first + 23, PHRval = first + 23,//pharmacy PhyHxDxAdmNoteEtc = first + 24, PHYval = first + 24,//physician (hx, dx, admission note, etc.) PhyThe = first + 25, PTval = first + 25,//physical therapy ResCareThe = first + 26, RCval = first + 26,//respiratory care (therapy) RadThe = first + 27, RTval = first + 27,//radiation therapy RadioLogyUlt = first + 28, RUSval = first + 28,//radiology ultrasound Rad = first + 29, RXval = first + 29,//radiograph SurPathoLogy = first + 30, SPval = first + 30,//surgical pathology SeroLogy = first + 31, SRval = first + 31,//serology ToxLogy = first + 32, TXval = first + 32,//toxicology ViroLogy = first + 33, VRval = first + 33,//virology VasUlt = first + 34, VUSval = first + 34,//vascular ultrasound Cin = first + 35, XRCval = first + 35,//cineradiograph last = 35, size = last - first + 1 }; DiaGnoSerSecIdCode(); DiaGnoSerSecIdCode(Value val); DiaGnoSerSecIdCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline DiaGnoSerSecIdCode::DiaGnoSerSecIdCode() : LinearCode(_table,(size_t)size) {} inline DiaGnoSerSecIdCode::DiaGnoSerSecIdCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline DiaGnoSerSecIdCode::DiaGnoSerSecIdCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline DiaGnoSerSecIdCode::operator DiaGnoSerSecIdCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! HL7_DIAGNOSERSECIDCODE_H_ */