/* * 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_LABEVENTINFO_H_ #define HL7_LABEVENTINFO_H_ #include #pragma interface #include #include #include class LabEventInfo : protected odbm { protected: // key char *loinc_num; // string section char *labEventClass; char *property; char *msmt; char *unit; char *constUnit; // constant.unit // scalar section double constVal; // constant.value double minValue; double lowAlert; double lowNormal; double highNormal; double highAlert; double maxValue; double increment; int precision; public: LabEventInfo(); LabEventInfo(const LabEventInfo&); LabEventInfo(const char *loinc); ~LabEventInfo(); LabEventInfo& operator = (const LabEventInfo&); LabEventInfo& operator = (const char *); bool lookup(const char *loinc); const char *getLoincNum() const; const char *getLabEventClass() const; const char *getProperty() const; const char *getMsmt() const; const char *getUnit() const; const char *getConstUnit() const; double getConstVal() const; double getMinValue() const; double getLowAlert() const; double getLowNormal() const; double getHighNormal() const; double getHighAlert() const; double getMaxValue() const; double getIncrement() const; int getPrecision() const; private: static odbm_file odbmf; static u_int odbm_obj_cnt; void set(const char *); protected: LabEventInfo(int mode); // LabEventInfo for write access to the odbm }; #ifndef OUTLINE #include "LabEventInfo.icc" #endif #endif