/* * 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_UNIMESIDCODE_H_ #define PROTOGEN_UNIMESIDCODE_H_ #pragma interface #include /* * CODE * * UniMesIdCode(derived) -- unique message id */ class UniMesIdCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, GenAck = first + 0, ACKval = first + 0,//general acknowledgement AdtRes = first + 1, ADRval = first + 1,//adt response AdmitAPat = first + 2, ADT_A01val = first + 2,//admit a patient TransFerAPat = first + 3, ADT_A02val = first + 3,//transfer a patient DisAPat = first + 4, ADT_A03val = first + 4,//discharge a patient RegAPat = first + 5, ADT_A04val = first + 5,//register a patient PreAPat = first + 6, ADT_A05val = first + 6,//preadmit a patient TransFerAnOutToInp = first + 7, ADT_A06val = first + 7,//transfer an outpatient to inpatient TransFerAnInpToOut = first + 8, ADT_A07val = first + 8,//transfer an inpatient to outpatient UpdPatInf = first + 9, ADT_A08val = first + 9,//update patient information PatDep = first + 10, ADT_A09val = first + 10,//patient departing PatArr = first + 11, ADT_A10val = first + 11,//patient arriving CanAdmit = first + 12, ADT_A11val = first + 12,//cancel admit CanTransFer = first + 13, ADT_A12val = first + 13,//cancel transfer CanDis = first + 14, ADT_A13val = first + 14,//cancel discharge PenAdmit = first + 15, ADT_A14val = first + 15,//pending admit PenTransFer = first + 16, ADT_A15val = first + 16,//pending transfer PenDis = first + 17, ADT_A16val = first + 17,//pending discharge SwapPat = first + 18, ADT_A17val = first + 18,//swap patients MergePatInf = first + 19, ADT_A18val = first + 19,//merge patient information NurCenAppUpd = first + 20, ADT_A20val = first + 20,//nursing/census application updates LeaveOfAbsOutLea = first + 21, ADT_A21val = first + 21,//leave of absence - out (leaving) LeaveOfAbsInRet = first + 22, ADT_A22val = first + 22,//leave of absence - in (returning) DelAPatRec = first + 23, ADT_A23val = first + 23,//delete a patient recorf LinkPatInf = first + 24, ADT_A24val = first + 24,//link patient information CanPenDis = first + 25, ADT_A25val = first + 25,//cancel pending discharge CanPenTransFer = first + 26, ADT_A26val = first + 26,//cancel pending transfer CanPenAdmit = first + 27, ADT_A27val = first + 27,//cancel pending admit AddPerSonInf = first + 28, ADT_A28val = first + 28,//add person information DelPerSonInf = first + 29, ADT_A29val = first + 29,//delete person information MergePerSonInf = first + 30, ADT_A30val = first + 30,//merge person information UpdPerSonInf = first + 31, ADT_A31val = first + 31,//update person information CanPatArr = first + 32, ADT_A32val = first + 32,//cancel patient arriving CanPatDep = first + 33, ADT_A33val = first + 33,//cancel patient departing MergePatInfPatIdOnly = first + 34, ADT_A34val = first + 34,//merge patient information - patient id only MergePatInfAccNumOnly = first + 35, ADT_A35val = first + 35,//merge patient information - account number only MergePatInfPatIdAndAccNum = first + 36, ADT_A36val = first + 36,//merge patient information - patient id and account number UnlPatInf = first + 37, ADT_A37val = first + 37,//unlink patient information AstmResMes = first + 38, ASTMval = first + 38,//astm result message AddAndUpdPatAcc = first + 39, BAR_P01val = first + 39,//add and update patient account PurgePatAcc = first + 40, BAR_P02val = first + 40,//purge patient account PostDetFinTransAct = first + 41, DFT_P03val = first + 41,//post detail financial transaction DefResToAQuery = first + 42, DSR_Q03val = first + 42,//deferred response to a query DefAck = first + 43, MCFval = first + 43,//deferred acknowledgement MasFileDelAck = first + 44, MFDval = first + 44,//master file delayed acknowledgement MasFileAck = first + 45, MFKval = first + 45,//master file acknowledgement MasFileNot = first + 46, MFNval = first + 46,//master file notification MasFileRes = first + 47, MFRval = first + 47,//master file response NetManData = first + 48, NMDval = first + 48,//network management data NetManQuery = first + 49, NMQval = first + 49,//network management query NetManRes = first + 50, NMRval = first + 50,//network management response ObsRep = first + 51, ORFval = first + 51,//observational report GenOrderMes = first + 52, ORMval = first + 52,//general order message GenOrderAckMes = first + 53, ORRval = first + 53,//general order acknowledgement message ObsResUns = first + 54, ORUval = first + 54,//observational results (unsolicited) PatQuery = first + 55, QRY_A19val = first + 55,//patient, query ImmAcc = first + 56, QRY_Q01val = first + 56,//immediate access DefAcc = first + 57, QRY_Q02val = first + 57,//deferred access PhaAdm = first + 58, RASval = first + 58,//pharmacy administration PhaEncOrderMes = first + 59, RDEval = first + 59,//pharmacy encoded order message PhaDisMes = first + 60, RDSval = first + 60,//pharmacy dispense message PhaGive = first + 61, RGVval = first + 61,//pharmacy give PhaAdmAckMes = first + 62, RRAval = first + 62,//pharmacy administration acknowledgement message PhaDisAckMes = first + 63, RRDval = first + 63,//pharmacy dispense acknowledgement message PhaEncOrderAckMes = first + 64, RREval = first + 64,//pharmacy encoded order acknowledgement message PhaGiveAckMes = first + 65, RRGval = first + 65,//pharmacy give acknowledgement message UnsDisUpd = first + 66, UDM_Q05val = first + 66,//unsolicited display update last = 66, size = last - first + 1 }; UniMesIdCode(); UniMesIdCode(Value val); UniMesIdCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline UniMesIdCode::UniMesIdCode() : LinearCode(_table,(size_t)size) {} inline UniMesIdCode::UniMesIdCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline UniMesIdCode::UniMesIdCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline UniMesIdCode::operator UniMesIdCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! PROTOGEN_UNIMESIDCODE_H_ */