Beispiel #1
0
        public void CrearOrdenInicial(Guid ordenId, Guid pacienteId, int idUsuario, TipoRegistroOrden tipoRegistro)
        {
            var objCommand = GetSqlCommand("pNLI_CrearNuevaOrdenInicialCore");

            InputParameterAdd.Guid(objCommand, "ordenId", ordenId);
            InputParameterAdd.Guid(objCommand, "pacienteId", pacienteId);
            InputParameterAdd.Int(objCommand, "usuarioId", idUsuario);
            InputParameterAdd.Bit(objCommand, "tipoRegistro", tipoRegistro == TipoRegistroOrden.ORDEN_RECEPCION);
            objCommand.ExecuteNonQuery();
        }
Beispiel #2
0
        public void CrearOrdenExamenCore(CrearOrdenExamenVM model)
        {
            var objCommand = GetSqlCommand("pNLI_CrearOrdenExamenCore");

            InputParameterAdd.Guid(objCommand, "ordenexamenId", model.OrdenExamenId);
            InputParameterAdd.Guid(objCommand, "ordenId", model.OrdenId);
            InputParameterAdd.Int(objCommand, "enfermedadId", model.EnfermedadId);
            InputParameterAdd.Guid(objCommand, "examenId", model.ExamenId);
            InputParameterAdd.Int(objCommand, "tipoMuestraId", model.TipoMuestraId);
            //estatus se esta asignando -1 por defecto para todas las tablas dentro de este SP. Actualizarlo con el boton Guardar de la orden
            InputParameterAdd.Int(objCommand, "usuarioId", model.UsuarioId);
            InputParameterAdd.DateTime(objCommand, "fechaColeccion", model.FechaObtencionDT);
            InputParameterAdd.DateTime(objCommand, "horaColeccion", model.HoraObtencionDT);
            InputParameterAdd.Int(objCommand, "establecimientoId", model.EstablecimientoDestinoId);
            InputParameterAdd.Bit(objCommand, "tipoRegistro", model.TipoRegistro == TipoRegistroOrden.ORDEN_RECEPCION);
            objCommand.ExecuteNonQuery();
        }