/* * 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_ORDERCONTROLCODESANDTHEIRMEACODE_H_ #define HL7_ORDERCONTROLCODESANDTHEIRMEACODE_H_ #pragma interface #include /* * CODE * * OrderConTrolCodesAndTheirMeaCode(hl7_standard) -- order control codes and their meaning */ class OrderConTrolCodesAndTheirMeaCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, CanOrderReq = first + 0, CAval = first + 0,//cancel order request ChildOrder = first + 1, CHval = first + 1,//child order ComRes = first + 2, CNval = first + 2,//combined result CanAsReq = first + 3, CRval = first + 3,//canceled as requested DisOrderReq = first + 4, DCval = first + 4,//discontinue order request DataErr = first + 5, DEval = first + 5,//data errors DisAsReq = first + 6, DRval = first + 6,//discontinued as requested HoldOrderReq = first + 7, HDval = first + 7,//hold order request OnHoldAsReq = first + 8, HRval = first + 8,//on hold as requested NumAssComRes = first + 9, NAval = first + 9,//number assigned combined result NewOrder = first + 10, NWval = first + 10,//new order OrderCan = first + 11, OCval = first + 11,//order canceled OrderDis = first + 12, ODval = first + 12,//order discontinued OrderHeld = first + 13, OHval = first + 13,//order held OrderAccOk = first + 14, OKval = first + 14,//order accepted & ok RelAsReq = first + 15, ORval = first + 15,//released as requested ParOrder = first + 16, PAval = first + 16,//parent order ObsToFol = first + 17, REval = first + 17,//observations to follow RelPreHold = first + 18, RLval = first + 18,//release previous hold RepOrder = first + 19, ROval = first + 19,//replacement order OrderRepReq = first + 20, RPval = first + 20,//order replace request RepAsReq = first + 21, RQval = first + 21,//replaced as requested ReqRec = first + 22, RRval = first + 22,//request received RepUns = first + 23, RUval = first + 23,//replaced unsolicited StatusCha = first + 24, SCval = first + 24,//status changed SendOrderNum = first + 25, SNval = first + 25,//send order number ResToSendOrderStatus = first + 26, SRval = first + 26,//response to send order status SendOrderStatusReq = first + 27, SSval = first + 27,//send order status request UnaToCan = first + 28, UCval = first + 28,//unable to cancel UnaToDis = first + 29, UDval = first + 29,//unable to discontinue UnaToPutOnHold = first + 30, UHval = first + 30,//unable to put on hold UnaToRep = first + 31, UMval = first + 31,//unable to replace UnaToRel = first + 32, URval = first + 32,//unable to release UnaToCha = first + 33, UXval = first + 33,//unable to change ChaOrderReq = first + 34, XOval = first + 34,//change order request ChaAsReq = first + 35, XRval = first + 35,//changed as requested OrderChaUnsol = first + 36, XXval = first + 36,//order changed, unsol. last = 36, size = last - first + 1 }; OrderConTrolCodesAndTheirMeaCode(); OrderConTrolCodesAndTheirMeaCode(Value val); OrderConTrolCodesAndTheirMeaCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline OrderConTrolCodesAndTheirMeaCode::OrderConTrolCodesAndTheirMeaCode() : LinearCode(_table,(size_t)size) {} inline OrderConTrolCodesAndTheirMeaCode::OrderConTrolCodesAndTheirMeaCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline OrderConTrolCodesAndTheirMeaCode::OrderConTrolCodesAndTheirMeaCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline OrderConTrolCodesAndTheirMeaCode::operator OrderConTrolCodesAndTheirMeaCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! HL7_ORDERCONTROLCODESANDTHEIRMEACODE_H_ */