Agendamientos
This commit is contained in:
parent
ade3406b12
commit
423ad06d8d
|
|
@ -9,11 +9,8 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.qsoft.erp.constantes.DominioConstantes;
|
import com.qsoft.erp.constantes.DominioConstantes;
|
||||||
import com.qsoft.erp.constantes.EntidadEnum;
|
import com.qsoft.erp.constantes.EntidadEnum;
|
||||||
import com.qsoft.erp.dominio.AccionGenerica;
|
import com.qsoft.erp.dominio.AccionGenerica;
|
||||||
import com.qsoft.erp.dto.DetalleEntradaDTO;
|
import com.qsoft.erp.dto.AgendamientoDTO;
|
||||||
import com.qsoft.erp.dto.DocumentoDTO;
|
import com.qsoft.erp.dto.EstadoAgendamientoDTO;
|
||||||
import com.qsoft.erp.dto.EstadoLiquidacionDTO;
|
|
||||||
import com.qsoft.erp.dto.FacturaCompraDTO;
|
|
||||||
import com.qsoft.erp.dto.LiquidacionDTO;
|
|
||||||
import com.qsoft.wmp.services.rest.AccionResource;
|
import com.qsoft.wmp.services.rest.AccionResource;
|
||||||
import com.qsoft.wmp.services.rest.ConsultaResource;
|
import com.qsoft.wmp.services.rest.ConsultaResource;
|
||||||
import com.qsoft.wmp.services.xsd.EntradaAccion;
|
import com.qsoft.wmp.services.xsd.EntradaAccion;
|
||||||
|
|
@ -21,7 +18,6 @@ import com.qsoft.wmp.services.xsd.EntradaConsulta;
|
||||||
import com.qsoft.wmp.services.xsd.SalidaConsulta;
|
import com.qsoft.wmp.services.xsd.SalidaConsulta;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -42,17 +38,17 @@ public class Tester {
|
||||||
ObjectMapper maper = new ObjectMapper();
|
ObjectMapper maper = new ObjectMapper();
|
||||||
EntradaConsulta entrada = new EntradaConsulta();
|
EntradaConsulta entrada = new EntradaConsulta();
|
||||||
entrada.getBodyIn().setTipoConsulta(1);
|
entrada.getBodyIn().setTipoConsulta(1);
|
||||||
entrada.getBodyIn().setEntidad(EntidadEnum.Liquidacion.name());
|
entrada.getBodyIn().setEntidad(EntidadEnum.Agendamiento.name());
|
||||||
|
|
||||||
LiquidacionDTO ld = new LiquidacionDTO();
|
AgendamientoDTO dto = new AgendamientoDTO();
|
||||||
List<DocumentoDTO> documentos = new ArrayList<>();
|
|
||||||
List<EstadoLiquidacionDTO> estados = new ArrayList<>();
|
List<EstadoAgendamientoDTO> estados = new ArrayList<>();
|
||||||
documentos.add(new DocumentoDTO());
|
|
||||||
estados.add(new EstadoLiquidacionDTO());
|
estados.add(new EstadoAgendamientoDTO());
|
||||||
ld.setDocumentos(documentos);
|
|
||||||
ld.setEstados(estados);
|
dto.setEstado(estados);
|
||||||
Map<String, Object> parametros = new HashMap<>();
|
Map<String, Object> parametros = new HashMap<>();
|
||||||
parametros.put(EntidadEnum.Liquidacion.name(), ld);
|
parametros.put(EntidadEnum.Agendamiento.name(), dto);
|
||||||
|
|
||||||
entrada.getBodyIn().setParametros(parametros);
|
entrada.getBodyIn().setParametros(parametros);
|
||||||
String s = maper.writeValueAsString(entrada);
|
String s = maper.writeValueAsString(entrada);
|
||||||
|
|
@ -70,7 +66,7 @@ public class Tester {
|
||||||
ObjectMapper maper = new ObjectMapper();
|
ObjectMapper maper = new ObjectMapper();
|
||||||
EntradaAccion entrada = new EntradaAccion();
|
EntradaAccion entrada = new EntradaAccion();
|
||||||
entrada.getBodyIn().setTipoAccion(AccionGenerica.GUARDA);
|
entrada.getBodyIn().setTipoAccion(AccionGenerica.GUARDA);
|
||||||
entrada.getBodyIn().setEntidad(EntidadEnum.Auditoria.name());
|
entrada.getBodyIn().setEntidad(EntidadEnum.Agendamiento.name());
|
||||||
List<Map<String, Object>> entidades = new ArrayList<>();
|
List<Map<String, Object>> entidades = new ArrayList<>();
|
||||||
//TODO: agregar entidades
|
//TODO: agregar entidades
|
||||||
entrada.getBodyIn().setEntidades(entidades);
|
entrada.getBodyIn().setEntidades(entidades);
|
||||||
|
|
@ -79,23 +75,15 @@ public class Tester {
|
||||||
System.out.println("JSON=> " + s);
|
System.out.println("JSON=> " + s);
|
||||||
AccionResource ar = new AccionResource();
|
AccionResource ar = new AccionResource();
|
||||||
System.out.println("POSTING....");
|
System.out.println("POSTING....");
|
||||||
List<FacturaCompraDTO> data = new ArrayList<>();
|
List<AgendamientoDTO> data = new ArrayList<>();
|
||||||
|
|
||||||
FacturaCompraDTO factura = new FacturaCompraDTO();
|
AgendamientoDTO agenda = new AgendamientoDTO();
|
||||||
factura.setFacEstablecimiento("001");
|
List<EstadoAgendamientoDTO> detalle = new ArrayList<>();
|
||||||
factura.setFacPtoEmision("001");
|
|
||||||
factura.setFacSecuencial("00000095");
|
|
||||||
factura.setFacFechaEmision(new Date());
|
|
||||||
factura.setProCodigo(1);
|
|
||||||
factura.setFacImporte(50.20);
|
|
||||||
factura.setFacObservacion("Factura de prueba");
|
|
||||||
|
|
||||||
List<DetalleEntradaDTO> detalle = new ArrayList<>();
|
|
||||||
|
|
||||||
detalle.add(new DetalleEntradaDTO());
|
detalle.add(new EstadoAgendamientoDTO());
|
||||||
factura.setDetalle(detalle);
|
agenda.setEstado(detalle);
|
||||||
|
|
||||||
data.add(factura);
|
data.add(agenda);
|
||||||
|
|
||||||
s = maper.writeValueAsString(data);
|
s = maper.writeValueAsString(data);
|
||||||
System.out.println("JSON=> " + s);
|
System.out.println("JSON=> " + s);
|
||||||
|
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
{
|
|
||||||
"headerIn": {
|
|
||||||
"dispositivo": "WeLaptop",
|
|
||||||
"canal": "01",
|
|
||||||
"medio": "01",
|
|
||||||
"aplicacion": "WeMedicalProV1.0",
|
|
||||||
"tipoTransaccion": "0101110",
|
|
||||||
"usuario": "james",
|
|
||||||
"uuid": "ALGUN TOKEN",
|
|
||||||
"fechaHora": null,
|
|
||||||
"idioma": null,
|
|
||||||
"empresa": null,
|
|
||||||
"geolocalizacion": null
|
|
||||||
},
|
|
||||||
"bodyIn": {
|
|
||||||
"tipoNotificacion": 1,
|
|
||||||
"parametros": {
|
|
||||||
"[ADJUNTO]": "/data/wmp/poliza/PREMIUM-signed.pdf",
|
|
||||||
"[ASUNTO]": "Bienvenido al servicio de medicina Prepagada de Caridel",
|
|
||||||
"[CLIENTE]": "EDISON RAMIRO",
|
|
||||||
"[COBERTURA]": "25000.0",
|
|
||||||
"[COMPROBANTE]": "POLIZA",
|
|
||||||
"[EMAIL]": "karito_634@yahoo.es",
|
|
||||||
"[EMISOR]": "CARIDEL S.A.",
|
|
||||||
"[EMISOR_MAIL]": "notificaciones@caridelsa.com",
|
|
||||||
"[EMISOR_WEB]": "http://cpnsalud.caridel.net/",
|
|
||||||
"[FECHAEMI]": "01/04/2020 23:40:30",
|
|
||||||
"[IDENTIFICACION]": "1002366654",
|
|
||||||
"[NUMDOC]": "POL0000000332",
|
|
||||||
"[PLAN]": "MASIVOS PREMIUN CPN"
|
|
||||||
},
|
|
||||||
"adjuntos": [
|
|
||||||
{
|
|
||||||
"nombre": "archivo1.pdf",
|
|
||||||
"archivo": "UklGRoJgAABXRUJQVlA4IHZgAADQAwGdASoAAQABPjEUiEKiISEXq+4MIAMEtQBYU7REd+X/vH7S/lv8ndg......."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nombre": "archivo2.txt",
|
|
||||||
"archivo": "zU4pk7xWlI3KLzi7huKBDIulPve0zFmNc30vUd3a29NIcoHBLRNxzamSywbh1dGBh2drEZI5qvE4WEvRutK5...."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nombre": "archivo3.jpg",
|
|
||||||
"archivo": "3qwduvkya8kAXnvUbjh4X7oXRWt59pAIq+77Awuqo6CtaYmslelq0WZP9YG69Ons09NkwRKf5KFfEezMo+6VRyzpEln6qTMMUH0..."
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
"headerIn": {
|
"headerIn": {
|
||||||
"dispositivo": "WeLaptop",
|
"dispositivo": "WeLaptop",
|
||||||
"canal": null,
|
"canal": null,
|
||||||
"medio": null,
|
"medio": null,
|
||||||
"aplicacion": "WeMedicalProV1.0",
|
"aplicacion": "WeMedicalProV1.0",
|
||||||
"tipoTransaccion": "0101102",
|
"tipoTransaccion": "0101114",
|
||||||
"usuario": "1715060073",
|
"usuario": "1715060073",
|
||||||
"uuid": "b5a66f87c713a14581ea",
|
"uuid": "b5a66f87c713a14581ea",
|
||||||
"fechaHora": null,
|
"fechaHora": null,
|
||||||
|
|
@ -14,63 +15,40 @@
|
||||||
},
|
},
|
||||||
"bodyIn": {
|
"bodyIn": {
|
||||||
"tipoAccion": 1,
|
"tipoAccion": 1,
|
||||||
"entidad": "DetalleLiquidacion",
|
"entidad": "Agendamiento",
|
||||||
"entidades": [
|
"entidades": [
|
||||||
{
|
{
|
||||||
"preCodigo": 2,
|
"ageFechaAgenda": null,
|
||||||
"liqCodigo": 251,
|
"ageFechaCita": null,
|
||||||
"copCodigo": 589,
|
"ageFechaConfirma": null,
|
||||||
"detTipo": 15006,
|
"ageSintomas": null,
|
||||||
"detCie10": 102,
|
"ageValor": null,
|
||||||
"delMedico": "Daniela Garcia",
|
"ageTelefono": null,
|
||||||
"delFacClaveAcceso": "",
|
"ageObservaciones": null,
|
||||||
"delFacAutorizacion": "",
|
"ageNotificado": null,
|
||||||
"delServicio": "MEDICAMENTOS COMERCIALES (MARCA)",
|
"ageEspecialidad": null,
|
||||||
"delFecha": "10/09/2020",
|
"ageMedico": null,
|
||||||
"delValorRegistrado": 245,
|
"ageDocumentos": null,
|
||||||
"delFactura": "00100100005214",
|
"ageAprobacion": null,
|
||||||
"detalle": [
|
"ageExamenes": null,
|
||||||
|
"ageDiagnostico": null,
|
||||||
|
"agePreexistencia": null,
|
||||||
|
"ageIndicaciones": null,
|
||||||
|
"locCodigo": null,
|
||||||
|
"perBeneficiario": null,
|
||||||
|
"polCodigo": null,
|
||||||
|
"preCodigo": null,
|
||||||
|
"detTipo": null,
|
||||||
|
"usuCodigo": null,
|
||||||
|
"estado": [
|
||||||
{
|
{
|
||||||
"talEstado": 1,
|
"esaObservaciones": null,
|
||||||
"talDescripcion": "Detalle 1",
|
"esaEstado": null,
|
||||||
"talCantidad": "1",
|
"detEstado": null,
|
||||||
"talValorRegistrado": 122
|
"usuCodigo": null
|
||||||
}, {
|
|
||||||
"talEstado": 1,
|
|
||||||
"talDescripcion": "Descripcion 2",
|
|
||||||
"talCantidad": "1",
|
|
||||||
"talValorRegistrado": 123
|
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"delEstado": 1
|
|
||||||
}, {
|
|
||||||
"preCodigo": 2,
|
|
||||||
"liqCodigo": 251,
|
|
||||||
"copCodigo": 580,
|
|
||||||
"detTipo": 15002,
|
|
||||||
"detCie10": 102,
|
|
||||||
"delMedico": "Daniela Garcia",
|
|
||||||
"delFacClaveAcceso": "",
|
|
||||||
"delFacAutorizacion": "",
|
|
||||||
"delServicio": "ATENCIÓN MÉDICA EN EL HOGAR",
|
|
||||||
"delFecha": "10/09/2020",
|
|
||||||
"delValorRegistrado": 245,
|
|
||||||
"delFactura": "00100100005214",
|
|
||||||
"detalle": [
|
|
||||||
{
|
|
||||||
"talEstado": 1,
|
|
||||||
"talDescripcion": "Descripcion 3",
|
|
||||||
"talCantidad": "1",
|
|
||||||
"talValorRegistrado": 123
|
|
||||||
}, {
|
|
||||||
"talEstado": 1,
|
|
||||||
"talDescripcion": "Descripcion 4",
|
|
||||||
"talCantidad": "1",
|
|
||||||
"talValorRegistrado": 122
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"delEstado": 1
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue