62
54
ComandoPACSParams(const std::string& pacienteID, const std::string& pacienteNombre, const std::string& studyUID,
63
55
const std::string& estudioAccNumber, const std::string& estudioModalidad, const std::string& estudioFechaDesde,
64
56
const std::string& estudioFechaHasta, const std::string& studyTimeFrom, const std::string& studyTimeTo, const std::string& serverSeleccionado,
65
TipoAmbito ambito, GNC::GCS::Ptr<IModeloDicom> pModeloDicom, GADAPI::PACS::IComandoPACSNotificador* pNotificador) :
66
m_pacienteID(pacienteID),
67
m_pacienteNombre(pacienteNombre),
69
m_accessionNumber(estudioAccNumber),
70
m_estudioModalidad(estudioModalidad),
71
m_estudioFechaDesde(estudioFechaDesde),
72
m_estudioFechaHasta(estudioFechaHasta),
73
m_studyTimeFrom(studyTimeFrom),
74
m_studyTimeTo(studyTimeTo),
75
m_pNotificador(pNotificador),
76
m_pModelo(pModeloDicom),
78
m_transferSyntax(GIL::DICOM::SendDefault)
81
if(serverSeleccionado == "") {
82
if(DicomServerList::Instance()->GetList() != NULL) {
83
m_serverSeleccionado = DicomServerList::Instance()->GetDefaultServer()->ID;
85
throw GIL::DICOM::PACSException(_Std("There is not any Remote PACS configured"));
88
m_serverSeleccionado = serverSeleccionado;
93
m_TipoAccion=GADAPI::PACS::TAC_Buscar;
94
GTRACE("<< ComandoPACSParams::ComandoPACSParams(): " << this);
97
//download only specifying
98
ComandoPACSParams(const std::string& serverSeleccionado, const GIL::DICOM::DicomDataset& base) :
99
m_transferSyntax(GIL::DICOM::SendDefault),
103
m_Ambito = TA_NotSpecified;
106
m_pModelo = GNC::GCS::Ptr<IModeloDicom>(new IModeloDicom());
108
if(serverSeleccionado == "") {
109
//usaremos el primer servidor (por defecto)
110
if(DicomServerList::Instance()->GetFirst() !=NULL) {
111
m_serverSeleccionado = DicomServerList::Instance()->GetDefaultServer()->ID;
113
throw GIL::DICOM::PACSException(_Std("There is not any Remote PACS configured"));
116
m_serverSeleccionado = serverSeleccionado;
122
m_TipoAccion=GADAPI::PACS::TAC_Descargar;
123
GTRACE("<< ComandoPACSParams::ComandoPACSParams(): " << this);
126
virtual ~ComandoPACSParams() {
127
GTRACE(">> ComandoPACSParams::~ComandoPACSParams(): " << this);
128
m_pNotificador = NULL;
129
m_listaRutas.clear();
130
GTRACE("<< ComandoPACSParams::~ComandoPACSParams(): " << this);
57
TipoAmbito ambito, GNC::GCS::Ptr<IModeloDicom> pModeloDicom, GADAPI::PACS::IComandoPACSNotificador* pNotificador) ;
59
virtual ~ComandoPACSParams();
134
62
std::string m_pacienteID;
156
78
GADAPI::PACS::IComandoPACSNotificador* m_pNotificador;
157
79
GNC::GCS::Ptr<IModeloDicom> m_pModelo;
159
GNC::GCS::Ptr<GIL::IModeloIntegracion> m_pModeloIntegracion;
161
GIL::DICOM::DicomDataset m_base;
163
GADAPI::PACS::TipoAccion m_TipoAccion;
164
GIL::DICOM::TipoTransferSyntaxEnvio m_transferSyntax;
167
class ComandoPACSResult : public GNC::GCS::IComandoResult {
169
ComandoPACSResult() {
174
84
class EXTAPI ComandoPACS : public GNC::GCS::IComando {