/* * 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 PROTOGEN_EVENTTYPECODE_H_ #define PROTOGEN_EVENTTYPECODE_H_ #pragma interface #include /* * CODE * * EventTypeCode(derived) -- event type */ class EventTypeCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, AdmitAPat = first + 0, A01val = first + 0,//admit a patient TransFerAPat = first + 1, A02val = first + 1,//transfer a patient DisAPat = first + 2, A03val = first + 2,//discharge a patient RegAPat = first + 3, A04val = first + 3,//register a patient PreAPat = first + 4, A05val = first + 4,//preadmit a patient TransFerAnOutToInp = first + 5, A06val = first + 5,//transfer an outpatient to inpatient TransFerAnInpToOut = first + 6, A07val = first + 6,//transfer an inpatient to outpatient UpdPatInf = first + 7, A08val = first + 7,//update patient information PatDep = first + 8, A09val = first + 8,//patient departing PatArr = first + 9, A10val = first + 9,//patient arriving CanAdmit = first + 10, A11val = first + 10,//cancel admit CanTransFer = first + 11, A12val = first + 11,//cancel transfer CanDis = first + 12, A13val = first + 12,//cancel discharge PenAdmit = first + 13, A14val = first + 13,//pending admit PenTransFer = first + 14, A15val = first + 14,//pending transfer PenDis = first + 15, A16val = first + 15,//pending discharge SwapPat = first + 16, A17val = first + 16,//swap patients MergePatInf = first + 17, A18val = first + 17,//merge patient information PatQuery = first + 18, A19val = first + 18,//patient, query NurCenAppUpd = first + 19, A20val = first + 19,//nursing/census application updates LeaveOfAbsOutLea = first + 20, A21val = first + 20,//leave of absence - out (leaving) LeaveOfAbsInRet = first + 21, A22val = first + 21,//leave of absence - in (returning) DelAPatRec = first + 22, A23val = first + 22,//delete a patient recorf LinkPatInf = first + 23, A24val = first + 23,//link patient information CanPenDis = first + 24, A25val = first + 24,//cancel pending discharge CanPenTransFer = first + 25, A26val = first + 25,//cancel pending transfer CanPenAdmit = first + 26, A27val = first + 26,//cancel pending admit AddPerSonInf = first + 27, A28val = first + 27,//add person information DelPerSonInf = first + 28, A29val = first + 28,//delete person information MergePerSonInf = first + 29, A30val = first + 29,//merge person information UpdPerSonInf = first + 30, A31val = first + 30,//update person information CanPatArr = first + 31, A32val = first + 31,//cancel patient arriving CanPatDep = first + 32, A33val = first + 32,//cancel patient departing MergePatInfPatIdOnly = first + 33, A34val = first + 33,//merge patient information - patient id only MergePatInfAccNumOnly = first + 34, A35val = first + 34,//merge patient information - account number only MergePatInfPatIdAndAccNum = first + 35, A36val = first + 35,//merge patient information - patient id and account number UnlPatInf = first + 36, A37val = first + 36,//unlink patient information AddAndUpdPatAcc = first + 37, P01val = first + 37,//add and update patient account PurgePatAcc = first + 38, P02val = first + 38,//purge patient account PostDetFinTransAct = first + 39, P03val = first + 39,//post detail financial transaction ImmAcc = first + 40, Q01val = first + 40,//immediate access DefAcc = first + 41, Q02val = first + 41,//deferred access DefResToAQuery = first + 42, Q03val = first + 42,//deferred response to a query UnsDisUpd = first + 43, Q05val = first + 43,//unsolicited display update last = 43, size = last - first + 1 }; EventTypeCode(); EventTypeCode(Value val); EventTypeCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline EventTypeCode::EventTypeCode() : LinearCode(_table,(size_t)size) {} inline EventTypeCode::EventTypeCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline EventTypeCode::EventTypeCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline EventTypeCode::operator EventTypeCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! PROTOGEN_EVENTTYPECODE_H_ */