~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/main/controllers/controladorhl7.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-05-02 08:09:26 UTC
  • Revision ID: james.westby@ubuntu.com-20110502080926-bql5wep49c7hg91t
Tags: upstream-2.4.1.1
ImportĀ upstreamĀ versionĀ 2.4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  
 
3
 *  $Id: controladorhl7.h 3521 2011-03-16 14:54:22Z carlos $
 
4
 *  Ginkgo CADx Project
 
5
 *
 
6
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
 
7
 *  http://ginkgo-cadx.com
 
8
 *
 
9
 *  This file is licensed under LGPL v3 license.
 
10
 *  See License.txt for details
 
11
 *
 
12
 *
 
13
 */
 
14
#pragma once
 
15
#include <api/ientorno.h>
 
16
#include <api/icontroladorhl7.h>
 
17
#include <api/imodelohl7.h>
 
18
 
 
19
namespace GIL {
 
20
        namespace HL7 {
 
21
                void TestHL7(void);
 
22
 
 
23
                class HiloEnviaMensajesHl7;
 
24
 
 
25
                class ControladorHL7 : public GIL::HL7::IControladorHL7 {
 
26
                public:
 
27
 
 
28
                        ControladorHL7(TipoInterpretacion interpretacion = TI_SACYL, TipoProtocolo protocolo = TP_MLLP);
 
29
                        ~ControladorHL7();
 
30
 
 
31
                        //region "Interfaz generica"
 
32
 
 
33
                        /* Interpreta (segun modelo de guias clinicas especificado) e inserta el modelo de integracion en el mensaje HL7. */
 
34
                        virtual void ConstruirMensajeDeEvidencias(GIL::HL7::Message& msg, const GIL::IModeloIntegracion* const modelo) const;
 
35
 
 
36
                        /* Envia el mensaje por el protocolo especificado */
 
37
                        virtual void EnviarMensaje(const GIL::HL7::Message& msg, bool procesarACK=true) const;
 
38
 
 
39
                        /* Parsea la cadena XML y construye los modelos de integracion encontrados. Los parametros no encontrados se asignan por defecto segun lo especificado en la configuracion global */
 
40
                        virtual void ParsearModeloIntegracion(GNC::GCS::IEntorno::ListaModelosIntegracion& modelos, const std::string& xmlString) const;
 
41
 
 
42
                        /* devuelve el uid de modulo a partir del pid indicado*/
 
43
                        virtual std::string GetUID(const std::string& idPlantilla) const;
 
44
 
 
45
                        virtual std::string GetNombreModulo(const std::string& idPlantilla) const;
 
46
 
 
47
                        virtual std::string GetSIDModulo(const std::string& idPlantilla) const;
 
48
 
 
49
                        //endregion
 
50
 
 
51
                        //region "Helpers"
 
52
 
 
53
                        //endregion
 
54
 
 
55
                        void InsertarMensajeBBDD(const GIL::HL7::Message& msg, const std::string& url,const bool procesarACK,const int protocolo,const std::string& msgControlId) const;
 
56
 
 
57
                protected:
 
58
                };
 
59
        }
 
60
}