/* * 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. */ extern const char *message_name; extern const char *fsi_host; extern const char *fsi_service; extern const char *App; extern const char *Fac; extern const char *RecApp; extern const char *RecFac; #include HL7Message *admit_patient (HL7Message&); // ADT^A01 HL7Message *transfer_patient (HL7Message&); // ADT^A02 HL7Message *discharge_patient (HL7Message&); // ADT^A03 HL7Message *update_pat_info (HL7Message&); // ADT^A08 HL7Message *cancel_admit (HL7Message&); // ADT^A11 HL7Message *cancel_transfer (HL7Message&); // ADT^A12 HL7Message *cancel_discharge (HL7Message&); // ADT^A13 HL7Message *swap_patients (HL7Message&); // ADT^A17 HL7Message *report_results (HL7Message&); // ORU HL7Message *network_data (HL7Message&); // NMD #include // the common final function for the above server functions HL7Message *forward_message(class HL7Message &request); HL7Message *make_ack(HL7Message &request, AckCode::Value, const char *msg = NULL);